using System;
namespace Oqtane.Models
{
///
/// A single Profile Property information of a .
/// So a user will have many of these to fully describe his Profile.
///
public class Profile : ModelBase
{
///
/// Internal ID
///
public int ProfileId { get; set; }
///
/// Reference to the .
/// It's nullable, probably because certain users like Super-Users don't specifically belong to any site.
///
public int? SiteId { get; set; }
///
/// Name of the Profile-Property. _NOT_ the User-Name.
///
public string Name { get; set; }
///
/// Title (label) of the Profile Property.
///
public string Title { get; set; }
///
/// Description of the Property for the UI.
///
public string Description { get; set; }
///
/// Category of this Profile-Property for grouping etc.
///
public string Category { get; set; }
///
/// Order of the Property in the list of Profile-Properties.
///
public int ViewOrder { get; set; }
///
/// Limits the input length of the property.
///
public int MaxLength { get; set; }
///
/// Initial/default value of this Property.
///
public string DefaultValue { get; set; }
///
/// Some Profile Properties are required - marked with this field.
///
public bool IsRequired { get; set; }
///
/// Some Profile Properties are private, meaning other users won't see them.
///
public bool IsPrivate { get; set; }
///
/// This gives possible values for dropdown input fields.
///
public string Options { get; set; }
///
/// Optional RegExp validation expression
///
public string Validation { get; set; }
}
}