package cn.axzo.workflow.core.repository.entity;

import cn.axzo.framework.data.mybatisplus.model.BaseEntity;
import cn.axzo.workflow.common.model.dto.SimpleDocDTO;
import cn.axzo.workflow.core.conf.handler.ListSimpleDocDTOHandler;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

/**
 * 审批日志
 *
 * @author wangli
 * @since 2024-08-30 15:29
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "ext_ax_read_record", autoResultMap = true)
@Data
@ToString(callSuper = true)
public class ExtAxReadRecord extends BaseEntity<ExtAxReadRecord> {

    private static final long serialVersionUID = 461756492937079852L;

    /**
     * 流程实例 ID
     */
    private String processInstanceId;

    /**
     * 自热人 ID
     */
    private Long personId;

    /**
     * 多文档的阅读状态记录
     */
    @TableField(typeHandler = ListSimpleDocDTOHandler.class)
    private List<SimpleDocDTO> readStatus;
}
