Ability to book a single court at a given time with gestion-sports
This commit is contained in:
parent
3f18f0f4a2
commit
e953a4110b
14 changed files with 489 additions and 66 deletions
14
resa_padel/models.py
Normal file
14
resa_padel/models.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from pydantic import BaseModel, Field
|
||||
from pydantic_extra_types.pendulum_dt import DateTime
|
||||
|
||||
|
||||
class User(BaseModel):
|
||||
login: str = Field()
|
||||
password: str = Field(repr=False)
|
||||
club_id: str = Field()
|
||||
|
||||
|
||||
class BookingFilter(BaseModel):
|
||||
court_id: int = Field()
|
||||
sport_id: int = Field()
|
||||
date: DateTime = Field()
|
Loading…
Add table
Add a link
Reference in a new issue