package com.bs.cm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.bs.common.annotation.Excel;
import com.bs.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
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 io.swagger.annotations.ApiModelProperty;

/**
 * 司机信息对象 cm_driver
 *
 * @author bs
 * @date 2025-01-12
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("cm_driver")
@Data
public class CmDriver extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;

    /** 工号 */

    @Excel(name = "工号")
    @ApiModelProperty(value = "工号")
    private String workNumber;

    /** 司机姓名 */

    @Excel(name = "司机姓名")
    @ApiModelProperty(value = "司机姓名")
    private String driverName;

    /** 出生年月 */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生年月", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "出生年月")
    private Date birthdate;

    /** 身份证号 */

    @Excel(name = "身份证号")
    @ApiModelProperty(value = "身份证号")
    private String idNumber;

    /** 性别 */

    @Excel(name = "性别")
    @ApiModelProperty(value = "性别")
    private String sex;

    /** 手机号码 */

    @Excel(name = "手机号码")
    @ApiModelProperty(value = "手机号码")
    private String mobileNumber;

    /** 是否生成账号 */

    @Excel(name = "是否生成账号")
    @ApiModelProperty(value = "是否生成账号")
    private String isGenerate;

    /** 备注 */

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




}
