2024-06-03 15:41:00 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS modelle (
|
2024-11-29 10:35:10 +01:00
|
|
|
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
|
2024-05-31 00:32:51 +02:00
|
|
|
)
|