Archived
20 lines
433 B
Python
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,
|
|
) |