From 320353348d1e0a07bdfa55b446e299b6bf0aec84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=A5=E5=BE=AE?= Date: Sun, 5 Jul 2026 01:37:40 +0800 Subject: [PATCH] feat: add todos table to mofin_db + DB_PATH fix for self_todo_executor --- mofin_db.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/mofin_db.py b/mofin_db.py index b298e66..7cfb488 100644 --- a/mofin_db.py +++ b/mofin_db.py @@ -409,6 +409,21 @@ def init_all_tables(conn: sqlite3.Connection): cache_json TEXT, updated_at TEXT DEFAULT (datetime('now','localtime')) ); + + -- Self-TODO 自动化任务表 + CREATE TABLE IF NOT EXISTS todos ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + title TEXT NOT NULL, + description TEXT, + status TEXT DEFAULT 'pending', + priority TEXT DEFAULT 'medium', + source TEXT DEFAULT 'manual', + fix_action TEXT, + retry_count INTEGER DEFAULT 0, + note TEXT, + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP + ); """) conn.commit()