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>
Configure Prisma ORM with PostgreSQL database schema including:
- Organization, Site, Court models for multi-tenancy
- User with role-based access and Client for customers
- Booking and Payment models for reservations
- MembershipPlan and Membership for subscriptions
- Product, Sale, SaleItem, CashRegister for POS
- Tournament, TournamentInscription, Match for competitions
- All necessary enums, relations, indexes, and cascading deletes
- Prisma client singleton for Next.js
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Complete design specification including:
- Multi-site architecture for padel club management
- Booking system with client app and admin panel
- Point of sale (POS) with inventory
- Tournaments and leagues module
- Membership plans with benefits
- Full database schema (Prisma)
- UI/UX guidelines and color palette
- Project structure (monorepo with Turborepo)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>