import type { PoolClient } from 'pg'; /** * Package management (parcel sizing) — schema, part 2 of 3. * See wiki/package-management-design.md. * * `cart_item` dimension snapshots: copied from the product's package on every * cart rebuild (same refresh semantics as `product_weight`/price). NULL for * legacy products (no package yet) and non-shippable items. Values are in the * store's dimension unit (`shop.dimensionUnit`). * * `cart.packages`: the persisted packing proposal computed by the * `cartPackages` processor at rebuild (parity with `total_weight`). JSONB * array of parcels `{ packageUuid, name, length, width, height, tareWeight, * goodsWeight }`. The `total_weight` field resolver reads parcel tare from * here — per-item weights everywhere stay goods-only (no double counting). * At order placement `exportData()` includes this key but the `order` table * has no such column, so the query-builder drops it — order-side truth is * `order.total_weight` + per-item dims on `order_item`. */ declare const _default: (connection: PoolClient) => Promise; export default _default;