package at.procon.dip.domain.time.entity.leitstand;

import at.procon.dip.architecture.SchemaNames;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Index;
import jakarta.persistence.Table;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Entity
@Table(schema = SchemaNames.TIME, name = "ls_time_recording_assignment", indexes = {
        @Index(name = "idx_ls_time_recording_assignment_upd", columnList = "upd"),
        @Index(name = "idx_ls_time_recording_assignment_person_task_assignment_dbk", columnList = "person_task_assignment_dbk"),
        @Index(name = "idx_ls_time_recording_assignment_time_recording_dbk", columnList = "time_recording_dbk")
})
@Getter @Setter @NoArgsConstructor
public class LeitstandTimeRecordingAssignment extends AbstractLeitstandDbkEntity {
    @Column(name = "person_task_assignment_dbk", length = 24) private String personTaskAssignmentDbk;
    @Column(name = "time_recording_dbk", length = 24) private String timeRecordingDbk;
    @Column(name = "mcl_desc", columnDefinition = "TEXT") private String mclDesc;
    @Column(name = "effort", precision = 19, scale = 3) private BigDecimal effort;
    @Column(name = "remark", columnDefinition = "TEXT") private String remark;
}
