2024-05-31 00:32:51 +02:00
|
|
|
-- Add up migration script here
|
|
|
|
CREATE TABLE modelle (
|
2024-06-03 01:53:23 +02:00
|
|
|
modell_id SERIAL PRIMARY KEY,
|
2024-05-31 00:32:51 +02:00
|
|
|
name VARCHAR NOT NULL,
|
|
|
|
typ_id SERIAL,
|
|
|
|
hersteller_id SERIAL,
|
2024-06-03 01:53:23 +02:00
|
|
|
CONSTRAINT fk_typ FOREIGN KEY(typ_id) REFERENCES typen(typ_id),
|
|
|
|
CONSTRAINT fk_hersteller FOREIGN KEY (hersteller_id) REFERENCES hersteller(hersteller_id)
|
2024-05-31 00:32:51 +02:00
|
|
|
)
|