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

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

/**
 * <p>
 * 系统操作收支明细.
 * </p>
 *
 * @author pengshigang
 * @since 2021-06-02
 * @since pengliang 2021-10-11
 */
@Deprecated
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_operation_income_expenditure")
public class SysOperationIncomeExpenditure extends TimestampBaseEntity implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

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

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

  /**
   * 关联id.
   */
  @TableField("associate_id")
  private String associateId;

  /**
   * 数量.
   */
  @TableField("quantity")
  private BigDecimal quantity;

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

  /**
   * 货币类型.
   */
  @TableField("currency_type")
  private String currencyType;

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

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

  /**
   * 奖励类型：0.App 1.奖励 2.内部 3.工资 4.其他.
   */
  @TableField("reason")
  private Integer reason;

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

}
