shipping_rates table
The shipping_rates table in the E-commerce Database Schema schema has 9 columns, keyed by id, with 1 foreign key to shipping_zones.
Null bounds mean unbounded. A free-shipping-over-X rule is price_cents 0 with min_order_cents set.
Columns (9)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| zone_id | uuid | not null, references shipping_zones.id | |
| name | varchar(120) | not null | |
| price_cents | integer | not null | |
| currency | char(3) | not null | |
| min_order_cents | integer | ||
| max_order_cents | integer | ||
| min_weight_grams | integer | ||
| max_weight_grams | integer |
Indexes (1)
(zone_id)
Relationships
shipping_rates.zone_idreferencesshipping_zones.id