# 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,
    StrictBool,
    StrictBytes,
    StrictInt,
    StrictStr,
    confloat,
    conint,
    constr,
)


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