Files
prefab-page-detail/Prefab/Data/Entities/AuditLogItem.cs
2025-10-27 17:39:18 -04:00

35 lines
900 B
C#

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!;
}