package com.red.circle.order.inner.model.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.DTO;
import java.io.Serial;
import java.math.BigDecimal;
import java.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 累计用户每月充值
 * </p>
 *
 * @author pengshigang
 * @since 2021-06-19
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class UserMonthlyRechargeDTO extends DTO {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 主键标识.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 用户ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

  /**
   * 金额.
   */
  private BigDecimal amount;

  /**
   * 类型.
   */
  private String type;

  /**
   * 充值年月(yyyyMM).
   */
  private Integer rechargeDate;

  private Timestamp createTime;
  private Timestamp updateTime;
  private Long createUser;
  private Long updateUser;
}
