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;

/**
 * 每周任务count.
 *
 * @author pengliang on 2022/7/14
 */
@Data
@Accessors(chain = true)
@Document("user_tasks_count")
public class UserTasksCount implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 记录ID.
   */
  @Id
  private String id;

  /**
   * 时间.
   */
  private Integer dateNumber;

  /**
   * 类型 GAME_MATCH.
   */
  private String type;

  /**
   * 任务类型.
   */
  private String taskType;

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

  /**
   * 计数.
   */
  private Long quantity;

  /**
   * 已领取.
   */
  private Boolean receive;

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

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

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

}
