15 lines
266 B
Python
15 lines
266 B
Python
from datetime import datetime
|
|
from typing import Any
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class EventResponse(BaseModel):
|
|
id: int
|
|
vehicle_id: int
|
|
timestamp: datetime
|
|
type: str
|
|
payload: dict[str, Any]
|
|
|
|
class Config:
|
|
from_attributes = True
|