This commit is contained in:
Ccjcarkbla
2026-02-23 08:00:41 -05:00
parent a89f1810b5
commit 829a71ab5e
124 changed files with 76395 additions and 2 deletions
+11
View File
@@ -0,0 +1,11 @@
namespace maintenance.Data.Entities;
public sealed class AppMappingEntity
{
public Guid Id { get; set; }
public string AppId { get; set; } = string.Empty;
public string DisplayName { get; set; } = string.Empty;
public string DefaultTemplate { get; set; } = "down";
public string AllowedFieldsJson { get; set; } = "[]";
public bool Active { get; set; } = true;
}
+11
View File
@@ -0,0 +1,11 @@
namespace maintenance.Data.Entities;
public sealed class AuditRecordEntity
{
public Guid Id { get; set; }
public string Actor { get; set; } = string.Empty;
public string Action { get; set; } = string.Empty;
public string Target { get; set; } = string.Empty;
public DateTime TimestampUtc { get; set; }
public string? Diff { get; set; }
}
@@ -0,0 +1,9 @@
namespace maintenance.Data.Entities;
public sealed class AuthorizationGroupEntity
{
public Guid Id { get; set; }
public string GroupClaimValue { get; set; } = string.Empty;
public string Role { get; set; } = "admin";
public bool Active { get; set; } = true;
}
+9
View File
@@ -0,0 +1,9 @@
namespace maintenance.Data.Entities;
public sealed class FeatureFlagEntity
{
public Guid Id { get; set; }
public string Key { get; set; } = string.Empty;
public bool Enabled { get; set; }
public string Scope { get; set; } = "global";
}
+7
View File
@@ -0,0 +1,7 @@
namespace maintenance.Data.Entities;
public sealed class GroupLookupEntity
{
public string GroupClaimValue { get; set; } = string.Empty;
public string DisplayName { get; set; } = string.Empty;
}
+10
View File
@@ -0,0 +1,10 @@
namespace maintenance.Data.Entities;
public sealed class MaintenanceWindowEntity
{
public Guid Id { get; set; }
public string? AppId { get; set; }
public DateTime StartTimeEastern { get; set; }
public DateTime EndTimeEastern { get; set; }
public bool HideSupportContactDuringWindow { get; set; }
}
+11
View File
@@ -0,0 +1,11 @@
namespace maintenance.Data.Entities;
public sealed class PermissionRuleEntity
{
public Guid Id { get; set; }
public string PermissionKey { get; set; } = string.Empty;
public Guid GroupId { get; set; }
public string Effect { get; set; } = "allow";
public AuthorizationGroupEntity? Group { get; set; }
}
+12
View File
@@ -0,0 +1,12 @@
namespace maintenance.Data.Entities;
public sealed class TemplateEntity
{
public Guid Id { get; set; }
public string Name { get; set; } = string.Empty;
public string Title { get; set; } = string.Empty;
public string Body { get; set; } = string.Empty;
public string? SupportContactBlock { get; set; }
public string LastUpdatedBy { get; set; } = string.Empty;
public DateTime LastUpdatedAtUtc { get; set; }
}