package com.yh.saas.plugin.yiliangyiyun.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;

import com.baomidou.mybatisplus.enums.IdType;
import com.yh.saas.common.support.entity.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 记录货车信息
 * </p>
 *
 * @author Gongdc
 * @since 2021-05-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("driver_car_info")
public class DriverCarInfo extends BaseModel<DriverCarInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 司机id
     */
    private String driverId;
    /**
     * 车牌号
     */
    private String carNumber;
    /**
     * 车型key
     */
    private String carModelKey;
    /**
     * 车型
     */
    private String carModel;
    /**
     * 车长key
     */
    private String carLengthKey;
    /**
     * 车长
     */
    private Float carLength;
    /**
     * 载重
     */
    private Float carLoad;
    /**
     * 出厂年份
     */
    private String yearManufacture;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    public static class QueryFiles {

        public static final String DRIVER_ID = "driver_id";

        public static final String DELETE_FLAG = "delete_flag";
    }
}
