feat: 创建数据库

This commit is contained in:
R524809
2026-10-12 16:56:42 +08:00
parent 3c6fd2c8ca
commit 63a6993276
35 changed files with 826 additions and 266 deletions
@@ -0,0 +1,14 @@
-- 初始配置锁行;可重复执行,绝不覆盖已经导入的页面、版本或 enabled=false。
-- 不插入假用户、假题型或生产管理员;不启动任何调度器。
BEGIN;
SET LOCAL TIME ZONE 'UTC';
INSERT INTO public.page_configs (id, home, category, age, version)
VALUES ('current', NULL, NULL, NULL, 0)
ON CONFLICT (id) DO NOTHING;
INSERT INTO public.settings (id, value, version)
VALUES ('homeAutoRefresh', '{"enabled": true}'::jsonb, 0)
ON CONFLICT (id) DO NOTHING;
COMMIT;