17 lines
394 B
SQL
17 lines
394 B
SQL
CREATE TABLE IF NOT EXISTS modelle (
|
|
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
|
|
)
|