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

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.LocalDate;
import java.time.LocalDateTime;

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

    @Column(name = "sailor_name_kr")
    private String sailorNameKr;

    @Column(name = "sailor_name_cn")
    private String sailorNameCn;

    @Column(name = "sailor_name_pinyin")
    private String sailorNamePinyin;

    @Column(name = "sailor_contact")
    private String sailorContact;

    @Column(name = "birthdate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthdate;

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

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

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

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

    @Column(name = "similar_criminal_history")
    private Integer similarCriminalHistory;

    @Column(name = "heterogeneous_criminal_history")
    private Integer heterogeneousCriminalHistory;

    @Column(name = "arrest_history")
    private Integer arrestHistory;

    @Column(name = "criminal_history_detail")
    private String criminalHistoryDetail;

    @Column(name = "monthly_wages")
    private String monthlyWages;

    @Column(name = "is_restriction")
    private String isRestriction;

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

    @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_grd")
    private String wrtUserGrd;

    @Column(name = "wrt_user_nm")
    private String wrtUserNm;

    @Column(name = "wrt_dt")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime wrtDt;

}
