mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 14:08:11 +00:00
changes
This commit is contained in:
@@ -8,6 +8,18 @@
|
||||
-- 3. LIVE export rates for Mojo → Djibouti Port: container (per container)
|
||||
-- and bulk (per ton) — booking pricing hard-blocks without them
|
||||
|
||||
-- 0. Approved exporter profile — picking "Export" in the wizard opens the
|
||||
-- "Set up your exporter profile" modal unless the company already has an
|
||||
-- active exporter profile (seed-company.sql only creates the importer).
|
||||
INSERT INTO freight.company_profiles (id, company_id, type, status, reference)
|
||||
SELECT gen_random_uuid(), c.id, 'exporter', 'active', 'EXP-E2E-0001'
|
||||
FROM freight.companies c
|
||||
WHERE c.tin = '0102030405'
|
||||
AND NOT EXISTS (
|
||||
SELECT 1 FROM freight.company_profiles p
|
||||
WHERE p.company_id = c.id AND p.type = 'exporter'
|
||||
);
|
||||
|
||||
-- 1a. Cargo type group + commodity.
|
||||
INSERT INTO freight.cargo_types (id, code, cargo_type_name, is_active)
|
||||
SELECT gen_random_uuid(), 'E2E_GRAINS', 'E2E Grains', true
|
||||
|
||||
Reference in New Issue
Block a user