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;

/**
 * 用户购买心动值记录
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("buy_heartbeat_value_record")
@ApiModel("用户购买心动值记录")
public class BuyHeartbeatValueRecord {
    @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("heartbeat_val")
    private java.math.BigDecimal heartbeatVal;

    @ApiModelProperty("心动值单价")
    @TableField("price")
    private java.math.BigDecimal price;

    @ApiModelProperty("总金额")
    @TableField("total_amount")
    private java.math.BigDecimal totalAmount;

    @ApiModelProperty("订单编号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty("交易号")
    @TableField("trade_no")
    private String tradeNo;

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

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