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

import com.red.circle.other.infra.enums.task.DailyTaskStorageStatus;
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 2021/5/8
 */
@Data
@Accessors(chain = true)
@Document("daily_task_storage")
@FieldDefaults(level = AccessLevel.PRIVATE)
public class DailyTaskStorage implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 记录标识ID.
   */
  @Id
  String id;

  /**
   * 用户id.
   */
  Long userId;

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

  /**
   * 任务状态.
   */
  DailyTaskStorageStatus status;

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

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

  /**
   * 日期数.
   */
  Integer dateNumber;
}
