File size: 42,863 Bytes
27ec678 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 | # logistics
The warehouse and shipping system, shaped like a warehouse management system joined to a shipping aggregator's feed. It records every parcel that left a warehouse (a commerce order's or a Pepperwind Club box's) with its carrier scans and returns to origin, the Club's monthly boxes, stock sent from Kochi to Rotterdam, New Jersey and the Indian fulfilment nodes, Kochi's packing runs, the planners' reviews behind the transfers and the runs, and every movement of stock at KOC1, RTM1 and NJ3P. Plain times are the local wall clock of the warehouse where the event happened; carrier scans carry their own UTC offset. It links to commerce orders and order lines, billing subscriptions and invoices, and the core SKU, product and warehouse tables.
| Table | Rows | What it holds |
|---|---:|---|
| [bom_line](#bom_line) | 779 | One row per material in a food product's recipe: how much of the material goes into each kilogram (a liquid's litre) of the product and the share its processing route loses. Products bought finished have a recipe too, with no loss. |
| [carrier](#carrier) | 9 | One row per carrier or forwarder Pepperwind ships with: the Indian, European and US parcel carriers, the air courier that carried US parcels from Kochi until New Jersey opened, and the sea freight forwarder for Kochi's own exports. |
| [club_box](#club_box) | 1,083 | One row per Pepperwind Club box: a subscription's box for one month. A subscription active at a month's run cutoff (midnight at the start of the 5th, on the market's warehouse clock) has that month's box. A paid box is packed on the 5th to 8th; one whose period is paid after the cutoff is packed the morning after the payment. Its parcel is the shipment row that names it. |
| [club_box_line](#club_box_line) | 3,218 | One row per item in a Club box: the Club team's pick for each line of the box's market, tier and month, one unit each. Leaf boxes have two lines, Spice Route and Reserve three. |
| [club_selection](#club_selection) | 801 | The Club team's monthly picks: one row per market, tier, month and box line, naming the SKU every box of that market and tier holds that month. Picks come from the market's own price list, in 50 g packs for Leaf and 100 g packs otherwise (250 g for Reserve's coffee); each month's box is worth 1.15 to 1.45 times its tier's monthly price at list, and a product is not picked again for a tier within six months. |
| [material](#material) | 240 | The item master of food materials Kochi buys. A material bought as one grade is one item; a material bought as each product's own lot (an estate's tea, a single-estate coffee) has one item per product, placed in the material's price band. |
| [packing_review](#packing_review) | 31,077 | The Kochi planner's review of one SKU on the morning of its product's run to stock: what left Kochi's stock since the product's last run, the daily rate and season it plans on, the target, what is available, and what the run packs. One row per run to stock and SKU of its product. |
| [packing_run](#packing_run) | 12,351 | One row per packing run at Kochi. A run to stock packs one product's SKUs on its department's line on a fixed cycle (weekly, fortnightly or every four weeks by the product's sales class). Runs to order pack a container's or courier lot's goods with their market's labels, or India's Club goods for a month, on the packing bench. A rush run packs one SKU the shelf could not cover. |
| [replenishment_review](#replenishment_review) | 20,566 | The planner's review of one SKU before a sailing or a courier flight from Kochi to Rotterdam or New Jersey: what sold since the previous sailing's review, the rate and season it plans on, the target, what is on hand and on the water, and what it proposes to send. Proposals above zero become the transfer's lines. |
| [rto](#rto) | 187 | One row per parcel returned to origin (RTO): the carrier gave up delivering it and sent it back to the warehouse it left. Times are on that warehouse's clock. |
| [shipment](#shipment) | 12,142 | One row per parcel or freight consignment that left a warehouse: a commerce order's (shipment_type order) or a Club box's (subscription_box). Times are on the shipping warehouse's clock: Kochi's for KOC1 and the Indian nodes, Amsterdam's for Rotterdam, New York's for New Jersey. Status and delivery are as at the end of the data; its scans are in tracking_event. |
| [shipment_item](#shipment_item) | 60,729 | One row per order line in its order's parcel. Every line that ships goes in the order's one shipment; gift cards and other lines that do not ship have no row. |
| [stock_item](#stock_item) | 1,845 | One row per SKU a warehouse holds in its system: every SKU sold in its market at Rotterdam and New Jersey, and the SKUs Kochi packs itself at KOC1. on_hand is the stock at the end of the data. The Indian nodes keep their stock in their own providers' systems and are not here. |
| [stock_movement](#stock_movement) | 88,074 | One row per change to a warehouse's stock of an item at KOC1, RTM1 or NJ3P, of the kind in kind; quantity is signed, in positive and out negative. Kochi opens the data holding the stock its September 2023 runs left; Rotterdam and New Jersey start empty. Times are the warehouse's clock. |
| [stock_transfer](#stock_transfer) | 181 | One row per transfer of stock out of Kochi (KOC1): a container by sea to Rotterdam or New Jersey, a crop edition's launch lot by express courier (air), or a weekly road transfer to the Bengaluru or Bhiwandi (Mumbai) node. Times in Kochi (review, stuffing, collection, departure) are on Kochi's clock, the rest on the destination's. A time after the end of the data is empty. |
| [stock_transfer_line](#stock_transfer_line) | 12,133 | One row per SKU on a stock transfer. A container's or courier lot's lines are the replenishment review's proposals above zero; a road transfer's lines are what the node shipped of each SKU the week before. |
| [tracking_event](#tracking_event) | 74,768 | One row per carrier scan of a shipment, as the shipping aggregator received it: manifested at packing, picked up, departed the origin hub, arrived at the destination hub, out for delivery and each attempt's outcome, and a return to origin's start, leg back and arrival. Each time is on the clock of the place the scan was made, with its UTC offset. |
## bom_line
One row per material in a food product's recipe: how much of the material goes into each kilogram (a liquid's litre) of the product and the share its processing route loses. Products bought finished have a recipe too, with no loss.
779 rows; key `bom_line_id`.
| Column | Type | Empty | Range or values | Meaning |
|---|---|---:|---|---|
| `bom_line_id` | integer, key | 0.0% | 1 to 779 | The recipe line's key. |
| `product_id` | integer, → `core.product.product_id` | 0.0% | 1 to 422 | The product the recipe makes. |
| `material_id` | integer, → `logistics.material.material_id` | 0.0% | 1 to 240 | The material the line uses: the product's own lot where the material is bought by lot. |
| `route` | text | 0.0% | `tea`, `blend`, `ground` | How the product is made from its materials, for example tea (sift, blend lots, pack), ground, blend, roast, roast_ground, decorticate (cardamom split for its seeds), teabag, sampler, kit, jar, or copack (made by an outside maker to Pepperwind's recipe). |
| `kg_per_kg` | number, 6 places | 0.0% | 0.002 to 1.0 | Kilograms of the material per kilogram (or litre) of finished product, before the route's loss. |
| `loss` | number, 4 places | 0.0% | -0.0 to 0.3 | The share of the material's weight the route loses in processing (0.3 is 30%); 0 for a material used as bought. |
## carrier
One row per carrier or forwarder Pepperwind ships with: the Indian, European and US parcel carriers, the air courier that carried US parcels from Kochi until New Jersey opened, and the sea freight forwarder for Kochi's own exports.
9 rows; key `carrier_id`.
| Column | Type | Empty | Range or values | Meaning |
|---|---|---:|---|---|
| `carrier_id` | integer, key | 0.0% | 1 to 9 | The carrier's key. |
| `code` | text | 0.0% | `KXP`, `VLL`, `MLC` | The carrier's three-letter code, as shipments and labels name it. |
| `name` | text | 0.0% | `Konkan Express`, `Velora Logistics`, `Malnad Couriers` | The carrier's trading name. |
| `market` | text | 0.0% | `IN`, `EU`, `US` | The market it serves: IN, EU or US, or export for the sea freight forwarder. |
| `coverage` | text | 0.0% | `national`, `south and west`, `Benelux and DE` | Where it delivers, in the operations team's words (national, south and west, Benelux and DE, Kochi to US doors). |
| `party_id` | integer, → `core.party.party_id` | 0.0% | 221 to 3099 | The carrier as an organisation in the shared party register. |
| `awb_format` | text | 0.0% | `13 digits`, `VL + 10 digits`, `M + 9 digits` | The shape of the carrier's tracking numbers (awb on a shipment), for example 13 digits or VL + 10 digits. |
## club_box
One row per Pepperwind Club box: a subscription's box for one month. A subscription active at a month's run cutoff (midnight at the start of the 5th, on the market's warehouse clock) has that month's box. A paid box is packed on the 5th to 8th; one whose period is paid after the cutoff is packed the morning after the payment. Its parcel is the shipment row that names it.
1,083 rows; key `club_box_id`.
| Column | Type | Empty | Range or values | Meaning |
|---|---|---:|---|---|
| `club_box_id` | integer, key | 0.0% | 1 to 1083 | The box's key, numbered in order of the monthly runs. |
| `subscription_id` | text, → `billing.subscription.subscription_id` | 0.0% | `sub_1JtE4DKYW674HvRF4GBNh8wl`, `sub_1K3BfPKYW674HvRF6cwjcRNR`, `sub_1K5ainKYW674HvRFJEdUI3dq` | The Club subscription the box belongs to. |
| `tier` | text | 0.0% | `SPICE`, `RESERVE`, `LEAF` | The subscription's Club tier: LEAF (two teas), SPICE (Spice Route, four spices or blends) or RESERVE (an estate tea, a spice and 250 g of coffee). |
| `box_month` | timestamp, local wall clock, no zone | 0.0% | 2023-10-01 00:00:00 to 2026-09-01 00:00:00 | The month of the box, as its first day. |
| `kitchen_piece` | boolean | 0.0% | False to True | True for a Reserve box in the first month of a quarter (January, April, July, October), which also holds a kitchen piece bought in for the Club. |
| `warehouse_id` | integer, → `core.warehouse.warehouse_id` | 0.0% | 1 to 3 | The warehouse that packs the market's boxes: KOC1 for India, RTM1 for Europe, NJ3P for the US. |
| `invoice_id` | text, → `billing.invoice.invoice_id` | 6.6% | `in_1NwekpKYW674HvRFD0jdq35d`, `in_1NxiVHKYW674HvRF4OXVPyY5`, `in_1O07YfKYW674HvRF0oYwvPdN` | The billing invoice for the subscription period in force at the month's cutoff. Empty where that period began before the data starts, so its invoice is not in the data. |
| `status` | text | 0.0% | `shipped`, `canceled` | Where the box stood at the end of the data: shipped (collected by the carrier), scheduled (paid, collected after the end), awaiting_payment (the renewal is still being retried) or canceled (no retry paid and the subscription ended). |
## club_box_line
One row per item in a Club box: the Club team's pick for each line of the box's market, tier and month, one unit each. Leaf boxes have two lines, Spice Route and Reserve three.
3,218 rows; key `club_box_line_id`.
| Column | Type | Empty | Range or values | Meaning |
|---|---|---:|---|---|
| `club_box_line_id` | integer, key | 0.0% | 1 to 3218 | The box line's key. |
| `club_box_id` | integer, → `logistics.club_box.club_box_id` | 0.0% | 1 to 1083 | The box the line is in. |
| `line` | integer | 0.0% | 1 to 4 | The line's number within the box, 1 to 3. |
| `sku_id` | integer, → `core.sku.sku_id` | 0.0% | 1 to 896 | The SKU packed on this line. |
| `role` | text | 0.0% | `spice`, `estate tea`, `coffee` | What the line is in the box: tea, spice, estate tea or coffee. |
| `quantity` | integer | 0.0% | 1 to 1 | Units of the SKU on the line; always 1. |
## club_selection
The Club team's monthly picks: one row per market, tier, month and box line, naming the SKU every box of that market and tier holds that month. Picks come from the market's own price list, in 50 g packs for Leaf and 100 g packs otherwise (250 g for Reserve's coffee); each month's box is worth 1.15 to 1.45 times its tier's monthly price at list, and a product is not picked again for a tier within six months.
801 rows; key `selection_id`.
| Column | Type | Empty | Range or values | Meaning |
|---|---|---:|---|---|
| `selection_id` | integer, key | 0.0% | 1 to 801 | The pick's key. |
| `box_month` | timestamp, local wall clock, no zone | 0.0% | 2023-10-01 00:00:00 to 2026-09-01 00:00:00 | The month the pick is for, as its first day. |
| `market_code` | text | 0.0% | `IN`, `EU`, `US` | The market whose boxes hold the pick: IN, EU or US. |
| `tier` | text | 0.0% | `LEAF`, `SPICE`, `RESERVE` | The Club tier: LEAF, SPICE or RESERVE. |
| `line` | integer | 0.0% | 1 to 4 | The box line the pick fills, 1 to 3. |
| `sku_id` | integer, → `core.sku.sku_id` | 0.0% | 1 to 896 | The SKU picked. |
| `role` | text | 0.0% | `tea`, `spice`, `estate tea` | What the line is in the box: tea, spice, estate tea or coffee. |
## material
The item master of food materials Kochi buys. A material bought as one grade is one item; a material bought as each product's own lot (an estate's tea, a single-estate coffee) has one item per product, placed in the material's price band.
240 rows; key `material_id`.
| Column | Type | Empty | Range or values | Meaning |
|---|---|---:|---|---|
| `material_id` | integer, key | 0.0% | 1 to 240 | The material item's key. |
| `material_code` | text | 0.0% | `RM-0001`, `RM-0002`, `RM-0003` | The item's code in the item master (RM- and four digits). |
| `item_key` | text | 0.0% | `TEA_CTC_S`, `TEA_CTC_N`, `TEA_DUST_N` | The material the item is, shared by every lot of it (for example TEA_CTC_S, CTC leaf from South India). |
| `name` | text | 0.0% | `CTC leaf, South Indian, Hotel Blend CTC lot`, `CTC leaf, South Indian, Strong Leaf CTC lot`, `CTC leaf, South Indian, Malabar Coast Breakfast lot` | The item's name; a lot's name ends with the product it is bought for. |
| `kind` | text | 0.0% | `tea`, `herb`, `fruit` | The master's group: tea, coffee, cocoa, herb, fruit, flavour, staple or spice. |
| `unit` | text | 0.0% | `kg` | The unit it is bought and costed in; always kg. |
| `market_index` | text | 19.2% | `tea_south`, `tea_north`, `pepper` | The market price series the material is priced off (for example tea_south, pepper, cardamom). Empty for a material priced by estimate. |
| `grade` | text | 85.4% | `garbled`, `AGEB`, `AGB` | The trade grade bought where the index quotes grades (for example garbled pepper, AGEB cardamom); empty otherwise. |
| `premium` | number, 4 places | 0.0% | 1.0 to 3.4 | The item's price as a multiple of its index (after its grade); 1 where it is bought at the index. |
| `band_position` | number, 4 places | 42.1% | -0.0 to 1.0 | For a lot: where it sits in its material's price band, 0 at the bottom and 1 at the top, set by its product's Indian list price per kg among the products made of the same material. Empty for a material bought as one grade. |
| `for_product_id` | integer, → `core.product.product_id` | 42.1% | 1 to 422 | For a lot: the product it is bought for. Empty for a material bought as one grade. |
| `ready_to_use` | boolean | 0.0% | False to True | True for a material used as bought, which loses nothing in processing. |
| `priced_by` | text | 0.0% | `market`, `estimate` | market where the item is priced off its index, estimate where it has no market series. |
## packing_review
The Kochi planner's review of one SKU on the morning of its product's run to stock: what left Kochi's stock since the product's last run, the daily rate and season it plans on, the target, what is available, and what the run packs. One row per run to stock and SKU of its product.
31,077 rows; key `review_id`.
| Column | Type | Empty | Range or values | Meaning |
|---|---|---:|---|---|
| `review_id` | integer, key | 0.0% | 1 to 31077 | The review's key, numbered in the order reviewed. |
| `reviewed_at` | timestamp, local wall clock, no zone | 0.0% | 2023-10-03 07:05:43 to 2026-09-29 08:38:50 | When the planner reviewed the SKU, before the line starts, on Kochi's clock. |
| `run_id` | integer, → `logistics.packing_run.run_id` | 0.0% | 1 to 12351 | The run to stock the review plans. |
| `warehouse_id` | integer, → `core.warehouse.warehouse_id` | 0.0% | 1 to 1 | The warehouse reviewed; always KOC1. |
| `sku_id` | integer, → `core.sku.sku_id` | 0.0% | 1 to 896 | The SKU reviewed. |
| `window_from` | timestamp, local wall clock, no zone | 0.0% | 2023-10-01 00:00:00 to 2026-09-22 00:00:00 | Start of the days the review reads: midnight on the day of the product's previous run (or on the first day of the data). |
| `window_to` | timestamp, local wall clock, no zone | 0.0% | 2023-10-02 23:59:59 to 2026-09-28 23:59:59 | End of the days the review reads: the last second before the day of this run. |
| `sale_days` | integer | 0.0% | 0 to 32 | Days in the window the SKU was on sale. |
| `cover_days` | integer | 0.0% | 0 to 39 | Days the run's stock must cover: from this run to the product's next run plus seven safety days, cut at the SKU's last day on sale. 0 when the SKU is not refilled. |
| `season` | number | 0.0% | -0.0 to 11.0636 | Expected storefront demand over the covered days relative to the days behind the rate (1 is the same pace). |
| `demand_units` | integer | 0.0% | -2 to 2730 | Units that left Kochi's stock in the window (parcels and wholesale orders picked, lines on road transfers to the nodes), less units put back from returns and returns to origin. Can be negative. |
| `daily_rate` | number, 4 places | 0.0% | -0.0 to 0.3214 | Storefront units a day the planner plans on: the SKU's own rate over its last four runs' windows when it has at least 28 days on sale behind it, otherwise the storefront forecast. |
| `indent_units` | integer | 0.0% | 0 to 3503 | Units the wholesale accounts' indents ask for over the covered days, a little over what they call off, including accounts served from the nodes. 0 when the SKU is not refilled. |
| `target_units` | integer | 0.0% | 0 to 3508 | The stock the run packs up to: the storefront's units over the cover with a safety margin (at least two units, and at least the largest single storefront outflow of recent weeks), plus the indents. |
| `available_units` | integer | 0.0% | 0 to 3142 | Units the planner counts as on the shelf at the review: the last target and any surplus, less what left since, plus any rush runs in the window. |
| `proposed_units` | integer | 0.0% | 0 to 3035 | Units the run packs of the SKU: the target less what is available, never below zero. |
## packing_run
One row per packing run at Kochi. A run to stock packs one product's SKUs on its department's line on a fixed cycle (weekly, fortnightly or every four weeks by the product's sales class). Runs to order pack a container's or courier lot's goods with their market's labels, or India's Club goods for a month, on the packing bench. A rush run packs one SKU the shelf could not cover.
12,351 rows; key `run_id`.
| Column | Type | Empty | Range or values | Meaning |
|---|---|---:|---|---|
| `run_id` | integer, key | 0.0% | 1 to 12351 | The run's key, in the order planned. |
| `run_number` | text | 0.0% | `PR/23-24/00001`, `PR/23-24/00002`, `PR/23-24/00003` | The run's number, PR/<financial year>/<five digits>, counted within each April-to-March financial year in the order runs were scheduled. |
| `run_type` | text | 0.0% | `stock`, `club`, `export` | stock (a product's run to stock), export (goods for a container or courier lot to Rotterdam or New Jersey), club (India's Club goods for a month) or rush (an unplanned run of one SKU to cover an outflow the shelf could not). |
| `line_code` | text | 0.0% | `KOC-L3`, `KOC-L1`, `KOC-L2` | The line that packs it: KOC-L1 teas, KOC-L2 spices, KOC-L3 coffee, KOC-B1 the bench for runs to order. |
| `scheduled_at` | timestamp, local wall clock, no zone | 0.0% | 2023-10-03 08:31:43 to 2026-09-29 08:58:50 | When the run was scheduled, on Kochi's clock: for a run to stock, the line's start that day; for a run to order or a rush run, its start. |
| `product_id` | integer, → `core.product.product_id` | 0.7% | 1 to 422 | The product packed, on runs to stock and rush runs; empty on export and club runs. |
| `transfer_id` | integer, → `logistics.stock_transfer.transfer_id` | 99.6% | 1 to 176 | The stock transfer whose goods an export run packs; empty on other runs. |
| `box_month` | timestamp, local wall clock, no zone | 99.7% | 2023-10-01 00:00:00 to 2026-09-01 00:00:00 | The Club month a club run packs for, as its first day; empty on other runs. |
| `started_at` | timestamp, local wall clock, no zone | 26.2% | 2023-10-03 08:31:43 to 2026-09-29 12:18:25 | When packing started, on Kochi's clock; a run to stock starts when the run before it on its line that day ends. Empty for a skipped run. |
| `lines` | integer | 0.0% | 0 to 356 | SKUs the run packed. |
| `units` | integer | 0.0% | 0 to 10186 | Units the run packed. |
| `ended_at` | timestamp, local wall clock, no zone | 26.2% | 2023-10-03 09:44:41 to 2026-09-29 12:46:41 | When packing ended, on Kochi's clock. Empty for a skipped run. |
| `status` | text | 0.0% | `completed`, `skipped` | completed, or skipped when there was nothing to pack. |
## replenishment_review
The planner's review of one SKU before a sailing or a courier flight from Kochi to Rotterdam or New Jersey: what sold since the previous sailing's review, the rate and season it plans on, the target, what is on hand and on the water, and what it proposes to send. Proposals above zero become the transfer's lines.
20,566 rows; key `review_id`.
| Column | Type | Empty | Range or values | Meaning |
|---|---|---:|---|---|
| `review_id` | integer, key | 0.0% | 1 to 20566 | The review's key. |
| `transfer_id` | integer, → `logistics.stock_transfer.transfer_id` | 0.0% | 1 to 179 | The sailing or flight the review plans. |
| `warehouse_id` | integer, → `core.warehouse.warehouse_id` | 0.0% | 2 to 3 | The warehouse being restocked: RTM1 or NJ3P. |
| `sku_id` | integer, → `core.sku.sku_id` | 0.0% | 1 to 900 | The SKU reviewed. |
| `reviewed_at` | timestamp, local wall clock, no zone | 0.0% | 2023-11-17 10:07:40 to 2026-09-25 15:11:55 | When the planner reviewed the SKU, on Kochi's clock. |
| `window_from` | timestamp, local wall clock, no zone | 0.0% | 2023-10-01 00:00:00 to 2026-08-28 00:00:00 | First day of the sales the review reads: the day after the previous sailing's review. A flight's review has no window and gives its own day. |
| `window_to` | timestamp, local wall clock, no zone | 0.0% | 2023-11-17 00:00:00 to 2026-09-25 00:00:00 | Last day of the sales the review reads: the day of the review. |
| `sale_days` | integer | 0.0% | 0 to 182 | Days in the window the SKU was on sale at the warehouse; 0 on a flight's review. |
| `cover_days` | integer | 0.0% | 0 to 144 | Days the shipment must cover: from the review until the following sailing is put away, plus 21 safety days, cut at the SKU's last day on sale. 0 when the SKU is not restocked. |
| `season` | number | 0.0% | 0.4533 to 3.4094 | Expected storefront demand over the covered days relative to the half year before (1 is the same pace). |
| `demand_units` | integer | 0.0% | -1 to 1080 | Units picked at the warehouse in the window (storefront and wholesale orders and Club boxes), less units put back from returns and returns to origin. Can be negative. |
| `daily_rate` | number, 4 places | 0.0% | -0.0 to 0.0885 | Storefront units a day the planner plans on: the SKU's own rate over its last three windows when it has at least 28 days on sale behind it; otherwise its category's rate per SKU weighted by its popularity, or a launch rate. |
| `topup_units` | integer | 0.0% | 0 to 6 | Extra units the planner adds when storefront orders already placed for the covered days run past the storefront target. |
| `indent_units` | integer | 0.0% | 0 to 2239 | Units the wholesale accounts' rolling indents ask for over the covered days, a little over what they call off. |
| `club_units` | integer | 0.0% | 0 to 19 | Units the Club's boxes will take over the covered days. |
| `target_units` | integer | 0.0% | 0 to 2256 | The stock the planner fills to: the storefront's units over the cover with a safety margin (at least two units), plus the top-up, the indents and the Club's units. |
| `position_units` | integer | 0.0% | 0 to 1561 | Units the planner counts at the warehouse and on the water at the review. |
| `proposed_units` | integer | 0.0% | 0 to 931 | Units proposed for this transfer: the target less the position, never below zero; 0 when the SKU is not restocked. |
| `on_water_units` | integer | 0.0% | 0 to 920 | Units of the SKU's previous transfer not yet received at the review. |
| `on_hand_units` | integer | 0.0% | 0 to 1561 | Units the planner counts on hand at the warehouse: the position less what is on the water. |
## rto
One row per parcel returned to origin (RTO): the carrier gave up delivering it and sent it back to the warehouse it left. Times are on that warehouse's clock.
187 rows; key `rto_id`.
| Column | Type | Empty | Range or values | Meaning |
|---|---|---:|---|---|
| `rto_id` | integer, key | 0.0% | 1 to 187 | The return to origin's key. |
| `shipment_id` | integer, → `logistics.shipment.shipment_id` | 0.0% | 112 to 12118 | The parcel returned. |
| `initiated_at` | timestamp, local wall clock, no zone | 0.0% | 2023-10-16 17:41:56 to 2026-09-30 18:04:29 | When the carrier marked the parcel for return, after its last failed attempt. |
| `reason` | text | 0.0% | `refused`, `cod_not_ready`, `not_available` | Why the last delivery attempt failed, as the carrier's non-delivery code: not_available, refused, cod_not_ready (cash not ready), reschedule, address, unreachable (phone unreachable) or closed (business closed). |
| `returned_at` | timestamp, local wall clock, no zone | 1.6% | 2023-10-23 11:26:25 to 2026-09-25 15:54:42 | When the parcel was checked in back at the warehouse. Empty while it is still on its way back at the end of the data. |
| `restocked` | boolean | 1.6% | False to True | True when its goods went back on the shelf. Empty until the parcel is back. |
| `cost` | number, 2 places | 0.0% | 12.4 to 1402.0 | What the carrier charged for both legs: the forward rate by 500 g weight slab, and the return at the same rate. In the row's currency, in major units. |
| `currency` | text | 0.0% | `INR`, `USD`, `EUR` | Currency of cost: INR, EUR or USD by the parcel's market. |
## shipment
One row per parcel or freight consignment that left a warehouse: a commerce order's (shipment_type order) or a Club box's (subscription_box). Times are on the shipping warehouse's clock: Kochi's for KOC1 and the Indian nodes, Amsterdam's for Rotterdam, New York's for New Jersey. Status and delivery are as at the end of the data; its scans are in tracking_event.
12,142 rows; key `shipment_id`.
| Column | Type | Empty | Range or values | Meaning |
|---|---|---:|---|---|
| `shipment_id` | integer, key | 0.0% | 1 to 12142 | The shipment's key. |
| `shipment_type` | text | 0.0% | `order`, `subscription_box` | order for a commerce order's parcel, subscription_box for a Club box's. |
| `order_id` | integer, → `commerce.order.order_id` | 8.9% | 1 to 11249 | The commerce order shipped. Empty for a Club box. |
| `warehouse_id` | integer, → `core.warehouse.warehouse_id` | 0.0% | 1 to 5 | The warehouse or fulfilment node it left from. |
| `carrier_id` | integer, → `logistics.carrier.carrier_id` | 0.0% | 1 to 8 | The carrier that carried it. |
| `packed_at` | timestamp, local wall clock, no zone | 0.0% | 2023-10-03 10:56:10 to 2026-09-30 17:51:28 | When the parcel was packed and manifested, before the carrier's collection. |
| `shipment_number` | text | 0.0% | `SHP-KOC1-00184211`, `SHP-KOC1-00184212`, `SHP-KOC1-00184213` | The warehouse's own number for the shipment, SHP-<warehouse code>-<eight digits>, rising in packing order over orders and boxes. |
| `pieces` | integer | 0.0% | 1 to 128 | Shipping cartons: 1 for a storefront parcel or a Club box; a wholesale order's goods in as many cartons as they fill. |
| `service` | text | 0.0% | `parcel`, `freight` | parcel, or freight for a wholesale order heavy enough to go by the carrier's freight service on pallets. |
| `pallets` | integer | 0.0% | 0 to 4 | Pallets a freight shipment is stacked on; 0 for a parcel. |
| `awb` | text | 0.0% | `VL2050310100`, `VL2050310145`, `VA104500001IN` | The carrier's tracking number, printed at packing; for freight, the carrier's freight number (an LR in India, a consignment number in Europe, a PRO number in the US). |
| `shipped_at` | timestamp, local wall clock, no zone | 0.0% | 2023-10-03 17:06:08 to 2026-09-30 19:25:16 | When the carrier collected the shipment from the warehouse. |
| `delivered_at` | timestamp, local wall clock, no zone | 2.0% | 2023-10-05 14:13:40 to 2026-09-30 15:56:34 | When the shipment was delivered, converted to the warehouse's clock. Empty for a return to origin and for a shipment not delivered by the end of the data. |
| `status` | text | 0.0% | `delivered`, `rto_delivered`, `in_transit` | The shipment's last scan status at the end of the data: manifested, picked_up, in_transit, out_for_delivery, delivered, undelivered (an attempt failed), rto_initiated, rto_in_transit or rto_delivered (back at the warehouse). |
| `promised_by` | timestamp, local wall clock, no zone | 8.9% | 2023-10-07 00:00:00 to 2026-10-09 00:00:00 | The last day of the delivery promise shown when the order was placed, in the buyer's market. Empty for a Club box. |
| `cod_amount` | number, 2 places | 0.0% | -0.0 to 11598.0 | Cash the carrier collects on delivery for a cash-on-delivery order (the order's total less any store credit applied), in currency, in major units; 0 for a prepaid order or a Club box. |
| `currency` | text | 0.0% | `INR`, `USD`, `EUR` | Currency of cod_amount: the order's currency, or the Club market's. |
| `weight_g` | integer | 0.0% | 146 to 1365161 | Gross weight in grams: the goods, their packs, the cartons, and a freight shipment's pallets. |
| `ship_to_postal_code` | text | 0.0% | `620008`, `680021`, `10029` | Postal code of the delivery address (a PIN code in India). |
| `attempts_made` | integer | 0.0% | 0 to 3 | Delivery attempts made by the end of the data; 0 before the first. |
| `club_box_id` | integer, → `logistics.club_box.club_box_id` | 91.1% | 1 to 1083 | The Club box shipped. Empty for an order's parcel. |
## shipment_item
One row per order line in its order's parcel. Every line that ships goes in the order's one shipment; gift cards and other lines that do not ship have no row.
60,729 rows; key `shipment_item_id`.
| Column | Type | Empty | Range or values | Meaning |
|---|---|---:|---|---|
| `shipment_item_id` | integer, key | 0.0% | 1 to 60729 | The shipment item's key. |
| `order_line_id` | integer, → `commerce.order_line.order_line_id` | 0.0% | 1 to 61676 | The commerce order line shipped. |
| `shipment_id` | integer, → `logistics.shipment.shipment_id` | 0.0% | 1 to 12142 | The shipment carrying the line. |
| `quantity` | integer | 0.0% | 1 to 2556 | Units of the line shipped: the order line's quantity. |
## stock_item
One row per SKU a warehouse holds in its system: every SKU sold in its market at Rotterdam and New Jersey, and the SKUs Kochi packs itself at KOC1. on_hand is the stock at the end of the data. The Indian nodes keep their stock in their own providers' systems and are not here.
1,845 rows; key `item_id`.
| Column | Type | Empty | Range or values | Meaning |
|---|---|---:|---|---|
| `item_id` | integer, key | 0.0% | 1 to 1845 | The item record's key. |
| `warehouse_id` | integer, → `core.warehouse.warehouse_id` | 0.0% | 1 to 3 | The warehouse holding the item: KOC1, RTM1 or NJ3P. |
| `sku_id` | integer, → `core.sku.sku_id` | 2.0% | 1 to 900 | The SKU the item record stands for, where the record names one. |
| `item_code` | text | 0.0% | `SKU-TWHT-10002`, `SKU-TWHT-10003`, `SKU-SBLD-10001` | The item's code in the warehouse system. |
| `on_hand` | number | 0.0% | -0.0 to 800.0 | Units on hand at the end of the data. |
## stock_movement
One row per change to a warehouse's stock of an item at KOC1, RTM1 or NJ3P, of the kind in kind; quantity is signed, in positive and out negative. Kochi opens the data holding the stock its September 2023 runs left; Rotterdam and New Jersey start empty. Times are the warehouse's clock.
88,074 rows; key `movement_id`.
| Column | Type | Empty | Range or values | Meaning |
|---|---|---:|---|---|
| `movement_id` | integer, key | 0.0% | 1 to 88074 | The movement's key. |
| `order_line_id` | integer, → `commerce.order_line.order_line_id` | 46.7% | 1 to 61672 | The commerce order line picked (pick) or put back after a return to origin (rto); empty on other kinds. |
| `warehouse_id` | integer, → `core.warehouse.warehouse_id` | 0.0% | 1 to 3 | The warehouse whose stock moved. |
| `sku_id` | integer, → `core.sku.sku_id` | 0.2% | 1 to 900 | The SKU moved, where the item record names one. |
| `item_id` | number, → `logistics.stock_item.item_id` | 0.0% | 1.0 to 1845.0 | The warehouse's item record that moved. |
| `kind` | text | 0.0% | `rto`, `return`, `pick` | pick (goods taken for an order's parcel or a Club box), receipt (a transfer line put away at Rotterdam or New Jersey), return (an unopened customer return put back), rto (goods of a returned parcel put back), transfer (goods leaving Kochi on a container, courier lot or road transfer), pack (a packing run's units into Kochi's stock) or adjustment (a stock adjustment). |
| `quantity` | number | 0.0% | -2556.0 to 3035.0 | Units moved: positive into stock, negative out. |
| `moved_at` | timestamp, local wall clock, no zone | 0.0% | 2023-10-03 09:29:47 to 2026-09-30 15:56:45 | When the goods moved. |
| `recorded_at` | timestamp, local wall clock, no zone | 0.0% | 2023-10-03 09:31:42 to 2026-09-30 15:59:17 | When the warehouse system recorded the movement. |
| `reference` | text | 0.0% | `ORD-IN-1061360`, `ORD-IN-1061512`, `ORD-IN-1061552` | The document behind the movement: the order number (pick, rto), the return's RMA number (return), the transfer number (receipt, transfer), the packing run number (pack), the box's shipment number (a Club box's pick) or the adjustment's number (SA/...). |
| `balance_after` | number | 0.0% | -1111.0 to 3508.0 | The item's units on hand right after this movement. |
| `transfer_line_id` | integer, → `logistics.stock_transfer_line.transfer_line_id` | 76.4% | 1 to 12133 | The transfer line received (receipt), sent (transfer) or packed for a container or courier lot (pack); empty on other kinds. |
| `return_line_id` | integer, → `commerce.return_line.return_line_id` | 100.0% | 19 to 48 | The commerce return line put back (return); empty on other kinds. |
| `club_box_line_id` | integer, → `logistics.club_box_line.club_box_line_id` | 96.4% | 1 to 3218 | The Club box line picked; empty on other kinds. |
| `selection_id` | integer, → `logistics.club_selection.selection_id` | 99.6% | 1 to 783 | The Club pick whose goods a club run packed into Kochi's stock; empty on other kinds. |
## stock_transfer
One row per transfer of stock out of Kochi (KOC1): a container by sea to Rotterdam or New Jersey, a crop edition's launch lot by express courier (air), or a weekly road transfer to the Bengaluru or Bhiwandi (Mumbai) node. Times in Kochi (review, stuffing, collection, departure) are on Kochi's clock, the rest on the destination's. A time after the end of the data is empty.
181 rows; key `transfer_id`.
| Column | Type | Empty | Range or values | Meaning |
|---|---|---:|---|---|
| `transfer_id` | integer, key | 0.0% | 1 to 181 | The transfer's key, numbered over all destinations in the order the transfers were reviewed. |
| `transfer_number` | text | 0.0% | `TO-RTM1-0001`, `TO-RTM1-0002`, `TO-RTM1-0003` | The transfer's number in its destination's own series, TO-<destination code>-<four digits>. |
| `mode` | text | 0.0% | `sea`, `air`, `road` | sea (a container), air (an express courier lot) or road (a part-load carrier to a node). |
| `from_warehouse_id` | integer, → `core.warehouse.warehouse_id` | 0.0% | 1 to 1 | The warehouse the stock leaves; always KOC1. |
| `to_warehouse_id` | integer, → `core.warehouse.warehouse_id` | 0.0% | 2 to 5 | The warehouse or node it goes to. |
| `reviewed_at` | timestamp, local wall clock, no zone | 0.0% | 2023-11-17 10:07:40 to 2026-09-28 09:41:03 | When the planner fixed the transfer's contents. |
| `stuffed_at` | timestamp, local wall clock, no zone | 77.3% | 2023-11-29 12:25:29 to 2026-09-26 13:26:47 | When the container was stuffed at Kochi. Sea only; empty before stuffing. |
| `picked_up_at` | timestamp, local wall clock, no zone | 93.9% | 2024-04-15 16:27:40 to 2026-04-06 16:37:01 | When the courier collected the lot at Kochi. Air only. |
| `shipped_at` | timestamp, local wall clock, no zone | 1.1% | 2023-12-04 07:38:21 to 2026-09-28 18:06:58 | When it left: the vessel's departure from Cochin, the courier's flight, or the truck's departure from Kochi. Empty while a sailing is still planned. |
| `house_bl` | text | 77.9% | `WCLKOC2301272`, `WCLKOC2401357`, `WCLKOC2401400` | The freight forwarder's house bill of lading number, once the container has sailed. Sea only. |
| `waybill` | text | 23.2% | `9101878189`, `9028974912`, `4989917577` | The courier's air waybill number (ten digits) or, for a road transfer, its e-way bill number (twelve digits). Empty for sea. |
| `arrived_at` | timestamp, local wall clock, no zone | 2.8% | 2023-12-29 11:52:25 to 2026-09-30 13:02:03 | When it reached the destination port, airport or node. Empty while still at sea or in transit. |
| `released_at` | timestamp, local wall clock, no zone | 72.9% | 2024-01-08 13:38:09 to 2026-09-09 10:27:14 | When customs released the goods at the destination. Sea and air only. |
| `delivered_at` | timestamp, local wall clock, no zone | 72.9% | 2024-01-09 14:29:21 to 2026-09-10 09:52:24 | When the haulier or courier delivered the goods to the warehouse. Sea and air only. |
| `received_at` | timestamp, local wall clock, no zone | 2.8% | 2024-01-09 17:28:09 to 2026-09-30 14:31:51 | When the goods were received and put away at the warehouse or node. Empty until then. |
| `border_check` | boolean | 72.9% | False to True | True when the goods were held for an inspection on import (a border check at Rotterdam, an FDA examination at New Jersey). Empty until released, and for road. |
| `lines` | integer | 0.0% | 1 to 500 | SKU lines on the transfer. |
| `units` | integer | 0.0% | 4 to 10227 | Units on the transfer. |
| `net_kg` | number | 0.0% | 0.4 to 4581.432 | Net weight of the goods in kilograms. |
| `volume_m3` | number | 0.0% | -0.0 to 25.39 | Estimated volume of the goods in cubic metres. |
| `container_type` | text | 76.8% | `LCL`, `20DV` | The container booked: LCL (a shared container, under 14 m3), 20DV (a 20-foot dry container) or 40HC (a 40-foot high cube). Sea only. |
| `chargeable_kg` | number | 93.9% | 0.5 to 35.5 | The weight the courier charges by: the greater of the gross weight and the volumetric weight, rounded up to the half kilogram. Air only. |
| `status` | text | 0.0% | `received`, `at_sea`, `stuffed` | Where the transfer stood at the end of the data: planned, stuffed, collected, at_sea, in_transit, arrived or received. |
## stock_transfer_line
One row per SKU on a stock transfer. A container's or courier lot's lines are the replenishment review's proposals above zero; a road transfer's lines are what the node shipped of each SKU the week before.
12,133 rows; key `transfer_line_id`.
| Column | Type | Empty | Range or values | Meaning |
|---|---|---:|---|---|
| `transfer_line_id` | integer, key | 0.0% | 1 to 12133 | The transfer line's key. |
| `review_id` | integer, → `logistics.replenishment_review.review_id` | 54.5% | 1 to 20566 | The replenishment review that proposed the line. Empty on a road transfer's lines. |
| `transfer_id` | integer | 0.0% | 1 to 181 | The transfer the line is on (a key of stock_transfer). |
| `sku_id` | integer, → `core.sku.sku_id` | 0.0% | 1 to 900 | The SKU sent. |
| `line_no` | number | 0.0% | 1.0 to 500.0 | The line's number on the transfer. |
| `quantity` | integer | 0.0% | 1 to 2556 | Units sent. |
| `net_kg` | number | 0.0% | 0.05 to 852.0 | Net weight of the units in kilograms. |
## tracking_event
One row per carrier scan of a shipment, as the shipping aggregator received it: manifested at packing, picked up, departed the origin hub, arrived at the destination hub, out for delivery and each attempt's outcome, and a return to origin's start, leg back and arrival. Each time is on the clock of the place the scan was made, with its UTC offset.
74,768 rows; key `tracking_event_id`.
| Column | Type | Empty | Range or values | Meaning |
|---|---|---:|---|---|
| `tracking_event_id` | integer, key | 0.0% | 1 to 74768 | The scan's key. |
| `shipment_id` | integer, → `logistics.shipment.shipment_id` | 0.0% | 1 to 12142 | The shipment scanned. |
| `status` | text | 0.0% | `manifested`, `picked_up`, `in_transit` | The scan's status: manifested, picked_up, in_transit, out_for_delivery, delivered, undelivered (a failed attempt), rto_initiated, rto_in_transit or rto_delivered. |
| `location` | text | 0.0% | `Kochi`, `Kochi hub`, `Kochi air gateway` | Where the scan was made: the warehouse's city, its carrier hub (a terminal for freight), Kochi air gateway for a cross-border parcel, the destination city's hub, or the destination city. |
| `description` | text | 0.0% | `Shipment information received`, `Picked up from the seller`, `In transit: departed the origin facility` | The scan's text as the feed carries it; a failed attempt gives the carrier's reason. |
| `occurred_at` | text | 0.0% | `2023-10-03T10:56:10+05:30`, `2023-10-03T15:29:06+05:30`, `2023-10-03T17:06:08+05:30` | When the scan was made, ISO 8601 with the local UTC offset of where it was made (the warehouse for packing, collection, departure and a return's arrival; the destination for the rest). |
| `received_at` | text | 0.0% | `2023-10-03T12:02:09+05:30`, `2023-10-03T18:17:31+05:30`, `2023-10-03T17:39:27+05:30` | When the aggregator received the scan from the carrier, minutes to hours later, with the same offset as occurred_at. Scans of a parcel arrive in order, so a late one holds back the next. |
|