package com.dbnt.faisp.main.faStatistics.crackdownsStatus.model.fishingBoat;

import com.dbnt.faisp.config.BaseModel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.time.LocalDateTime;

@Getter
@Setter
@NoArgsConstructor
@MappedSuperclass
public class FishingBoatBaseEntity extends BaseModel {

  @Column(name = "cds_key")
  private Integer cdsKey;
  @Column(name = "boat_name_kr")
  private String boatNameKr;
  @Column(name = "boat_name_cn")
  private String boatNameCn;
  @Column(name = "permit_num")
  private String permitNum;
  @Column(name = "nationality")
  private String nationality;
  @Column(name = "sailor_cnt")
  private Integer sailorCnt=0;
  @Column(name = "ton_cnt")
  private Double tonCnt=0d;
  @Column(name = "fishery_type")
  private String fisheryType;
  @Column(name = "boat_material")
  private String boatMaterial;
  @Column(name = "boat_nny_sung")
  private String boatNnySung;
  @Column(name = "boat_nny_si")
  private String boatNnySi;
  @Column(name = "offense_type")
  private String offenseType;
  @Column(name = "offense_weight")
  private Double offenseWeight=0d;
  @Column(name = "offense_quantity")
  private Integer offenseQuantity=0;
  @Column(name = "offense_amount")
  private Integer offenseAmount=0;
  @Column(name = "offense_illegal_waste_quantity")
  private Integer offenseIllegalWasteQuantity=0;
  @Column(name = "dambo_unpaid_amount")
  private Integer damboUnpaidAmount=0;
  @Column(name = "dambo_payment")
  private Integer damboPayment=0;
  @Column(name = "payment_payment_dt")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
  private LocalDateTime paymentPaymentDt;
  @Column(name = "confiscation_frame")
  private String confiscationFrame;
  @Column(name = "confiscation_width")
  private String confiscationWidth;
  @Column(name = "confiscation_jo")
  private String confiscationJo;
  @Column(name = "confiscation_gae")
  private String confiscationGae;
  @Column(name = "confiscation_etc")
  private String confiscationEtc;
  @Column(name = "catch_fish_species")
  private String catchFishSpecies;
  @Column(name = "catch_cnt")
  private Integer catchCnt=0;
  @Column(name = "offense_fish_species")
  private String offenseFishSpecies;
  @Column(name = "offense_catch_cnt")
  private Integer offenseCatchCnt=0;
  @Column(name = "save_yn")
  private String saveYn;
  @Column(name = "wrt_organ")
  private String wrtOrgan;
  @Column(name = "wrt_part")
  private String wrtPart;
  @Column(name = "wrt_user_seq")
  private Integer wrtUserSeq;
  @Column(name = "wrt_user_nm")
  private String wrtUserNm;
  @Column(name = "wrt_user_grd")
  private String wrtUserGrd;
  @Column(name = "wrt_dt")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
  private LocalDateTime wrtDt;

}
