package com.codvision.workflow.entity;


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

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

/**
 * @author hxl
 */
@Data
@ApiModel
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("tbl_work_flow_button")
public class WorkFlowButton implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty("按钮编码")
    private String code;

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

    @ApiModelProperty("排序字段")
    private Integer sort;

    @ApiModelProperty("流程状态")
    private Integer flowStatus;

    @ApiModelProperty("是否启用")
    private Boolean isEnable;

    @ApiModelProperty("按钮类型")
    private String type;

    @ApiModelProperty("是否危险属性")
    private Boolean isDanger;

    @ApiModelProperty("是否幽灵属性")
    private Boolean isGhost;

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

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