package com.yaoai.domain.entity;

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 lombok.Data;
import org.apache.ibatis.type.Alias;

import java.time.LocalDateTime;

@Data
@TableName("character_states")
@Alias("CharacterState")
public class CharacterState {

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

    private Long projectId;
    private Long tenantId;
    private Long characterId;

    private String name;
    private String stateType;
    private String description;
    private String prompt;
    private String referenceImageKey;
    private String imageUrl;
    private String imageTosKey;

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

    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;

    @TableField(exist = false)
    private String characterName;
}
