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

import jakarta.persistence.Column;
import jakarta.persistence.EmbeddedId;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import jakarta.validation.constraints.NotNull;
import java.time.ZonedDateTime;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.ColumnDefault;

@Getter
@Setter
@Entity
@Table(name = "tb_map_sheet_anal_sttc")
public class MapSheetAnalSttcEntity {

  @EmbeddedId private MapSheetAnalSttcEntityId id;

  @Column(name = "class_before_cnt")
  private Long classBeforeCnt;

  @Column(name = "class_after_cnt")
  private Long classAfterCnt;

  @ColumnDefault("now()")
  @Column(name = "created_dttm")
  private ZonedDateTime createdDttm;

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

  @ColumnDefault("now()")
  @Column(name = "updated_dttm")
  private ZonedDateTime updatedDttm;

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

  @NotNull
  @Column(name = "ref_map_sheet_num", nullable = false)
  private Long refMapSheetNum;

  @Column(name = "class_after_prob_avg")
  private Double classAfterProbAvg;
}
