package com.iqser.red.service.persistence.management.v1.processor.entity.dossier;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import jakarta.persistence.Id;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;

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

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

@Data
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "dossier_attribute_config")
public class DossierAttributeConfigEntity {

    @Id
    private String id;
    @Column
    private String label;
    @Column
    private boolean editable;
    @Column
    private String placeholder;

    @Column
    @Enumerated(EnumType.STRING)
    private DossierAttributeType type = DossierAttributeType.TEXT;

    @ManyToOne
    private DossierTemplateEntity dossierTemplate;

}
