using System;
namespace Oqtane.Models
{
///
/// Assigns a to a
///
public class UserRole : ModelBase
{
///
/// 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; }
///
/// 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; }
}
}