From b7166c5e5b9fe70fe7adc9d2af01e8cfd5fede71 Mon Sep 17 00:00:00 2001 From: john Date: Sun, 10 Aug 2025 19:57:53 +0200 Subject: [PATCH] add migration --- .../Migrations/20250810172242_AddCommentToPost.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Femto.Database/Migrations/20250810172242_AddCommentToPost.sql diff --git a/Femto.Database/Migrations/20250810172242_AddCommentToPost.sql b/Femto.Database/Migrations/20250810172242_AddCommentToPost.sql new file mode 100644 index 0000000..44e0086 --- /dev/null +++ b/Femto.Database/Migrations/20250810172242_AddCommentToPost.sql @@ -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() +) \ No newline at end of file