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

from __future__ import annotations

from pydantic import BaseModel, Field, conbytes, confloat, conint, constr


class User(BaseModel):
    name: str | None = Field(None, examples=['ken'])
    age: int | None = None
    salary: conint(ge=0) | None = None
    debt: conint(le=0) | None = None
    loan: confloat(le=0.0) | None = None
    tel: constr(pattern=r'^(\([0-9]{3}\))?[0-9]{3}-[0-9]{4}$') | None = None
    height: confloat(ge=0.0) | None = None
    weight: confloat(ge=0.0) | None = None
    score: confloat(ge=1e-08) | None = None
    active: bool | None = None
    photo: conbytes(min_length=100) | None = None
