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

import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.v3.oas.annotations.media.Schema;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
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;

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

    @Schema(description = "任务名")
    private String name;

    @Schema(description = "项目ID")
    private Long projectId;

    @Schema(description = "collectionId")
    private Long collectionId;

    @Schema(description = "designId")
    private Long designId;

    @Schema(description = "任务类型")
    private String buildType;

    @Schema(description = "生成数量")
    private Integer nums;

    @Schema(description = "完成数量")
    private Integer completedNum;

    @Schema(description = "消耗积分")
    private Integer costCredits;

    @Schema(description = "状态1完成0未完成")
    private Integer status;

    @Schema(description = "批处理ID")
    private String taskId;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "任务开始时间")
    private LocalDateTime startTime;

    @Schema(description = "任务更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "用户ID")
    private Long accountId;

    @Schema(description = "任务序号")
    private Long sequence;
}