M9: create validated internal bookings

This commit is contained in:
NuklearRabbit
2026-08-10 02:20:28 +02:00
parent c194c18ca9
commit e577c16db5
3 changed files with 88 additions and 0 deletions
+8
View File
@@ -61,6 +61,14 @@ class BookingOut(BookingSummaryOut):
customer_name: str
class CreateBookingRequest(BaseModel):
customer_ref: str = Field(min_length=3, max_length=20)
vehicle_ref: str = Field(min_length=3, max_length=20)
starts_at: datetime
ends_at: datetime
requirements_complete: bool = True
class BookingPageOut(BaseModel):
items: list[BookingOut]
page: int