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

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

/**
 * 金币统计.
 *
 * @author pengliang on 2023/8/24
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("wallet_gold_count")
public class WalletGoldCount extends BaseEntity {

  /**
   * 记录id.
   */
  @TableId(value = "id", type = IdType.ASSIGN_ID)
  private Long id;

  /**
   * 平台.
   */
  @TableField(value = "sys_origin")
  private String sysOrigin;

  /**
   * 0.收入， 1.类型.
   */
  @TableField(value = "type")
  private Integer type;

  /**
   * 分组编号.
   */
  @TableField(value = "group_num")
  private Integer groupNum;

  /**
   * 事件类型.
   */
  @TableField(value = "event_type")
  private String eventType;

  /**
   * 事件描述.
   */
  @TableField(value = "event_desc")
  private String eventDesc;

  /**
   * 金额.
   */
  @TableField(value = "amount")
  private Long amount;

  /**
   * 占用百分比.
   */
  @TableField(value = "percentage")
  private BigDecimal percentage;

}
