-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema.sql
37 lines (32 loc) · 889 Bytes
/
schema.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
drop table if exists users;
create table users (
id integer not null,
name varchar not null
);
drop table if exists illusts;
create table illusts (
id integer not null,
number integer not null,
name varchar not null,
user integer not null,
url varchar not null,
downloaded integer not null
);
drop table if exists dailyrank;
create table dailyrank (
id integer not null,
ranktime date not null
);
drop table if exists bookmarks;
create table bookmarks (
id integer not null,
restrict integer not null,
downloaded integer not null
);
drop table if exists options;
create table options (
name varchar not null,
value varchar not null
);
INSERT INTO options(name,value) values('software_version','1.0.0');
INSERT INTO options(name,value) values('database_version','1.0.0');