package com.red.circle.console.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 java.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 每日内购量.
 * </p>
 *
 * @author pengliang
 * @since 2020-11-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("statistics_daily_purchase_amount")
public class StatisticsDailyPurchaseAmount extends TimestampBaseEntity {

  @Serial
  private static final long serialVersionUID = 1L;

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

  /**
   * 区域code，DAILY=每天.
   */
  @TableField("area_code")
  private String areaCode;

  /**
   * 平台.
   */
  @TableField("platform")
  private String platform;

  /**
   * 内购.
   */
  @TableField("purchase")
  private BigDecimal purchase;

  /**
   * 退款.
   */
  @TableField("refund")
  private BigDecimal refund;

  /**
   * 统计时间.
   */
  @TableField("statistics_time")
  private Timestamp statisticsTime;

}
