Added user auth
This commit is contained in:
1
service/migrations/000000_airports/down.sql
Normal file
1
service/migrations/000000_airports/down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE airports;
|
||||
16
service/migrations/000000_airports/up.sql
Normal file
16
service/migrations/000000_airports/up.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
CREATE EXTENSION IF NOT EXISTS postgis;
|
||||
CREATE TABLE IF NOT EXISTS airports (
|
||||
icao TEXT PRIMARY KEY NOT NULL,
|
||||
id INTEGER GENERATED ALWAYS AS IDENTITY,
|
||||
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,
|
||||
point GEOMETRY(POINT,4326) NOT NULL
|
||||
);
|
||||
Reference in New Issue
Block a user