fix(email): preserve draft send identity
Persist and export each draft's idempotency UUID so refresh and edits cannot create a fresh delivery identity. Add reversible provider-specific migration SQL.
This commit is contained in:
@@ -11,6 +11,7 @@ public sealed class EmailDraft
|
||||
public string Subject { get; set; } = string.Empty;
|
||||
public string BodyText { get; set; } = string.Empty;
|
||||
public string? ThreadId { get; set; }
|
||||
public string ClientRequestId { get; set; } = string.Empty;
|
||||
public long Revision { get; set; } = 1;
|
||||
public DateTime CreatedAtUtc { get; set; }
|
||||
public DateTime UpdatedAtUtc { get; set; }
|
||||
@@ -24,6 +25,7 @@ public sealed record EmailDraftExport(
|
||||
string Subject,
|
||||
string BodyText,
|
||||
string? ThreadId,
|
||||
string ClientRequestId,
|
||||
long Revision,
|
||||
DateTime CreatedAtUtc,
|
||||
DateTime UpdatedAtUtc);
|
||||
|
||||
Reference in New Issue
Block a user