summaryrefslogtreecommitdiff
path: root/schema.sql
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-02-25 00:27:31 +0300
committerAndrew Dolgov <[email protected]>2017-02-25 00:27:31 +0300
commit885224d569d535b7e63ab301e4fd6cdc71c5c49b (patch)
tree30316ac1023460a53b9920e61f11f10fa87f56d0 /schema.sql
initial
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql21
1 files changed, 21 insertions, 0 deletions
diff --git a/schema.sql b/schema.sql
new file mode 100644
index 0000000..36e6c93
--- /dev/null
+++ b/schema.sql
@@ -0,0 +1,21 @@
+drop table if exists epube_settings;
+drop table if exists epube_pagination;
+drop table if exists epube_books;
+
+create table epube_settings(
+ id serial not null primary key,
+ owner varchar(200) not null unique,
+ font_size integer not null,
+ font_family varchar(200) not null,
+ line_height integer not null);
+
+create table epube_pagination(
+ id serial not null primary key,
+ bookid varchar(200) not null,
+ pagination text not null);
+
+create table epube_books(
+ id serial not null primary key,
+ bookid varchar(200) not null,
+ owner varchar(200) not null,
+ lastread integer not null);