Granular permission back end done

This commit is contained in:
2026-04-11 19:03:45 +09:30
parent 3fe90355e0
commit 611f695db6
51 changed files with 3322 additions and 803 deletions
@@ -0,0 +1,21 @@
using Microsoft.AspNetCore.Mvc.ApplicationModels;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace FJPSite.Data.Authorisation;
public class ModuleFeature
{
[Key]
public int Id { get; set; }
[Required, ForeignKey(nameof(Module))]
public int ModuleId { get; set; }
public Module Module { get; set; }
[ForeignKey(nameof(Feature))]
public int FeatureId { get; set; }
public Feature Feature { get; set; }
}