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

from __future__ import annotations

from pydantic import AwareDatetime, BaseModel, Field


class User(BaseModel):
    id: int = Field(..., description='Server-generated ID', frozen=True)
    name: str
    password: str = Field(..., description='User password')
    created_at: AwareDatetime | None = Field(None, frozen=True)
