Add history table and modify card_stats

This commit is contained in:
micialware committed 2026-08-28 17:44:14 +03:00
1 parent 1f3ad22e05
commit 663fa377b1
6 files changed
+153 -5

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
create table history
(
id INTEGER
primary key autoincrement,
set_id INTEGER not null references card_set on delete cascade,
stat_id INTEGER not null references card_stats on delete cascade,
timestamp INTEGER not null,
answer INTEGER not null,
before INTEGER not null,
after INTEGER not null
);