초기커밋

This commit is contained in:
2025-05-01 07:20:41 +09:00
commit 98bb2e3c5c
2747 changed files with 646947 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;
namespace UGQDatabase.Models;
public enum UGQAccountRole
{
None = 0,
Admin = 1,
Service = 2,
User = 3,
}
public class AdminAccountEntity
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; } = null!;
public string Username { get; set; } = null!;
public string Password { get; set; } = null!;
[BsonRepresentation(BsonType.String)]
public UGQAccountRole Role { get; set; }
public string RefreshToken { get; set; } = null!;
public DateTime RefreshTokenExpiryTime { get; set; }
[BsonRequired]
public DateTime CreatedAt { get; set; }
[BsonRequired]
public DateTime UpdatedAt { get; set; }
}