15 lines
333 B
SQL
15 lines
333 B
SQL
-- Your SQL
|
|
|
|
CREATE TABLE vertretungen
|
|
(
|
|
id Integer PRIMARY KEY NOT NULL,
|
|
klassen_id Integer NOT NULL,
|
|
stunden_id Integer NOT NULL,
|
|
fehlend Text NOT NULL,
|
|
vertretung Text NOT NULL,
|
|
kommentar Text NOT NULL,
|
|
FOREIGN KEY(klasse_id) REFERENCES klasse(id),
|
|
FOREIGN KEY(stunde_id) REFERENCES stunde(id)
|
|
);
|
|
|