29 lines
699 B
C#
29 lines
699 B
C#
|
|
namespace zero.Api.Models;
|
||
|
|
|
||
|
|
public abstract class BasicModel<T> : ZeroIdEntity where T : ZeroEntity
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// Full name of the entity
|
||
|
|
/// </summary>
|
||
|
|
public string Name { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Alias (non-unique) which can be used in the frontend and URLs
|
||
|
|
/// </summary>
|
||
|
|
public string Alias { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// A key which can be used to query this entity in code
|
||
|
|
/// </summary>
|
||
|
|
public string Key { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Whether the entity is visible in the frontend
|
||
|
|
/// </summary>
|
||
|
|
public bool IsActive { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Date of creation
|
||
|
|
/// </summary>
|
||
|
|
public DateTimeOffset CreatedDate { get; set; }
|
||
|
|
}
|