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.AccessLevel;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 临时活动统计.
 *
 * @author pengliang on 2022/4/25
 */
@Data
@Accessors(chain = true)
@Document("temporary_activity_count")
@FieldDefaults(level = AccessLevel.PRIVATE)
public class TemporaryActivityCount implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 记录id.
   */
  @Id
  @JsonSerialize(using = ToStringSerializer.class)
  String id;

  /**
   * 归属平台.
   */
  String sysOrigin;

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

  /**
   * 活动类型.
   */
  String activityType;

  /**
   * 统计类型.
   */
  String countType;

  /**
   * 数量.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  Long quantity;

  /**
   * 最近修改时间.
   */
  Timestamp updateTime;

  /**
   * 过期时间.
   */
  Timestamp expiredTime;

}
