package com.ltgk.catches.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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * 捕捞日志
 */
@ApiModel(description = "捕捞日志")
@Data
@TableName(value = "tc_fish_log")
@Accessors(chain = true)
public class TcFishLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

    @TableField(value = "boat_id")
    @ApiModelProperty(value = "船舶id")
    private String boatId;

    @TableField(value = "boat_name")
    @ApiModelProperty(value = "船舶名称")
    private String boatName;

    @TableField(value = "date")
    @ApiModelProperty(value = "捕捞日志日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;

    @TableField(value = "report_user_id")
    @ApiModelProperty(value = "提报用户主键")
    private String reportUserId;

    @TableField(value = "del_flag")
    @ApiModelProperty(value = "删除标志: 0-未删除, 1-已删除")
    private Integer delFlag;

    @TableField(value = "area_code")
    @ApiModelProperty(value = "行政区域编码")
    private String areaCode;

    @TableField(value = "area_name")
    @ApiModelProperty(value = "行政区域名称")
    private String areaName;

    @TableField(value = "create_by")
    @ApiModelProperty(value = "创建者")
    private String createBy;

    @TableField(value = "create_at")
    @ApiModelProperty(value = "创建时间")
    private Date createAt;

    @TableField(value = "update_by")
    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @TableField(value = "update_at")
    @ApiModelProperty(value = "更新时间")
    private Date updateAt;

    @TableField(value = "remark")
    @ApiModelProperty(value = "备注")
    private String remark;

    @TableField(value = "log_picture")
    @ApiModelProperty(value = "捕捞日志图片信息")
    private String logPicture;
}