-- Import airports data from CSV
LOAD DATA INFILE '/var/lib/mysql-files/airports_data.csv' 
INTO TABLE airports 
FIELDS TERMINATED BY ',' 
OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
(icao, iata, name, country);

-- Import aircraft data from CSV  
LOAD DATA INFILE '/var/lib/mysql-files/aircraft_data.csv'
INTO TABLE aircraft
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
(icao24, registration, manufacturer_icao, type_code, manufacturer_name, model);