Files
LightlessServer/LightlessSyncServer/LightlessSyncShared/Models/User.cs
2025-09-26 08:26:24 +09:00

29 lines
656 B
C#

using System.ComponentModel.DataAnnotations;
namespace LightlessSyncShared.Models;
public class User
{
[Key]
[MaxLength(10)]
public string UID { get; set; }
[Timestamp]
public byte[] Timestamp { get; set; }
public bool IsModerator { get; set; } = false;
public bool IsAdmin { get; set; } = false;
public bool? HasVanity { get; set; } = false;
[MaxLength(9)]
public string? TextColorHex { get; set; } = string.Empty;
[MaxLength(9)]
public string? TextGlowColorHex { get; set; } = string.Empty;
public DateTime LastLoggedIn { get; set; }
[MaxLength(15)]
public string Alias { get; set; }
}