searching the web…
CREATE TABLE orders (
order_id SERIAL PRIMARY KEY,
customer_id INT REFERENCES customers(customer_id),
order_date DATE
);Create a child table with a foreign key column using REFERENCES to link to a parent table's primary key.