chore: initial commit of HouseholdBudgetBook (backend, frontend, desktop)
This commit is contained in:
commit
4a5db3f1f9
167 files changed
+21732
No files matched your search
@@ -0,0 +1,5 @@
|
||||
-- 资产可绑定到账户:当 account_id 不为 NULL 时,资产的 value 由该账户的 current_balance 实时派生。
|
||||
-- 兼容旧数据:原有手工资产保持 account_id IS NULL,行为不变。
|
||||
|
||||
ALTER TABLE assets ADD COLUMN account_id INTEGER REFERENCES accounts(id) ON DELETE SET NULL;
|
||||
CREATE INDEX IF NOT EXISTS idx_assets_account_id ON assets(account_id);
|
||||
Reference in new issue
Block a user