package com.red.circle.other.infra.database.mongo.entity.props;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serial;
import java.io.Serializable;
import java.sql.Timestamp;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 统计道具销售情况.
 *
 * @author pengliang on 2022/4/1
 */
@Data
@Accessors(chain = true)
@Document("statistics_props_sale_quota")
public class StatisticsPropsSaleQuota implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 记录唯一表示.
   */
  @Id
  private String id;

  /**
   * 日期.
   */
  private String date;

  /**
   * year/month/day 时间类型.
   */
  private String dateType;

  /**
   * 平台.
   */
  private String sysOrigin;

  /**
   * 道具资源ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long propsSourceId;

  /**
   * 道具类型.
   */
  private String propsType;

  /**
   * 销售额.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long saleQuantity;

  /**
   * 修改时间.
   */
  private Timestamp updateTime;
}
