package org.springblade.flow.engine.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.flow.engine.enums.OperateType;

import java.util.Date;

@ApiModel(value = "流程业务关系实体类")
@Data
@TableName("flow_bus_relation")
public class FlowBusRelation {

    @ApiModelProperty("唯一ID")
    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty("流程id")
    private String flowId;

    @ApiModelProperty("业务id")
    private String busId;

    @ApiModelProperty("业务json")
    private String busJson;

    @ApiModelProperty("数据json")
    private String dataJson;

    @ApiModelProperty("表格标识：0否  1是")
    private Integer isTable;

    @ApiModelProperty("创建人ID")
    private String creatorId;

    @ApiModelProperty("创建人")
    private String creator;

    @ApiModelProperty("发起时间")
    private Date createTime;

    @ApiModelProperty("对应的流程id")
    private String processId;

    @ApiModelProperty("操作类型")
    private OperateType operateType;
}
