Primer subida completa

This commit is contained in:
nickpons666
2026-01-19 15:20:36 -06:00
commit 85894619d8
146 changed files with 3620 additions and 0 deletions

10
sql/migracion_username.sql Executable file
View File

@@ -0,0 +1,10 @@
-- Migración: Agregar campo username a tabla users
-- Ejecutar solo si la tabla ya existe sin el campo
ALTER TABLE users ADD COLUMN username VARCHAR(50) UNIQUE AFTER id;
-- Actualizar usuarios existentes con usernames
UPDATE users SET username = LOWER(REPLACE(nombre, ' ', '')) WHERE username IS NULL;
-- Crear índice único
CREATE UNIQUE INDEX idx_username ON users(username);