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

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
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 pengshigang on 2023/2/27
 */
@Data
@Accessors(chain = true)
@Document("activity_agent_anchor_count")
public class ActivityAgentAnchorCount implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * id.
   */
  @Id
  private String id;

  /**
   * 业务id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long businessId;

  /**
   * 年月或年月日.
   */
  private Integer dateNumber;

  /**
   * 活动类型.
   */
  private String group;

  /**
   * 主播积分数量.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long quantity;

  /**
   * 创建时间.
   */
  private Timestamp createTime;

}
