ABle to send the booking request to several courts at the same time

This commit is contained in:
Stanislas Jouffroy 2024-02-15 19:55:07 +01:00
parent fcc08f03f1
commit 51af600d28
11 changed files with 288 additions and 99 deletions

View file

@ -1,3 +1,5 @@
from typing import List
from pydantic import BaseModel, Field
from pydantic_extra_types.pendulum_dt import DateTime
@ -9,6 +11,6 @@ class User(BaseModel):
class BookingFilter(BaseModel):
court_id: int = Field()
court_ids: List[int] = Field()
sport_id: int = Field()
date: DateTime = Field()