Dashboard
Alumnos activos
—
Béisbol
—
alumnos
Básquetbol
—
alumnos
Leads WhatsApp
—
Morosos
—
alumnos con deuda
Uniformes pendientes
—
por entregar
Alumnos recientes
CódigoAlumnoDeportePlanEstado
Cargando...
CRM WhatsApp
Matrícula
Matrículas registradas
CódigoAlumnoDeportePlanEdadPadre/MadreEstado
Cargando...
Fichas de alumnos
CódigoNombreEdadDeportePlanCelularNutriciónPsicología
Cargando...
Carnets
Vista previa
Activo
23 CLUB
🧒
—
—
Código
—
Edad
—
Plan
—
Categoría
—
||||| — |||||
Seleccionar alumno
Mensualidades
Pagos al día
—
Pendientes
—
Morosos
—
Control de pagos
CódigoAlumnoPlanMontoVencimientoEstadoDías mora
Cargando...
Control de uniformes
Entregados
—
Pendientes
—
Demorados
—
Registro de uniformes
CódigoAlumnoDeporteTallaEstadoFecha pedido
Cargando...
Entrenadores
NombreÁreaHoras/mesAlumnosEstado
Cargando...
Ranking de asistencia
⚾ Béisbol
Cargando...
🏀 Básquetbol
Cargando...
Ranking de talentos
⚾ Béisbol
Cargando...
🏀 Básquetbol
Cargando...
Configurar base de datos
Guía de configuración — Supabase (gratis)
1
Crear tu cuenta gratuita en Supabase
Ve a supabase.com, crea una cuenta con tu correo y crea un nuevo proyecto. Ponle de nombre 23club. Guarda la contraseña que te pide — la necesitarás después.
2
Crear las tablas — copia y pega este SQL
En Supabase ve a SQL Editor → New query y pega todo este código, luego presiona Run:
-- Tabla alumnos CREATE TABLE alumnos ( id uuid DEFAULT gen_random_uuid() PRIMARY KEY, codigo text UNIQUE, nombre text NOT NULL, fecha_nacimiento date, edad integer, deporte text, plan text, nombre_padre text, celular text, distrito text, experiencia text, nutricion boolean DEFAULT false, psicologia boolean DEFAULT false, estado text DEFAULT 'Activo', created_at timestamptz DEFAULT now() ); -- Tabla leads CRM CREATE TABLE leads ( id uuid DEFAULT gen_random_uuid() PRIMARY KEY, nombre text NOT NULL, celular text, deporte text, estado text DEFAULT 'Contactado', edad_hijo integer, distrito text, notas text, created_at timestamptz DEFAULT now() ); -- Tabla mensualidades CREATE TABLE mensualidades ( id uuid DEFAULT gen_random_uuid() PRIMARY KEY, alumno_id uuid REFERENCES alumnos(id), monto numeric, vencimiento date, pagado boolean DEFAULT false, fecha_pago date, created_at timestamptz DEFAULT now() ); -- Tabla uniformes CREATE TABLE uniformes ( id uuid DEFAULT gen_random_uuid() PRIMARY KEY, alumno_id uuid REFERENCES alumnos(id), talla text, estado text DEFAULT 'Pendiente', fecha_pedido date DEFAULT CURRENT_DATE, created_at timestamptz DEFAULT now() ); -- Tabla entrenadores CREATE TABLE entrenadores ( id uuid DEFAULT gen_random_uuid() PRIMARY KEY, nombre text NOT NULL, area text, horas_mes integer DEFAULT 0, estado text DEFAULT 'Activo', created_at timestamptz DEFAULT now() ); -- Tabla asistencia CREATE TABLE asistencia ( id uuid DEFAULT gen_random_uuid() PRIMARY KEY, alumno_id uuid REFERENCES alumnos(id), fecha date DEFAULT CURRENT_DATE, presente boolean DEFAULT true, created_at timestamptz DEFAULT now() ); -- Tabla talentos CREATE TABLE talentos ( id uuid DEFAULT gen_random_uuid() PRIMARY KEY, alumno_id uuid REFERENCES alumnos(id), tecnica numeric, fisico numeric, actitud numeric, equipo numeric, mes text, created_at timestamptz DEFAULT now() ); -- Habilitar acceso público (para el HTML) ALTER TABLE alumnos ENABLE ROW LEVEL SECURITY; ALTER TABLE leads ENABLE ROW LEVEL SECURITY; ALTER TABLE mensualidades ENABLE ROW LEVEL SECURITY; ALTER TABLE uniformes ENABLE ROW LEVEL SECURITY; ALTER TABLE entrenadores ENABLE ROW LEVEL SECURITY; ALTER TABLE asistencia ENABLE ROW LEVEL SECURITY; ALTER TABLE talentos ENABLE ROW LEVEL SECURITY; CREATE POLICY "public_all" ON alumnos FOR ALL USING (true) WITH CHECK (true); CREATE POLICY "public_all" ON leads FOR ALL USING (true) WITH CHECK (true); CREATE POLICY "public_all" ON mensualidades FOR ALL USING (true) WITH CHECK (true); CREATE POLICY "public_all" ON uniformes FOR ALL USING (true) WITH CHECK (true); CREATE POLICY "public_all" ON entrenadores FOR ALL USING (true) WITH CHECK (true); CREATE POLICY "public_all" ON asistencia FOR ALL USING (true) WITH CHECK (true); CREATE POLICY "public_all" ON talentos FOR ALL USING (true) WITH CHECK (true);
3
Obtener tus credenciales
En Supabase ve a Project Settings → API. Copia el Project URL y el anon public key.
4
¡Listo! El sistema queda conectado
Una vez conectado, todos los datos que ingreses se guardan en la nube automáticamente. Puedes abrir el sistema desde cualquier PC o tablet y verás la misma información en tiempo real.
Observaciones
Registro de observaciones
AlumnoDeporteTipoObservaciónPorFecha
Cargando...