A data-only DTO used by an admin moderation panel. Holds one audit/restriction row: target Steam ID, action kind, request ID, timestamps, expiry, actor, reason, and an optional restore command. All properties are init-only and filled by the moderation views.
namespace SboxSuperuser;
/// <summary>Permission-filtered moderation evidence; kick records require the audit outcome to confirm execution.</summary>
public sealed class AdminModerationRow
{
/// <summary>Gets the target Steam ID; filled in server-wide views such as Restrictions.</summary>
public string SteamId { get; init; } = "";
/// <summary>Gets a permitted restore command for module restrictions, or empty if restoring is unauthorized.</summary>
public string RestoreCommand { get; init; } = "";
/// <summary>Gets the recorded action kind.</summary>
public string Kind { get; init; }
/// <summary>Gets the request ID for correlation with the audit log.</summary>
public Guid RequestId { get; init; }
/// <summary>Gets the creation time in UTC.</summary>
public DateTimeOffset CreatedUtc { get; init; }
/// <summary>Gets the expiry time; null means no expiry.</summary>
public DateTimeOffset? ExpiresUtc { get; init; }
/// <summary>Gets whether this record is the active restriction.</summary>
public bool Active { get; init; }
/// <summary>Gets who recorded it: a Steam ID for players, otherwise the console or service identity.</summary>
public string Actor { get; init; } = "";
/// <summary>Gets the operator's reason.</summary>
public string Reason { get; init; }
}