package com.red.circle.order.infra.database.rds.entity.count;

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 pengshigang
 * @since 2021-06-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_monthly_recharge_v2")
public class UserMonthlyRecharge extends TimestampBaseEntity {

  @Serial
  private static final long serialVersionUID = 1L;

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

  @TableField("user_id")
  private Long userId;

  @TableField("amount")
  private BigDecimal amount;

  @TableField("type")
  private String type;

  @TableField("recharge_date")
  private Integer rechargeDate;

}
