diff --git a/app/Migrations/create-schema.sql b/app/Migrations/create-schema.sql index 3517751..4ff9482 100644 --- a/app/Migrations/create-schema.sql +++ b/app/Migrations/create-schema.sql @@ -52,13 +52,14 @@ CREATE TABLE IF NOT EXISTS raw_materials_deliveries ( -------------------------------------------- -- Pallets are used to store cookies for delivery +-- Order related columns are unused for now. CREATE TABLE IF NOT EXISTS pallets ( pallet_id INT PRIMARY KEY, cookie_id INT NOT NULL, - order_id INT NOT NULL, + -- order_id INT NOT NULL, status VARCHAR(50) NOT NULL CHECK (status IN ('freezer', 'delivered', 'blocked')), production_date DATE NOT NULL, delivery_date DATE DEFAULT NULL, FOREIGN KEY (cookie_id) REFERENCES cookies(cookie_id) - FOREIGN KEY (order_id) REFERENCES orders(order_id) + -- FOREIGN KEY (order_id) REFERENCES orders(order_id) );