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.SequenceGenerator;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.locationtech.jts.geom.Geometry;

@Getter
@Setter
@Table(name = "tb_map_inkx_50k")
@Entity
@NoArgsConstructor
public class MapInkx50kEntity extends CommonDateEntity {

  @Id
  @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "tb_map_inkx_50k_fid_seq_gen")
  @SequenceGenerator(
      name = "tb_map_inkx_50k_fid_seq_gen",
      sequenceName = "tb_map_inkx_50k_fid_seq",
      allocationSize = 1)
  private Integer fid;

  @Column(name = "mapidcd_no")
  private String mapidcdNo;

  @Column(name = "mapid_nm")
  private String mapidNm;

  @Column(name = "mapid_no")
  private String mapidNo;

  @Column(name = "geom")
  private Geometry geom;

  public MapInkx50kEntity(String mapidcdNo, String mapidNm, String mapidNo, Geometry geom) {
    this.mapidcdNo = mapidcdNo;
    this.mapidNm = mapidNm;
    this.mapidNo = mapidNo;
    this.geom = geom;
  }
}
