Commit 0c9572df by karade

Update Andmebaasi deklaratsioon.sql

parent 31fc144c
Showing with 11 additions and 5 deletions
......@@ -33,11 +33,17 @@ CREATE TABLE `Bookings`(
FOREIGN KEY (flight_id) REFERENCES Flights(id)
);
CREATE TABLE `Profiles`(
`username` CHAR(255) NOT NULL,
`password` CHAR(255) NOT NULL,
`access_lvl` TINYINT NOT NULL
);
INSERT INTO flights(destination, time, flightNum, seats)
VALUES
("Helsinki", "09:50 05.Juuni 2023","EA7654", 72),
("Kuressaare", "14:40 02.Juuni 2023","EA8433", 72),
("Kardla", "17:00 08.Juuni 2023","EA5524", 72),
("Stockholm", "12:30 07.Juuni 2023","EA5245", 72),
("Riga", "22:00 12.Juuni 2023","EA9822", 72);
("Helsinki", "09:50 05.June 2023","EA7654", 72),
("Kuressaare", "14:40 02.June 2023","EA8433", 72),
("Kardla", "17:00 08.June 2023","EA5524", 72),
("Stockholm", "12:30 07.June 2023","EA5245", 72),
("Riga", "22:00 12.June 2023","EA9822", 72);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment