import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from "typeorm";

/**
 * 回收物品预约信息-详细log
 */
@Entity("t_recycle_appointment_log")
export class RecycleAppointmentLogEntity extends BaseEntity {
    @Index()
    @Column({ comment: "预约ID" })
    appointmentId: number;

    @Column({
        comment: "操作类型",
        dict: [
            "创建预约",
            "审核通过",
            "分配人员",
            "确认",
            "接单",
            "到达",
            "开始回收",
            "完成",
            "取消",
            "改期"
        ]
    })
    action: string;

    @Column({ comment: "操作人类型" })   // 用户/分拣员/管理员
    operatorType: string;

    @Column({ comment: "操作人ID" })
    operatorId: number;

    @Column({ comment: "描述" })
    remark: string;


}