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

import com.kamco.cd.kamcoback.postgres.CommonDateEntity;
import jakarta.persistence.*;
import java.time.ZonedDateTime;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "tb_model_deploy_hst")
public class ModelDeployHstEntity extends CommonDateEntity {
  @Id
  @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "tb_model_deploy_hst_id_gen")
  @SequenceGenerator(
      name = "tb_model_deploy_hst_id_gen",
      sequenceName = "tb_model_deploy_hst_deploy_uid",
      allocationSize = 1)
  @Column(name = "deploy_uid", nullable = false)
  private Long id;

  @Column(name = "model_uid")
  private Long modelUid;

  @Column(name = "server_id")
  private Long serverId;

  @Column(name = "deploy_state")
  private String deployState;

  @Column(name = "deploy_dttm", columnDefinition = "TIMESTAMP WITH TIME ZONE")
  private ZonedDateTime deployDttm;

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

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

  @Column(name = "model_ver_uid")
  private Long modelVerUid;
}
