feat(database,multiplayer): 将mp房间的id存入sql数据库中持久化
This commit is contained in:
6
app/database/room.py
Normal file
6
app/database/room.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from sqlmodel import Field, SQLModel
|
||||
|
||||
|
||||
class RoomIndex(SQLModel, table=True):
|
||||
__tablename__ = "mp_room_index" # pyright: ignore[reportAssignmentType]
|
||||
id: int | None = Field(default=None, primary_key=True, index=True) # pyright: ignore[reportCallIssue]
|
||||
Reference in New Issue
Block a user