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

import com.kamco.cd.kamcoback.postgres.CommonDateEntity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import java.time.ZonedDateTime;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "tb_model_mng")
public class ModelMngEntity extends CommonDateEntity {

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "model_uid")
  private Long modelUid;

  @Column(name = "model_ver")
  private String modelVer;

  @Column(name = "create_complete_dttm")
  private ZonedDateTime createCompleteDttm;

  @Column(name = "recent_use_dttm")
  private ZonedDateTime recentUseDttm;

  @Column(name = "deleted")
  private Boolean deleted;

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

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

  @Column(name = "model_type")
  private String modelType;

  @Column(name = "file_path")
  private String filePath;

  @Column(name = "file_name")
  private String fileName;

  @Column(name = "memo")
  private String memo;

  public void deleted() {
    this.deleted = true;
  }
}
