using System.ComponentModel.DataAnnotations.Schema; namespace Back.Data.Models { public class RolUser { public int ID { get; set; } public int UserID { get; set; } public int CompanyID { get; set; } public bool IsAdmin { get; set; } #region Navigation [ForeignKey("UserID")] public virtual User User { get; set; } [ForeignKey("CompanyID")] public virtual Company Company { get; set; } public virtual ICollection rolePermissions { get; set; } #endregion } }