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_out_port_country")
public class DsOutPortCountry implements Serializable {
    /**
     * 出港报告唯一标识县
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonProperty(value = "id")
    @ApiModelProperty(value = "出港报告唯一标识县")
    private String id;

    /**
     * 港口唯一标识
     */
    @JsonProperty(value = "portId")
    @ApiModelProperty(value = "港口唯一标识")
    @TableField(value = "port_id")
    private String portId;

    /**
     * 渔船信息表唯一标识
     */
    @JsonProperty(value = "boatId")
    @ApiModelProperty(value = "渔船信息表唯一标识")
    @TableField(value = "boat_id")
    private String boatId;

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

    /**
     * 出港时间
     */
    @JsonProperty(value = "outTime")
    @ApiModelProperty(value = "出港时间")
    @TableField(value = "out_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date outTime;

    /**
     * 海上联系方式
     */
    @JsonProperty(value = "phone")
    @ApiModelProperty(value = "海上联系方式")
    @TableField(value = "phone")
    private String phone;

    /**
     * 船员唯一标识
     */
    @JsonProperty(value = "crewId")
    @ApiModelProperty(value = "船员唯一标识")
    @TableField(value = "crew_id")
    private String crewId;

    /**
     * 渔船名称
     */
    @JsonProperty(value = "boatName")
    @ApiModelProperty(value = "渔船名称")
    @TableField(value = "boat_name")
    private String boatName;

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

    private static final long serialVersionUID = 1L;
}