From 4ca6b42ee43a81bc94535bcabffe083dcd1c5d14 Mon Sep 17 00:00:00 2001 From: Furrium Network Date: Sun, 9 Aug 2026 22:09:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schema.sql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/schema.sql b/schema.sql index 3030cd8..c438fac 100644 --- a/schema.sql +++ b/schema.sql @@ -91,3 +91,20 @@ nano schema.sql CREATE TRIGGER update_posts_updated_at BEFORE UPDATE ON posts FOR EACH ROW EXECUTE FUNCTION update_updated_at(); + +-- ============================================================ +-- 自定义页面表 +-- ============================================================ +CREATE TABLE IF NOT EXISTS custom_pages ( + id UUID PRIMARY KEY DEFAULT gen_random_uuid(), + name VARCHAR(50) NOT NULL UNIQUE, + title VARCHAR(100) NOT NULL, + content TEXT NOT NULL, + sort_order INT DEFAULT 0, + enabled BOOLEAN DEFAULT true, + created_at TIMESTAMPTZ DEFAULT now(), + updated_at TIMESTAMPTZ DEFAULT now() +); + +CREATE INDEX IF NOT EXISTS idx_custom_pages_name ON custom_pages(name); +CREATE INDEX IF NOT EXISTS idx_custom_pages_sort_order ON custom_pages(sort_order);