feat:新增ai分析,新增储值账户,优化通知规则

This commit is contained in:
2026-03-12 14:03:01 +08:00
parent 6a00875246
commit 6ca962a187
22 changed files with 1294 additions and 237 deletions

View File

@@ -13,6 +13,13 @@ const TRANSACTION_TABLE_SQL = `
date TEXT NOT NULL,
note TEXT,
sync_status INTEGER DEFAULT 0,
entry_type TEXT DEFAULT 'expense',
fund_source_type TEXT DEFAULT 'cash',
fund_source_name TEXT,
fund_target_type TEXT DEFAULT 'merchant',
fund_target_name TEXT,
impact_expense INTEGER DEFAULT 1,
impact_income INTEGER DEFAULT 0,
ai_category TEXT,
ai_tags TEXT,
ai_confidence REAL,
@@ -33,6 +40,13 @@ const MERCHANT_PROFILE_TABLE_SQL = `
);
`
const TRANSACTION_REQUIRED_COLUMNS = {
entry_type: "TEXT DEFAULT 'expense'",
fund_source_type: "TEXT DEFAULT 'cash'",
fund_source_name: 'TEXT',
fund_target_type: "TEXT DEFAULT 'merchant'",
fund_target_name: 'TEXT',
impact_expense: 'INTEGER DEFAULT 1',
impact_income: 'INTEGER DEFAULT 0',
ai_category: 'TEXT',
ai_tags: 'TEXT',
ai_confidence: 'REAL',