ForcePilot/src/storage/db/__init__.py

19 lines
410 B
Python

from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
# 导入所有模型,确保它们被注册到 Base.metadata
# 导入数据库管理器
from src.storage.db.manager import db_manager # noqa: E402
from src.storage.db.models import ( # noqa: E402, F401
OperationLog,
User,
) # noqa: E402
__all__ = [
"Base",
"User",
"OperationLog",
"db_manager",
]