Files
mixtape/zero.Api/Models/_new/SaveModel.cs
T

34 lines
803 B
C#
Raw Normal View History

2021-11-29 18:25:50 +01:00
namespace zero.Api.Models;
2021-12-02 14:44:48 +01:00
public abstract class SaveModel<T> : ZeroIdEntity, ISupportsFlavors where T : ZeroEntity
2021-11-29 18:25:50 +01:00
{
/// <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>
/// Sort order
/// </summary>
public uint Sort { get; set; }
/// <summary>
/// Whether the entity is visible in the frontend
/// </summary>
public bool IsActive { get; set; }
2021-12-02 14:44:48 +01:00
/// <summary>
/// Configured flavor of this entity
/// </summary>
public string Flavor { get; set; }
2021-11-29 18:25:50 +01:00
}