Alembic configuration
This commit is contained in:
25
models/__init__.py
Normal file
25
models/__init__.py
Normal file
@@ -0,0 +1,25 @@
|
||||
# models/__init__.py
|
||||
"""Models package - Database and API models."""
|
||||
|
||||
# Database models (SQLAlchemy)
|
||||
from .database.base import Base
|
||||
from .database.user import User
|
||||
from .database.product import Product
|
||||
from .database.stock import Stock
|
||||
from .database.shop import Shop, ShopProduct
|
||||
from .database.marketplace import MarketplaceImportJob
|
||||
|
||||
# API models (Pydantic) - import the modules, not all classes
|
||||
from . import api
|
||||
|
||||
# Export database models for Alembic
|
||||
__all__ = [
|
||||
"Base",
|
||||
"User",
|
||||
"Product",
|
||||
"Stock",
|
||||
"Shop",
|
||||
"ShopProduct",
|
||||
"MarketplaceImportJob",
|
||||
"api", # API models namespace
|
||||
]
|
||||
Reference in New Issue
Block a user