package cn.lihongjie.coal.acAppointment.entity;

import cn.lihongjie.coal.acDevice.entity.AcDeviceEntity;
import cn.lihongjie.coal.base.entity.OrgCommonEntity;

import jakarta.persistence.Entity;
import jakarta.persistence.ManyToOne;

import lombok.Data;

import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.Comment;

@Data
@Entity

@jakarta.persistence.Table(indexes = @jakarta.persistence.Index(name ="idx_ac_appointment_org_id", columnList = "organization_id"))

public class AcAppointmentEntity extends OrgCommonEntity {

    @ManyToOne
    private AcDeviceEntity device;
    
    @Comment("预约开始时间")
    private java.time.LocalDateTime startTime;

    @Comment("预约结束时间")
    private java.time.LocalDateTime endTime;

    @Comment("车牌号")
    private String plateNo;

    @Comment("姓名")
    private String driverName;

    @Comment("联系电话")
    private String driverPhone;

    @Comment("事由")
    private String reason;



    @Comment("下发时间")
    private java.time.LocalDateTime sendTime;

    @Comment("下发状态")
    private String sendStatus;



    @Comment("下发完成时间")
    private java.time.LocalDateTime sendFinishTime;





    @Comment("删除时间")
    private java.time.LocalDateTime deleteTime;


    @Comment("下发状态")
    private String deleteStatus;



    @Comment("删除完成时间")
    private java.time.LocalDateTime deleteFinishTime;

    @Comment("预约状态")
    private String appointmentStatus;



    @Comment("归档状态")
    @ColumnDefault("'0'")
    private String archiveStatus = "0";


}