package com.sonic.frog.domain.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.sonic.frog.enums.AiDictTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.time.LocalDateTime;

/**
 * <p>
 * AI角色，性格，标签，形象风格字典表
 * </p>
 *
 * @author mzc
 * @since 2024-11-28
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("ai_dict")
@ApiModel(value = "AiDict对象", description = "AI角色，性格，标签，形象风格字典表")
public class AiDict {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @TableField("code")
    @ApiModelProperty(value = "Code唯一")
    private String code;

    @TableField("name")
    @ApiModelProperty(value = "名称")
    private String name;

    @TableField("parent_code")
    @ApiModelProperty(value = "父级Code")
    private String parentCode;

    @TableField("type")
    @ApiModelProperty(value = "类型 ROLE:角色 CHARACTER:性格 TAG:标签")
    private AiDictTypeEnum type;

    @TableField("sort")
    @ApiModelProperty(value = "排序")
    private Integer sort;

    @TableField("is_delete")
    @ApiModelProperty(value = "是否删除（1.是，0.否）")
    private Boolean isDelete;

    @TableField("create_time")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
}

