
- Set up project structure and FastAPI application - Create database models for users, products, and inventory - Configure SQLAlchemy and Alembic for database management - Implement JWT authentication - Create API endpoints for user, product, and inventory management - Add admin-only routes and authorization middleware - Add health check endpoint - Update README with documentation - Lint and fix code issues
32 lines
852 B
Python
32 lines
852 B
Python
# flake8: noqa
|
|
|
|
from .auth import Login, TokenResponse
|
|
from .inventory import (
|
|
InventoryItem,
|
|
InventoryItemCreate,
|
|
InventoryItemUpdate,
|
|
InventoryTransaction,
|
|
InventoryTransactionCreate,
|
|
)
|
|
from .product import (
|
|
Category,
|
|
CategoryCreate,
|
|
CategoryUpdate,
|
|
Product,
|
|
ProductCreate,
|
|
ProductUpdate,
|
|
)
|
|
from .token import Token, TokenPayload
|
|
from .user import User, UserBase, UserCreate, UserInDB, UserUpdate
|
|
|
|
# Make all schemas available in this module
|
|
__all__ = [
|
|
"Login", "TokenResponse",
|
|
"InventoryItem", "InventoryItemCreate", "InventoryItemUpdate",
|
|
"InventoryTransaction", "InventoryTransactionCreate",
|
|
"Category", "CategoryCreate", "CategoryUpdate",
|
|
"Product", "ProductCreate", "ProductUpdate",
|
|
"Token", "TokenPayload",
|
|
"User", "UserBase", "UserCreate", "UserInDB", "UserUpdate"
|
|
]
|