package cn.iocoder.yudao.module.asset.dal.dataobject.delivery;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 交车单 DO
 */
@TableName("asset_delivery_order")
@KeySequence("asset_delivery_order_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DeliveryOrderDO extends BaseDO {

    @TableId
    private Long id;
    private String orderCode;
    private Long taskId;
    private String taskCode;
    private Long contractId;
    private String contractCode;
    private String projectName;
    private Long customerId;
    private String customerName;
    private LocalDateTime deliveryDate;
    private String deliveryPerson;
    private String deliveryLocation;
    private Long authorizedPersonId;
    private String authorizedPersonName;
    private String authorizedPersonPhone;
    private String authorizedPersonIdCard;
    private String esignFlowId;
    private Integer esignStatus;
    private String deliveryPhotos;
    private String driverName;
    private String driverIdCard;
    private String driverPhone;
    private String inspectionData;
    private String costList;
    /**
     * 关联验车记录ID
     */
    private Long inspectionRecordId;
    /**
     * 状态（0=待完成 1=已完成）
     */
    private Integer status;

}
