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

from __future__ import annotations

from pydantic import AwareDatetime, BaseModel


class BaseTimestamps(BaseModel):
    created_at: AwareDatetime | None = None


class ExtendedTimestamps(BaseTimestamps):
    updated_at: AwareDatetime | None = None


class UserRequest(BaseModel):
    name: str
    password: str | None = None


class UserResponse(BaseModel):
    created_at: AwareDatetime | None = None
    updated_at: AwareDatetime | None = None
    name: str


class User(ExtendedTimestamps):
    name: str
    password: str | None = None
