Skip to main content

Data Schemas

Mantissa leverages two types of historical data: purchase orders and sales orders. In this section, we provide the schema for each type of data.

Sales orders data

In the following table, you can find the schema for the sales orders data. The data must be uploaded via a single csv file, and must have all the columns listed below. Any extra columns will be ignored.

Column nameDescriptionFormat detailsNullableExample
OrderDateTimeDatetime on which the order is placed.yyyy-mm-ddThh:MM:ss+hh:MM (timezone is optional)False2022-01-01T00:00:00
DeliveryDateTimeDatetime on which the order is delivered.yyyy-mm-ddThh:MM:ss+hh:MM (timezone is optional)True2022-01-05T00:00:00
QuantityQuantity of the item ordered.Positive number with decimal digits separated by dotsFalse10.3
MeasureUnitUnit of measure of the quantity ordered.StringTruekg
ItemCodeFirst-level identifier of the item ordered.StringFalse1234
ItemClassificationSecond-level identifier of the item ordered.StringTrueclassification1
ItemFamilyThird-level identifier of the item ordered.StringTruefamily1

Columns ItemCode, ItemClassification and ItemFamily correspond to aggregation levels item, classification and family, respectively.

warning

If each value in column ItemFamily is NULL, you will not be allowed to ask for a Demand Prediction with family aggregation level (and the same applies to classification aggregation level).

CSV file example

OrderDateTime,DeliveryDateTime,Quantity,MeasureUnit,ItemCode,ItemClassification,ItemFamily
2022-01-01T00:00:00,2022-01-05T00:00:00,10,kg,1234,classification1,family1
2022-01-02T00:00:00,2022-01-06T00:00:00,20,kg,1235,classification1,family1
2022-01-03T00:00:00,2022-01-07T00:00:00,30,kg,1236,classification2,family2

Purchase orders data

In the following table, you can find the schema for the purchase orders data. The data must be uploaded via a single csv file, and must have all the columns listed below. Any extra columns will be ignored.

Column nameDescriptionFormat detailsNullableExample
OrderDateTimeDatetime on which the order is placed.yyyy-mm-ddThh:MM:ss+hh:MM (timezone is optional)False2022-01-01T00:00:00
DeliveryDateTimeDatetime on which the order is received.yyyy-mm-ddThh:MM:ss+hh:MM (timezone is optional)False2022-01-05T00:00:00
QuantityQuantity of the item ordered.Positive number with decimal digits separated by dotsFalse10.3
MeasureUnitUnit of measure of the quantity ordered.StringTruekg
SupplierCodeIdentifier of the supplier to whom the order is placed.StringFalsesupp1
ItemCodeFirst-level identifier of the item ordered.StringFalse1234
ItemClassificationSecond-level identifier of the item ordered.StringTrueclassification1
ItemFamilyThird-level identifier of the item ordered.StringTruefamily1

Columns ItemCode, ItemClassification and ItemFamily correspond to aggregation levels item, classification and family, respectively.

warning

If each value in column ItemFamily is NULL, you will not be allowed to ask for a Lead Time Prediction with family aggregation level (and the same applies to classification aggregation level).

CSV file example

OrderDateTime,DeliveryDateTime,Quantity,MeasureUnit,SupplierCode,ItemCode,ItemClassification,ItemFamily
2022-01-01T00:00:00,2022-01-05T00:00:00,10,kg,supp1,1234,classification1,family1
2022-01-02T00:00:00,2022-01-06T00:00:00,20,kg,supp1,1235,classification1,family1
2022-01-03T00:00:00,2022-01-07T00:00:00,30,kg,supp2,1236,classification2,family2