加入部分消息通知入口,同步前端管理

This commit is contained in:
2026-03-19 10:45:58 +08:00
parent 1e25c085a5
commit c25c766223
10 changed files with 454 additions and 5 deletions

View File

@@ -74,3 +74,16 @@ CREATE TABLE IF NOT EXISTS invite_codes (
INDEX idx_invite_codes_code (code),
INDEX idx_invite_codes_is_used (is_used)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- System config table (key-value)
CREATE TABLE IF NOT EXISTS system_config (
`key` VARCHAR(64) PRIMARY KEY,
`value` VARCHAR(500) NOT NULL DEFAULT '',
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- 默认配置
INSERT IGNORE INTO system_config (`key`, `value`) VALUES
('webhook_url', ''),
('daily_report_hour', '23'),
('daily_report_minute', '30');