using Connected.Data;
using Connected.Entities.Annotations;
using Connected.Entities.Concurrency;
namespace Common.Types.TaxRates;
///
/// The entity.
///
[Table(Schema = SchemaAttribute.TypesSchema)]
internal sealed record TaxRate : ConcurrentEntity, ITaxRate
{
///
/// The cache key under which all TaxRate entities are stored.
///
public const string CacheKey = $"{SchemaAttribute.TypesSchema}.{nameof(TaxRate)}";
///
/// The name of the .
///
[Length(128)]
public string? Name { get; init; }
///
/// The rate of the .
///
public float Rate { get; init; }
///
/// The status. Only entities
/// should be used on front ends.
///
[Default(Status.Enabled)]
public Status Status { get; init; }
}