-
Notifications
You must be signed in to change notification settings - Fork 2
/
aircraft_schema
69 lines (64 loc) · 1.68 KB
/
aircraft_schema
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
CREATE TABLE flight_trajectory (
timestamp VARCHAR(255),
altitude DECIMAL,
callsign VARCHAR(255),
flight_id VARCHAR(255),
groundspeed DECIMAL,
icao24 VARCHAR(255),
latitude DECIMAL,
longitude DECIMAL,
squawk DECIMAL,
track DECIMAL,
vertical_rate DECIMAL,
PRIMARY KEY(timestamp, flight_id)
)
CREATE TABLE flight_summary (
flight_id VARCHAR(255),
callsign VARCHAR(255),
number VARCHAR(255),
icao24 VARCHAR(255),
registration VARCHAR(255),
typecode VARCHAR(255),
origin VARCHAR(255),
landing VARCHAR(255),
destination VARCHAR(255),
diverted VARCHAR(255),
tweet_problem VARCHAR(255),
tweet_result VARCHAR(255),
tweet_fueldump VARCHAR(255),
avh_id VARCHAR(255),
avh_problem VARCHAR(255),
avh_result VARCHAR(255),
avh_fueldump VARCHAR(255),
PRIMARY KEY(flight_id)
)
CREATE TABLE aircraft_metadata (
icao24 VARCHAR(255),
registration VARCHAR(255),
manufacturericao VARCHAR(255),
manufacturername VARCHAR(255),
model VARCHAR(255),
typecode VARCHAR(255),
serialnumber VARCHAR(255),
linenumber VARCHAR(255),
icaoaircrafttype VARCHAR(255),
operator VARCHAR(255),
operatorcallsign VARCHAR(255),
operatoricao VARCHAR(255),
operatoriata VARCHAR(255),
owner VARCHAR(255),
testreg VARCHAR(255),
registered VARCHAR(255),
reguntil VARCHAR(255),
status VARCHAR(255),
built VARCHAR(255),
firstflightdate VARCHAR(255),
seatconfiguration VARCHAR(255),
engines VARCHAR(255),
modes VARCHAR(255),
adsb VARCHAR(255),
acars VARCHAR(255),
notes VARCHAR(255),
categoryDescription VARCHAR(255),
PRIMARY KEY(icao24)
)