package com.red.circle.other.infra.database.rds.entity.team;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.red.circle.framework.mybatis.entity.TimestampBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * <p>
 * 用户账单钻石余额明细.
 * </p>
 *
 * @author lixiaofei on 2024-05-28 18:08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("user_bill_diamond_balance_details")
public class BillDiamondBalanceDetails extends TimestampBaseEntity {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 主键标识.
   */
  @TableId(value = "id", type = IdType.ASSIGN_ID)
  private Long id;

  /**
   * 团队id.
   */
  @TableField("team_id")
  private Long teamId;

  /**
   * 用户id.
   */
  @TableField("user_id")
  private Long userId;

  /**
   * 系统.
   */
  @TableField("sys_origin")
  private String sysOrigin;

  /**
   * 获得总额.
   */
  @TableField("earn_points")
  private BigDecimal earnPoints;

  /**
   * 消费总额.
   */
  @TableField("consumption_points")
  private BigDecimal consumptionPoints;

  /**
   * 余额.
   */
  @TableField("balance")
  private BigDecimal balance;

  /**
   * 代理获得总额.
   */
  @TableField("agent_earn_points")
  private BigDecimal agentEarnPoints;
  /**
   * 代理消费总额.
   */
  @TableField("agent_consumption_points")
  private BigDecimal agentConsumptionPoints;

  /**
   * 代理余额.
   */
  @TableField("agent_balance")
  private BigDecimal agentBalance;

  /**
   * 账单归属(YYYYMM).
   */
  @TableField("bill_belong")
  private Integer billBelong;

  /**
   * 账单归属日期(yyyyMMdd).
   */
  @TableField("bill_belong_day")
  private Integer billBelongDay;


}
