-- 最近打开的赛事项目;启动时取 last_opened_at 最新的一条自动打开。 CREATE TABLE IF NOT EXISTS recent_projects ( id INTEGER PRIMARY KEY AUTOINCREMENT, project TEXT NOT NULL UNIQUE, -- data/event_projs/<项目名> name TEXT NOT NULL DEFAULT '', -- 展示名,冗余自赛事库 settings db_path TEXT NOT NULL, -- 相对数据根目录的 event.db 路径 open_count INTEGER NOT NULL DEFAULT 1, last_opened_at TEXT NOT NULL DEFAULT (datetime('now')) ); CREATE INDEX IF NOT EXISTS idx_recent_projects_last_opened ON recent_projects(last_opened_at DESC);