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

from __future__ import annotations

from pydantic import AwareDatetime, BaseModel


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


class ChildResponse(BaseModel):
    id: int
    created_at: AwareDatetime | None = None
    child_field: str | None = None


class ParentRequest(BaseModel):
    id: int
    secret: str | None = None


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


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


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