Init
This commit is contained in:
34
Prefab/Data/Entities/AuditLogItem.cs
Normal file
34
Prefab/Data/Entities/AuditLogItem.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using Prefab.Domain.Common;
|
||||
|
||||
namespace Prefab.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a field-level change within an audit log entry.
|
||||
/// </summary>
|
||||
public class AuditLogItem : Entity<int>
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the parent audit log identifier.
|
||||
/// </summary>
|
||||
public int AuditLogId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the property name that changed.
|
||||
/// </summary>
|
||||
public string Property { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the previous serialized value.
|
||||
/// </summary>
|
||||
public string? OldValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the new serialized value.
|
||||
/// </summary>
|
||||
public string? NewValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the navigation back to the owning audit log.
|
||||
/// </summary>
|
||||
public virtual AuditLog AuditLog { get; set; } = null!;
|
||||
}
|
||||
Reference in New Issue
Block a user