22 lines
524 B
C#
22 lines
524 B
C#
using FJPSite.Data.Identity;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace FJPSite.Data.Authorisation;
|
|
|
|
public class RolePermission
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
|
|
[Required, ForeignKey(nameof(Role))]
|
|
public string RoleId { get; set; }
|
|
|
|
public RoleEntity Role { get; set; }
|
|
|
|
[Required, ForeignKey(nameof(FeatureAction))]
|
|
public int FeatureActionId { get; set; }
|
|
|
|
public FeatureAction FeatureAction { get; set; }
|
|
}
|