{
  "format": "sqlite",
  "from": {
    "cycle": "2611",
    "id": "procedures-conus"
  },
  "kind": "procedures",
  "pack_meta_keys": [
    "attribution",
    "cycle",
    "effective",
    "expires",
    "id",
    "kind",
    "license",
    "license_url",
    "schema_version"
  ],
  "packs": {
    "procedures-conus": {
      "builder": {
        "builder_refs": {
          "pyEfis": "980497e8d823bb3ff13dd6dc103b3c95b0370cac"
        },
        "commit": "6b3d2e542d3588bd09379657d8ce1caf36b73f3b",
        "makerplane_data_commit": "6b3d2e542d3588bd09379657d8ce1caf36b73f3b",
        "repo": "makerplane-data",
        "tool": "packtools/build/procedures.py"
      },
      "container": "sqlite",
      "indexes": {
        "idx_awy_ident": {
          "columns": [
            "ident"
          ],
          "sql": "CREATE UNIQUE INDEX idx_awy_ident ON airways(ident)",
          "table": "airways",
          "unique": true
        },
        "idx_awyleg_awy": {
          "columns": [
            "airway_id",
            "seq"
          ],
          "sql": "CREATE INDEX idx_awyleg_awy ON airway_legs(airway_id, seq)",
          "table": "airway_legs",
          "unique": false
        },
        "idx_awyleg_fix": {
          "columns": [
            "fix_id"
          ],
          "sql": "CREATE INDEX idx_awyleg_fix ON airway_legs(fix_id)",
          "table": "airway_legs",
          "unique": false
        },
        "idx_legs_trans": {
          "columns": [
            "transition_id",
            "seq"
          ],
          "sql": "CREATE INDEX idx_legs_trans ON legs(transition_id, seq)",
          "table": "legs",
          "unique": false
        },
        "idx_proc_airport": {
          "columns": [
            "airport",
            "kind"
          ],
          "sql": "CREATE INDEX idx_proc_airport ON procedures(airport, kind)",
          "table": "procedures",
          "unique": false
        },
        "idx_trans_proc": {
          "columns": [
            "proc_id"
          ],
          "sql": "CREATE INDEX idx_trans_proc ON transitions(proc_id)",
          "table": "transitions",
          "unique": false
        }
      },
      "pack": {
        "cycle": "2612",
        "id": "procedures-conus",
        "kind": "procedures",
        "schema_version": "1"
      },
      "pack_meta_keys": [
        "attribution",
        "cycle",
        "effective",
        "expires",
        "id",
        "kind",
        "license",
        "license_url",
        "schema_version"
      ],
      "rtrees": {},
      "schema": "pack-schema/1",
      "source": "bootstrap: read from the published pack",
      "tables": {
        "airway_legs": {
          "columns": [
            {
              "default": null,
              "name": "airway_id",
              "notnull": true,
              "pk": 0,
              "type": "INTEGER"
            },
            {
              "default": null,
              "name": "seq",
              "notnull": true,
              "pk": 0,
              "type": "INTEGER"
            },
            {
              "default": null,
              "name": "fix_id",
              "notnull": true,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "fix_lat",
              "notnull": false,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "fix_lon",
              "notnull": false,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "fix_type",
              "notnull": false,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "min_alt_ft",
              "notnull": false,
              "pk": 0,
              "type": "INTEGER"
            },
            {
              "default": null,
              "name": "max_alt_ft",
              "notnull": false,
              "pk": 0,
              "type": "INTEGER"
            },
            {
              "default": null,
              "name": "direction",
              "notnull": false,
              "pk": 0,
              "type": "TEXT"
            }
          ],
          "sql": "CREATE TABLE airway_legs (\n    airway_id   INTEGER NOT NULL REFERENCES airways(id),\n    seq         INTEGER NOT NULL,\n    fix_id      TEXT NOT NULL,\n    fix_lat     REAL,\n    fix_lon     REAL,\n    fix_type    TEXT,\n    min_alt_ft  INTEGER,\n    max_alt_ft  INTEGER,\n    direction   TEXT\n)"
        },
        "airways": {
          "columns": [
            {
              "default": null,
              "name": "id",
              "notnull": false,
              "pk": 1,
              "type": "INTEGER"
            },
            {
              "default": null,
              "name": "ident",
              "notnull": true,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "cycle",
              "notnull": true,
              "pk": 0,
              "type": "TEXT"
            }
          ],
          "sql": "CREATE TABLE airways (\n    id      INTEGER PRIMARY KEY,\n    ident   TEXT NOT NULL,\n    cycle   TEXT NOT NULL\n)"
        },
        "legs": {
          "columns": [
            {
              "default": null,
              "name": "transition_id",
              "notnull": true,
              "pk": 0,
              "type": "INTEGER"
            },
            {
              "default": null,
              "name": "seq",
              "notnull": true,
              "pk": 0,
              "type": "INTEGER"
            },
            {
              "default": null,
              "name": "path_term",
              "notnull": true,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "fix_id",
              "notnull": false,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "fix_lat",
              "notnull": false,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "fix_lon",
              "notnull": false,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "fix_type",
              "notnull": false,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "recd_navaid",
              "notnull": false,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "theta",
              "notnull": false,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "rho",
              "notnull": false,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "course",
              "notnull": false,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "dist_nm",
              "notnull": false,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "time_min",
              "notnull": false,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "alt_desc",
              "notnull": false,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "alt1_ft",
              "notnull": false,
              "pk": 0,
              "type": "INTEGER"
            },
            {
              "default": null,
              "name": "alt2_ft",
              "notnull": false,
              "pk": 0,
              "type": "INTEGER"
            },
            {
              "default": null,
              "name": "speed_kt",
              "notnull": false,
              "pk": 0,
              "type": "INTEGER"
            },
            {
              "default": null,
              "name": "turn_dir",
              "notnull": false,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "rnp",
              "notnull": false,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "flags",
              "notnull": true,
              "pk": 0,
              "type": "INTEGER"
            },
            {
              "comment": "RF (radius-to-fix) arc centre; NULL for every other leg type",
              "default": null,
              "name": "centre_fix",
              "notnull": false,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "centre_lat",
              "notnull": false,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "centre_lon",
              "notnull": false,
              "pk": 0,
              "type": "REAL"
            },
            {
              "comment": "derived: great_circle(centre, fix); convenience for the renderer",
              "default": null,
              "name": "arc_radius_nm",
              "notnull": false,
              "pk": 0,
              "type": "REAL"
            }
          ],
          "sql": "CREATE TABLE legs (\n    transition_id   INTEGER NOT NULL REFERENCES transitions(id),\n    seq             INTEGER NOT NULL,\n    path_term       TEXT NOT NULL,\n    fix_id          TEXT,\n    fix_lat         REAL,\n    fix_lon         REAL,\n    fix_type        TEXT,\n    recd_navaid     TEXT,\n    theta           REAL,\n    rho             REAL,\n    course          REAL,\n    dist_nm         REAL,\n    time_min        REAL,\n    alt_desc        TEXT,\n    alt1_ft         INTEGER,\n    alt2_ft         INTEGER,\n    speed_kt        INTEGER,\n    turn_dir        TEXT,\n    rnp             REAL,\n    flags           INTEGER NOT NULL,\n    centre_fix      TEXT,       -- RF (radius-to-fix) arc centre; NULL for every other leg type\n    centre_lat      REAL,\n    centre_lon      REAL,\n    arc_radius_nm   REAL        -- derived: great_circle(centre, fix); convenience for the renderer\n)"
        },
        "pack_meta": {
          "columns": [
            {
              "default": null,
              "name": "key",
              "notnull": false,
              "pk": 1,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "value",
              "notnull": false,
              "pk": 0,
              "type": "TEXT"
            }
          ],
          "sql": "CREATE TABLE pack_meta (key TEXT PRIMARY KEY, value TEXT)"
        },
        "procedures": {
          "columns": [
            {
              "default": null,
              "name": "id",
              "notnull": false,
              "pk": 1,
              "type": "INTEGER"
            },
            {
              "default": null,
              "name": "airport",
              "notnull": true,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "comment": "sid | star | approach",
              "default": null,
              "name": "kind",
              "notnull": true,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "ident",
              "notnull": true,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "runway",
              "notnull": false,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "approach_type",
              "notnull": false,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "rnp",
              "notnull": false,
              "pk": 0,
              "type": "REAL"
            },
            {
              "default": null,
              "name": "cycle",
              "notnull": true,
              "pk": 0,
              "type": "TEXT"
            }
          ],
          "sql": "CREATE TABLE procedures (\n    id              INTEGER PRIMARY KEY,\n    airport         TEXT NOT NULL,\n    kind            TEXT NOT NULL,   -- sid | star | approach\n    ident           TEXT NOT NULL,\n    runway          TEXT,\n    approach_type   TEXT,\n    rnp             REAL,\n    cycle           TEXT NOT NULL\n)"
        },
        "transitions": {
          "columns": [
            {
              "default": null,
              "name": "id",
              "notnull": false,
              "pk": 1,
              "type": "INTEGER"
            },
            {
              "default": null,
              "name": "proc_id",
              "notnull": true,
              "pk": 0,
              "type": "INTEGER"
            },
            {
              "comment": "enroute | runway | common",
              "default": null,
              "name": "role",
              "notnull": true,
              "pk": 0,
              "type": "TEXT"
            },
            {
              "default": null,
              "name": "ident",
              "notnull": false,
              "pk": 0,
              "type": "TEXT"
            }
          ],
          "sql": "CREATE TABLE transitions (\n    id          INTEGER PRIMARY KEY,\n    proc_id     INTEGER NOT NULL REFERENCES procedures(id),\n    role        TEXT NOT NULL,        -- enroute | runway | common\n    ident       TEXT\n)"
        }
      }
    }
  },
  "schema": "pack-schema/1",
  "schema_version": "1",
  "tables": [
    {
      "columns": [
        {
          "default": null,
          "name": "airway_id",
          "notnull": true,
          "pk": 0,
          "type": "INTEGER"
        },
        {
          "default": null,
          "name": "seq",
          "notnull": true,
          "pk": 0,
          "type": "INTEGER"
        },
        {
          "default": null,
          "name": "fix_id",
          "notnull": true,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "fix_lat",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "fix_lon",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "fix_type",
          "notnull": false,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "min_alt_ft",
          "notnull": false,
          "pk": 0,
          "type": "INTEGER"
        },
        {
          "default": null,
          "name": "max_alt_ft",
          "notnull": false,
          "pk": 0,
          "type": "INTEGER"
        },
        {
          "default": null,
          "name": "direction",
          "notnull": false,
          "pk": 0,
          "type": "TEXT"
        }
      ],
      "indexes": [
        {
          "name": "idx_awyleg_awy",
          "sql": "CREATE INDEX idx_awyleg_awy ON airway_legs(airway_id, seq)",
          "unique": false
        },
        {
          "name": "idx_awyleg_fix",
          "sql": "CREATE INDEX idx_awyleg_fix ON airway_legs(fix_id)",
          "unique": false
        }
      ],
      "name": "airway_legs",
      "sql": "CREATE TABLE airway_legs (\n    airway_id   INTEGER NOT NULL REFERENCES airways(id),\n    seq         INTEGER NOT NULL,\n    fix_id      TEXT NOT NULL,\n    fix_lat     REAL,\n    fix_lon     REAL,\n    fix_type    TEXT,\n    min_alt_ft  INTEGER,\n    max_alt_ft  INTEGER,\n    direction   TEXT\n)",
      "virtual": false
    },
    {
      "columns": [
        {
          "default": null,
          "name": "id",
          "notnull": false,
          "pk": 1,
          "type": "INTEGER"
        },
        {
          "default": null,
          "name": "ident",
          "notnull": true,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "cycle",
          "notnull": true,
          "pk": 0,
          "type": "TEXT"
        }
      ],
      "indexes": [
        {
          "name": "idx_awy_ident",
          "sql": "CREATE UNIQUE INDEX idx_awy_ident ON airways(ident)",
          "unique": true
        }
      ],
      "name": "airways",
      "sql": "CREATE TABLE airways (\n    id      INTEGER PRIMARY KEY,\n    ident   TEXT NOT NULL,\n    cycle   TEXT NOT NULL\n)",
      "virtual": false
    },
    {
      "columns": [
        {
          "default": null,
          "name": "transition_id",
          "notnull": true,
          "pk": 0,
          "type": "INTEGER"
        },
        {
          "default": null,
          "name": "seq",
          "notnull": true,
          "pk": 0,
          "type": "INTEGER"
        },
        {
          "default": null,
          "name": "path_term",
          "notnull": true,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "fix_id",
          "notnull": false,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "fix_lat",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "fix_lon",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "fix_type",
          "notnull": false,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "recd_navaid",
          "notnull": false,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "theta",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "rho",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "course",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "dist_nm",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "time_min",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "alt_desc",
          "notnull": false,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "alt1_ft",
          "notnull": false,
          "pk": 0,
          "type": "INTEGER"
        },
        {
          "default": null,
          "name": "alt2_ft",
          "notnull": false,
          "pk": 0,
          "type": "INTEGER"
        },
        {
          "default": null,
          "name": "speed_kt",
          "notnull": false,
          "pk": 0,
          "type": "INTEGER"
        },
        {
          "default": null,
          "name": "turn_dir",
          "notnull": false,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "rnp",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "flags",
          "notnull": true,
          "pk": 0,
          "type": "INTEGER"
        },
        {
          "default": null,
          "name": "centre_fix",
          "notnull": false,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "centre_lat",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "centre_lon",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "arc_radius_nm",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        }
      ],
      "indexes": [
        {
          "name": "idx_legs_trans",
          "sql": "CREATE INDEX idx_legs_trans ON legs(transition_id, seq)",
          "unique": false
        }
      ],
      "name": "legs",
      "sql": "CREATE TABLE legs (\n    transition_id   INTEGER NOT NULL REFERENCES transitions(id),\n    seq             INTEGER NOT NULL,\n    path_term       TEXT NOT NULL,\n    fix_id          TEXT,\n    fix_lat         REAL,\n    fix_lon         REAL,\n    fix_type        TEXT,\n    recd_navaid     TEXT,\n    theta           REAL,\n    rho             REAL,\n    course          REAL,\n    dist_nm         REAL,\n    time_min        REAL,\n    alt_desc        TEXT,\n    alt1_ft         INTEGER,\n    alt2_ft         INTEGER,\n    speed_kt        INTEGER,\n    turn_dir        TEXT,\n    rnp             REAL,\n    flags           INTEGER NOT NULL,\n    centre_fix      TEXT,       -- RF (radius-to-fix) arc centre; NULL for every other leg type\n    centre_lat      REAL,\n    centre_lon      REAL,\n    arc_radius_nm   REAL        -- derived: great_circle(centre, fix); convenience for the renderer\n)",
      "virtual": false
    },
    {
      "columns": [
        {
          "default": null,
          "name": "key",
          "notnull": false,
          "pk": 1,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "value",
          "notnull": false,
          "pk": 0,
          "type": "TEXT"
        }
      ],
      "indexes": [
        {
          "name": "sqlite_autoindex_pack_meta_1",
          "sql": null,
          "unique": false
        }
      ],
      "name": "pack_meta",
      "sql": "CREATE TABLE pack_meta (key TEXT PRIMARY KEY, value TEXT)",
      "virtual": false
    },
    {
      "columns": [
        {
          "default": null,
          "name": "id",
          "notnull": false,
          "pk": 1,
          "type": "INTEGER"
        },
        {
          "default": null,
          "name": "airport",
          "notnull": true,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "kind",
          "notnull": true,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "ident",
          "notnull": true,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "runway",
          "notnull": false,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "approach_type",
          "notnull": false,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "rnp",
          "notnull": false,
          "pk": 0,
          "type": "REAL"
        },
        {
          "default": null,
          "name": "cycle",
          "notnull": true,
          "pk": 0,
          "type": "TEXT"
        }
      ],
      "indexes": [
        {
          "name": "idx_proc_airport",
          "sql": "CREATE INDEX idx_proc_airport ON procedures(airport, kind)",
          "unique": false
        }
      ],
      "name": "procedures",
      "sql": "CREATE TABLE procedures (\n    id              INTEGER PRIMARY KEY,\n    airport         TEXT NOT NULL,\n    kind            TEXT NOT NULL,   -- sid | star | approach\n    ident           TEXT NOT NULL,\n    runway          TEXT,\n    approach_type   TEXT,\n    rnp             REAL,\n    cycle           TEXT NOT NULL\n)",
      "virtual": false
    },
    {
      "columns": [
        {
          "default": null,
          "name": "id",
          "notnull": false,
          "pk": 1,
          "type": "INTEGER"
        },
        {
          "default": null,
          "name": "proc_id",
          "notnull": true,
          "pk": 0,
          "type": "INTEGER"
        },
        {
          "default": null,
          "name": "role",
          "notnull": true,
          "pk": 0,
          "type": "TEXT"
        },
        {
          "default": null,
          "name": "ident",
          "notnull": false,
          "pk": 0,
          "type": "TEXT"
        }
      ],
      "indexes": [
        {
          "name": "idx_trans_proc",
          "sql": "CREATE INDEX idx_trans_proc ON transitions(proc_id)",
          "unique": false
        }
      ],
      "name": "transitions",
      "sql": "CREATE TABLE transitions (\n    id          INTEGER PRIMARY KEY,\n    proc_id     INTEGER NOT NULL REFERENCES procedures(id),\n    role        TEXT NOT NULL,        -- enroute | runway | common\n    ident       TEXT\n)",
      "virtual": false
    }
  ]
}
