package com.ltgk.port.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 值班人员对象 pp_duty_man
 *
 * @author Qi ChengBin
 * @date 2025-01-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("pp_duty_man")
@ApiModel(value = "值班人员对象", description = "值班人员表")
public class PpDutyMan extends Model<PpDutyMan> {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "系统用户id")
    @TableField(value = "user_id")
    private Long userId;

    @ApiModelProperty(value = "姓名")
    @TableField(value = "duty_man_name", condition = SqlCondition.LIKE)
    private String dutyManName;

    @ApiModelProperty(value = "电话")
    @TableField(value = "duty_man_phone", condition = SqlCondition.LIKE)
    private String dutyManPhone;

    @ApiModelProperty(value = "住址")
    @TableField(value = "duty_man_address", condition = SqlCondition.LIKE)
    private String dutyManAddress;

    @ApiModelProperty(value = "所属部门ID")
    @TableField(value = "dept_id")
    private Long deptId;

    @ApiModelProperty(value = "所属部门名称")
    @TableField(value = "dept_name", condition = SqlCondition.LIKE)
    private String deptName;

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

    @ApiModelProperty(value = "性别：0=男,1=女,2=未知")
    @TableField(value = "sex")
    private Integer sex;

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

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

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

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

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

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at")
    private Date createAt;

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

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