10 lines
313 B
SQL
10 lines
313 B
SQL
-- Add up migration script here
|
|
CREATE TABLE modelle (
|
|
modell_id SERIAL PRIMARY KEY,
|
|
name VARCHAR NOT NULL,
|
|
typ_id SERIAL,
|
|
hersteller_id SERIAL,
|
|
CONSTRAINT fk_typ FOREIGN KEY(typ_id) REFERENCES typen(typ_id),
|
|
CONSTRAINT fk_hersteller FOREIGN KEY (hersteller_id) REFERENCES hersteller(hersteller_id)
|
|
)
|