diff options
author | Nicolas Frandeboeuf <nicofrand@gmail.com> | 2013-08-23 22:23:55 +0200 |
---|---|---|
committer | Nicolas Frandeboeuf <nicofrand@gmail.com> | 2013-08-23 22:23:55 +0200 |
commit | f3e4f109a3ae6cd58e0abc9e909ac823d5e3065a (patch) | |
tree | 7e1ede841a99b4070825b4717d17dac92c47273c /install/postgres.sql | |
parent | 8413a63f7d9df2695653ab2ef1d77927da6ddc55 (diff) | |
download | wallabag-f3e4f109a3ae6cd58e0abc9e909ac823d5e3065a.tar.gz wallabag-f3e4f109a3ae6cd58e0abc9e909ac823d5e3065a.tar.zst wallabag-f3e4f109a3ae6cd58e0abc9e909ac823d5e3065a.zip |
Revert "Clean markup in templates"
This reverts commit 8413a63f7d9df2695653ab2ef1d77927da6ddc55.
Diffstat (limited to 'install/postgres.sql')
-rw-r--r-- | install/postgres.sql | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/install/postgres.sql b/install/postgres.sql new file mode 100644 index 00000000..9e0e8276 --- /dev/null +++ b/install/postgres.sql | |||
@@ -0,0 +1,30 @@ | |||
1 | CREATE TABLE config ( | ||
2 | id bigserial primary key, | ||
3 | name varchar(255) NOT NULL, | ||
4 | value varchar(255) NOT NULL | ||
5 | ); | ||
6 | |||
7 | CREATE TABLE entries ( | ||
8 | id bigserial primary key, | ||
9 | title varchar(255) NOT NULL, | ||
10 | url varchar(255) NOT NULL, | ||
11 | is_read boolean DEFAULT false, | ||
12 | is_fav boolean DEFAULT false, | ||
13 | content TEXT, | ||
14 | user_id integer NOT NULL | ||
15 | ); | ||
16 | |||
17 | CREATE TABLE users ( | ||
18 | id bigserial primary key, | ||
19 | username varchar(255) NOT NULL, | ||
20 | password varchar(255) NOT NULL, | ||
21 | name varchar(255) NOT NULL, | ||
22 | email varchar(255) NOT NULL | ||
23 | ); | ||
24 | |||
25 | CREATE TABLE users_config ( | ||
26 | id bigserial primary key, | ||
27 | user_id integer NOT NULL, | ||
28 | name varchar(255) NOT NULL, | ||
29 | value varchar(255) NOT NULL | ||
30 | ); \ No newline at end of file | ||