package com.iqser.red.service.persistence.service.v2.api.external.model;

import com.iqser.red.service.persistence.service.v1.api.shared.model.dossiertemplate.dossier.file.FileAttributeType;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class FileAttributeDefinition {

    private String id;
    private String name;
    private FileAttributeType type = FileAttributeType.TEXT;

    private String mappedCsvColumnHeader;
    private String reportingPlaceholder;
    private DisplaySettings displaySettings;
    private boolean includeInCsvExport;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    public static class DisplaySettings {

        private boolean primaryAttribute;
        private boolean editable;
        private boolean filterable;
        private boolean displayedInFileList;

    }

}
