This commit is contained in:
2026-02-27 16:56:41 -08:00
parent d52ba6e59c
commit 6de30bd77e
17 changed files with 508 additions and 50 deletions
+17
View File
@@ -0,0 +1,17 @@
namespace WinStudentGoalTracker.Models;
public static class EntityType
{
public const string SchoolDistrict = "school_district";
public const string Program = "program";
public const string User = "user";
public const string Student = "student";
public const string Goal = "goal";
public const string ProgressEvent = "progress_event";
public static string? TryParse(string value) =>
All.Contains(value) ? value : null;
public static readonly IReadOnlyList<string> All =
[SchoolDistrict, Program, User, Student, Goal, ProgressEvent];
}
@@ -0,0 +1,15 @@
namespace WinStudentGoalTracker.Models;
public static class PermissionAction
{
public const string Create = "create";
public const string Read = "read";
public const string Update = "update";
public const string Delete = "delete";
public static string? TryParse(string value) =>
All.Contains(value) ? value : null;
public static readonly IReadOnlyList<string> All =
[Create, Read, Update, Delete];
}