init post-service

This commit is contained in:
2023-09-27 16:17:47 +01:00
parent e0bd8ef953
commit 0341a938fd
31 changed files with 5666 additions and 0 deletions

View File

@@ -0,0 +1 @@
DROP TABLE IF EXISTS posts CASCADE;

View File

@@ -0,0 +1,9 @@
CREATE TABLE posts (
"id" serial PRIMARY KEY,
"panel_id" varchar(64) NOT NULL,
"author_id" varchar(64) NOT NULL,
"title" varchar(512) NOT NULL,
"content" TEXT NOT NULL,
"created_at" timestamp NOT NULL DEFAULT timezone('utc', now()),
"updated_at" timestamp
);