using Connected.Annotations;
using Connected.Data;
using Connected.Entities.Annotations;
using Connected.Entities.Consistency;
namespace Logistics.Types.Warehouses;
///
[Table(Schema = Domain.Code)]
internal sealed record Warehouse : ConsistentEntity, IWarehouse
{
public const string EntityKey = $"{Domain.Code}.{nameof(Warehouse)}";
///
[Ordinal(0), Length(128)]
public string Name { get; init; } = default!;
///
[Ordinal(1), Length(32), Index(Unique = true)]
public string Code { get; init; } = default!;
///
[Ordinal(2)]
public Status Status { get; init; }
}