Archived
Дипломная работа
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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,
|
||||
)
|
||||
Reference in New Issue
Block a user