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

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 jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "tb_map_sheet_mng_files")
public class MapSheetMngFileEntity {

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "file_uid", nullable = false)
  private Long fileUid;

  @NotNull
  @Column(name = "mng_yyyy", nullable = false)
  private Integer mngYyyy;

  @NotNull
  @Column(name = "map_sheet_num", nullable = false)
  private String mapSheetNum;

  @Column(name = "ref_map_sheet_num")
  private String refMapSheetNum;

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

  @Size(max = 100)
  @Column(name = "file_name", length = 100)
  private String fileName;

  @Size(max = 20)
  @Column(name = "file_ext", length = 20)
  private String fileExt;

  @Column(name = "hst_uid")
  private Long hstUid;

  @Column(name = "file_size")
  private Long fileSize;

  @Size(max = 20)
  @Column(name = "file_state", length = 20)
  private String fileState;
}
