This commit is contained in:
h z
2024-12-02 18:33:39 +00:00
parent 72807d41c1
commit 83c5662fcb
14 changed files with 236 additions and 48 deletions

10
db/models/__init__.py Normal file
View File

@@ -0,0 +1,10 @@
#db/models/__init__.py
import pkgutil
import importlib
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
package_name = "db.models"
for _, module_name, _ in pkgutil.iter_modules(__path__):
importlib.import_module(f"{package_name}.{module_name}")