| | | 1 | | namespace ProjectTemplate.Infrastructure.Data.Entities; |
| | | 2 | | |
| | | 3 | | public class AuditRecord : DataEntity |
| | | 4 | | { |
| | | 5 | | /// <summary> |
| | | 6 | | /// The user, system or remote IP address that made the change. It can be a username, an email address, or a system |
| | | 7 | | /// </summary> |
| | 74 | 8 | | public string ModifiedBy { get; set; } = string.Empty; |
| | | 9 | | /// <summary> |
| | | 10 | | /// The date and time when the change was made, in Coordinated Universal Time (UTC). It should be stored in UTC to a |
| | | 11 | | /// </summary> |
| | 66 | 12 | | public DateTime ModifiedOnUtc { get; set; } = PersistenceTimestamp.UtcNow(); |
| | | 13 | | /// <summary> |
| | | 14 | | /// The name of the application or service that made the change. It can be used to group changes by application or s |
| | | 15 | | /// </summary> |
| | 64 | 16 | | public string Application { get; set; } = string.Empty; |
| | | 17 | | /// <summary> |
| | | 18 | | /// The name of the entity that was changed. It can be used to group changes by entity type, and to identify which e |
| | | 19 | | /// </summary> |
| | 64 | 20 | | public string Entity { get; set; } = string.Empty; |
| | | 21 | | /// <summary> |
| | | 22 | | /// The state of the entity after the change. It can be used to identify whether the entity was created, updated, or |
| | | 23 | | /// </summary> |
| | 74 | 24 | | public string State { get; set; } = string.Empty; |
| | | 25 | | /// <summary> |
| | | 26 | | /// The key values of the entity that was changed. It can be used to identify which specific entity was changed, and |
| | | 27 | | /// </summary> |
| | 64 | 28 | | public string KeyValues { get; set; } = string.Empty; |
| | | 29 | | /// <summary> |
| | | 30 | | /// The original values of the entity before the change. It can be used to identify what the values were before the |
| | | 31 | | /// </summary> |
| | 68 | 32 | | public string OriginalValues { get; set; } = string.Empty; |
| | | 33 | | /// <summary> |
| | | 34 | | /// The current values of the entity after the change. It can be used to identify what the values are after the chan |
| | | 35 | | /// </summary> |
| | 74 | 36 | | public string CurrentValues { get; set; } = string.Empty; |
| | | 37 | | } |