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/24
 */
@Data
@Accessors(chain = true)
@Document("activity_reward_receive_mark")
public class ActivityRewardReceiveMark implements Serializable {

  private static final long serialVersionUID = 1L;

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

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

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

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

  /**
   * 领取的奖励组id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long rewardId;

  /**
   * 领取用户id(不纳入校验重复领取等，只为了记录具体领取的人).
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

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

}
