checkpoint

This commit is contained in:
2026-10-28 11:10:46 +02:00
parent c5c9d74937
commit cce5e348b3
10 changed files with 333 additions and 46 deletions
+6 -3
View File
@@ -6,12 +6,15 @@ namespace StatiKosev.Data;
public class PrivateMessage
{
public int Id { get; set; }
bool Anonymous { get; set; }
public bool Anonymous { get; set; }
public string? SenderId { get; set; }
string SenderUsername { get; set; }
[MaxLength(3000)] public string Body { get; set; }
public string SenderUsername { get; set; } = "";
[MaxLength(3000)] public string Body { get; set; } = "";
public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
public bool IsRead { get; set; }
private PrivateMessage() { } // for EF Core when reading rows
public PrivateMessage(string body, string userAgent)
{
CreatedAt = DateTime.UtcNow;