feat: add charts table schema and migration with data backfill

- Add charts table with id, name (unique), created_at
- Add chart_id FK to candles table with composite unique on (chart_id, time)
- Add chart_id FK to annotations table
- Custom migration handles existing data: creates 'Imported Data' chart and backfills chart_id
- Recreates tables for NOT NULL constraint (SQLite limitation)
This commit is contained in:
Marko Djordjevic 2026-02-13 00:12:21 +01:00
parent 178834f3b2
commit 92d3339a48
14 changed files with 913 additions and 3 deletions

View file

@ -0,0 +1,2 @@
schema: spec-driven
created: 2026-02-12