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
a323c32f
authored
Mar 05, 2023
by
karade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
9d26536d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
Andmebaasi deklaratsioon.txt
Andmebaasi deklaratsioon.txt
0 → 100644
View file @
a323c32f
CREATE TABLE `Flights`(
`destination` CHAR(255) NOT NULL,
`time` BIGINT NOT NULL,
`seats` INT NOT NULL,
primary key (destination)
);
CREATE TABLE `Bookings`(
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
`seat` INT NOT NULL,
`flightNum` CHAR(255) NOT NULL,
`bookingNumber` BIGINT NOT NULL,
`luggageClass` INT NULL COMMENT '1-With check-in
2-Oversized
3-Other',
`checkedIn` TINYINT(1) NOT NULL,
primary key (id)
);
CREATE TABLE `Users`(
`documentNum` BIGINT NOT NULL,
`firstName` CHAR(255) NULL,
`lastName` CHAR(255) NULL,
`dateOfBirth` CHAR(255) NULL,
`email` CHAR(255) NULL,
`residency` CHAR(255) NULL,
primary key (documentNum)
);
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