package com.kamco.cd.kamcoback.postgres.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import jakarta.validation.constraints.Size;
import java.time.OffsetDateTime;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.ColumnDefault;

@Getter
@Setter
@Entity
@Table(name = "tb_map_sheet_mng")
public class MapSheetMngEntity {

  @Id
  @Column(name = "mng_yyyy", nullable = false)
  private Integer id;

  @Size(max = 20)
  @Column(name = "mng_state", length = 20)
  private String mngState;

  @Size(max = 20)
  @Column(name = "sync_state", length = 20)
  private String syncState;

  @Column(name = "mng_state_dttm")
  private OffsetDateTime mngStateDttm;

  @Column(name = "sync_state_dttm")
  private OffsetDateTime syncStateDttm;

  @Column(name = "created_dttm")
  private OffsetDateTime createdDttm;

  @Column(name = "created_uid")
  private Long createdUid;

  @Column(name = "updated_dttm")
  private OffsetDateTime updatedDttm;

  @Column(name = "updated_uid")
  private Long updatedUid;

  @Size(max = 255)
  @ColumnDefault("'NULL::character varying'")
  @Column(name = "mng_path")
  private String mngPath;
}
