package com.codvision.workflow.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author hxl
 */
@Data
@ApiModel
@TableName("tbl_work_flow_expression")
public class WorkFlowExpression implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("表达式")
    private String expression;

    @ApiModelProperty("是否系统内置")
    private Boolean isSystem;

    @ApiModelProperty("类型，0-人员配置 1-流转条件 2-表单默认值")
    private Integer type;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新时间")
    private Date updateTime;
}
