Initial commit

This commit is contained in:
2026-04-30 18:38:38 +03:00
commit 8d71819caf
20 changed files with 2134 additions and 0 deletions

11
database/db.py Normal file
View File

@@ -0,0 +1,11 @@
import sqlite3
from config import PROJECT_ROOT
DB_PATH = PROJECT_ROOT / "database" / "data_base.db"
def get_connection():
conn = sqlite3.connect(DB_PATH)
conn.execute("PRAGMA foreign_keys = ON")
return conn