
This commit implements a simple movie database backend inspired by IMDb. It includes: - API endpoints for movies, actors, directors and genres - SQLAlchemy models with relationships - Alembic migrations - Pydantic schemas for request/response validation - Search and filtering functionality - Health check endpoint - Complete documentation
12 lines
243 B
Python
12 lines
243 B
Python
from pydantic import BaseModel
|
|
from typing import Dict, Optional
|
|
|
|
|
|
class HealthCheck(BaseModel):
|
|
"""
|
|
Health check response schema.
|
|
"""
|
|
status: str
|
|
version: str
|
|
db_status: str
|
|
details: Optional[Dict[str, str]] = None |