refactor(database): use a new 'On-Demand' design (#86)
Technical Details: https://blog.mxgame.top/2025/11/22/An-On-Demand-Design-Within-SQLModel/
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
from typing import Any
|
||||
|
||||
from pydantic import BaseModel
|
||||
from typing import Any, TypedDict
|
||||
|
||||
|
||||
class ChatEvent(BaseModel):
|
||||
class ChatEvent(TypedDict):
|
||||
event: str
|
||||
data: dict[str, Any] | None = None
|
||||
data: dict[str, Any] | None
|
||||
|
||||
Reference in New Issue
Block a user