modified: blueprints/auth.py

modified:   blueprints/finance.py
	modified:   core/db.py
This commit is contained in:
2026-06-23 16:38:20 -04:00
parent 5ba1c40359
commit 518ad0f987
3 changed files with 13 additions and 12 deletions

View File

@@ -66,6 +66,12 @@ def init_db(db_file):
subtotal REAL,
FOREIGN KEY(ticket_id) REFERENCES debtor_tickets(id) ON DELETE CASCADE)''')
conn.execute('''CREATE TABLE IF NOT EXISTS expenses
(id INTEGER PRIMARY KEY AUTOINCREMENT,
date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
description TEXT NOT NULL,
amount INTEGER NOT NULL)''')
conn.execute('''CREATE TABLE IF NOT EXISTS sync_deletions
(id INTEGER PRIMARY KEY AUTOINCREMENT,
entity_type TEXT NOT NULL,