diff options
author | Dessalines <tyhou13@gmx.com> | 2019-03-26 11:00:18 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-03-26 11:00:18 -0700 |
commit | 25dcb8f4f4f80e401d1d3154923e2dcd05664c76 (patch) | |
tree | 85e9644b64e0eb3fa139db18075dbfd73f854a38 /server/migrations | |
parent | e1cb805cfc719d6266ec50e5f1ef3ac1edf74656 (diff) |
Adding a few endpoints.
- Adding CreatePost, CreateComment, CreateCommunity
Diffstat (limited to 'server/migrations')
-rw-r--r-- | server/migrations/2019-03-03-163336_create_post/up.sql | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/migrations/2019-03-03-163336_create_post/up.sql b/server/migrations/2019-03-03-163336_create_post/up.sql index a617ea33..f22192f3 100644 --- a/server/migrations/2019-03-03-163336_create_post/up.sql +++ b/server/migrations/2019-03-03-163336_create_post/up.sql @@ -1,8 +1,10 @@ create table post ( id serial primary key, name varchar(100) not null, - url text not null, + url text, -- These are both optional, a post can just have a title + body text, attributed_to text not null, + community_id int references community on update cascade on delete cascade not null, published timestamp not null default now(), updated timestamp ); |