import sqlite3 import os db_path = "database/domovoy.db" conn = sqlite3.connect(db_path) cursor = conn.cursor() cursor.execute(''' CREATE TABLE IF NOT EXISTS chat_exports ( id INTEGER PRIMARY KEY AUTOINCREMENT, export_date DATETIME DEFAULT CURRENT_TIMESTAMP, filename TEXT NOT NULL, total_messages INTEGER, git_pushed BOOLEAN DEFAULT 0 ) ''') conn.commit() conn.close() print("✅ Таблица chat_exports создана")