package com.red.circle.wallet.infra.database.rds.entity.diamond;

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 java.io.Serial;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户工资钻石余额.
 * </p>
 *
 * @author zongpubin on 2024-03-13 10:56
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_salary_diamond_balance")
public class SalaryDiamondBalance extends TimestampBaseEntity {

  @Serial
  private static final long serialVersionUID = 1L;

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

  /**
   * 用户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;


}
