package com.ai.da.mapper.primary.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("chat_message")
public class ChatMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("项目ID")
    private Long projectId;

    @ApiModelProperty("角色system/user")
    private String role;

    @ApiModelProperty("排序")
    private Integer seq;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("用户ID")
    private Long accountId;

    @ApiModelProperty("0对话内容1颜色2图片")
    private Integer isImage;
    /**
     * 输入
     */
    private Long inputTokens;
    /**
     * 输出
     */
    private Long outputTokens;
    /**
     * 思考
     */
    private Long reasoningTokens;
    /**
     * 本次输出消耗的总金额
     */
    private String totalCost;

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