add migration
This commit is contained in:
parent
4c69c6d30d
commit
b7166c5e5b
1 changed files with 11 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
||||||
|
-- Migration: AddCommentToPost
|
||||||
|
-- Created at: 10/08/2025 17:22:42
|
||||||
|
|
||||||
|
CREATE TABLE blog.post_comment
|
||||||
|
(
|
||||||
|
id uuid PRIMARY KEY,
|
||||||
|
post_id uuid REFERENCES blog.post(id),
|
||||||
|
author_id uuid REFERENCES blog.author(id),
|
||||||
|
content TEXT NOT NULL,
|
||||||
|
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
|
||||||
|
)
|
Loading…
Add table
Add a link
Reference in a new issue