31 lines
606 B
Python
31 lines
606 B
Python
|
|
from datetime import datetime
|
||
|
|
|
||
|
|
from app.schemas.base import CamelModel
|
||
|
|
from app.schemas.game import GameResponse
|
||
|
|
|
||
|
|
|
||
|
|
class GenlockeCreate(CamelModel):
|
||
|
|
name: str
|
||
|
|
game_ids: list[int]
|
||
|
|
genlocke_rules: dict = {}
|
||
|
|
nuzlocke_rules: dict = {}
|
||
|
|
|
||
|
|
|
||
|
|
class GenlockeLegResponse(CamelModel):
|
||
|
|
id: int
|
||
|
|
genlocke_id: int
|
||
|
|
game_id: int
|
||
|
|
run_id: int | None = None
|
||
|
|
leg_order: int
|
||
|
|
game: GameResponse
|
||
|
|
|
||
|
|
|
||
|
|
class GenlockeResponse(CamelModel):
|
||
|
|
id: int
|
||
|
|
name: str
|
||
|
|
status: str
|
||
|
|
genlocke_rules: dict
|
||
|
|
nuzlocke_rules: dict
|
||
|
|
created_at: datetime
|
||
|
|
legs: list[GenlockeLegResponse] = []
|