Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
krmaet
/
Lennubroneerimis_tarkvara
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
98d956cc
authored
Mar 18, 2023
by
karade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Andmebaasi deklaratsioon.sql
parent
29be1da2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
Andmebaasi deklaratsioon.sql
Andmebaasi deklaratsioon.sql
View file @
98d956cc
...
...
@@ -2,6 +2,7 @@ CREATE TABLE `Flights`(
`id`
INT
NOT
NULL
AUTO_INCREMENT
,
`destination`
CHAR
(
255
)
NOT
NULL
,
`time`
CHAR
(
255
)
NOT
NULL
,
`flightNum`
CHAR
(
255
)
NOT
NULL
,
`seats`
INT
NOT
NULL
,
primary
key
(
id
)
);
...
...
@@ -24,7 +25,6 @@ CREATE TABLE `Users`(
);
CREATE
TABLE
`Bookings`
(
`id`
INT
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
`flightNum`
CHAR
(
255
)
NOT
NULL
,
`bookingNumber`
CHAR
(
255
)
NOT
NULL
,
`flight_id`
INT
NOT
NULL
,
`user_id`
INT
NOT
NULL
,
...
...
@@ -34,10 +34,10 @@ CREATE TABLE `Bookings`(
);
INSERT
INTO
flights
(
destination
,
time
,
seats
)
INSERT
INTO
flights
(
destination
,
time
,
flightNum
,
seats
)
VALUES
(
"Helsinki"
,
"050950JUN23"
,
72
),
(
"Kuressaare"
,
"021440JUN23"
,
72
),
(
"Kardla"
,
"081700JUN23"
,
72
),
(
"Stockholm"
,
"071230JUN23"
,
72
),
(
"Riga"
,
"122200JUN23"
,
72
);
\ No newline at end of file
(
"Helsinki"
,
"050950JUN23"
,
"EA7654"
,
72
),
(
"Kuressaare"
,
"021440JUN23"
,
"EA8433"
,
72
),
(
"Kardla"
,
"081700JUN23"
,
"EA5524"
,
72
),
(
"Stockholm"
,
"071230JUN23"
,
"EA5245"
,
72
),
(
"Riga"
,
"122200JUN23"
,
"EA9822"
,
72
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment