Adding views and schema.

This commit is contained in:
John Washam
2016-06-30 19:03:09 -07:00
parent 255001f40d
commit 4b1cf0afdb
8 changed files with 240 additions and 2 deletions

8
data/schema.sql Normal file
View File

@@ -0,0 +1,8 @@
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
);