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

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
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.time.LocalDateTime;
import java.util.Date;

/**
 * 流程与分组关联记录
 *

 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "wflow_template_group")
@ApiModel(value = "TemplateGroup对象", description = "流程与分组关联记录")
public class WflowTemplateGroup implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("templateId")
    private String templateId;

    @ApiModelProperty("groupId")
    private String groupId;

    @ApiModelProperty("sortNum")
    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 createTime;

    @ApiModelProperty("租户id")
    private String tenantId;
}
