From 87a96ec4d8729ba2e5a844c545fa5e2f9c1452c6 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Tue, 25 Mar 2025 08:20:09 +0100 Subject: [PATCH] Update model/schema files: models/footbal_model.py, schemas/footbal_schema.py --- repos/games-xxwif7/models/footbal_model.py | 2 ++ repos/games-xxwif7/schemas/footbal_schema.py | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 repos/games-xxwif7/models/footbal_model.py create mode 100644 repos/games-xxwif7/schemas/footbal_schema.py diff --git a/repos/games-xxwif7/models/footbal_model.py b/repos/games-xxwif7/models/footbal_model.py new file mode 100644 index 0000000..1c69ce4 --- /dev/null +++ b/repos/games-xxwif7/models/footbal_model.py @@ -0,0 +1,2 @@ +class Game(Base): + __tablename__ = "games" \ No newline at end of file diff --git a/repos/games-xxwif7/schemas/footbal_schema.py b/repos/games-xxwif7/schemas/footbal_schema.py new file mode 100644 index 0000000..d034c31 --- /dev/null +++ b/repos/games-xxwif7/schemas/footbal_schema.py @@ -0,0 +1,5 @@ +class GameSchema(BaseModel): + id: int = Field(None, description="The ID of the game") + name: str = Field(..., description="The name of the game") + description: str = Field(..., description="The description of the game") + is_multiplayer: bool = Field(..., description="Whether the game is multiplayer or not") \ No newline at end of file