package com.njzscloud.dispose.cst.driver.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.njzscloud.common.mp.support.handler.j.JsonTypeHandler;
import com.njzscloud.dispose.common.pojo.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.util.List;

/**
 * 司机实体（仅包含表字段）
 * @author ljw
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName(value = "cst_driver", autoResultMap = true)
public class DriverEntity extends BaseEntity {

    /**
     * 归属用户 Id；sys_user.id
     */
    private Long userId;

    /**
     * 归属客户 Id；cst_customer.id
     */
    private Long customerId;

    /**
     * 归属公司 Id；cst_org.id
     */
    private Long orgId;

    /**
     * 驾驶证编号
     */
    private String drivingLicenceNo;

    /**
     * 司机姓名
     */
    private String driverName;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 驾驶证图片
     */
    @TableField(typeHandler = JsonTypeHandler.class)
    private List<String> drivingLicence;

    /**
     * 驾驶证有效期开始
     */
    private LocalDate licenceStartTime;

    /**
     * 驾驶证有效期结束
     */
    private LocalDate licenceEndTime;

    /**
     * 忙碌中
     */
    private Boolean busy;
}


