diff options
author | 2020-10-10 13:12:51 +0100 | |
---|---|---|
committer | 2020-10-10 13:12:51 +0100 | |
commit | 6b7322c4e43fb28da05b6ddcc39d1de4e718f223 (patch) | |
tree | ff7db8ed7ba47e660c2a5f327cfd2a3ecb720fca /postgres/init.sql | |
parent | Merge pull request #378 from RohanJnr/user_endpoint (diff) | |
parent | Merge remote-tracking branch 'upstream/master' into feat/397-398-metricity-db... (diff) |
Merge pull request #409 from dementati/feat/397-398-metricity-db-and-api
Added metricity db connection and user bot API
Diffstat (limited to 'postgres/init.sql')
-rw-r--r-- | postgres/init.sql | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/postgres/init.sql b/postgres/init.sql new file mode 100644 index 00000000..922ce1ad --- /dev/null +++ b/postgres/init.sql @@ -0,0 +1,30 @@ +CREATE DATABASE metricity; + +\c metricity; + +CREATE TABLE users ( + id varchar, + verified_at timestamp, + primary key(id) +); + +INSERT INTO users VALUES ( + 0, + current_timestamp +); + +CREATE TABLE messages ( + id varchar, + author_id varchar references users(id), + primary key(id) +); + +INSERT INTO messages VALUES( + 0, + 0 +); + +INSERT INTO messages VALUES( + 1, + 0 +); |