
- 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
7 lines
228 B
Python
7 lines
228 B
Python
from sqlalchemy import Column, Integer, String
|
|
from app.db.base_class import Base
|
|
|
|
|
|
class Genre(Base):
|
|
id = Column(Integer, primary_key=True, index=True)
|
|
name = Column(String(50), index=True, nullable=False, unique=True) |