- Add bookings list/create API with filters (siteId, date, status)
- Add booking detail, update, and delete endpoints
- Add payment processing endpoint with transaction support
- Add clients list/search and create API
- Implement membership discounts (free hours and percentage)
- Validate requests with Zod schemas from shared package
- Include Spanish error messages
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add REST API endpoints for court management and availability:
- GET/POST /api/courts for listing and creating courts
- GET/PUT/DELETE /api/courts/[id] for single court operations
- GET /api/courts/[id]/availability for time slot availability
- GET /api/sites for listing organization sites
Features include organization-based filtering, role-based access control,
premium pricing for evening/weekend slots, and booking conflict detection.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>