Commit 1db0bfd9 by karade

Update Andmebaasi deklaratsioon.sql

parent ef4d6829
Showing with 10 additions and 0 deletions
...@@ -31,3 +31,12 @@ ALTER TABLE ...@@ -31,3 +31,12 @@ ALTER TABLE
`Bookings` ADD CONSTRAINT `bookings_flightnum_foreign` FOREIGN KEY(`flightNum`) REFERENCES `Flights`(`destination`); `Bookings` ADD CONSTRAINT `bookings_flightnum_foreign` FOREIGN KEY(`flightNum`) REFERENCES `Flights`(`destination`);
ALTER TABLE ALTER TABLE
`Bookings` ADD CONSTRAINT `bookings_bookingnumber_foreign` FOREIGN KEY(`bookingNumber`) REFERENCES `Users`(`documentNum`); `Bookings` ADD CONSTRAINT `bookings_bookingnumber_foreign` FOREIGN KEY(`bookingNumber`) REFERENCES `Users`(`documentNum`);
INSERT INTO flights(destination, time, seats)
VALUES
("Helsinki", "050950JUN23", 72),
("Kuressaare", "021440JUN23", 72),
("Kärdla", "081700JUN23", 72),
("Stockholm", "071230JUN23", 72),
("Riga", "122200JUN23", 72);
\ No newline at end of file
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