6 lines
230 B
SQL
6 lines
230 B
SQL
CREATE TABLE order_products (
|
|
id SERIAL PRIMARY KEY,
|
|
quantity INTEGER NOT NULL,
|
|
order_id INTEGER NOT NULL REFERENCES orders(id),
|
|
product_id INTEGER NOT NULL REFERENCES products(id)
|
|
) |