....
This commit is contained in:
21
Back/Data/Models/RolUser.cs
Normal file
21
Back/Data/Models/RolUser.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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<PermissionUser> rolePermissions { get; set; }
|
||||
#endregion
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user