Die Tabellen Benutzer, Rollen und Gruppen hinzugefügt

This commit is contained in:
Peter Schiwy
2024-11-29 10:35:10 +01:00
parent a290bcceb3
commit fdc57ab13a
48 changed files with 771 additions and 267 deletions

View File

@@ -1,9 +1,16 @@
-- Add up migration script here
CREATE TABLE IF NOT EXISTS 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) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT fk_hersteller FOREIGN KEY (hersteller_id) REFERENCES hersteller(id) ON DELETE NO ACTION ON UPDATE NO ACTION
id UUID PRIMARY KEY,
modellname VARCHAR NOT NULL,
typ_id UUID,
hersteller_id UUID,
CONSTRAINT fk_typ FOREIGN KEY (typ_id)
REFERENCES typen (id)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT fk_hersteller FOREIGN KEY (hersteller_id)
REFERENCES hersteller (id)
ON DELETE NO ACTION
ON UPDATE NO ACTION
)