last ...
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
using System;
|
||||
using xModels.Base;
|
||||
using xIdentityModels.Constants;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace xIdentityModels.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// an Application in xDashboard ...
|
||||
/// </summary>
|
||||
public class XApplication : XBaseIntIDEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// Name ...
|
||||
/// </summary>
|
||||
[Required]
|
||||
[StringLength(255)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Descriptor ...
|
||||
/// </summary>
|
||||
[StringLength(1000)]
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Owner Id ...
|
||||
/// </summary>
|
||||
[Required]
|
||||
[StringLength(255)]
|
||||
public string OwnerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Application Type ...
|
||||
/// </summary>
|
||||
public XApplicationType Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Specified Application is Active or not ...
|
||||
/// </summary>
|
||||
public bool IsActive { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Application Create Time ...
|
||||
/// </summary>
|
||||
public DateTime CreatedOn { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Application Update Type ...
|
||||
/// </summary>
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
|
||||
//
|
||||
#region Navigation ...
|
||||
/// <summary>
|
||||
/// a Collection of ApiKeys which Related to this Application ...
|
||||
/// </summary>
|
||||
public virtual ICollection<XApiKey> ApiKeys { get; set; }
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user