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
0c9572df
authored
Mar 19, 2023
by
karade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Andmebaasi deklaratsioon.sql
parent
31fc144c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
Andmebaasi deklaratsioon.sql
Andmebaasi deklaratsioon.sql
View file @
0c9572df
...
...
@@ -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.Ju
uni
2023"
,
"EA7654"
,
72
),
(
"Kuressaare"
,
"14:40 02.Ju
uni
2023"
,
"EA8433"
,
72
),
(
"Kardla"
,
"17:00 08.Ju
uni
2023"
,
"EA5524"
,
72
),
(
"Stockholm"
,
"12:30 07.Ju
uni
2023"
,
"EA5245"
,
72
),
(
"Riga"
,
"22:00 12.Ju
uni
2023"
,
"EA9822"
,
72
);
(
"Helsinki"
,
"09:50 05.Ju
ne
2023"
,
"EA7654"
,
72
),
(
"Kuressaare"
,
"14:40 02.Ju
ne
2023"
,
"EA8433"
,
72
),
(
"Kardla"
,
"17:00 08.Ju
ne
2023"
,
"EA5524"
,
72
),
(
"Stockholm"
,
"12:30 07.Ju
ne
2023"
,
"EA5245"
,
72
),
(
"Riga"
,
"22:00 12.Ju
ne
2023"
,
"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