Automated Action b8143c43e4 Implement ecommerce authentication and inventory API
- 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
2025-06-08 21:40:55 +00:00

13 lines
237 B
Python

from pydantic import BaseModel, EmailStr
class Login(BaseModel):
"""Login schema."""
email: EmailStr
password: str
class TokenResponse(BaseModel):
"""Token response schema."""
access_token: str
token_type: str