init
This commit is contained in:
14
transport/backend/app/schemas/event.py
Normal file
14
transport/backend/app/schemas/event.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
Reference in New Issue
Block a user