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

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

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "saas_migration_status")
public class SaasMigrationStatusEntity {

    @Id
    private String fileId;

    @Column
    private String dossierId;

    @Column
    @Enumerated(EnumType.STRING)
    private SaasMigrationStatus status;

    @Column
    private Integer processingErrorCounter;

    @Column
    private String errorCause;

}
