feat(email): add tenant draft persistence
CI and Deploy / test (pull_request) Successful in 4m15s
CI and Deploy / deploy (pull_request) Has been skipped

Add owner-filtered, job-cascading private draft storage with reversible SQLite and MariaDB migration paths. No API or UI exposes draft content yet.
This commit is contained in:
cesnimda
2026-08-10 09:55:16 +02:00
parent ee8efd361d
commit 14b396a452
6 changed files with 2960 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
namespace JobTrackerApi.Models;
public sealed class EmailDraft
{
public Guid Id { get; set; }
public string OwnerUserId { get; set; } = string.Empty;
public int JobApplicationId { get; set; }
public JobApplication JobApplication { get; set; } = null!;
public string Provider { get; set; } = string.Empty;
public string To { get; set; } = string.Empty;
public string Subject { get; set; } = string.Empty;
public string BodyText { get; set; } = string.Empty;
public string? ThreadId { get; set; }
public long Revision { get; set; } = 1;
public DateTime CreatedAtUtc { get; set; }
public DateTime UpdatedAtUtc { get; set; }
}