package com.ruoyi.oa.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * AI对话历史对象 sys_oa_ai_conversation
 *
 * @author ruoyi
 * @date 2024-12-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_oa_ai_conversation")
public class SysOaAiConversation extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 对话ID
     */
    @TableId(value = "conversation_id")
    private Long conversationId;

    /**
     * 对话标题
     */
    private String conversationTitle;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * AI模型名称
     */
    private String modelName;

    /**
     * 对话状态(0:已结束 1:进行中)
     */
    private Integer status;

    /**
     * 总消耗token数
     */
    private Integer totalTokens;

    /**
     * 总费用
     */
    private BigDecimal totalCost;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

} 