checkpoint
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user