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

import java.io.Serializable;

import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import jakarta.persistence.EmbeddedId;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Entity
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "download_status_reports")
public class DownloadStatusReportEntity {

    @EmbeddedId
    private DownloadStatusReportId downloadStatusReportId;

    @Embeddable
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public class DownloadStatusReportId implements Serializable {

        @Column(name = "download_status_entity_storage_id")
        private String downloadStatusEntityStorageId;

        @Column(name = "reports_template_id")
        private String reportsTemplateId;

    }

}
