package com.dora.entity;

import lombok.Data;
import java.time.LocalDateTime;

/**
 * AI生成任务表实体类
 */
@Data
public class AiTask {
    private Long id;
    private String taskNo;
    private Long userId;
    private String modelName;
    private String taskType;
    private String providerType;      // AI服务提供商类型（openai, runninghub）
    private String providerTaskId;    // 服务商返回的任务ID
    private String providerPid;       // 服务商返回的PID（如速创Sora2的续作ID）
    private String providerResponse;  // 服务商原始响应（JSON）
    private String prompt;
    private String imageUrl;          // 参考图片URL（用于图生视频）
    private String imageBase64;       // 参考图片Base64（用于图生视频）
    private String aspectRatio;       // 图片宽高比
    private String status;
    private Integer progress;
    private String progressMessage;
    private Integer pointsFrozen;
    private Integer pointsConsumed;
    private String resultUrl;
    private String errorMessage;
    private LocalDateTime queueTime;
    private LocalDateTime startTime;
    private LocalDateTime completeTime;
    private LocalDateTime expireTime;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Integer isDeleted;
}
