From 11e4d055ba6502d624677161eb88103970c0119f Mon Sep 17 00:00:00 2001 From: jimmy-sketch Date: Sun, 27 Jul 2025 12:18:43 +0000 Subject: [PATCH] =?UTF-8?q?feat(database,multiplayer):=20=E5=B0=86mp?= =?UTF-8?q?=E6=88=BF=E9=97=B4=E7=9A=84id=E5=AD=98=E5=85=A5sql=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E4=B8=AD=E6=8C=81=E4=B9=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/database/room.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 app/database/room.py diff --git a/app/database/room.py b/app/database/room.py new file mode 100644 index 0000000..7a1aff8 --- /dev/null +++ b/app/database/room.py @@ -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]