Granular permission back end done
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user