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
|
||||
)
|
||||
6
api/database/schemas/seed.sql
Normal file
6
api/database/schemas/seed.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
CREATE TABLE IF NOT EXISTS seed (
|
||||
seed_id serial PRIMARY KEY,
|
||||
filename text,
|
||||
run_date timestamp DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
Reference in New Issue
Block a user