using MongoDB.Bson.Serialization.Attributes; using MongoDB.Bson; namespace UGQDatabase.Models; public enum CreatorPointHistoryKind { None = 0, QuestProfit = 1, SettleUp = 2, Admin = 3, } public class CreatorPointHistoryEntity { [BsonId] [BsonRepresentation(BsonType.ObjectId)] public string Id { get; set; } = null!; public string UserGuid { get; set; } = null!; public long QuestId { get; set; } public long Revision { get; set; } [BsonRepresentation(BsonType.String)] public CreatorPointHistoryKind Kind { get; set; } public string DetailReason { get; set; } = null!; public double Amount { get; set; } public double TotalAmount { get; set; } [BsonRequired] public DateTime CreatedAt { get; set; } }