| | | 1 | | using AsiBackbone.Core.Audit; |
| | | 2 | | using AsiBackbone.Core.Entities; |
| | | 3 | | |
| | | 4 | | namespace AsiBackbone.EntityFrameworkCore.Persistence; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Represents the Entity Framework Core persistence shape for an audit residue lifecycle event. |
| | | 8 | | /// </summary> |
| | | 9 | | public sealed class AsiBackboneAuditResidueLifecycleEventEntity : AsiBackboneEntity |
| | | 10 | | { |
| | | 11 | | /// <summary> |
| | | 12 | | /// Gets or sets the stable lifecycle event identifier. |
| | | 13 | | /// </summary> |
| | 160 | 14 | | public string EventId { get; set; } = string.Empty; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// Gets or sets the lifecycle stage represented by this event. |
| | | 18 | | /// </summary> |
| | 80 | 19 | | public AuditResidueLifecycleStage Stage { get; set; } |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// Gets or sets the stable lifecycle stage sequence value. |
| | | 23 | | /// </summary> |
| | 38 | 24 | | public int StageSequence { get; set; } |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// Gets or sets the UTC timestamp when the lifecycle event occurred. |
| | | 28 | | /// </summary> |
| | 80 | 29 | | public DateTimeOffset OccurredUtc { get; set; } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// Gets or sets the correlation identifier that links the lifecycle event to the original decision context. |
| | | 33 | | /// </summary> |
| | 160 | 34 | | public string CorrelationId { get; set; } = string.Empty; |
| | | 35 | | |
| | | 36 | | /// <summary> |
| | | 37 | | /// Gets or sets the related audit residue identifier, when available. |
| | | 38 | | /// </summary> |
| | 80 | 39 | | public string? AuditResidueId { get; set; } |
| | | 40 | | |
| | | 41 | | /// <summary> |
| | | 42 | | /// Gets or sets the trace identifier associated with the lifecycle event, when available. |
| | | 43 | | /// </summary> |
| | 80 | 44 | | public string? TraceId { get; set; } |
| | | 45 | | |
| | | 46 | | /// <summary> |
| | | 47 | | /// Gets or sets the operation name associated with the lifecycle event, when available. |
| | | 48 | | /// </summary> |
| | 80 | 49 | | public string? OperationName { get; set; } |
| | | 50 | | |
| | | 51 | | /// <summary> |
| | | 52 | | /// Gets or sets the lifecycle outcome associated with the event, when available. |
| | | 53 | | /// </summary> |
| | 80 | 54 | | public string? Outcome { get; set; } |
| | | 55 | | |
| | | 56 | | /// <summary> |
| | | 57 | | /// Gets or sets serialized framework-neutral lifecycle metadata supplied by the host. |
| | | 58 | | /// </summary> |
| | 160 | 59 | | public string MetadataJson { get; set; } = "{}"; |
| | | 60 | | } |