"""Database settings reused from the existing backend application. Credentials stay in the project's single source of truth (``数据库.md`` read by ``backend/app/config.py``); this module only exposes them to ``models/`` without copying any secret. """ from __future__ import annotations import sys from pathlib import Path ROOT = Path(__file__).resolve().parents[2] BACKEND = ROOT / "backend" if str(BACKEND) not in sys.path: sys.path.insert(0, str(BACKEND)) from app.config import settings # noqa: E402 __all__ = ["settings", "ROOT", "BACKEND"]