using System;
using xModels.Base;
using xIdentityModels.Constants;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace xIdentityModels.Models
{
///
/// an Application in xDashboard ...
///
public class XApplication : XBaseIntIDEntity
{
///
/// Name ...
///
[Required]
[StringLength(255)]
public string Name { get; set; }
///
/// Descriptor ...
///
[StringLength(1000)]
public string Description { get; set; }
///
/// Owner Id ...
///
[Required]
[StringLength(255)]
public string OwnerId { get; set; }
///
/// Application Type ...
///
public XApplicationType Type { get; set; }
///
/// Specified Application is Active or not ...
///
public bool IsActive { get; set; } = true;
///
/// Application Create Time ...
///
public DateTime CreatedOn { get; set; }
///
/// Application Update Type ...
///
public DateTime UpdatedAt { get; set; }
//
#region Navigation ...
///
/// a Collection of ApiKeys which Related to this Application ...
///
public virtual ICollection ApiKeys { get; set; }
#endregion
}
}