package com.artfess.rescue.event.model;

import com.artfess.base.entity.BaseModel;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 救援派遣信息
 *
 * @company 阿特菲斯信息技术有限公司
 * @author 系统管理员
 * @since 2024-10-24
 */
@Data
@TableName("biz_rescue_car")
@ApiModel(value="BizRescueCar对象", description="救援车信息")
public class BizRescueCar extends BaseModel<BizRescueCar> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键_ID")
    @TableId(value = "ID_", type = IdType.ASSIGN_ID)
    private String id;

    @NotNull(message = "救援id不能为空")
    @ApiModelProperty(value = "救援ID")
    @TableField("RESCUE_ID_")
    private String rescueId;

    @ApiModelProperty(value = "派遣时间")
    @TableField("DISPATCH_TIME_")
    private LocalDateTime dispatchTime;

    @NotNull(message = "派遣车辆不能为空")
    @ApiModelProperty(value = "派遣车辆")
    @TableField("DISPATCH_CAR_CODE_")
    private String dispatchCarCode;

    @ApiModelProperty(value = "派遣车辆类型(1:拖车，2：吊车，3：拖吊一体)")
    @TableField("DISPATCH_CAR_TYPE_")
    private String dispatchCarType;

    @TableLogic
    @ApiModelProperty(value = "是否删除")
    @TableField("IS_DELE_")
    private String isDele="0";

}
