37 lines
799 B
C#
37 lines
799 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
using MongoDB.Bson;
|
|
|
|
namespace UGQDatabase.Models;
|
|
|
|
public enum UGQAcceptReason
|
|
{
|
|
None = 0,
|
|
Player = 1,
|
|
RevisionUpdated = 2,
|
|
}
|
|
|
|
public class QuestAcceptedEntity
|
|
{
|
|
[BsonId]
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
public string Id { get; set; } = null!;
|
|
|
|
public long QuestId { get; set; }
|
|
public long Revision { get; set; }
|
|
public string Author { get; set; } = null!;
|
|
|
|
public string UserGuid { get; set; } = null!;
|
|
|
|
[BsonRepresentation(BsonType.String)]
|
|
public UGQAcceptReason Reason { get; set; } = UGQAcceptReason.None;
|
|
|
|
[BsonRequired]
|
|
public DateTime CreatedAt { get; set; }
|
|
}
|
|
|