Files
2026-03-11 11:05:06 -04:00

26 lines
983 B
C#

namespace maintenance.Data.Entities;
public sealed class ManagedPageEntity
{
public Guid Id { get; set; }
public string Key { get; set; } = string.Empty;
public string? Stub { get; set; }
public string? NormalizedStub { get; set; }
public string DisplayName { get; set; } = string.Empty;
public string PageKind { get; set; } = "maintenance"; // maintenance | error
public bool IsDefaultFallback { get; set; }
public bool IsEnabled { get; set; } = true;
public bool OverrideWindow { get; set; }
public int Priority { get; set; }
public DateTime? StartUtc { get; set; }
public DateTime? EndUtc { get; set; }
public string? RecurrenceRule { get; set; } // cron-like expression (future evaluator)
// Structured content payload rendered into a locked template.
public string ContentJson { get; set; } = "{}";
public string LastUpdatedBy { get; set; } = string.Empty;
public DateTime LastUpdatedAtUtc { get; set; }
}