Setup for postgres database & schema for blogposts.

This commit is contained in:
2021-01-03 18:16:52 +01:00
parent 5b9d9aeca8
commit 3aef0862ec
8 changed files with 374 additions and 0 deletions

View 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
)

View File

@@ -0,0 +1,6 @@
CREATE TABLE IF NOT EXISTS seed (
seed_id serial PRIMARY KEY,
filename text,
run_date timestamp DEFAULT CURRENT_TIMESTAMP
);