diff --git a/galos_db/sqlx-data.json b/galos_db/sqlx-data.json index 704effa..95c8c85 100644 --- a/galos_db/sqlx-data.json +++ b/galos_db/sqlx-data.json @@ -1,4915 +1,3 @@ { - "db": "PostgreSQL", - "006822f6cda8ace1cc25308f109a9de5cec67f3f6b9f6b277143a465f4b5f3a6": { - "describe": { - "columns": [ - { - "name": "system_address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "ty: StationType", - "ordinal": 2, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "AsteroidBase", - "Coriolis", - "CraterOutpost", - "CraterPort", - "FleetCarrier", - "MegaShip", - "Ocellus", - "Orbis", - "Outpost" - ] - }, - "name": "stationtype" - } - } - }, - { - "name": "dist_from_star_ls", - "ordinal": 3, - "type_info": "Float8" - }, - { - "name": "market_id", - "ordinal": 4, - "type_info": "Int8" - }, - { - "name": "landing_pads: LandingPads", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Composite": [ - [ - "large", - "Int2" - ], - [ - "medium", - "Int2" - ], - [ - "small", - "Int2" - ] - ] - }, - "name": "landingpads" - } - } - }, - { - "name": "faction", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "government: Government", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Anarchy", - "Carrier", - "Communism", - "Confederacy", - "Cooperative", - "Corporate", - "Democracy", - "Dictatorship", - "Engineer", - "Feudal", - "Patronage", - "Prison", - "PrisonColony", - "Theocracy" - ] - }, - "name": "government" - } - } - }, - { - "name": "allegiance: Allegiance", - "ordinal": 8, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Alliance", - "Empire", - "Federation", - "Guardian", - "Independent", - "PilotsFederation", - "PlayerPilots", - "Thargoid" - ] - }, - "name": "allegiance" - } - } - }, - { - "name": "services: Vec", - "ordinal": 9, - "type_info": { - "Custom": { - "kind": { - "Array": { - "Custom": { - "kind": { - "Enum": [ - "Autodock", - "Blackmarket", - "CarrierFuel", - "CarrierManagement", - "Commodities", - "Contacts", - "CrewLounge", - "Dock", - "Engineer", - "Exploration", - "Facilitator", - "FlightController", - "Initiatives", - "MaterialTrader", - "Missions", - "MissionsGenerated", - "Modulepacks", - "Outfitting", - "Powerplay", - "Rearm", - "Refuel", - "Repair", - "SearchRescue", - "Shipyard", - "Shop", - "StationMenu", - "StationOperations", - "TechBroker", - "Tuning", - "VoucherRedemption", - "Livery", - "SocialSpace", - "Bartender", - "VistaGenomics", - "PioneerSupplies", - "ApexInterstellar", - "FrontlineSolutions" - ] - }, - "name": "service" - } - } - }, - "name": "_service" - } - } - }, - { - "name": "economies: Vec", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Array": { - "Custom": { - "kind": { - "Composite": [ - [ - "name", - { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - ], - [ - "proportion", - "Float8" - ] - ] - }, - "name": "economyshare" - } - } - }, - "name": "_economyshare" - } - } - }, - { - "name": "updated_at", - "ordinal": 11, - "type_info": "Timestamp" - }, - { - "name": "updated_by", - "ordinal": 12, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false - ], - "parameters": { - "Left": [ - "Int8", - "Varchar", - { - "Custom": { - "kind": { - "Enum": [ - "AsteroidBase", - "Coriolis", - "CraterOutpost", - "CraterPort", - "FleetCarrier", - "MegaShip", - "Ocellus", - "Orbis", - "Outpost" - ] - }, - "name": "stationtype" - } - }, - "Float8", - "Int8", - { - "Custom": { - "kind": { - "Composite": [ - [ - "large", - "Int2" - ], - [ - "medium", - "Int2" - ], - [ - "small", - "Int2" - ] - ] - }, - "name": "landingpads" - } - }, - "Varchar", - { - "Custom": { - "kind": { - "Enum": [ - "Anarchy", - "Carrier", - "Communism", - "Confederacy", - "Cooperative", - "Corporate", - "Democracy", - "Dictatorship", - "Engineer", - "Feudal", - "Patronage", - "Prison", - "PrisonColony", - "Theocracy" - ] - }, - "name": "government" - } - }, - { - "Custom": { - "kind": { - "Enum": [ - "Alliance", - "Empire", - "Federation", - "Guardian", - "Independent", - "PilotsFederation", - "PlayerPilots", - "Thargoid" - ] - }, - "name": "allegiance" - } - }, - { - "Custom": { - "kind": { - "Array": { - "Custom": { - "kind": { - "Enum": [ - "Autodock", - "Blackmarket", - "CarrierFuel", - "CarrierManagement", - "Commodities", - "Contacts", - "CrewLounge", - "Dock", - "Engineer", - "Exploration", - "Facilitator", - "FlightController", - "Initiatives", - "MaterialTrader", - "Missions", - "MissionsGenerated", - "Modulepacks", - "Outfitting", - "Powerplay", - "Rearm", - "Refuel", - "Repair", - "SearchRescue", - "Shipyard", - "Shop", - "StationMenu", - "StationOperations", - "TechBroker", - "Tuning", - "VoucherRedemption", - "Livery", - "SocialSpace", - "Bartender", - "VistaGenomics", - "PioneerSupplies", - "ApexInterstellar", - "FrontlineSolutions" - ] - }, - "name": "service" - } - } - }, - "name": "_service" - } - }, - { - "Custom": { - "kind": { - "Array": { - "Custom": { - "kind": { - "Composite": [ - [ - "name", - { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - ], - [ - "proportion", - "Float8" - ] - ] - }, - "name": "economyshare" - } - } - }, - "name": "_economyshare" - } - }, - "Timestamp", - "Varchar" - ] - } - }, - "query": "\n INSERT INTO stations (\n system_address,\n name,\n ty,\n dist_from_star_ls,\n market_id,\n landing_pads,\n faction,\n government,\n allegiance,\n services,\n economies,\n updated_at,\n updated_by)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13)\n ON CONFLICT (system_address, name)\n DO UPDATE SET\n ty = $3,\n dist_from_star_ls = $4,\n market_id = $5,\n landing_pads = $6,\n faction = $7,\n government = $8,\n allegiance = $9,\n services = $10,\n economies = $11,\n updated_at = $12,\n updated_by = $13\n RETURNING\n system_address,\n name,\n ty as \"ty: StationType\",\n dist_from_star_ls,\n market_id,\n landing_pads as \"landing_pads: LandingPads\",\n faction,\n government as \"government: Government\",\n allegiance as \"allegiance: Allegiance\",\n services as \"services: Vec\",\n economies as \"economies: Vec\",\n updated_at,\n updated_by\n " - }, - "0afbc0eb0bf992c1bc02dd9c5f317f09a839a9f468c591a03356cee2175a30b5": { - "describe": { - "columns": [ - { - "name": "system_address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "ty: StationType", - "ordinal": 2, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "AsteroidBase", - "Coriolis", - "CraterOutpost", - "CraterPort", - "FleetCarrier", - "MegaShip", - "Ocellus", - "Orbis", - "Outpost" - ] - }, - "name": "stationtype" - } - } - }, - { - "name": "dist_from_star_ls", - "ordinal": 3, - "type_info": "Float8" - }, - { - "name": "market_id", - "ordinal": 4, - "type_info": "Int8" - }, - { - "name": "landing_pads: LandingPads", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Composite": [ - [ - "large", - "Int2" - ], - [ - "medium", - "Int2" - ], - [ - "small", - "Int2" - ] - ] - }, - "name": "landingpads" - } - } - }, - { - "name": "faction", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "government: Government", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Anarchy", - "Carrier", - "Communism", - "Confederacy", - "Cooperative", - "Corporate", - "Democracy", - "Dictatorship", - "Engineer", - "Feudal", - "Patronage", - "Prison", - "PrisonColony", - "Theocracy" - ] - }, - "name": "government" - } - } - }, - { - "name": "allegiance: Allegiance", - "ordinal": 8, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Alliance", - "Empire", - "Federation", - "Guardian", - "Independent", - "PilotsFederation", - "PlayerPilots", - "Thargoid" - ] - }, - "name": "allegiance" - } - } - }, - { - "name": "services: Vec", - "ordinal": 9, - "type_info": { - "Custom": { - "kind": { - "Array": { - "Custom": { - "kind": { - "Enum": [ - "Autodock", - "Blackmarket", - "CarrierFuel", - "CarrierManagement", - "Commodities", - "Contacts", - "CrewLounge", - "Dock", - "Engineer", - "Exploration", - "Facilitator", - "FlightController", - "Initiatives", - "MaterialTrader", - "Missions", - "MissionsGenerated", - "Modulepacks", - "Outfitting", - "Powerplay", - "Rearm", - "Refuel", - "Repair", - "SearchRescue", - "Shipyard", - "Shop", - "StationMenu", - "StationOperations", - "TechBroker", - "Tuning", - "VoucherRedemption", - "Livery", - "SocialSpace", - "Bartender", - "VistaGenomics", - "PioneerSupplies", - "ApexInterstellar", - "FrontlineSolutions" - ] - }, - "name": "service" - } - } - }, - "name": "_service" - } - } - }, - { - "name": "economies: Vec", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Array": { - "Custom": { - "kind": { - "Composite": [ - [ - "name", - { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - ], - [ - "proportion", - "Float8" - ] - ] - }, - "name": "economyshare" - } - } - }, - "name": "_economyshare" - } - } - }, - { - "name": "updated_at", - "ordinal": 11, - "type_info": "Timestamp" - }, - { - "name": "updated_by", - "ordinal": 12, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false - ], - "parameters": { - "Left": [ - "Int8" - ] - } - }, - "query": "\n SELECT\n system_address,\n name,\n ty as \"ty: StationType\",\n dist_from_star_ls,\n market_id,\n landing_pads as \"landing_pads: LandingPads\",\n faction,\n government as \"government: Government\",\n allegiance as \"allegiance: Allegiance\",\n services as \"services: Vec\",\n economies as \"economies: Vec\",\n updated_at,\n updated_by\n FROM stations\n WHERE system_address = $1\n " - }, - "13e7d9da55278048a486e755a4a57791b2d5747a41377c65539a7390a80d1282": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int4" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false - ], - "parameters": { - "Left": [ - "Int4" - ] - } - }, - "query": "\n SELECT *\n FROM factions\n WHERE id = $1\n " - }, - "2eb6b8457a35b9ebf20c442b96f121427791ceb4b51ce5eccf9d047e7421a67c": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int4" - }, - { - "name": "title", - "ordinal": 1, - "type_info": "Text" - }, - { - "name": "date", - "ordinal": 2, - "type_info": "Date" - }, - { - "name": "body", - "ordinal": 3, - "type_info": "Text" - } - ], - "nullable": [ - false, - true, - false, - false - ], - "parameters": { - "Left": [ - "Int4" - ] - } - }, - "query": "\n SELECT *\n FROM articles\n WHERE id = $1\n " - }, - "31ba4f016ad9a15990d3481e8e84fce6a28db307735f9133064c41c7f3a7bbd2": { - "describe": { - "columns": [ - { - "name": "system_address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "id", - "ordinal": 2, - "type_info": "Int2" - }, - { - "name": "parent_id", - "ordinal": 3, - "type_info": "Int2" - }, - { - "name": "updated_at", - "ordinal": 4, - "type_info": "Timestamp" - }, - { - "name": "updated_by", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "planet_class", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "tidal_lock", - "ordinal": 7, - "type_info": "Bool" - }, - { - "name": "landable", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "terraform_state", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "atmosphere", - "ordinal": 10, - "type_info": "Varchar" - }, - { - "name": "atmosphere_type", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "volcanism", - "ordinal": 12, - "type_info": "Varchar" - }, - { - "name": "mass", - "ordinal": 13, - "type_info": "Float4" - }, - { - "name": "radius", - "ordinal": 14, - "type_info": "Float4" - }, - { - "name": "surface_gravity", - "ordinal": 15, - "type_info": "Float4" - }, - { - "name": "surface_temperature", - "ordinal": 16, - "type_info": "Float4" - }, - { - "name": "surface_pressure", - "ordinal": 17, - "type_info": "Float4" - }, - { - "name": "semi_major_axis", - "ordinal": 18, - "type_info": "Float4" - }, - { - "name": "eccentricity", - "ordinal": 19, - "type_info": "Float4" - }, - { - "name": "orbital_inclination", - "ordinal": 20, - "type_info": "Float4" - }, - { - "name": "periapsis", - "ordinal": 21, - "type_info": "Float4" - }, - { - "name": "orbital_period", - "ordinal": 22, - "type_info": "Float4" - }, - { - "name": "rotation_period", - "ordinal": 23, - "type_info": "Float4" - }, - { - "name": "axial_tilt", - "ordinal": 24, - "type_info": "Float4" - }, - { - "name": "ascending_node", - "ordinal": 25, - "type_info": "Float4" - }, - { - "name": "mean_anomaly", - "ordinal": 26, - "type_info": "Float4" - }, - { - "name": "was_mapped", - "ordinal": 27, - "type_info": "Bool" - }, - { - "name": "was_discovered", - "ordinal": 28, - "type_info": "Bool" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - false, - false, - false, - false, - true, - true, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ], - "parameters": { - "Left": [ - "Int8", - "Text" - ] - } - }, - "query": "\n SELECT *\n FROM bodies\n WHERE system_address = $1 AND lower(name) ILIKE $2\n " - }, - "334df9691fb53de236324dec9c2d8c2a55ac8b1fe6142e1fe4236d4a9e4cc10f": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int4" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false - ], - "parameters": { - "Left": [ - "Text" - ] - } - }, - "query": "\n SELECT *\n FROM factions\n WHERE lower(name) = $1\n " - }, - "424c44ee0d72c1a53c461d4c4e0417f67a16b43b512851a9def4048e4b72faab": { - "describe": { - "columns": [ - { - "name": "address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "position!: Option>", - "ordinal": 2, - "type_info": { - "Custom": { - "kind": "Simple", - "name": "geometry" - } - } - }, - { - "name": "population", - "ordinal": 3, - "type_info": "Int8" - }, - { - "name": "security: Security", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Low", - "Medium", - "High" - ] - }, - "name": "security" - } - } - }, - { - "name": "government: Government", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Anarchy", - "Carrier", - "Communism", - "Confederacy", - "Cooperative", - "Corporate", - "Democracy", - "Dictatorship", - "Engineer", - "Feudal", - "Patronage", - "Prison", - "PrisonColony", - "Theocracy" - ] - }, - "name": "government" - } - } - }, - { - "name": "allegiance: Allegiance", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Alliance", - "Empire", - "Federation", - "Guardian", - "Independent", - "PilotsFederation", - "PlayerPilots", - "Thargoid" - ] - }, - "name": "allegiance" - } - } - }, - { - "name": "primary_economy: Economy", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - }, - { - "name": "secondary_economy: Economy", - "ordinal": 8, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - }, - { - "name": "updated_at", - "ordinal": 9, - "type_info": "Timestamp" - }, - { - "name": "updated_by", - "ordinal": 10, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false, - true, - true, - true, - true, - true, - true, - true, - false, - false - ], - "parameters": { - "Left": [ - "Int8" - ] - } - }, - "query": "\n SELECT\n address,\n name,\n position AS \"position!: Option>\",\n population,\n security as \"security: Security\",\n government as \"government: Government\",\n allegiance as \"allegiance: Allegiance\",\n primary_economy as \"primary_economy: Economy\",\n secondary_economy as \"secondary_economy: Economy\",\n updated_at,\n updated_by\n FROM systems\n WHERE address = $1\n " - }, - "4bfbbaa4335b32023520efb8f6589f7461af30fc5c1ced0883b75aa0d7968d9c": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [ - "Int8", - "Int4" - ] - } - }, - "query": "\n DELETE FROM system_faction_states\n WHERE system_address = $1 AND faction_id = $2\n " - }, - "4c2cd24e2d973db4371e811528886684e1952a6cc992be3c39d572eb5373c622": { - "describe": { - "columns": [ - { - "name": "system_address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "faction_id", - "ordinal": 1, - "type_info": "Int4" - }, - { - "name": "state: JournalState", - "ordinal": 2, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Blight", - "Boom", - "Bust", - "CivilLiberty", - "CivilUnrest", - "CivilWar", - "ColdWar", - "Colonisation", - "Drought", - "Election", - "Expansion", - "Famine", - "HistoricEvent", - "InfrastructureFailure", - "Investment", - "Lockdown", - "NaturalDisaster", - "Outbreak", - "PirateAttack", - "PublicHoliday", - "Retreat", - "Revolution", - "TechnologicalLeap", - "Terrorism", - "TradeWar", - "War" - ] - }, - "name": "state" - } - } - }, - { - "name": "influence", - "ordinal": 3, - "type_info": "Float4" - }, - { - "name": "happiness: Happiness", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Elated", - "Happy", - "Discontented", - "Unhappy", - "Despondent" - ] - }, - "name": "happiness" - } - } - }, - { - "name": "updated_at", - "ordinal": 5, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - true, - false, - true, - false - ], - "parameters": { - "Left": [ - "Int8", - "Int4", - { - "Custom": { - "kind": { - "Enum": [ - "Blight", - "Boom", - "Bust", - "CivilLiberty", - "CivilUnrest", - "CivilWar", - "ColdWar", - "Colonisation", - "Drought", - "Election", - "Expansion", - "Famine", - "HistoricEvent", - "InfrastructureFailure", - "Investment", - "Lockdown", - "NaturalDisaster", - "Outbreak", - "PirateAttack", - "PublicHoliday", - "Retreat", - "Revolution", - "TechnologicalLeap", - "Terrorism", - "TradeWar", - "War" - ] - }, - "name": "state" - } - }, - "Float4", - { - "Custom": { - "kind": { - "Enum": [ - "Elated", - "Happy", - "Discontented", - "Unhappy", - "Despondent" - ] - }, - "name": "happiness" - } - }, - { - "Custom": { - "kind": { - "Enum": [ - "Anarchy", - "Carrier", - "Communism", - "Confederacy", - "Cooperative", - "Corporate", - "Democracy", - "Dictatorship", - "Engineer", - "Feudal", - "Patronage", - "Prison", - "PrisonColony", - "Theocracy" - ] - }, - "name": "government" - } - }, - { - "Custom": { - "kind": { - "Enum": [ - "Alliance", - "Empire", - "Federation", - "Guardian", - "Independent", - "PilotsFederation", - "PlayerPilots", - "Thargoid" - ] - }, - "name": "allegiance" - } - }, - "Timestamp" - ] - } - }, - "query": "\n INSERT INTO system_factions\n (system_address,\n faction_id,\n state,\n influence,\n happiness,\n government,\n allegiance,\n updated_at)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8)\n ON CONFLICT (system_address, faction_id)\n DO UPDATE SET\n state = $3,\n influence = $4,\n happiness = $5,\n government = $6,\n allegiance = $7,\n updated_at = $8\n WHERE system_factions.updated_at < $8\n RETURNING\n system_address,\n faction_id,\n state AS \"state: JournalState\",\n influence,\n happiness \"happiness: Happiness\",\n updated_at\n " - }, - "4f0e76dd8486e45d54df3456e2b4b4c7a15b49e662191a73c53632051c73486a": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int4" - }, - { - "name": "title", - "ordinal": 1, - "type_info": "Text" - }, - { - "name": "date", - "ordinal": 2, - "type_info": "Date" - }, - { - "name": "body", - "ordinal": 3, - "type_info": "Text" - } - ], - "nullable": [ - false, - true, - false, - false - ], - "parameters": { - "Left": [ - "Date", - "Date" - ] - } - }, - "query": "\n SELECT *\n FROM articles\n WHERE date BETWEEN $1 AND $2\n " - }, - "51964afd0a274edc108dea9c64d7d60bb5cfc97c189a9184893d3742b4e2ce00": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [ - "Int8", - "Text", - { - "Custom": { - "kind": "Simple", - "name": "geometry" - } - }, - "Int8", - { - "Custom": { - "kind": { - "Enum": [ - "Low", - "Medium", - "High" - ] - }, - "name": "security" - } - }, - { - "Custom": { - "kind": { - "Enum": [ - "Anarchy", - "Carrier", - "Communism", - "Confederacy", - "Cooperative", - "Corporate", - "Democracy", - "Dictatorship", - "Engineer", - "Feudal", - "Patronage", - "Prison", - "PrisonColony", - "Theocracy" - ] - }, - "name": "government" - } - }, - { - "Custom": { - "kind": { - "Enum": [ - "Alliance", - "Empire", - "Federation", - "Guardian", - "Independent", - "PilotsFederation", - "PlayerPilots", - "Thargoid" - ] - }, - "name": "allegiance" - } - }, - { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - }, - { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - }, - "Timestamp", - "Varchar" - ] - } - }, - "query": "\n INSERT INTO systems\n (address,\n name,\n position,\n population,\n security,\n government,\n allegiance,\n primary_economy,\n secondary_economy,\n updated_at,\n updated_by)\n VALUES ($1, UPPER($2), $3::geometry, $4, $5, $6, $7, $8, $9, $10, $11)\n ON CONFLICT (address)\n DO UPDATE SET\n population = $4,\n security = $5,\n government = $6,\n allegiance = $7,\n primary_economy = $8,\n secondary_economy = $9,\n updated_at = $10,\n updated_by = $11\n WHERE systems.updated_at < $10\n " - }, - "58d5ea52ce750c4ba809c4b1d7d7b00b6287d44d8b55231a4de4f6bcdd153953": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int4" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false - ], - "parameters": { - "Left": [ - "Text" - ] - } - }, - "query": "\n SELECT *\n FROM factions\n WHERE name ILIKE $1\n ORDER BY name\n " - }, - "74b33fd3ad7d48160896df01c7c1d2a44d45ebaa658b6fe5aeadff3cbe0e2a48": { - "describe": { - "columns": [ - { - "name": "address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "position!: Option>", - "ordinal": 2, - "type_info": { - "Custom": { - "kind": "Simple", - "name": "geometry" - } - } - }, - { - "name": "population", - "ordinal": 3, - "type_info": "Int8" - }, - { - "name": "security: Security", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Low", - "Medium", - "High" - ] - }, - "name": "security" - } - } - }, - { - "name": "government: Government", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Anarchy", - "Carrier", - "Communism", - "Confederacy", - "Cooperative", - "Corporate", - "Democracy", - "Dictatorship", - "Engineer", - "Feudal", - "Patronage", - "Prison", - "PrisonColony", - "Theocracy" - ] - }, - "name": "government" - } - } - }, - { - "name": "allegiance: Allegiance", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Alliance", - "Empire", - "Federation", - "Guardian", - "Independent", - "PilotsFederation", - "PlayerPilots", - "Thargoid" - ] - }, - "name": "allegiance" - } - } - }, - { - "name": "primary_economy: Economy", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - }, - { - "name": "secondary_economy: Economy", - "ordinal": 8, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - }, - { - "name": "updated_at", - "ordinal": 9, - "type_info": "Timestamp" - }, - { - "name": "updated_by", - "ordinal": 10, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false, - true, - true, - true, - true, - true, - true, - true, - false, - false - ], - "parameters": { - "Left": [ - { - "Custom": { - "kind": "Simple", - "name": "geometry" - } - }, - "Float8" - ] - } - }, - "query": "\n SELECT\n address,\n name,\n position AS \"position!: Option>\",\n population,\n security as \"security: Security\",\n government as \"government: Government\",\n allegiance as \"allegiance: Allegiance\",\n primary_economy as \"primary_economy: Economy\",\n secondary_economy as \"secondary_economy: Economy\",\n updated_at,\n updated_by\n FROM systems\n WHERE ST_3DDWithin(position, $1, $2);\n " - }, - "7e9cd1fb57d0b89517dd6bf549fb95d50031989d55bb5b5d4f2b2d1db2821481": { - "describe": { - "columns": [ - { - "name": "market_id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Text" - }, - { - "name": "mean_price", - "ordinal": 2, - "type_info": "Int4" - }, - { - "name": "buy_price", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "sell_price", - "ordinal": 4, - "type_info": "Int4" - }, - { - "name": "demand", - "ordinal": 5, - "type_info": "Int4" - }, - { - "name": "demand_bracket", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "stock", - "ordinal": 7, - "type_info": "Int4" - }, - { - "name": "stock_bracket", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "listed_at", - "ordinal": 9, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ], - "parameters": { - "Left": [ - "Int8", - "Text", - "Int4", - "Int4", - "Int4", - "Int4", - "Int4", - "Int4", - "Int4", - "Timestamp" - ] - } - }, - "query": "\n INSERT INTO listings (\n market_id,\n name,\n mean_price,\n buy_price,\n sell_price,\n demand,\n demand_bracket,\n stock,\n stock_bracket,\n listed_at)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)\n ON CONFLICT (market_id, name)\n DO UPDATE SET\n mean_price = $3,\n buy_price = $4,\n sell_price = $5,\n demand = $6,\n demand_bracket = $7,\n stock = $8,\n stock_bracket = $9,\n listed_at = $10\n RETURNING *\n " - }, - "7feebdb43549fe680dac7a8c1618706d3a65ac198f0f62307ffa16877e6a6455": { - "describe": { - "columns": [ - { - "name": "address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "position!: Option>", - "ordinal": 2, - "type_info": { - "Custom": { - "kind": "Simple", - "name": "geometry" - } - } - }, - { - "name": "population", - "ordinal": 3, - "type_info": "Int8" - }, - { - "name": "security: Security", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Low", - "Medium", - "High" - ] - }, - "name": "security" - } - } - }, - { - "name": "government: Government", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Anarchy", - "Carrier", - "Communism", - "Confederacy", - "Cooperative", - "Corporate", - "Democracy", - "Dictatorship", - "Engineer", - "Feudal", - "Patronage", - "Prison", - "PrisonColony", - "Theocracy" - ] - }, - "name": "government" - } - } - }, - { - "name": "allegiance: Allegiance", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Alliance", - "Empire", - "Federation", - "Guardian", - "Independent", - "PilotsFederation", - "PlayerPilots", - "Thargoid" - ] - }, - "name": "allegiance" - } - } - }, - { - "name": "primary_economy: Economy", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - }, - { - "name": "secondary_economy: Economy", - "ordinal": 8, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - }, - { - "name": "updated_at", - "ordinal": 9, - "type_info": "Timestamp" - }, - { - "name": "updated_by", - "ordinal": 10, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false, - true, - true, - true, - true, - true, - true, - true, - false, - false - ], - "parameters": { - "Left": [ - "Text", - "Float8" - ] - } - }, - "query": "\n SELECT\n s1.address,\n s1.name,\n s1.position AS \"position!: Option>\",\n s1.population,\n s1.security as \"security: Security\",\n s1.government as \"government: Government\",\n s1.allegiance as \"allegiance: Allegiance\",\n s1.primary_economy as \"primary_economy: Economy\",\n s1.secondary_economy as \"secondary_economy: Economy\",\n s1.updated_at,\n s1.updated_by\n FROM systems s1\n FULL JOIN systems s2 ON ST_3DDWithin(s1.position, s2.position, $2)\n WHERE s2.name = $1\n ORDER BY ST_3DDistance(s1.position, s2.position)\n " - }, - "7ff9aa67a7bcb76a2710ccbccc859c605731204a111a09f1fba28b2cce456618": { - "describe": { - "columns": [ - { - "name": "address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "position!: Option>", - "ordinal": 2, - "type_info": { - "Custom": { - "kind": "Simple", - "name": "geometry" - } - } - }, - { - "name": "population", - "ordinal": 3, - "type_info": "Int8" - }, - { - "name": "security: Security", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Low", - "Medium", - "High" - ] - }, - "name": "security" - } - } - }, - { - "name": "government: Government", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Anarchy", - "Carrier", - "Communism", - "Confederacy", - "Cooperative", - "Corporate", - "Democracy", - "Dictatorship", - "Engineer", - "Feudal", - "Patronage", - "Prison", - "PrisonColony", - "Theocracy" - ] - }, - "name": "government" - } - } - }, - { - "name": "allegiance: Allegiance", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Alliance", - "Empire", - "Federation", - "Guardian", - "Independent", - "PilotsFederation", - "PlayerPilots", - "Thargoid" - ] - }, - "name": "allegiance" - } - } - }, - { - "name": "primary_economy: Economy", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - }, - { - "name": "secondary_economy: Economy", - "ordinal": 8, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - }, - { - "name": "updated_at", - "ordinal": 9, - "type_info": "Timestamp" - }, - { - "name": "updated_by", - "ordinal": 10, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false, - true, - true, - true, - true, - true, - true, - true, - false, - false - ], - "parameters": { - "Left": [ - "Text", - "Float8" - ] - } - }, - "query": "\n SELECT\n s1.address,\n s1.name,\n s1.position AS \"position!: Option>\",\n s1.population,\n s1.security as \"security: Security\",\n s1.government as \"government: Government\",\n s1.allegiance as \"allegiance: Allegiance\",\n s1.primary_economy as \"primary_economy: Economy\",\n s1.secondary_economy as \"secondary_economy: Economy\",\n s1.updated_at,\n s1.updated_by\n FROM systems s1\n FULL JOIN systems s2 ON ST_3DDWithin(s1.position, s2.position, $2)\n WHERE s2.name ILIKE $1\n ORDER BY ST_3DDistance(s1.position, s2.position)\n " - }, - "8560b3bc0c295e1e399cf5e1f08f5b231f6ef0b38032c8c4fd5e3bd7d25b44a4": { - "describe": { - "columns": [ - { - "name": "system_address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "faction_id", - "ordinal": 1, - "type_info": "Int4" - }, - { - "name": "state: JournalState", - "ordinal": 2, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Blight", - "Boom", - "Bust", - "CivilLiberty", - "CivilUnrest", - "CivilWar", - "ColdWar", - "Colonisation", - "Drought", - "Election", - "Expansion", - "Famine", - "HistoricEvent", - "InfrastructureFailure", - "Investment", - "Lockdown", - "NaturalDisaster", - "Outbreak", - "PirateAttack", - "PublicHoliday", - "Retreat", - "Revolution", - "TechnologicalLeap", - "Terrorism", - "TradeWar", - "War" - ] - }, - "name": "state" - } - } - }, - { - "name": "status: Status", - "ordinal": 3, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Active", - "Pending", - "Recovering" - ] - }, - "name": "status" - } - } - } - ], - "nullable": [ - false, - false, - false, - false - ], - "parameters": { - "Left": [ - "Int8", - "Int4", - { - "Custom": { - "kind": { - "Enum": [ - "Blight", - "Boom", - "Bust", - "CivilLiberty", - "CivilUnrest", - "CivilWar", - "ColdWar", - "Colonisation", - "Drought", - "Election", - "Expansion", - "Famine", - "HistoricEvent", - "InfrastructureFailure", - "Investment", - "Lockdown", - "NaturalDisaster", - "Outbreak", - "PirateAttack", - "PublicHoliday", - "Retreat", - "Revolution", - "TechnologicalLeap", - "Terrorism", - "TradeWar", - "War" - ] - }, - "name": "state" - } - }, - { - "Custom": { - "kind": { - "Enum": [ - "Active", - "Pending", - "Recovering" - ] - }, - "name": "status" - } - } - ] - } - }, - "query": "\n INSERT INTO system_faction_states\n (system_address,\n faction_id,\n state,\n status)\n VALUES ($1, $2, $3, $4)\n RETURNING\n system_address,\n faction_id,\n state AS \"state: JournalState\",\n status AS \"status: Status\"\n " - }, - "8dc7382b1493384ae20b02d0de341936b865c175e6d6a9e6883063d301ce2c66": { - "describe": { - "columns": [ - { - "name": "system_address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "id", - "ordinal": 2, - "type_info": "Int2" - }, - { - "name": "parent_id", - "ordinal": 3, - "type_info": "Int2" - }, - { - "name": "updated_at", - "ordinal": 4, - "type_info": "Timestamp" - }, - { - "name": "updated_by", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "planet_class", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "tidal_lock", - "ordinal": 7, - "type_info": "Bool" - }, - { - "name": "landable", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "terraform_state", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "atmosphere", - "ordinal": 10, - "type_info": "Varchar" - }, - { - "name": "atmosphere_type", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "volcanism", - "ordinal": 12, - "type_info": "Varchar" - }, - { - "name": "mass", - "ordinal": 13, - "type_info": "Float4" - }, - { - "name": "radius", - "ordinal": 14, - "type_info": "Float4" - }, - { - "name": "surface_gravity", - "ordinal": 15, - "type_info": "Float4" - }, - { - "name": "surface_temperature", - "ordinal": 16, - "type_info": "Float4" - }, - { - "name": "surface_pressure", - "ordinal": 17, - "type_info": "Float4" - }, - { - "name": "semi_major_axis", - "ordinal": 18, - "type_info": "Float4" - }, - { - "name": "eccentricity", - "ordinal": 19, - "type_info": "Float4" - }, - { - "name": "orbital_inclination", - "ordinal": 20, - "type_info": "Float4" - }, - { - "name": "periapsis", - "ordinal": 21, - "type_info": "Float4" - }, - { - "name": "orbital_period", - "ordinal": 22, - "type_info": "Float4" - }, - { - "name": "rotation_period", - "ordinal": 23, - "type_info": "Float4" - }, - { - "name": "axial_tilt", - "ordinal": 24, - "type_info": "Float4" - }, - { - "name": "ascending_node", - "ordinal": 25, - "type_info": "Float4" - }, - { - "name": "mean_anomaly", - "ordinal": 26, - "type_info": "Float4" - }, - { - "name": "was_mapped", - "ordinal": 27, - "type_info": "Bool" - }, - { - "name": "was_discovered", - "ordinal": 28, - "type_info": "Bool" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - false, - false, - false, - false, - true, - true, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ], - "parameters": { - "Left": [ - "Text" - ] - } - }, - "query": "\n SELECT *\n FROM bodies\n WHERE name ILIKE $1\n ORDER BY name\n " - }, - "9a7c30d5d491d580dee73c083505e19504e30b8c46846a0d0cc6f6efc269014b": { - "describe": { - "columns": [ - { - "name": "system_address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "id", - "ordinal": 2, - "type_info": "Int2" - }, - { - "name": "parent_id", - "ordinal": 3, - "type_info": "Int2" - }, - { - "name": "updated_at", - "ordinal": 4, - "type_info": "Timestamp" - }, - { - "name": "updated_by", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "planet_class", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "tidal_lock", - "ordinal": 7, - "type_info": "Bool" - }, - { - "name": "landable", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "terraform_state", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "atmosphere", - "ordinal": 10, - "type_info": "Varchar" - }, - { - "name": "atmosphere_type", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "volcanism", - "ordinal": 12, - "type_info": "Varchar" - }, - { - "name": "mass", - "ordinal": 13, - "type_info": "Float4" - }, - { - "name": "radius", - "ordinal": 14, - "type_info": "Float4" - }, - { - "name": "surface_gravity", - "ordinal": 15, - "type_info": "Float4" - }, - { - "name": "surface_temperature", - "ordinal": 16, - "type_info": "Float4" - }, - { - "name": "surface_pressure", - "ordinal": 17, - "type_info": "Float4" - }, - { - "name": "semi_major_axis", - "ordinal": 18, - "type_info": "Float4" - }, - { - "name": "eccentricity", - "ordinal": 19, - "type_info": "Float4" - }, - { - "name": "orbital_inclination", - "ordinal": 20, - "type_info": "Float4" - }, - { - "name": "periapsis", - "ordinal": 21, - "type_info": "Float4" - }, - { - "name": "orbital_period", - "ordinal": 22, - "type_info": "Float4" - }, - { - "name": "rotation_period", - "ordinal": 23, - "type_info": "Float4" - }, - { - "name": "axial_tilt", - "ordinal": 24, - "type_info": "Float4" - }, - { - "name": "ascending_node", - "ordinal": 25, - "type_info": "Float4" - }, - { - "name": "mean_anomaly", - "ordinal": 26, - "type_info": "Float4" - }, - { - "name": "was_mapped", - "ordinal": 27, - "type_info": "Bool" - }, - { - "name": "was_discovered", - "ordinal": 28, - "type_info": "Bool" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - false, - false, - false, - false, - true, - true, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ], - "parameters": { - "Left": [ - "Int8" - ] - } - }, - "query": "\n SELECT *\n FROM bodies\n WHERE system_address = $1\n " - }, - "a02c92cd2509c8e8f18d8f8feb273d16d9d1edb435bf0a0d13997e2a4501abcd": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [ - "Int4" - ] - } - }, - "query": "\n DELETE FROM articles\n WHERE id = $1\n " - }, - "acd14a883e797d47328bd421283b435f51c3cca0e65f19232a8b55ba5b5efe83": { - "describe": { - "columns": [ - { - "name": "address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "position!: Option>", - "ordinal": 2, - "type_info": { - "Custom": { - "kind": "Simple", - "name": "geometry" - } - } - }, - { - "name": "population", - "ordinal": 3, - "type_info": "Int8" - }, - { - "name": "security: Security", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Low", - "Medium", - "High" - ] - }, - "name": "security" - } - } - }, - { - "name": "government: Government", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Anarchy", - "Carrier", - "Communism", - "Confederacy", - "Cooperative", - "Corporate", - "Democracy", - "Dictatorship", - "Engineer", - "Feudal", - "Patronage", - "Prison", - "PrisonColony", - "Theocracy" - ] - }, - "name": "government" - } - } - }, - { - "name": "allegiance: Allegiance", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Alliance", - "Empire", - "Federation", - "Guardian", - "Independent", - "PilotsFederation", - "PlayerPilots", - "Thargoid" - ] - }, - "name": "allegiance" - } - } - }, - { - "name": "primary_economy: Economy", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - }, - { - "name": "secondary_economy: Economy", - "ordinal": 8, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - }, - { - "name": "updated_at", - "ordinal": 9, - "type_info": "Timestamp" - }, - { - "name": "updated_by", - "ordinal": 10, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false, - true, - true, - true, - true, - true, - true, - true, - false, - false - ], - "parameters": { - "Left": [ - "Float8", - "Float8", - "Float8", - "Float8" - ] - } - }, - "query": "\n SELECT\n address,\n name,\n position AS \"position!: Option>\",\n population,\n security as \"security: Security\",\n government as \"government: Government\",\n allegiance as \"allegiance: Allegiance\",\n primary_economy as \"primary_economy: Economy\",\n secondary_economy as \"secondary_economy: Economy\",\n updated_at,\n updated_by\n FROM systems\n WHERE ST_3DDWithin(ST_MakePoint($2, $3, $4), position, $1)\n " - }, - "b256195bb2da63c8c6466a7b6510cde26017b56fb5248882383e90e831042503": { - "describe": { - "columns": [ - { - "name": "system_address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "ty: StationType", - "ordinal": 2, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "AsteroidBase", - "Coriolis", - "CraterOutpost", - "CraterPort", - "FleetCarrier", - "MegaShip", - "Ocellus", - "Orbis", - "Outpost" - ] - }, - "name": "stationtype" - } - } - }, - { - "name": "dist_from_star_ls", - "ordinal": 3, - "type_info": "Float8" - }, - { - "name": "market_id", - "ordinal": 4, - "type_info": "Int8" - }, - { - "name": "landing_pads: LandingPads", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Composite": [ - [ - "large", - "Int2" - ], - [ - "medium", - "Int2" - ], - [ - "small", - "Int2" - ] - ] - }, - "name": "landingpads" - } - } - }, - { - "name": "faction", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "government: Government", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Anarchy", - "Carrier", - "Communism", - "Confederacy", - "Cooperative", - "Corporate", - "Democracy", - "Dictatorship", - "Engineer", - "Feudal", - "Patronage", - "Prison", - "PrisonColony", - "Theocracy" - ] - }, - "name": "government" - } - } - }, - { - "name": "allegiance: Allegiance", - "ordinal": 8, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Alliance", - "Empire", - "Federation", - "Guardian", - "Independent", - "PilotsFederation", - "PlayerPilots", - "Thargoid" - ] - }, - "name": "allegiance" - } - } - }, - { - "name": "services: Vec", - "ordinal": 9, - "type_info": { - "Custom": { - "kind": { - "Array": { - "Custom": { - "kind": { - "Enum": [ - "Autodock", - "Blackmarket", - "CarrierFuel", - "CarrierManagement", - "Commodities", - "Contacts", - "CrewLounge", - "Dock", - "Engineer", - "Exploration", - "Facilitator", - "FlightController", - "Initiatives", - "MaterialTrader", - "Missions", - "MissionsGenerated", - "Modulepacks", - "Outfitting", - "Powerplay", - "Rearm", - "Refuel", - "Repair", - "SearchRescue", - "Shipyard", - "Shop", - "StationMenu", - "StationOperations", - "TechBroker", - "Tuning", - "VoucherRedemption", - "Livery", - "SocialSpace", - "Bartender", - "VistaGenomics", - "PioneerSupplies", - "ApexInterstellar", - "FrontlineSolutions" - ] - }, - "name": "service" - } - } - }, - "name": "_service" - } - } - }, - { - "name": "economies: Vec", - "ordinal": 10, - "type_info": { - "Custom": { - "kind": { - "Array": { - "Custom": { - "kind": { - "Composite": [ - [ - "name", - { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - ], - [ - "proportion", - "Float8" - ] - ] - }, - "name": "economyshare" - } - } - }, - "name": "_economyshare" - } - } - }, - { - "name": "updated_at", - "ordinal": 11, - "type_info": "Timestamp" - }, - { - "name": "updated_by", - "ordinal": 12, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false, - false, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false - ], - "parameters": { - "Left": [ - "Int8", - "Text" - ] - } - }, - "query": "\n SELECT\n system_address,\n name,\n ty as \"ty: StationType\",\n dist_from_star_ls,\n market_id,\n landing_pads as \"landing_pads: LandingPads\",\n faction,\n government as \"government: Government\",\n allegiance as \"allegiance: Allegiance\",\n services as \"services: Vec\",\n economies as \"economies: Vec\",\n updated_at,\n updated_by\n FROM stations\n WHERE system_address = $1 AND name = $2\n " - }, - "b6f3e3ef9c974dfde7274740eda444f778f2df95df1400bc90191daf86a30265": { - "describe": { - "columns": [ - { - "name": "system_address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "id", - "ordinal": 2, - "type_info": "Int2" - }, - { - "name": "parent_id", - "ordinal": 3, - "type_info": "Int2" - }, - { - "name": "updated_at", - "ordinal": 4, - "type_info": "Timestamp" - }, - { - "name": "updated_by", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "planet_class", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "tidal_lock", - "ordinal": 7, - "type_info": "Bool" - }, - { - "name": "landable", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "terraform_state", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "atmosphere", - "ordinal": 10, - "type_info": "Varchar" - }, - { - "name": "atmosphere_type", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "volcanism", - "ordinal": 12, - "type_info": "Varchar" - }, - { - "name": "mass", - "ordinal": 13, - "type_info": "Float4" - }, - { - "name": "radius", - "ordinal": 14, - "type_info": "Float4" - }, - { - "name": "surface_gravity", - "ordinal": 15, - "type_info": "Float4" - }, - { - "name": "surface_temperature", - "ordinal": 16, - "type_info": "Float4" - }, - { - "name": "surface_pressure", - "ordinal": 17, - "type_info": "Float4" - }, - { - "name": "semi_major_axis", - "ordinal": 18, - "type_info": "Float4" - }, - { - "name": "eccentricity", - "ordinal": 19, - "type_info": "Float4" - }, - { - "name": "orbital_inclination", - "ordinal": 20, - "type_info": "Float4" - }, - { - "name": "periapsis", - "ordinal": 21, - "type_info": "Float4" - }, - { - "name": "orbital_period", - "ordinal": 22, - "type_info": "Float4" - }, - { - "name": "rotation_period", - "ordinal": 23, - "type_info": "Float4" - }, - { - "name": "axial_tilt", - "ordinal": 24, - "type_info": "Float4" - }, - { - "name": "ascending_node", - "ordinal": 25, - "type_info": "Float4" - }, - { - "name": "mean_anomaly", - "ordinal": 26, - "type_info": "Float4" - }, - { - "name": "was_mapped", - "ordinal": 27, - "type_info": "Bool" - }, - { - "name": "was_discovered", - "ordinal": 28, - "type_info": "Bool" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - false, - false, - false, - false, - true, - true, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ], - "parameters": { - "Left": [ - "Varchar", - "Int2", - "Int2", - "Int8", - "Timestamp", - "Varchar", - "Varchar", - "Bool", - "Bool", - "Varchar", - "Varchar", - "Varchar", - "Varchar", - "Float4", - "Float4", - "Float4", - "Float4", - "Float4", - "Float4", - "Float4", - "Float4", - "Float4", - "Float4", - "Float4", - "Float4", - "Float4", - "Float4", - "Bool", - "Bool" - ] - } - }, - "query": "\n INSERT INTO bodies (\n name,\n id,\n parent_id,\n system_address,\n updated_at,\n updated_by,\n\n planet_class,\n tidal_lock,\n landable,\n terraform_state,\n atmosphere,\n atmosphere_type,\n volcanism,\n\n mass,\n radius,\n surface_gravity,\n surface_temperature,\n surface_pressure,\n semi_major_axis,\n eccentricity,\n orbital_inclination,\n periapsis,\n orbital_period,\n rotation_period,\n axial_tilt,\n ascending_node,\n mean_anomaly,\n\n was_mapped,\n was_discovered)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17,\n $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29)\n ON CONFLICT (system_address, id)\n DO UPDATE SET\n name = $1,\n parent_id = $3,\n updated_at = $5,\n updated_by = $6,\n\n planet_class = $7,\n tidal_lock = $8,\n landable = $9,\n terraform_state = $10,\n atmosphere = $11,\n atmosphere_type = $12,\n volcanism = $13,\n\n mass = $14,\n radius = $15,\n surface_gravity = $16,\n surface_temperature = $17,\n surface_pressure = $18,\n semi_major_axis = $19,\n eccentricity = $20,\n orbital_inclination = $21,\n periapsis = $22,\n orbital_period = $23,\n rotation_period = $24,\n axial_tilt = $25,\n ascending_node = $26,\n mean_anomaly = $27,\n\n was_mapped = $28,\n was_discovered = $29\n RETURNING *\n " - }, - "ba12be810dec9a6e8bec4d65fd17dd6b24a23189741145132f6388775fa3b869": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int4" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false - ], - "parameters": { - "Left": [ - "Varchar" - ] - } - }, - "query": "\n INSERT INTO factions (name)\n VALUES ($1)\n ON CONFLICT (lower(name))\n DO UPDATE\n SET name = factions.name\n RETURNING *\n " - }, - "ba8b442f85af1ccf3c60a7e68fce6ace96bbeecb8fd0008b356f77c94245a60b": { - "describe": { - "columns": [ - { - "name": "system_address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "ty: FactionConflictType", - "ordinal": 1, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "War", - "CivilWar", - "Election" - ] - }, - "name": "conflict" - } - } - }, - { - "name": "status: Status", - "ordinal": 2, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Active", - "Pending", - "Recovering" - ] - }, - "name": "status" - } - } - }, - { - "name": "faction_1_id", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "faction_1_stake", - "ordinal": 4, - "type_info": "Varchar" - }, - { - "name": "faction_1_won_days", - "ordinal": 5, - "type_info": "Int4" - }, - { - "name": "faction_2_id", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "faction_2_stake", - "ordinal": 7, - "type_info": "Varchar" - }, - { - "name": "faction_2_won_days", - "ordinal": 8, - "type_info": "Int4" - }, - { - "name": "updated_at", - "ordinal": 9, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - false, - false, - true, - false, - false, - true, - false, - false - ], - "parameters": { - "Left": [ - "Int8", - { - "Custom": { - "kind": { - "Enum": [ - "War", - "CivilWar", - "Election" - ] - }, - "name": "conflict" - } - }, - { - "Custom": { - "kind": { - "Enum": [ - "Active", - "Pending", - "Recovering" - ] - }, - "name": "status" - } - }, - "Int4", - "Varchar", - "Int4", - "Int4", - "Varchar", - "Int4", - "Timestamp" - ] - } - }, - "query": "\n INSERT INTO conflicts (\n system_address,\n type,\n status,\n faction_1_id,\n faction_1_stake,\n faction_1_won_days,\n faction_2_id,\n faction_2_stake,\n faction_2_won_days,\n updated_at)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)\n ON CONFLICT (system_address, faction_1_id, faction_2_id)\n DO UPDATE SET\n type = $2,\n status = $3,\n faction_1_stake = $5,\n faction_1_won_days = $6,\n faction_2_stake = $8,\n faction_2_won_days = $9,\n updated_at = $10\n RETURNING\n system_address,\n type AS \"ty: FactionConflictType\",\n status AS \"status: Status\",\n faction_1_id,\n faction_1_stake,\n faction_1_won_days,\n faction_2_id,\n faction_2_stake,\n faction_2_won_days,\n updated_at\n " - }, - "c7c3de8b6b92857ad27ab79f76f511de366ade3fba82ac3df0113c6a87f97c4c": { - "describe": { - "columns": [ - { - "name": "system_address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "faction_id", - "ordinal": 1, - "type_info": "Int4" - }, - { - "name": "name", - "ordinal": 2, - "type_info": "Varchar" - }, - { - "name": "state: JournalState", - "ordinal": 3, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Blight", - "Boom", - "Bust", - "CivilLiberty", - "CivilUnrest", - "CivilWar", - "ColdWar", - "Colonisation", - "Drought", - "Election", - "Expansion", - "Famine", - "HistoricEvent", - "InfrastructureFailure", - "Investment", - "Lockdown", - "NaturalDisaster", - "Outbreak", - "PirateAttack", - "PublicHoliday", - "Retreat", - "Revolution", - "TechnologicalLeap", - "Terrorism", - "TradeWar", - "War" - ] - }, - "name": "state" - } - } - }, - { - "name": "influence", - "ordinal": 4, - "type_info": "Float4" - }, - { - "name": "happiness: Happiness", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Elated", - "Happy", - "Discontented", - "Unhappy", - "Despondent" - ] - }, - "name": "happiness" - } - } - }, - { - "name": "government: Government", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Anarchy", - "Carrier", - "Communism", - "Confederacy", - "Cooperative", - "Corporate", - "Democracy", - "Dictatorship", - "Engineer", - "Feudal", - "Patronage", - "Prison", - "PrisonColony", - "Theocracy" - ] - }, - "name": "government" - } - } - }, - { - "name": "allegiance: Allegiance", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Alliance", - "Empire", - "Federation", - "Guardian", - "Independent", - "PilotsFederation", - "PlayerPilots", - "Thargoid" - ] - }, - "name": "allegiance" - } - } - }, - { - "name": "updated_at", - "ordinal": 8, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - true, - false, - false, - false - ], - "parameters": { - "Left": [] - } - }, - "query": "\n SELECT\n system_address,\n faction_id,\n name,\n state AS \"state: JournalState\",\n influence,\n happiness AS \"happiness: Happiness\",\n government AS \"government: Government\",\n allegiance AS \"allegiance: Allegiance\",\n updated_at\n FROM system_factions\n JOIN factions on faction_id = id\n ORDER BY influence DESC\n " - }, - "c9f09c4207b2cf95bb06df7b3308684140f245451d7e5c7b06006f3744733e24": { - "describe": { - "columns": [ - { - "name": "address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "position!: Option>", - "ordinal": 2, - "type_info": { - "Custom": { - "kind": "Simple", - "name": "geometry" - } - } - }, - { - "name": "population", - "ordinal": 3, - "type_info": "Int8" - }, - { - "name": "security: Security", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Low", - "Medium", - "High" - ] - }, - "name": "security" - } - } - }, - { - "name": "government: Government", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Anarchy", - "Carrier", - "Communism", - "Confederacy", - "Cooperative", - "Corporate", - "Democracy", - "Dictatorship", - "Engineer", - "Feudal", - "Patronage", - "Prison", - "PrisonColony", - "Theocracy" - ] - }, - "name": "government" - } - } - }, - { - "name": "allegiance: Allegiance", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Alliance", - "Empire", - "Federation", - "Guardian", - "Independent", - "PilotsFederation", - "PlayerPilots", - "Thargoid" - ] - }, - "name": "allegiance" - } - } - }, - { - "name": "primary_economy: Economy", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - }, - { - "name": "secondary_economy: Economy", - "ordinal": 8, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - }, - { - "name": "updated_at", - "ordinal": 9, - "type_info": "Timestamp" - }, - { - "name": "updated_by", - "ordinal": 10, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false, - true, - true, - true, - true, - true, - true, - true, - false, - false - ], - "parameters": { - "Left": [ - "Text" - ] - } - }, - "query": "\n SELECT\n address,\n name,\n position AS \"position!: Option>\",\n population,\n security as \"security: Security\",\n government as \"government: Government\",\n allegiance as \"allegiance: Allegiance\",\n primary_economy as \"primary_economy: Economy\",\n secondary_economy as \"secondary_economy: Economy\",\n updated_at,\n updated_by\n FROM systems\n WHERE name ILIKE $1\n ORDER BY name\n " - }, - "d3edf18376b3f50ab97239ec71384ba3b67c220136d26c745bfab234ca4b7aad": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [ - "Int8", - "Text", - { - "Custom": { - "kind": "Simple", - "name": "geometry" - } - }, - "Int8", - { - "Custom": { - "kind": { - "Enum": [ - "Low", - "Medium", - "High" - ] - }, - "name": "security" - } - }, - { - "Custom": { - "kind": { - "Enum": [ - "Anarchy", - "Carrier", - "Communism", - "Confederacy", - "Cooperative", - "Corporate", - "Democracy", - "Dictatorship", - "Engineer", - "Feudal", - "Patronage", - "Prison", - "PrisonColony", - "Theocracy" - ] - }, - "name": "government" - } - }, - { - "Custom": { - "kind": { - "Enum": [ - "Alliance", - "Empire", - "Federation", - "Guardian", - "Independent", - "PilotsFederation", - "PlayerPilots", - "Thargoid" - ] - }, - "name": "allegiance" - } - }, - { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - }, - { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - }, - "Timestamp", - "Varchar" - ] - } - }, - "query": "\n INSERT INTO systems\n (address,\n name,\n position,\n population,\n security,\n government,\n allegiance,\n primary_economy,\n secondary_economy,\n updated_at,\n updated_by)\n VALUES ($1, UPPER($2), $3::geometry, $4, $5, $6, $7, $8, $9, $10, $11)\n ON CONFLICT (address)\n DO UPDATE SET\n position = COALESCE($3, systems.position),\n population = COALESCE($4, systems.population),\n security = COALESCE($5, systems.security),\n government = COALESCE($6, systems.government),\n allegiance = COALESCE($7, systems.allegiance),\n primary_economy = COALESCE($8, systems.primary_economy),\n secondary_economy = COALESCE($9, systems.secondary_economy),\n updated_at = $10,\n updated_by = $11\n " - }, - "dc94b075824050c32fe8dd51259f40349f7839336b06ff2bc20b387616e126c3": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "system_address", - "ordinal": 1, - "type_info": "Int8" - }, - { - "name": "station_name", - "ordinal": 2, - "type_info": "Varchar" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - false, - false - ], - "parameters": { - "Left": [ - "Int8", - "Int8", - "Varchar", - "Timestamp" - ] - } - }, - "query": "\n INSERT INTO markets (\n id,\n system_address,\n station_name,\n updated_at)\n VALUES ($1, $2, $3, $4)\n ON CONFLICT (id)\n DO UPDATE SET\n updated_at = $4\n RETURNING\n id,\n system_address,\n station_name,\n updated_at\n " - }, - "df7bf7ba6c83d958ec6ca0e01d1c30e9b5dc885dee7bb335c6f5e5b2fe307f9e": { - "describe": { - "columns": [ - { - "name": "system_address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "faction_id", - "ordinal": 1, - "type_info": "Int4" - }, - { - "name": "name", - "ordinal": 2, - "type_info": "Varchar" - }, - { - "name": "state: JournalState", - "ordinal": 3, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Blight", - "Boom", - "Bust", - "CivilLiberty", - "CivilUnrest", - "CivilWar", - "ColdWar", - "Colonisation", - "Drought", - "Election", - "Expansion", - "Famine", - "HistoricEvent", - "InfrastructureFailure", - "Investment", - "Lockdown", - "NaturalDisaster", - "Outbreak", - "PirateAttack", - "PublicHoliday", - "Retreat", - "Revolution", - "TechnologicalLeap", - "Terrorism", - "TradeWar", - "War" - ] - }, - "name": "state" - } - } - }, - { - "name": "influence", - "ordinal": 4, - "type_info": "Float4" - }, - { - "name": "happiness: Happiness", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Elated", - "Happy", - "Discontented", - "Unhappy", - "Despondent" - ] - }, - "name": "happiness" - } - } - }, - { - "name": "government: Government", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Anarchy", - "Carrier", - "Communism", - "Confederacy", - "Cooperative", - "Corporate", - "Democracy", - "Dictatorship", - "Engineer", - "Feudal", - "Patronage", - "Prison", - "PrisonColony", - "Theocracy" - ] - }, - "name": "government" - } - } - }, - { - "name": "allegiance: Allegiance", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Alliance", - "Empire", - "Federation", - "Guardian", - "Independent", - "PilotsFederation", - "PlayerPilots", - "Thargoid" - ] - }, - "name": "allegiance" - } - } - }, - { - "name": "updated_at", - "ordinal": 8, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - true, - false, - false, - false - ], - "parameters": { - "Left": [ - "Int8", - "Int4" - ] - } - }, - "query": "\n SELECT\n system_address,\n faction_id,\n name,\n state AS \"state: JournalState\",\n influence,\n happiness AS \"happiness: Happiness\",\n government AS \"government: Government\",\n allegiance AS \"allegiance: Allegiance\",\n updated_at\n FROM system_factions\n JOIN factions ON faction_id = id\n WHERE system_address = $1 AND faction_id = $2\n ORDER BY influence DESC\n " - }, - "e8c132eb9239d3c0ebcf3ec3e4e17ba36c00b46daa8c97c202e5099ec6173224": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int4" - }, - { - "name": "title", - "ordinal": 1, - "type_info": "Text" - }, - { - "name": "date", - "ordinal": 2, - "type_info": "Date" - }, - { - "name": "body", - "ordinal": 3, - "type_info": "Text" - } - ], - "nullable": [ - false, - true, - false, - false - ], - "parameters": { - "Left": [ - "Text", - "Date", - "Text" - ] - } - }, - "query": "\n INSERT INTO articles (title, date, body)\n VALUES ($1, $2, $3)\n RETURNING *\n " - }, - "eb05cfc43dd29191d45b9d6af1745fc02d6b788619bec328eb1e28c57715f6dd": { - "describe": { - "columns": [ - { - "name": "address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "position!: Option>", - "ordinal": 2, - "type_info": { - "Custom": { - "kind": "Simple", - "name": "geometry" - } - } - }, - { - "name": "population", - "ordinal": 3, - "type_info": "Int8" - }, - { - "name": "security: Security", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Low", - "Medium", - "High" - ] - }, - "name": "security" - } - } - }, - { - "name": "government: Government", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Anarchy", - "Carrier", - "Communism", - "Confederacy", - "Cooperative", - "Corporate", - "Democracy", - "Dictatorship", - "Engineer", - "Feudal", - "Patronage", - "Prison", - "PrisonColony", - "Theocracy" - ] - }, - "name": "government" - } - } - }, - { - "name": "allegiance: Allegiance", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Alliance", - "Empire", - "Federation", - "Guardian", - "Independent", - "PilotsFederation", - "PlayerPilots", - "Thargoid" - ] - }, - "name": "allegiance" - } - } - }, - { - "name": "primary_economy: Economy", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - }, - { - "name": "secondary_economy: Economy", - "ordinal": 8, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - }, - { - "name": "updated_at", - "ordinal": 9, - "type_info": "Timestamp" - }, - { - "name": "updated_by", - "ordinal": 10, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false, - true, - true, - true, - true, - true, - true, - true, - false, - false - ], - "parameters": { - "Left": [ - "Text" - ] - } - }, - "query": "\n SELECT\n address,\n name,\n position AS \"position!: Option>\",\n population,\n security as \"security: Security\",\n government as \"government: Government\",\n allegiance as \"allegiance: Allegiance\",\n primary_economy as \"primary_economy: Economy\",\n secondary_economy as \"secondary_economy: Economy\",\n updated_at,\n updated_by\n FROM systems\n WHERE name = $1\n " - }, - "edf4972bac4501627ea224a803c19cf78255243819afe222e16c0c0075189b52": { - "describe": { - "columns": [ - { - "name": "system_address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "faction_id", - "ordinal": 1, - "type_info": "Int4" - }, - { - "name": "name", - "ordinal": 2, - "type_info": "Varchar" - }, - { - "name": "state: JournalState", - "ordinal": 3, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Blight", - "Boom", - "Bust", - "CivilLiberty", - "CivilUnrest", - "CivilWar", - "ColdWar", - "Colonisation", - "Drought", - "Election", - "Expansion", - "Famine", - "HistoricEvent", - "InfrastructureFailure", - "Investment", - "Lockdown", - "NaturalDisaster", - "Outbreak", - "PirateAttack", - "PublicHoliday", - "Retreat", - "Revolution", - "TechnologicalLeap", - "Terrorism", - "TradeWar", - "War" - ] - }, - "name": "state" - } - } - }, - { - "name": "influence", - "ordinal": 4, - "type_info": "Float4" - }, - { - "name": "happiness: Happiness", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Elated", - "Happy", - "Discontented", - "Unhappy", - "Despondent" - ] - }, - "name": "happiness" - } - } - }, - { - "name": "government: Government", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Anarchy", - "Carrier", - "Communism", - "Confederacy", - "Cooperative", - "Corporate", - "Democracy", - "Dictatorship", - "Engineer", - "Feudal", - "Patronage", - "Prison", - "PrisonColony", - "Theocracy" - ] - }, - "name": "government" - } - } - }, - { - "name": "allegiance: Allegiance", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Alliance", - "Empire", - "Federation", - "Guardian", - "Independent", - "PilotsFederation", - "PlayerPilots", - "Thargoid" - ] - }, - "name": "allegiance" - } - } - }, - { - "name": "updated_at", - "ordinal": 8, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - true, - false, - false, - false - ], - "parameters": { - "Left": [ - "Int8" - ] - } - }, - "query": "\n SELECT\n system_address,\n faction_id,\n name,\n state AS \"state: JournalState\",\n influence,\n happiness AS \"happiness: Happiness\",\n government AS \"government: Government\",\n allegiance AS \"allegiance: Allegiance\",\n updated_at\n FROM system_factions\n JOIN factions ON faction_id = id\n WHERE system_address = $1\n ORDER BY influence DESC\n " - }, - "ee8c588dbb247bc9514acba685d817624f5368a7065ea2cb068c922d5f7349f8": { - "describe": { - "columns": [ - { - "name": "address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "position!: Option>", - "ordinal": 2, - "type_info": { - "Custom": { - "kind": "Simple", - "name": "geometry" - } - } - }, - { - "name": "population", - "ordinal": 3, - "type_info": "Int8" - }, - { - "name": "security: Security", - "ordinal": 4, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Low", - "Medium", - "High" - ] - }, - "name": "security" - } - } - }, - { - "name": "government: Government", - "ordinal": 5, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Anarchy", - "Carrier", - "Communism", - "Confederacy", - "Cooperative", - "Corporate", - "Democracy", - "Dictatorship", - "Engineer", - "Feudal", - "Patronage", - "Prison", - "PrisonColony", - "Theocracy" - ] - }, - "name": "government" - } - } - }, - { - "name": "allegiance: Allegiance", - "ordinal": 6, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Alliance", - "Empire", - "Federation", - "Guardian", - "Independent", - "PilotsFederation", - "PlayerPilots", - "Thargoid" - ] - }, - "name": "allegiance" - } - } - }, - { - "name": "primary_economy: Economy", - "ordinal": 7, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - }, - { - "name": "secondary_economy: Economy", - "ordinal": 8, - "type_info": { - "Custom": { - "kind": { - "Enum": [ - "Agriculture", - "Carrier", - "Colony", - "Extraction", - "HighTech", - "Industrial", - "Military", - "Prison", - "Refinery", - "Service", - "Terraforming", - "Tourism", - "Undefined" - ] - }, - "name": "economy" - } - } - }, - { - "name": "updated_at", - "ordinal": 9, - "type_info": "Timestamp" - }, - { - "name": "updated_by", - "ordinal": 10, - "type_info": "Varchar" - } - ], - "nullable": [ - false, - false, - true, - true, - true, - true, - true, - true, - true, - false, - false - ], - "parameters": { - "Left": [ - "Text" - ] - } - }, - "query": "\n SELECT\n systems.address,\n systems.name,\n systems.position AS \"position!: Option>\",\n systems.population,\n systems.security as \"security: Security\",\n systems.government as \"government: Government\",\n systems.allegiance as \"allegiance: Allegiance\",\n systems.primary_economy as \"primary_economy: Economy\",\n systems.secondary_economy as \"secondary_economy: Economy\",\n systems.updated_at,\n systems.updated_by\n FROM systems\n JOIN system_factions ON system_factions.system_address = systems.address\n JOIN factions ON factions.id = system_factions.faction_id\n WHERE factions.name ILIKE $1\n " - }, - "f36dc7ca2e4572d5707f77c996b67728d2227bcc94113ccb9ce64540eb47db67": { - "describe": { - "columns": [ - { - "name": "system_address", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "id", - "ordinal": 2, - "type_info": "Int2" - }, - { - "name": "parent_id", - "ordinal": 3, - "type_info": "Int2" - }, - { - "name": "updated_at", - "ordinal": 4, - "type_info": "Timestamp" - }, - { - "name": "updated_by", - "ordinal": 5, - "type_info": "Varchar" - }, - { - "name": "planet_class", - "ordinal": 6, - "type_info": "Varchar" - }, - { - "name": "tidal_lock", - "ordinal": 7, - "type_info": "Bool" - }, - { - "name": "landable", - "ordinal": 8, - "type_info": "Bool" - }, - { - "name": "terraform_state", - "ordinal": 9, - "type_info": "Varchar" - }, - { - "name": "atmosphere", - "ordinal": 10, - "type_info": "Varchar" - }, - { - "name": "atmosphere_type", - "ordinal": 11, - "type_info": "Varchar" - }, - { - "name": "volcanism", - "ordinal": 12, - "type_info": "Varchar" - }, - { - "name": "mass", - "ordinal": 13, - "type_info": "Float4" - }, - { - "name": "radius", - "ordinal": 14, - "type_info": "Float4" - }, - { - "name": "surface_gravity", - "ordinal": 15, - "type_info": "Float4" - }, - { - "name": "surface_temperature", - "ordinal": 16, - "type_info": "Float4" - }, - { - "name": "surface_pressure", - "ordinal": 17, - "type_info": "Float4" - }, - { - "name": "semi_major_axis", - "ordinal": 18, - "type_info": "Float4" - }, - { - "name": "eccentricity", - "ordinal": 19, - "type_info": "Float4" - }, - { - "name": "orbital_inclination", - "ordinal": 20, - "type_info": "Float4" - }, - { - "name": "periapsis", - "ordinal": 21, - "type_info": "Float4" - }, - { - "name": "orbital_period", - "ordinal": 22, - "type_info": "Float4" - }, - { - "name": "rotation_period", - "ordinal": 23, - "type_info": "Float4" - }, - { - "name": "axial_tilt", - "ordinal": 24, - "type_info": "Float4" - }, - { - "name": "ascending_node", - "ordinal": 25, - "type_info": "Float4" - }, - { - "name": "mean_anomaly", - "ordinal": 26, - "type_info": "Float4" - }, - { - "name": "was_mapped", - "ordinal": 27, - "type_info": "Bool" - }, - { - "name": "was_discovered", - "ordinal": 28, - "type_info": "Bool" - } - ], - "nullable": [ - false, - false, - false, - true, - false, - false, - false, - false, - false, - true, - true, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ], - "parameters": { - "Left": [ - "Int8", - "Int2" - ] - } - }, - "query": "\n SELECT *\n FROM bodies\n WHERE system_address = $1 AND id = $2\n " - }, - "fe0ee08a0b3b6fe14c01161834d96f6e46f8f824984bbcbcae16c212cd35f575": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int4" - }, - { - "name": "title", - "ordinal": 1, - "type_info": "Text" - }, - { - "name": "date", - "ordinal": 2, - "type_info": "Date" - }, - { - "name": "body", - "ordinal": 3, - "type_info": "Text" - } - ], - "nullable": [ - false, - true, - false, - false - ], - "parameters": { - "Left": [ - "Int8", - "Int8" - ] - } - }, - "query": "\n SELECT *\n FROM articles\n LIMIT $1 OFFSET $2\n " - } + "db": "PostgreSQL" } \ No newline at end of file