CI / lint (push) Canceled after 0s
CI / typecheck (push) Canceled after 0s
CI / unit-tests (push) Canceled after 0s
CI / integration-tests (push) Canceled after 0s
CI / container-build (push) Canceled after 0s
CI / dependency-audit (push) Canceled after 0s
GET /companies/{id} showed only the company's own info. Adds movies
and series lists (any role: production, distribution, network),
ordered by release/first-air date, read straight off the existing
movie_companies/series_companies junction rows -- no separate sync
needed since those only ever exist as a side effect of ingesting the
movie or series itself.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
31 lines
710 B
Python
31 lines
710 B
Python
"""Company response schemas."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from datetime import datetime
|
|
|
|
from pydantic import BaseModel
|
|
|
|
from app.schemas.movie import MovieSummaryOut
|
|
from app.schemas.tv import SeriesSummaryOut
|
|
|
|
|
|
class CompanyDetailOut(BaseModel):
|
|
id: str
|
|
type: str = "company"
|
|
name: str
|
|
company_type: str
|
|
description: str | None = None
|
|
country: str | None = None
|
|
headquarters: str | None = None
|
|
homepage: str | None = None
|
|
logo_path: str | None = None
|
|
parent_company_id: str | None = None
|
|
external_ids: dict[str, str] = {}
|
|
|
|
movies: list[MovieSummaryOut] = []
|
|
series: list[SeriesSummaryOut] = []
|
|
|
|
created_at: datetime
|
|
updated_at: datetime
|