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; }
}
