feat(schema): add gate_links and economics tables to systems-schema.sql (#813)

Extends systems.db schema with gate_links, commodities, production_chains,
chain_inputs, corp_presence, and currency_zones tables required for the
Phase 2 economics layer.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-07 13:55:31 +02:00
co-authored by Claude Sonnet 4.6
parent c605f28328
commit 4d1b0efbbe
+5
View File
@@ -41,6 +41,11 @@ CREATE TABLE IF NOT EXISTS star_systems (
-- Economics (D-172)
currency_zone TEXT DEFAULT 'TRACTUS_PRIMARY', -- TRACTUS_PRIMARY | MARK_PRIMARY | MIXED
-- Energy-over-gate (D-186)
-- Gate Corp energy service: on-grid nodes get ~0.3× fusion_fuel utility demand.
-- MARK_PRIMARY zones default false (Compact refused Gate Corp dependency).
gate_energy_connected INTEGER DEFAULT 1, -- boolean 0/1
updated_at TEXT DEFAULT (datetime('now'))
);