package com.yaoai.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("shot_assets")
public class ShotAsset {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    private Long storyboardId;
    private Long projectId;
    private Long episodeId;
    private Long tenantId;

    /** first_frame / last_frame / reference / video */
    private String assetType;

    private String tosKey;
    private String externalUrl;
    private Long sourceTaskId;
    private String prompt;
    private String modelProvider;
    private String modelId;
    private Integer assetVersion;
    private String characters;
    private String metaJson;
    private String errorMessage;

    /** pending / generating / ready / failed */
    private String status;

    private Integer isActive;

    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}
