| | | 1 | | namespace ProjectTemplate.Infrastructure.Data.Entities; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Represents a minimized, durable audit-completion handoff awaiting external delivery. |
| | | 5 | | /// </summary> |
| | | 6 | | public sealed class ApplicationAuditCompletionOutboxEntry : DataEntity |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// Gets the current persisted outbox schema version. |
| | | 10 | | /// </summary> |
| | | 11 | | public const string CurrentSchemaVersion = "1.0"; |
| | | 12 | | |
| | 68 | 13 | | public string SchemaVersion { get; set; } = CurrentSchemaVersion; |
| | | 14 | | |
| | 100 | 15 | | public string Destination { get; set; } = string.Empty; |
| | | 16 | | |
| | 72 | 17 | | public string IdempotencyKey { get; set; } = string.Empty; |
| | | 18 | | |
| | 132 | 19 | | public string MutationBatchId { get; set; } = string.Empty; |
| | | 20 | | |
| | 56 | 21 | | public int AuditRecordCount { get; set; } |
| | | 22 | | |
| | 80 | 23 | | public string PersistenceOutcome { get; set; } = string.Empty; |
| | | 24 | | |
| | 42 | 25 | | public DateTime ReceiptCompletedUtc { get; set; } |
| | | 26 | | |
| | 82 | 27 | | public string MutationManifestHash { get; set; } = string.Empty; |
| | | 28 | | |
| | 80 | 29 | | public string MutationManifestAlgorithm { get; set; } = string.Empty; |
| | | 30 | | |
| | 80 | 31 | | public string MutationManifestSchemaVersion { get; set; } = string.Empty; |
| | | 32 | | |
| | 30 | 33 | | public string? OperationExecutionId { get; set; } |
| | | 34 | | |
| | 30 | 35 | | public string? ExecutionAttemptId { get; set; } |
| | | 36 | | |
| | 30 | 37 | | public string? DecisionAuditRecordId { get; set; } |
| | | 38 | | |
| | 30 | 39 | | public string? CorrelationId { get; set; } |
| | | 40 | | |
| | 30 | 41 | | public string? TraceId { get; set; } |
| | | 42 | | |
| | 140 | 43 | | public string Status { get; set; } = "Pending"; |
| | | 44 | | |
| | 14 | 45 | | public int RetryCount { get; set; } |
| | | 46 | | |
| | 28 | 47 | | public DateTime CreatedUtc { get; set; } |
| | | 48 | | |
| | 10 | 49 | | public DateTime? LastAttemptUtc { get; set; } |
| | | 50 | | |
| | 10 | 51 | | public DateTime? NextAttemptUtc { get; set; } |
| | | 52 | | |
| | 24 | 53 | | public DateTime? DeliveredUtc { get; set; } |
| | | 54 | | |
| | 12 | 55 | | public string? LastErrorCode { get; set; } |
| | | 56 | | |
| | 12 | 57 | | public string? LastErrorMessage { get; set; } |
| | | 58 | | } |