35 lines
900 B
C#
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!;
|
|
}
|