# generated by datamodel-codegen:
#   filename:  read_only_write_only_allof_required_only.yaml
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from pydantic import AwareDatetime, BaseModel


class ChildRequest(BaseModel):
    id: int | None = None
    child_field: str | None = None


class ParentRequest(BaseModel):
    id: int


class Parent(BaseModel):
    id: int
    created_at: AwareDatetime | None = None


class Child(Parent):
    child_field: str | None = None
