// 数据来源：OpenSky Aircraft Database。字段较完整的 ICAO24 飞机静态库。
// 链接：https://opensky-network.org/datasets/metadata/aircraftDatabase.csv
// 官方更新要求：下载页未声明固定更新频率。本地告警策略：超过 7 天提示检查。

#include "Resource_Utils.h"

std::unique_ptr<External_Resources> make_opensky_aircraft_database_resource() {
    return External_Database_Utils::make_header_csv_resource({
        "opensky_aircraft_database",
        "aircraftDatabase.csv",
        "https://opensky-network.org/datasets/metadata/aircraftDatabase.csv",
        "OpenSky Network 飞机元数据 CSV，包含制造商、型号、注册号和运营方等字段。",
        604800,
        {
            "icao24", "registration", "manufacturericao", "manufacturername", "model",
            "typecode", "serialnumber", "linenumber", "icaoaircrafttype", "operator",
            "operatorcallsign", "operatoricao", "operatoriata", "owner", "testreg",
            "registered", "reguntil", "status", "built", "firstflightdate",
            "seatconfiguration", "engines", "modes", "adsb", "acars", "notes",
            "categoryDescription"
        },
        {"icao24"}
    });
}
