backend / app /schema /base.py
Praneeth Yerrapragada
chore: Support for class-based `config` is deprecated, use ConfigDict instead
9c3303f
raw
history blame contribute delete
273 Bytes
from datetime import datetime
from pydantic import BaseModel, ConfigDict
class PydanticBaseModel(BaseModel):
pass
class BaseModel(PydanticBaseModel):
model_config = ConfigDict(from_attributes=True)
id: int
created_at: datetime
updated_at: datetime