# generated by datamodel-codegen:
#   filename:  <stdin>
#   timestamp: 1985-10-26T08:21:00+00:00

from __future__ import annotations

from pydantic import BaseModel, Field, RootModel


class FriendA(BaseModel):
    alpha: str = Field(..., title='Alpha')


class UserA(BaseModel):
    friend: FriendA


class FriendB(BaseModel):
    beta: int = Field(..., title='Beta')


class UserB(BaseModel):
    friend: FriendB


class Model(RootModel[UserA | UserB]):
    root: UserA | UserB
