From 0546e2b18982e31c75e06872b9281eb81bdaa0f9 Mon Sep 17 00:00:00 2001 From: Chris-bot374 Date: Mon, 1 Jul 2024 13:25:29 +0200 Subject: [PATCH] Update script.sql added some promps --- script.sql | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/script.sql b/script.sql index c0a9f72..27c144d 100644 --- a/script.sql +++ b/script.sql @@ -51,4 +51,52 @@ CREATE TABLE krank ( ('10:00:00', '12:00:00'), ('12:00:00', '14:00:00'), ('14:00:00', '16:00:00'), - ('16:00:00', '18:00:00'); \ No newline at end of file + ('16:00:00', '18:00:00'); + + + CREATE TABLE Veranstalter_Veranstaltung_Uhrzeit ( + uhrzeit_ID INTEGER REFERENCES Uhrzeit(ID), + tag INTEGER NOT NULL, + veranstalter_ID INTEGER REFERNECES Veranstalter(ID), + veranstaltung_ID INTEGER REFERENCES Veranstaltung(ID), + PRIMARY KEY(uhrzeit_ID, tag) + ); + + + INSERT INTO Veranstalter (name, email, passwort, admin) VALUES + ('tech_guru', 'admin@example.com', 'password123', 1), +('code_master', 'user1@example.com', 'password1', 0), +('binary_hero', 'user2@example.com', 'password2', 0), +('debug_ninja', 'user3@example.com', 'password3', 0), +('data_wizard', 'user4@example.com', 'password4', 0), +('script_samurai', 'user5@example.com', 'password5', 0), +('dev_genius', 'user6@example.com', 'password6', 0), +('cyber_maven', 'user7@example.com', 'password7', 0), +('net_knight', 'user8@example.com', 'password8', 0), +('bit_boss', 'user9@example.com', 'password9', 0), +('sys_sensei', 'user10@example.com', 'password10', 0), +('crypto_champ', 'user11@example.com', 'password11', 0), +('cloud_conqueror', 'user12@example.com', 'password12', 0), +('hack_whiz', 'user13@example.com', 'password13', 0), +('matrix_mage', 'user14@example.com', 'password14', 0), +('app_artisan', 'user15@example.com', 'password15', 0), +('ai_architect', 'user16@example.com', 'password16', 0), +('tech_titan', 'user17@example.com', 'password17', 0), +('proto_pro', 'user18@example.com', 'password18', 0), +('alg_adept', 'user19@example.com', 'password19', 0), +('data_diver', 'user20@example.com', 'password20', 0), +('web_warrior', 'user21@example.com', 'password21', 0), +('os_overlord', 'user22@example.com', 'password22', 0), +('kernel_keeper', 'user23@example.com', 'password23', 0); + + INSERT INTO Veranstaltung (ort, raum, name, dauer) VALUES + ('A', '101', 'Grundlagen der Programmierung', 2), +('B', '202', 'Algorithmen und Datenstrukturen', 4), +('A', '103', 'Netzwerkgrundlagen', 2), +('B', '204', 'Betriebssystemkonzepte', 4), +('A', '105', 'Softwareentwicklung', 2), +('B', '206', 'Intelligente Systeme', 4), +('A', '107', 'Datenbanksysteme', 2), +('B', '208', 'Webtechnologien', 2), +('A', '109', 'Computergrafikgrundlagen', 2), +('B', '210', 'Maschinelles Lernen', 2);