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

from __future__ import annotations

from pydantic import AwareDatetime, BaseModel, Field, constr


class MetadataRequest(BaseModel):
    tags: dict[constr(pattern=r'^[a-z][a-z0-9_]*$'), str] | None = Field(
        None, description='Dynamic key-value metadata'
    )


class Metadata(BaseModel):
    tags: dict[constr(pattern=r'^[a-z][a-z0-9_]*$'), str] | None = Field(
        None, description='Dynamic key-value metadata'
    )
    created_at: AwareDatetime | None = None


class ExtendedMetadataRequest(BaseModel):
    tags: dict[constr(pattern=r'^[a-z][a-z0-9_]*$'), str] | None = Field(
        None, description='Dynamic key-value metadata'
    )
    owner: str | None = None


class ExtendedMetadata(Metadata):
    id: int
    owner: str | None = None


class Model(BaseModel):
    metadata: ExtendedMetadata | None = None
