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

/**
 * <p>
 * 用户金币钱包.
 * </p>
 *
 * @author pengliang on 2023/06/30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wallet_gold_balance")
public class WalletGoldBalance extends BaseEntity {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 用户id.
   */
  @TableId(value = "id", type = IdType.INPUT)
  private Long id;

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

  /**
   * 收入.
   */
  @TableField("income")
  private Long income;

  /**
   * 支出
   */
  @TableField("expenditure")
  private Long expenditure;

}
