using Connected.Data;
namespace Connected.Logistics.Stock;
///
/// The stock descriptor which describes what kind of entity it
/// represents. The entity could be Product, Semi product or any
/// other type of entity.
///
public interface IStock : IPrimaryKey
{
///
/// The type of the entity.
///
string Entity { get; init; }
///
/// The primary key of the entity.
///
string EntityId { get; init; }
///
/// The total quantity currently available.
///
float Quantity { get; init; }
///
/// The minimum quantity that should be always available
/// in the stock.
///
float? Min { get; init; }
///
/// The maximum quantity that should be stored in
/// the stock.
///
float? Max { get; init; }
}