Messages first init

This commit is contained in:
Artemy
2025-06-20 13:32:29 +07:00
parent efcd970e90
commit 3526cde06f
10 changed files with 186 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
namespace Govor.Core.Models;
public class Message
{
public Guid Id { get; set; }
public Guid SenderId { get; set; }
public Guid RecipientId { get; set; } // or GroupId
public RecipientType RecipientType { get; set; }
public string EncryptedContent { get; set; } = string.Empty;
public DateTime SentAt { get; set; }
public bool IsEdited { get; set; } = false;
public DateTime? EditedAt { get; set; }
}
public enum RecipientType
{
User,
Group
}