feat: user createdAt property

This commit is contained in:
2026-01-28 05:16:37 -05:00
parent 8aa1543296
commit 500f457f97
4 changed files with 396 additions and 1 deletions
+2 -1
View File
@@ -9,7 +9,8 @@ namespace SharpbinV3.Server.Data.Entities
{
public int? UID { get; set; }
[Key]
public required Guid UUID { get; set; } = Guid.CreateVersion7(); // uuid v7 includes timestamp
public required Guid UUID { get; set; } = Guid.CreateVersion7();
public long CreatedAt { get; set; } = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
public required string Username { get; set; }
public required string PasswordHash { get; set; }