| | | 1 | | namespace ProjectTemplate.Infrastructure.Data.Entities; |
| | | 2 | | |
| | | 3 | | public class AuditRecord : DataEntity |
| | | 4 | | { |
| | | 5 | | /// <summary> |
| | | 6 | | /// Gets or sets the schema version for this audit record. |
| | | 7 | | /// </summary> |
| | 302 | 8 | | public string SchemaVersion { get; set; } = "1.0"; |
| | | 9 | | |
| | | 10 | | /// <summary> |
| | | 11 | | /// The user, system or remote IP address that made the change. It can be a username, an email address, or a system |
| | | 12 | | /// </summary> |
| | 208 | 13 | | public string ModifiedBy { get; set; } = string.Empty; |
| | | 14 | | |
| | | 15 | | /// <summary> |
| | | 16 | | /// Gets or sets the stable machine-readable actor identifier. |
| | | 17 | | /// </summary> |
| | 192 | 18 | | public string ActorId { get; set; } = string.Empty; |
| | | 19 | | |
| | | 20 | | /// <summary> |
| | | 21 | | /// Gets or sets the actor type, such as Human, Service, System, Network, or Unknown. |
| | | 22 | | /// </summary> |
| | 192 | 23 | | public string ActorType { get; set; } = string.Empty; |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// The date and time when the change was made, in Coordinated Universal Time (UTC). It should be stored in UTC to a |
| | | 27 | | /// </summary> |
| | 208 | 28 | | public DateTime ModifiedOnUtc { get; set; } = PersistenceTimestamp.UtcNow(); |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// The name of the application or service that made the change. It can be used to group changes by application or s |
| | | 32 | | /// </summary> |
| | 192 | 33 | | public string Application { get; set; } = string.Empty; |
| | | 34 | | |
| | | 35 | | /// <summary> |
| | | 36 | | /// The name of the entity that was changed. It can be used to group changes by entity type, and to identify which e |
| | | 37 | | /// </summary> |
| | 310 | 38 | | public string Entity { get; set; } = string.Empty; |
| | | 39 | | |
| | | 40 | | /// <summary> |
| | | 41 | | /// The state of the entity after the change. It can be used to identify whether the entity was created, updated, or |
| | | 42 | | /// </summary> |
| | 332 | 43 | | public string State { get; set; } = string.Empty; |
| | | 44 | | |
| | | 45 | | /// <summary> |
| | | 46 | | /// Gets or sets the identifier that groups all audit records created by one logical save operation. |
| | | 47 | | /// </summary> |
| | 482 | 48 | | public string MutationBatchId { get; set; } = string.Empty; |
| | | 49 | | |
| | | 50 | | /// <summary> |
| | | 51 | | /// Gets or sets the host-owned identifier for the governed operation execution. |
| | | 52 | | /// </summary> |
| | 206 | 53 | | public string? OperationExecutionId { get; set; } |
| | | 54 | | |
| | | 55 | | /// <summary> |
| | | 56 | | /// Gets or sets the host-owned identifier for a particular retry or execution attempt. |
| | | 57 | | /// </summary> |
| | 206 | 58 | | public string? ExecutionAttemptId { get; set; } |
| | | 59 | | |
| | | 60 | | /// <summary> |
| | | 61 | | /// Gets or sets the request or workflow correlation identifier. |
| | | 62 | | /// </summary> |
| | 204 | 63 | | public string? CorrelationId { get; set; } |
| | | 64 | | |
| | | 65 | | /// <summary> |
| | | 66 | | /// Gets or sets the distributed trace identifier. |
| | | 67 | | /// </summary> |
| | 204 | 68 | | public string? TraceId { get; set; } |
| | | 69 | | |
| | | 70 | | /// <summary> |
| | | 71 | | /// Gets or sets the distributed span identifier. |
| | | 72 | | /// </summary> |
| | 172 | 73 | | public string? SpanId { get; set; } |
| | | 74 | | |
| | | 75 | | /// <summary> |
| | | 76 | | /// Gets or sets the identifier of the related policy decision audit record, when supplied by the host. |
| | | 77 | | /// </summary> |
| | 204 | 78 | | public string? DecisionAuditRecordId { get; set; } |
| | | 79 | | |
| | | 80 | | /// <summary> |
| | | 81 | | /// Gets or sets an optional privacy-preserving tenant hash. |
| | | 82 | | /// </summary> |
| | 60 | 83 | | public string? TenantHash { get; set; } |
| | | 84 | | |
| | | 85 | | /// <summary> |
| | | 86 | | /// Gets or sets an optional privacy-preserving organization hash. |
| | | 87 | | /// </summary> |
| | 60 | 88 | | public string? OrganizationHash { get; set; } |
| | | 89 | | |
| | | 90 | | /// <summary> |
| | | 91 | | /// The key values of the entity that was changed. It can be used to identify which specific entity was changed, and |
| | | 92 | | /// </summary> |
| | 308 | 93 | | public string KeyValues { get; set; } = string.Empty; |
| | | 94 | | |
| | | 95 | | /// <summary> |
| | | 96 | | /// The original values of the entity before the change. It can be used to identify what the values were before the |
| | | 97 | | /// </summary> |
| | 310 | 98 | | public string OriginalValues { get; set; } = string.Empty; |
| | | 99 | | |
| | | 100 | | /// <summary> |
| | | 101 | | /// The current values of the entity after the change. It can be used to identify what the values are after the chan |
| | | 102 | | /// </summary> |
| | 330 | 103 | | public string CurrentValues { get; set; } = string.Empty; |
| | | 104 | | } |