Feature: Hundeernährungs-Feature — Kalorien-Rechner, Futter-Guide, Giftliste, KI-Berater (SW by-v698)

This commit is contained in:
rene 2026-05-04 20:51:45 +02:00
parent b1d9fb4f54
commit 6e4bf25581
7 changed files with 838 additions and 8 deletions

View file

@ -1951,6 +1951,21 @@ def _migrate(conn_factory):
conn.execute("ALTER TABLE users ADD COLUMN gassi_stunde_push INTEGER NOT NULL DEFAULT 0")
logger.info("Migration: users.gassi_stunde_push bereit.")
# Futter-Profil
conn.executescript("""
CREATE TABLE IF NOT EXISTS futter_profil (
id INTEGER PRIMARY KEY AUTOINCREMENT,
dog_id INTEGER REFERENCES dogs(id) ON DELETE CASCADE UNIQUE,
futter_typ TEXT,
marke TEXT,
kcal_tag INTEGER,
portionen INTEGER DEFAULT 2,
notizen TEXT,
updated_at TEXT NOT NULL DEFAULT (datetime('now'))
);
""")
logger.info("Migration: futter_profil bereit.")
# Wiederkehrende Ausgaben (Daueraufträge)
conn.executescript("""
CREATE TABLE IF NOT EXISTS recurring_expenses (