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

from __future__ import annotations

from pydantic import BaseModel


class Person(BaseModel):
    name: str
    email: str | None = None


class Admin(Person):
    role: str


class Config(BaseModel):
    theme: str | None = None
    language: str | None = None


class Model(BaseModel):
    user: Person | None = None
    admin: Admin | None = None
    settings: Config | None = None
