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.math.BigDecimal;
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 pengshigang on 2023/02/06
 */
@Data
@Accessors(chain = true)
@Document("valentine_day_count")
@FieldDefaults(level = AccessLevel.PRIVATE)
public class ValentineDayCount implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 记录id: 用户ID1_用户ID2(排序后组装)_分组(active1, active2，active3)_年月日
   */
  @Id
  @JsonSerialize(using = ToStringSerializer.class)
  String id;

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

  /**
   * 分组(active1, active2，active3).
   */
  String group;

  /**
   * 时间(年月日).
   */
  Integer dateNumber;

  /**
   * 时间(年-月-日).
   */
  String dateNumberStr;

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

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

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

}
