
Create a complete e-commerce application with the following features: - User authentication and authorization - Product and category management - Shopping cart functionality - Order processing - Database migrations with Alembic - Comprehensive documentation
20 lines
569 B
Python
20 lines
569 B
Python
# Import all models
|
|
from app.models.user import User # noqa
|
|
from app.models.category import Category # noqa
|
|
from app.models.product import Product # noqa
|
|
from app.models.order import Order, OrderStatus # noqa
|
|
from app.models.order_item import OrderItem # noqa
|
|
from app.models.cart import Cart # noqa
|
|
from app.models.cart_item import CartItem # noqa
|
|
|
|
# Define __all__ to specify what gets imported with `from app.models import *`
|
|
__all__ = [
|
|
"User",
|
|
"Category",
|
|
"Product",
|
|
"Order",
|
|
"OrderStatus",
|
|
"OrderItem",
|
|
"Cart",
|
|
"CartItem",
|
|
] |