62 lines
1.5 KiB
C#
62 lines
1.5 KiB
C#
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
|
|
}
|
|
} |