Files
computer-science-flash-cards/data/schema.sql
2021-05-23 18:25:31 +07:00

14 lines
306 B
SQL

drop table if exists cards;
create table cards (
id integer primary key autoincrement,
type tinyint not null, /* 1 for vocab, 2 for code */
front text not null,
back text not null,
known boolean default 0
);
create table tags (
id integer primary key autoincrement,
tagName text not null
);