22 lines
580 B
C#
22 lines
580 B
C#
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
|
|
}
|
|
}
|