Files
jobtrackingapp/JobTrackerApi/Models/EmailDraft.cs
T
cesnimda 2fa4e38ba9
CI and Deploy / test (pull_request) Successful in 4m14s
CI and Deploy / deploy (pull_request) Has been skipped
feat(email): include drafts in user exports
Export readable private draft content only through existing owner-filtered encrypted and daily export boundaries, with cross-tenant regression coverage.
2026-08-10 10:00:34 +02:00

30 lines
924 B
C#

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; }
}
public sealed record EmailDraftExport(
Guid Id,
int JobApplicationId,
string Provider,
string To,
string Subject,
string BodyText,
string? ThreadId,
long Revision,
DateTime CreatedAtUtc,
DateTime UpdatedAtUtc);