update
This commit is contained in:
11
api/app/models.py
Normal file
11
api/app/models.py
Normal 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]
|
||||
Reference in New Issue
Block a user