package com.njcn.rdms.module.project.dal.dataobject.workreport.common;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.njcn.rdms.framework.mybatis.core.dataobject.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 工作报告状态日志。
 */
@TableName("rdms_work_report_status_log")
@Data
@EqualsAndHashCode(callSuper = true)
public class WorkReportStatusLogDO extends BaseDO {

    @TableId
    private Long id;

    private String reportType;

    private Long reportId;

    private String actionType;

    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String fromStatus;

    private String toStatus;

    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String reason;

    private Long operatorUserId;

    private String operatorName;

    private String periodLabelSnapshot;

    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String remark;
}
