chore: init project
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using InboxIntel.Domain.Common;
|
||||
|
||||
namespace InboxIntel.Domain.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// A Gmail conversation thread, reconstructed from the Gmail threadId.
|
||||
/// </summary>
|
||||
public class MailThread : AuditableEntity
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
public Guid UserId { get; set; }
|
||||
|
||||
/// <summary>Gmail-assigned thread id.</summary>
|
||||
public string GmailThreadId { get; set; } = string.Empty;
|
||||
|
||||
public string? Subject { get; set; }
|
||||
public string? Snippet { get; set; }
|
||||
public int MessageCount { get; set; }
|
||||
public DateTimeOffset? FirstMessageUtc { get; set; }
|
||||
public DateTimeOffset? LastMessageUtc { get; set; }
|
||||
|
||||
public ICollection<Email> Emails { get; set; } = new List<Email>();
|
||||
}
|
||||
Reference in New Issue
Block a user