초기커밋
This commit is contained in:
37
UGQDatabase/Models/QuestAboartedEntity.cs
Normal file
37
UGQDatabase/Models/QuestAboartedEntity.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
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 UGQAbortReason
|
||||
{
|
||||
None = 0,
|
||||
Player = 1,
|
||||
RevisionUpdated = 2,
|
||||
Shutdown = 3,
|
||||
}
|
||||
|
||||
public class QuestAbortedEntity
|
||||
{
|
||||
[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 UGQAbortReason Reason { get; set; } = UGQAbortReason.None;
|
||||
|
||||
[BsonRequired]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user