feat: add settings and reports pages

- Add settings page with organization, sites, courts, and users tabs
- Add reports page with revenue charts and statistics
- Add users API endpoint
- Add sites/[id] API endpoint for CRUD operations
- Add tabs UI component
- Fix sites API to return isActive field

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ivan
2026-02-01 08:27:32 +00:00
parent 864902df81
commit 51ecb1b231
15 changed files with 2083 additions and 17 deletions

8
scripts/init-db.sql Normal file
View File

@@ -0,0 +1,8 @@
-- Padel Pro Database Initialization
-- This script runs when PostgreSQL container starts for the first time
-- Enable UUID extension if needed
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
-- Grant privileges
GRANT ALL PRIVILEGES ON DATABASE padel_pro TO padel;