Skip to content

Commit cc96c6d

Browse files
author
Codeliner
committed
Add schema sql
1 parent 0266b7d commit cc96c6d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

scripts/cargo_sample.sql

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
--
2+
-- Datenbank: `cargo_sample`
3+
--
4+
5+
-- --------------------------------------------------------
6+
7+
--
8+
-- Tabellenstruktur für Tabelle `cargo`
9+
--
10+
11+
CREATE TABLE IF NOT EXISTS `cargo` (
12+
`tracking_id` varchar(13) NOT NULL,
13+
`size` int(11) NOT NULL,
14+
PRIMARY KEY (`tracking_id`)
15+
);
16+
17+
-- --------------------------------------------------------
18+
19+
--
20+
-- Tabellenstruktur für Tabelle `voyage`
21+
--
22+
23+
CREATE TABLE IF NOT EXISTS `voyage` (
24+
`voyage_number` varchar(30) NOT NULL,
25+
`name` varchar(100) NOT NULL,
26+
`capacity` int(11) NOT NULL,
27+
PRIMARY KEY (`voyage_number`)
28+
);

0 commit comments

Comments
 (0)