Files
Aurora-Core/app/schemas/company.py
T

31 lines
710 B
Python
Raw Normal View History

2026-09-04 17:34:03 -05:00
"""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
2026-09-04 17:34:03 -05:00
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] = []
2026-09-04 17:34:03 -05:00
created_at: datetime
updated_at: datetime