package org.jeecg.modules.workFlow.flowplus.workflow.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * 流程分组
 *

 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "wflow_process_groups")
public class WflowProcessGroups implements Serializable {
    private static final long serialVersionUID = -50696449296875480L;

    @TableId(value = "group_id", type = IdType.ASSIGN_ID)
    private String groupId;
    /**
     * 组名
     */
    private String groupName;
    /**
     * 排序号
     */
    private Integer sortNum;
    @ApiModelProperty("创建时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date created;

    @ApiModelProperty("更新时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updated;

    /**
     * 租户id
     */
    private String tenantId;

}
