Complete rename across all layers: UI branding, package names
(@smashpoint/web, @smashpoint/shared), infrastructure (Docker,
DB config), seed data, documentation, and logo/favicon.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add comprehensive seed script for testing the application with realistic demo data:
- Organization "Padel Pro Demo"
- 3 sites (Norte, Sur, Centro) with different schedules
- 2 courts per site (standard and premium pricing)
- Admin users (1 super admin + 3 site admins)
- Product categories (Bebidas, Snacks, Equipamiento, Alquiler)
- Sample products with pricing
- 3 membership plans (Basico, Premium, VIP)
- 5 sample clients with one Premium membership
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- 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>
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>