Update model/schema files: models/footbal_model.py, schemas/footbal_schema.py
This commit is contained in:
parent
1794062fa2
commit
87a96ec4d8
2
repos/games-xxwif7/models/footbal_model.py
Normal file
2
repos/games-xxwif7/models/footbal_model.py
Normal file
@ -0,0 +1,2 @@
|
||||
class Game(Base):
|
||||
__tablename__ = "games"
|
5
repos/games-xxwif7/schemas/footbal_schema.py
Normal file
5
repos/games-xxwif7/schemas/footbal_schema.py
Normal file
@ -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")
|
Loading…
x
Reference in New Issue
Block a user