Files
caliverse_server/UGQDatabase/Models/CreatorPointHistoryEntity.cs
2025-05-01 07:20:41 +09:00

41 lines
787 B
C#

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; }
}