Automated Action 5570e6e49e Add database models for food delivery API
- Create base model with timestamp mixin
- Add user model with roles
- Add restaurant model
- Add menu item model with categories
- Add order and order item models
- Add delivery model
- Fix import issues and linting errors
2025-05-31 03:41:37 +00:00

19 lines
834 B
Python

# Import all models for easier access
# These imports are intentional for making models available from this module
from app.models.base import BaseModel, TimestampMixin # noqa: F401
from app.models.user import User, UserRole # noqa: F401
from app.models.restaurant import Restaurant # noqa: F401
from app.models.menu_item import MenuItem, MenuItemCategory # noqa: F401
from app.models.order import Order, OrderItem, OrderStatus, PaymentMethod, PaymentStatus # noqa: F401
from app.models.delivery import Delivery, DeliveryStatus # noqa: F401
# Define __all__ to explicitly export these names
__all__ = [
"BaseModel", "TimestampMixin",
"User", "UserRole",
"Restaurant",
"MenuItem", "MenuItemCategory",
"Order", "OrderItem", "OrderStatus", "PaymentMethod", "PaymentStatus",
"Delivery", "DeliveryStatus",
]