package com.red.circle.console.infra.database.mongo.count.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 统计用户每日充值排行榜.
 *
 * @author pengliang on 2022/11/25
 */
@Data
@Accessors(chain = true)
@Document("count_user_daily_recharge_rank")
@FieldDefaults(level = AccessLevel.PRIVATE)
public class CountUserDailyRechargeRank implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 记录id.
   */
  @Id
  String id;

  /**
   * 归属系统.
   */
  String sysOrigin;

  /**
   * 用户id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  Long userId;

  /**
   * 日期.
   */
  Integer dateNumber;

  /**
   * 数量.
   */
  BigDecimal quantity;

  /**
   * 创建时间.
   */
  Timestamp createTime;

}
