Commit f06e0dbc by karade

Update Andmebaasi deklaratsioon.sql

parent 543097a4
Showing with 5 additions and 0 deletions
...@@ -24,3 +24,7 @@ CREATE TABLE `Users`( ...@@ -24,3 +24,7 @@ CREATE TABLE `Users`(
`residency` CHAR(255) NULL, `residency` CHAR(255) NULL,
primary key (documentNum) primary key (documentNum)
); );
ALTER TABLE
`Bookings` ADD CONSTRAINT `bookings_flightnum_foreign` FOREIGN KEY(`flightNum`) REFERENCES `Flights`(`destination`);
ALTER TABLE
`Bookings` ADD CONSTRAINT `bookings_bookingnumber_foreign` FOREIGN KEY(`bookingNumber`) REFERENCES `Users`(`documentNum`);
\ 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