first commit

This commit is contained in:
2026-06-13 12:58:12 +03:00
commit 6cb70c88cf
24 changed files with 3051 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
create table card_set
(
id INTEGER
primary key autoincrement,
name TEXT not null,
forward TEXT not null,
backward TEXT not null,
filter TEXT not null
);
create table settings
(
id text
primary key,
value text
);
create table word_group
(
id INTEGER
primary key autoincrement,
name TEXT not null
);
create table words
(
id INTEGER
primary key autoincrement,
key TEXT not null,
value TEXT not null,
tags TEXT not null,
more TEXT,
group_id integer default 1 not null
constraint words_word_group_id_fk
references word_group
on update cascade on delete cascade
);
create table card_stats
(
id INTEGER
primary key autoincrement,
word_id INTEGER not null
references words
on delete cascade,
set_id TEXT not null
references card_set
on delete cascade,
score INTEGER default 1 not null,
last_opened integer not null
);