feat: implement wiki and wiki content management system including database schemas, DTOs, and API endpoints
All checks were successful
Build and Release / release (push) Successful in 1m33s
All checks were successful
Build and Release / release (push) Successful in 1m33s
This commit is contained in:
@@ -5,7 +5,6 @@ CREATE TABLE IF NOT EXISTS wikis (
|
||||
project_id UUID NOT NULL REFERENCES projects(id) ON DELETE CASCADE,
|
||||
title TEXT,
|
||||
slug TEXT,
|
||||
content TEXT,
|
||||
is_deleted BOOLEAN NOT NULL DEFAULT false,
|
||||
created_at TIMESTAMPTZ DEFAULT now(),
|
||||
updated_at TIMESTAMPTZ DEFAULT now()
|
||||
|
||||
1
db/migrations/000016_wiki_content.down.sql
Normal file
1
db/migrations/000016_wiki_content.down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE IF EXISTS wiki_content;
|
||||
11
db/migrations/000016_wiki_content.up.sql
Normal file
11
db/migrations/000016_wiki_content.up.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
CREATE TABLE IF NOT EXISTS wiki_content (
|
||||
id UUID PRIMARY KEY DEFAULT uuidv7(),
|
||||
wiki_id UUID NOT NULL REFERENCES wikis(id) ON DELETE CASCADE,
|
||||
title TEXT NOT NULL,
|
||||
content TEXT,
|
||||
is_deleted BOOLEAN NOT NULL DEFAULT false,
|
||||
created_at TIMESTAMPTZ DEFAULT now()
|
||||
);
|
||||
|
||||
CREATE INDEX idx_wiki_content_wiki_id ON wiki_content(wiki_id);
|
||||
CREATE INDEX idx_wiki_content_created_at ON wiki_content(created_at DESC);
|
||||
Reference in New Issue
Block a user