First Commit
This commit is contained in:
1
migrations/2024-05-21-102702_modell/down.sql
Normal file
1
migrations/2024-05-21-102702_modell/down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE modelle;
|
||||
8
migrations/2024-05-21-102702_modell/up.sql
Normal file
8
migrations/2024-05-21-102702_modell/up.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
CREATE TABLE modelle (
|
||||
id SERIAL PRIMARY KEY,
|
||||
name VARCHAR NOT NULL,
|
||||
typ_id SERIAL,
|
||||
hersteller_id SERIAL,
|
||||
CONSTRAINT fk_typ FOREIGN KEY(typ_id) REFERENCES typen(id),
|
||||
CONSTRAINT fk_hersteller FOREIGN KEY (hersteller_id) REFERENCES hersteller(id)
|
||||
)
|
||||
Reference in New Issue
Block a user