using System;
using System.Collections.Generic;
- public partial class ProjectUser
+ public partial class User
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
- public ProjectUser()
+ public User()
{
this.Projects = new HashSet<Project>();
this.ProjectTasks = new HashSet<ProjectTask>();
public int id { get; set; }
public string login { get; set; }
public string password { get; set; }
+ public int role_id { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<Project> Projects { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<ProjectTask> ProjectTasks { get; set; }
+ public virtual UserRole UserRole { get; set; }
}
}