(feat) Server is now running
Added DB schemas that are needed for the basics. Signed-off-by: Louis Hollingworth <louis@hollingworth.nl>
This commit is contained in:
parent
b330bea46d
commit
cf80d4b70d
11 changed files with 111 additions and 24 deletions
|
|
@ -10,7 +10,7 @@ CREATE TABLE posts (
|
|||
title VARCHAR NOT NULL,
|
||||
body TEXT NOT NULL,
|
||||
published BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
author INTEGER NOT NULL REFERENCES users(id),
|
||||
user_id UUID NOT NULL REFERENCES users(id),
|
||||
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT NOW()
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue