2020-07-23 11:45:59 +02:00
|
|
|
-- Your SQL
|
2020-07-24 21:43:05 +02:00
|
|
|
|
2020-07-26 11:36:54 +02:00
|
|
|
CREATE TABLE vertretungen
|
2020-07-24 21:43:05 +02:00
|
|
|
(
|
|
|
|
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)
|
2020-07-23 11:45:59 +02:00
|
|
|
);
|
2020-07-24 21:43:05 +02:00
|
|
|
|