<reponame>oxfn/owtest<filename>app/models/__init__.py<gh_stars>0
from typing import Optional

from pydantic import BaseModel


class IdentityModel(BaseModel):
    """Adds 'id' field to model."""

    id: Optional[str]


class EntityModel(IdentityModel):
    """Adds 'title' field to model."""

    title: str

from typing import Optional

from pydantic import BaseModel


class IdentityModel(BaseModel):
    """Adds 'id' field to model."""

    id: Optional[str]


class EntityModel(IdentityModel):
    """Adds 'title' field to model."""

    title: str
Adds 'id' field to model. Adds 'title' field to model.