using System; namespace Oqtane.Models { /// /// Assigns a to a /// public class UserRole : IAuditable { /// /// Id of this assignment /// public int UserRoleId { get; set; } /// /// Reference to the who receives this assignment. /// public int UserId { get; set; } /// /// Reference to the which the receives /// public int RoleId { get; set; } /// /// Start of when this assignment is valid. See also /// public DateTime? EffectiveDate { get; set; } /// /// End of when this assignment is valid. See also /// public DateTime? ExpiryDate { get; set; } #region IAuditable Properties /// public string CreatedBy { get; set; } /// public DateTime CreatedOn { get; set; } /// public string ModifiedBy { get; set; } /// public DateTime ModifiedOn { get; set; } #endregion /// /// Direct reference to the object. /// TODO: todoc - is this always populated? /// public Role Role { get; set; } /// /// Direct reference to the object. /// TODO: todoc - is this always populated? /// public User User { get; set; } } }