This commit is contained in:
2026-10-04 18:11:36 +03:30
parent efbeeb483d
commit de36e7bfd1
6 changed files with 267 additions and 1 deletions
+62
View File
@@ -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
}
}