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.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 当前用户和所有聊天过的AI的心动值总和榜单
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("ai_user_heartbeat_rank")
public class AiUserHeartbeatRank {

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

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

    @ApiModelProperty("当前用户心动值总和")
    @TableField("heartbeat_val_total")
    private BigDecimal heartbeatValTotal;

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

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