diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-20 14:43:57 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-20 14:43:57 +0100 |
commit | 00fcfd299b7a1aa5177c97d2b13c0d9d587678e5 (patch) | |
tree | 19a79e024aa2b4bf7a918e30a2b0f3bfa555a4db /install/postgres.sql | |
parent | 79e051a1f216704752e05f5174633abf20dde582 (diff) | |
download | wallabag-00fcfd299b7a1aa5177c97d2b13c0d9d587678e5.tar.gz wallabag-00fcfd299b7a1aa5177c97d2b13c0d9d587678e5.tar.zst wallabag-00fcfd299b7a1aa5177c97d2b13c0d9d587678e5.zip |
whoops, deleted install folder
Diffstat (limited to 'install/postgres.sql')
-rw-r--r-- | install/postgres.sql | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/install/postgres.sql b/install/postgres.sql new file mode 100644 index 00000000..1d73dfcb --- /dev/null +++ b/install/postgres.sql | |||
@@ -0,0 +1,41 @@ | |||
1 | CREATE TABLE IF NOT EXISTS config ( | ||
2 | id bigserial primary key, | ||
3 | name varchar(255) NOT NULL, | ||
4 | value varchar(255) NOT NULL | ||
5 | ); | ||
6 | |||
7 | CREATE TABLE IF NOT EXISTS 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 IF NOT EXISTS 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 IF NOT EXISTS 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 | ); | ||
31 | |||
32 | CREATE TABLE IF NOT EXISTS tags ( | ||
33 | id bigserial primary key, | ||
34 | value varchar(255) NOT NULL | ||
35 | ); | ||
36 | |||
37 | CREATE TABLE IF NOT EXISTS tags_entries ( | ||
38 | id bigserial primary key, | ||
39 | entry_id integer NOT NULL, | ||
40 | tag_id integer NOT NULL | ||
41 | ) | ||