
- Create project structure and dependencies - Set up SQLAlchemy models for anime, genres, and their relationships - Implement CRUD operations for all models - Set up FastAPI endpoints for managing anime and genres - Add health check endpoint - Configure Alembic for database migrations - Add data seeding capability - Update README with project information
20 lines
244 B
Python
20 lines
244 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class GenreBase(BaseModel):
|
|
name: str
|
|
|
|
|
|
class GenreCreate(GenreBase):
|
|
pass
|
|
|
|
|
|
class GenreUpdate(GenreBase):
|
|
pass
|
|
|
|
|
|
class Genre(GenreBase):
|
|
id: int
|
|
|
|
class Config:
|
|
from_attributes = True |