feat: createdAt paste property

This commit is contained in:
2026-01-28 04:40:38 -05:00
parent 3101f83e3f
commit 9d0cc54db4
4 changed files with 393 additions and 1 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ namespace SharpbinV3.Server.Data.Entities
{
[Key]
public int PID { get; set; }
public required Guid UUID { get; set; } // uuid v7 includes timestamp, this counts as created at
public required Guid UUID { get; set; }
public long CreatedAt { get; set; } = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
public required string ID { get; set; }
public string? Title { get; set; }