1
0
mirror of https://github.com/hexolan/panels.git synced 2026-05-20 11:39:22 +01:00
Files
panels/services/comment-service/comment_service/postgres/migrations/000001_init_comments.up.sql
T
2023-09-27 16:05:24 +01:00

11 lines
268 B
SQL

CREATE TABLE comments (
"id" serial PRIMARY KEY,
"post_id" varchar(64) NOT NULL,
"author_id" varchar(64) NOT NULL,
"message" varchar(512) NOT NULL,
"created_at" timestamp NOT NULL DEFAULT timezone('utc', now()),
"updated_at" timestamp
);