package com.ruoyi.interfaces.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * entity:MdModelWorkflow
 *
 * @author lql
 * @date 2025-7-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName
public class MdModelWorkflow implements Serializable {

    @TableId
    private Integer id;
    @ApiModelProperty("模型ID")
    private String mdid;
    @ApiModelProperty("工作流名称")
    private String name;
    @ApiModelProperty("描述")
    private String description;
    @ApiModelProperty("状态:1启用,0禁用")
    private Integer status;
    @ApiModelProperty("输入参数模板")
    private String inputTemplate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("更新时间")
    private Date updateTime;
    @ApiModelProperty("步骤")
    private String graph;

    @TableField(exist = false)
    @ApiModelProperty("步骤列表")
    private List<MdModelStep> steps;

}
