package com.ningdatech.carapi.driver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author Liuxinxin
 * @since 2022-10-27
 */
@Data
@TableName("nd_driver_score_record")
@ApiModel(value = "DriverScoreRecord对象", description = "")
public class DriverScoreRecord implements Serializable {

    private static final long serialVersionUID = 1L;

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

    private LocalDateTime createOn;

    private LocalDateTime updateOn;

    private Long createBy;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("驾驶员id")
    private Long driverId;

    @ApiModelProperty("操作分数")
    private Integer operateScore;

    @ApiModelProperty("操作类型 加分减分")
    private String operateType;

    @ApiModelProperty("加分减分原因")
    private String operateReason;

}
