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>
 * 用户钻石流水(20230718).
 * </p>
 *
 * @author pengshigang on 2023-07-18 16:14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_diamond_running_water")
public class DiamondRunningWater extends TimestampBaseEntity {

  @Serial
  private static final long serialVersionUID = 1L;

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

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

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

  /**
   * 来源用户id.
   */
  @TableField("origin_user_id")
  private Long originUserId;

  /**
   * 来源.
   */
  @TableField("origin")
  private String origin;

  /**
   * 来源描述.
   */
  @TableField("origin_desc")
  private String originDesc;

  /**
   * 交易钻石.
   */
  @TableField("quantity")
  private BigDecimal quantity;

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

  /**
   * 类型0.收入 1.支出.
   */
  @TableField("type")
  private Integer type;

  /**
   * 备注.
   */
  @TableField("remarks")
  private String remarks;

}
