Setup for postgres database & schema for blogposts.
This commit is contained in:
7
api/database/schemas/posts.sql
Normal file
7
api/database/schemas/posts.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
CREATE TABLE IF NOT EXISTS posts (
|
||||
id serial PRIMARY KEY,
|
||||
title text,
|
||||
created timestamp DEFAULT CURRENT_TIMESTAMP,
|
||||
updated timestamp DEFAULT CURRENT_TIMESTAMP,
|
||||
markdown text
|
||||
)
|
||||
Reference in New Issue
Block a user