package com.backendsys.modules.crt.entity;

import com.backendsys.config.Mybatis.handler.timezone.LocalDateTimeAdapter;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.google.gson.annotations.JsonAdapter;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("crt_generate_image")
public class CrtGenerateImage {

    @TableId(type = IdType.AUTO)
    private Long id;
    private Long user_id;                       // 用户ID
    private Long drama_project_storyboard_id;   // 分镜ID
    private String prompt_id;                   // 任务ID
    private String url_origin;                  // 原图
    private String url;                         // 转存图
    @TableField(exist = false)
    private String url_thumb;                   // 转存图-缩略图
    private Integer target;                     // 上传目标 (-1:本地, 1:腾讯云, 2:阿里云, 3.抖音云)
    private String object_key;

    @JsonAdapter(LocalDateTimeAdapter.class)
    private LocalDateTime create_time;
    @JsonAdapter(LocalDateTimeAdapter.class)
    private LocalDateTime update_time;
}
