Init
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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";
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user