mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-01 18:19:08 +00:00
13 lines
278 B
Python
13 lines
278 B
Python
from datetime import datetime
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
|
|
class TimestampModel(BaseModel):
|
|
created_at: datetime
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|
|
|
|
class IDModel(BaseModel):
|
|
id: int
|
|
model_config = ConfigDict(from_attributes=True)
|