replica(rechner): architecture and schema

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-17 15:51:27 +02:00
co-authored by Claude Opus 5.5
parent f25e10d217
commit 021f7106cc
2 changed files with 52 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
-- Local SQLite (Room). No network, no accounts.
CREATE TABLE history (
id INTEGER PRIMARY KEY AUTOINCREMENT,
expression TEXT NOT NULL CHECK (length(expression) > 0),
result TEXT NOT NULL,
created_at INTEGER NOT NULL -- epoch ms UTC; grouped by local day in the UI
);
CREATE INDEX history_created ON history(created_at);
-- Memory value, angle unit, theme and the current (unfinished) expression live in DataStore.