Uncomment orders
This commit is contained in:
parent
35607ce341
commit
71687c8bf7
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue