package com.ltgk.boat.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("ds_enter_out_crew_country")
public class DsEnterOutCrewCountry implements Serializable {
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonProperty(value = "id")
    private String id;

    /**
     * 证书号码
     */
    @ApiModelProperty(value = "证书号码")
    @JsonProperty(value = "number")
    @TableField(value = "number")
    private String number;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名")
    @JsonProperty(value = "name")
    @TableField(value = "name")
    private String name;

    /**
     * 证书有效期
     */
    @ApiModelProperty(value = "证书有效期")
    @JsonProperty(value = "validityDate")
    @TableField(value = "validity_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date validityDate;

    /**
     * 渔业船员id
     */
    @ApiModelProperty(value = "渔业船员id")
    @JsonProperty(value = "crewId")
    @TableField(value = "crew_id")
    private String crewId;

    /**
     * 职务
     */
    @ApiModelProperty(value = "职务")
    @JsonProperty(value = "certificatePost")
    @TableField(value = "certificate_post")
    private String certificatePost;

    /**
     * 身份证号
     */
    @ApiModelProperty(value = "身份证号")
    @JsonProperty(value = "idCard")
    @TableField(value = "id_card")
    private String idCard;

    /**
     * 证书等级
     */
    @ApiModelProperty(value = "证书等级")
    @JsonProperty(value = "certificateLevel")
    @TableField(value = "certificate_level")
    private String certificateLevel;

    /**
     * 所属地区代码
     */
    @ApiModelProperty(value = "所属地区代码")
    @JsonProperty(value = "areaCode")
    @TableField(value = "area_code")
    private String areaCode;

    /**
     * 插入时间
     */
    @ApiModelProperty(value = "插入时间")
    @JsonProperty(value = "updateAt")
    @TableField(value = "update_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateAt;

    private static final long serialVersionUID = 1L;
}