| | | 1 | | namespace ProjectTemplate.Infrastructure.Data.Entities; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Represents a minimized, durable audit-integrity finding. |
| | | 5 | | /// </summary> |
| | | 6 | | public sealed class ApplicationAuditReconciliationFinding : DataEntity |
| | | 7 | | { |
| | | 8 | | public const string CurrentSchemaVersion = "1.0"; |
| | | 9 | | |
| | 20 | 10 | | public string SchemaVersion { get; set; } = CurrentSchemaVersion; |
| | | 11 | | |
| | 22 | 12 | | public string FindingKey { get; set; } = string.Empty; |
| | | 13 | | |
| | 30 | 14 | | public string ReasonCode { get; set; } = string.Empty; |
| | | 15 | | |
| | 22 | 16 | | public string Severity { get; set; } = string.Empty; |
| | | 17 | | |
| | 24 | 18 | | public string MutationBatchId { get; set; } = string.Empty; |
| | | 19 | | |
| | 0 | 20 | | public string? Destination { get; set; } |
| | | 21 | | |
| | 20 | 22 | | public string Guidance { get; set; } = string.Empty; |
| | | 23 | | |
| | 22 | 24 | | public string RemediationStatus { get; set; } = "Open"; |
| | | 25 | | |
| | 0 | 26 | | public DateTime FirstObservedUtc { get; set; } |
| | | 27 | | |
| | 0 | 28 | | public DateTime LastObservedUtc { get; set; } |
| | | 29 | | |
| | 2 | 30 | | public DateTime? ResolvedUtc { get; set; } |
| | | 31 | | } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Represents append-only evidence that an operator investigated or remediated a finding. |
| | | 35 | | /// </summary> |
| | | 36 | | public sealed class ApplicationAuditReconciliationRemediation : DataEntity |
| | | 37 | | { |
| | | 38 | | public Guid FindingId { get; set; } |
| | | 39 | | |
| | | 40 | | public string MutationBatchId { get; set; } = string.Empty; |
| | | 41 | | |
| | | 42 | | public string ActionCode { get; set; } = string.Empty; |
| | | 43 | | |
| | | 44 | | public string ActorId { get; set; } = string.Empty; |
| | | 45 | | |
| | | 46 | | public string? EvidenceReference { get; set; } |
| | | 47 | | |
| | | 48 | | public DateTime RecordedUtc { get; set; } |
| | | 49 | | } |