Support for comments
Some checks failed
Rust / Test (push) Failing after 4m13s
Rust / Rustfmt (push) Successful in 22s
Rust / Clippy (push) Failing after 31s
Rust / Code coverage (push) Successful in 6m21s

This commit is contained in:
Alphonse Paix
2025-10-02 00:26:18 +02:00
parent 2c7282475f
commit cb3f216591
14 changed files with 380 additions and 2751 deletions

View File

@@ -0,0 +1,7 @@
CREATE TABLE comments (
comment_id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
post_id UUID NOT NULL REFERENCES posts (post_id) ON DELETE CASCADE,
author TEXT,
content TEXT NOT NULL,
published_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);