This repository has been archived on 2026-07-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
college-work/Дипломная работа/app/schemas/base_schemas.py
T

20 lines
433 B
Python

from pydantic import BaseModel, NonNegativeInt, ConfigDict
from typing import Any
from datetime import datetime
from numpy import ndarray, dtype
class Person(BaseModel):
person_id: NonNegativeInt = 0
person_name: str
encodings: list[float]
image_name: str
adding_date: str = datetime.now().isoformat()
active_status: bool = True
model_config = ConfigDict(
arbitrary_types_allowed=True,
)