using FJPSite.Data.Identity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace FJPSite.Data.Authorisation;

public class UserPermission
{
    [Key]
    public int Id { get; set; }

    [Required, ForeignKey(nameof(User))]
    public string UserId { get; set; }

    public UserEntity User { get; set; }

    [Required, ForeignKey(nameof(FeatureAction))]
    public int FeatureActionId { get; set; }

    public FeatureAction FeatureAction { get; set; }
}

