This commit is contained in:
2026-04-27 17:54:31 +02:00
parent 18ba64eaf8
commit 650cca7337
10 changed files with 148 additions and 4 deletions

11
api/app/models.py Normal file
View File

@@ -0,0 +1,11 @@
from pydantic import BaseModel
from typing import Any, List, Optional
class Event(BaseModel):
type: str
time: int # unix timestamp
serverId: str
data: Optional[dict] = {}
class BatchEvents(BaseModel):
events: List[Event]