# 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,
    StrictFloat,
    StrictInt,
    StrictStr,
)


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