Implemented default airports, fixed loading airport endpoints

This commit is contained in:
2023-09-09 21:54:44 -04:00
parent 17b76ade1f
commit c9699c16c3
19 changed files with 1138496 additions and 84 deletions

View File

@@ -1,7 +1,16 @@
CREATE TABLE IF NOT EXISTS airports (
id SERIAL PRIMARY KEY,
full_name TEXT NOT NULL,
id INTEGER PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
icao TEXT NOT NULL,
category TEXT NOT NULL,
full_name TEXT NOT NULL,
elevation_ft INTEGER,
continent TEXT NOT NULL,
iso_country TEXT NOT NULL,
iso_region TEXT NOT NULL,
municipality TEXT NOT NULL,
gps_code TEXT NOT NULL,
iata_code TEXT NOT NULL,
local_code TEXT NOT NULL,
latitude DOUBLE PRECISION NOT NULL,
longitude DOUBLE PRECISION NOT NULL
)