Intelligence, Advanced Charting & Trading Platform
phase-1/candle-builder
diagnostics/chartnova-blank-screen-2026-10-15
diagnostics/chartnova-stage2-v27-preview-2026-10-15
docs/chartnova-stage1-reconcile-manifest-2026-10-15
feature/chartnova-ios-widget
feature/chartnova-light-catalog-lazy-series-2026-10-15
feature/chartnova-market-terminal
feature/chartnova-multimarket-chart-ws-foundation
feature/chartnova-neon-direct-history
feature/chartnova-neon-history
feature/paper-trading-risk-controls-2026-10-14
fix/alpha-vantage-live-payload
fix/chartnova-progressive-loading-2026-10-15
fix/live-proof-runner-cwd-2026-10-14
foundation/phase-0
foundation/postgres-core
main
ops/chartnova-emergency-rollback-2026-10-15
phase-1/candle-builder
phase-1/data-proof-artifact
phase-1/data-proof-metrics
phase-1/data-proof-report
phase-1/external-gates-state
phase-1/gold-api-fallback
phase-1/ingestion-pipeline
phase-1/live-proof-runner
phase-1/market-calendar
phase-1/market-domain
phase-1/neon-live-proof
phase-1/persistence-contract
phase-1/postgres-ci
phase-1/provider-adapters
phase-1/provider-recovery
phase-1/quality-propagation
phase-1/spike-detection
phase-1/xau-provider-adapter
risk/chartnova-alert-runtime-atomic-2026-10-22
risk/chartnova-atomic-outbox-2026-10-22
risk/chartnova-seven-track-safety-2026-10-21
safety/p0-triage-2026-10-13
| 1 | BEGIN; |
| 2 | |
| 3 | CREATE TABLE app_users ( |
| 4 | id UUID PRIMARY KEY, |
| 5 | created_at TIMESTAMPTZ NOT NULL DEFAULT now() |
| 6 | ); |
| 7 | |
| 8 | CREATE TABLE workspaces ( |
| 9 | id UUID PRIMARY KEY, |
| 10 | user_id UUID NOT NULL REFERENCES app_users(id) ON DELETE CASCADE, |
| 11 | name TEXT NOT NULL, |
| 12 | active_symbol TEXT NOT NULL REFERENCES instruments(symbol), |
| 13 | timeframe TEXT NOT NULL, |
| 14 | layout JSONB NOT NULL DEFAULT '{}'::jsonb, |
| 15 | created_at TIMESTAMPTZ NOT NULL DEFAULT now(), |
| 16 | updated_at TIMESTAMPTZ NOT NULL DEFAULT now() |
| 17 | ); |
| 18 | CREATE INDEX workspaces_user_idx ON workspaces (user_id, updated_at DESC); |
| 19 | |
| 20 | CREATE TABLE drawings ( |
| 21 | id UUID PRIMARY KEY, |
| 22 | workspace_id UUID NOT NULL REFERENCES workspaces(id) ON DELETE CASCADE, |
| 23 | instrument_id BIGINT NOT NULL REFERENCES instruments(id), |
| 24 | drawing_type TEXT NOT NULL, |
| 25 | payload JSONB NOT NULL, |
| 26 | created_at TIMESTAMPTZ NOT NULL DEFAULT now(), |
| 27 | updated_at TIMESTAMPTZ NOT NULL DEFAULT now() |
| 28 | ); |
| 29 | CREATE INDEX drawings_workspace_idx ON drawings (workspace_id, instrument_id); |
| 30 | |
| 31 | COMMIT; |