package com.sonic.frog.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 用户与Ai的聊天设定表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("chat_set")
@ApiModel("用户与Ai的聊天设定表")
public class ChatSet {
    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("AI的id")
    @TableField("ai_id")
    private Long aiId;

    @ApiModelProperty("昵称")
    @TableField("nickname")
    private String nickname;

    @ApiModelProperty("0,男;1,女;2,自定义")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty("出生日期")
    @TableField("birthday")
    private LocalDateTime birthday;

    @ApiModelProperty("我是谁")
    @TableField("who_am_i")
    private String whoAmI;

    @ApiModelProperty("对话模型code")
    @TableField("model_code")
    private String modelCode;

    @ApiModelProperty("聊天气泡code")
    @TableField("bubble_code")
    private String bubbleCode;

    @ApiModelProperty("聊天背景图片")
    @TableField("background_img")
    private String backgroundImg;

    @ApiModelProperty("自动播放语音开关 1：开 0：关")
    @TableField("is_auto_play_voice")
    private Integer isAutoPlayVoice;


    @ApiModelProperty("是否删除聊天消息 1：是 0：否")
    @TableField("is_del_chatted")
    private Boolean isDelChatted;

    @ApiModelProperty("是否删除 0:未删除 1:已删除")
    @TableField("is_delete")
    private Integer isDelete;

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

    @ApiModelProperty("编辑时间")
    @TableField("edit_time")
    private LocalDateTime editTime;
}