package com.ai.da.mapper.primary.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.poi.hpsf.Decimal;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cloud_task")
public class CloudTask implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("任务名")
    private String name;

    @ApiModelProperty("项目ID")
    private Long projectId;

    @ApiModelProperty("collectionId")
    private Long collectionId;

    @ApiModelProperty("designId")
    private Long designId;

    @ApiModelProperty("任务类型")
    private String buildType;

    @ApiModelProperty("生成数量")
    private Integer nums;

    @ApiModelProperty("完成数量")
    private Integer completedNum;

    @ApiModelProperty("消耗积分")
    private Integer costCredits;

    @ApiModelProperty("状态1完成0未完成")
    private Integer status;

    @ApiModelProperty("批处理ID")
    private String taskId;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("任务开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty("任务更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("用户ID")
    private Long accountId;

    @ApiModelProperty("任务序号")
    private Long sequence;
}