package com.rj.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 当天用户交易表
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("lb_daily_user_trade")
@Schema(description = "当天用户交易表")
public class LbDailyUserTrade implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "表ID（UUID）")
    @TableId("id")
    private String id;

    @Schema(description = "租户ID")
    @TableField("tenant_id")
    private String tenantId;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private String userId;

    @Schema(description = "昵称")
    @TableField("nickname")
    private String nickname;

    @Schema(description = "当日卖出金额")
    @TableField("daily_sell_amt")
    private BigDecimal dailySellAmt;

    @Schema(description = "当日买入金额")
    @TableField("daily_buy_amt")
    private BigDecimal dailyBuyAmt;

    @Schema(description = "差额")
    @TableField("diff_amt")
    private BigDecimal diffAmt;

    @Schema(description = "推广人ID")
    @TableField("promoter_id")
    private String promoterId;

    @Schema(description = "推广人")
    @TableField("promoter_name")
    private String promoterName;

    @Schema(description = "描述")
    @TableField("desc_content")
    private String descContent;

    @Schema(description = "报表日期")
    @TableField("report_date")
    private LocalDate reportDate;

    @Schema(description = "插入时间")
    @TableField("created_at")
    private LocalDateTime createdAt;

    @Schema(description = "修改时间")
    @TableField("updated_at")
    private LocalDateTime updatedAt;
}
