feat: add timezone support for schedule and user runtime (#282)

This commit is contained in:
Yiming Qi
2026-03-26 01:32:02 +08:00
committed by GitHub
parent 3a7f5200ed
commit 03ba13e7e5
51 changed files with 793 additions and 100 deletions
+2
View File
@@ -17,6 +17,7 @@ CREATE TABLE IF NOT EXISTS users (
role user_role NOT NULL DEFAULT 'member',
display_name TEXT,
avatar_url TEXT,
timezone TEXT NOT NULL DEFAULT 'UTC',
data_root TEXT,
last_login_at TIMESTAMPTZ,
is_active BOOLEAN NOT NULL DEFAULT true,
@@ -156,6 +157,7 @@ CREATE TABLE IF NOT EXISTS bots (
type TEXT NOT NULL,
display_name TEXT,
avatar_url TEXT,
timezone TEXT,
is_active BOOLEAN NOT NULL DEFAULT true,
status TEXT NOT NULL DEFAULT 'ready',
max_context_load_time INTEGER NOT NULL DEFAULT 1440,