modifica a 02_seed.sql con inserimento ruolo
All checks were successful
Deploy to VPS / build (push) Successful in 17s
Deploy to VPS / deploy (push) Successful in 20s

This commit is contained in:
AV77web 2026-07-12 17:25:07 +02:00
parent 798c31e2cb
commit a68eae4828
2 changed files with 24 additions and 11 deletions

15
commit-push.bat Normal file
View file

@ -0,0 +1,15 @@
@echo-off
cd /d D:\prenotazioni\esameits24-26\esameits24-26backend
git status
echo.
set /p MSG=Messaggio commit:
if "%MSG%"=="" (
echo Messaggio obbligatorio.
exit /b 1
)
git add .
git status
set /p OK="Procedere con commit e push?" (s/N):
if /i not "%OK%" == "s" exit /b 0
git commit -m "%MSG%"
git push -u origin main

View file

@ -1,18 +1,16 @@
-- ============================================================ -- ============================================================
-- Dati iniziali di test esameits24-26 -- Dati iniziali di test esameits24-26
-- Password per tutti gli utenti: Password123! -- Password per tutti gli utenti: Password123!
-- -- 1 Andrea Villari admin@azienda.it (responsabile)
-- Operatori: -- 2 Mario Rossi mario.rossi@azienda.it (dipendente)
-- 1 Andrea Villari admin@centro.it (Admin) -- 3 Marco Bianchi marco.bianchi@azienda.it (dipendente)
-- 2 Maria Bianchi maria.bianchi@centro.it (operatore) -- 4 Anna Verdi anna.verdi@azienda.it (dipendente)
--
-- ============================================================ -- ============================================================
USE `esameits24-26`; USE `esameits24-26`;
-- ------------------------------------------------------------ INSERT INTO utenti (nome, cognome, email, password_hash, ruolo) VALUES
-- Utenti ('Andrea', 'Villari', 'admin@azienda.it', '$2b$10$7Z80qZcDydZCdLrOcaH/VOa9knKWjQVyyg8MtEgBAvgfNMsiLEZze', 'RESPONSABILE_AMMINISTRATIVO'),
-- ------------------------------------------------------------ ('Mario', 'Rossi', 'mario.rossi@azienda.it', '$2b$10$7Z80qZcDydZCdLrOcaH/VOa9knKWjQVyyg8MtEgBAvgfNMsiLEZze', 'DIPENDENTE'),
INSERT INTO utenti (Nome, Cognome, Email, PasswordHash, Admin) VALUES ('Marco', 'Bianchi', 'marco.bianchi@azienda.it', '$2b$10$7Z80qZcDydZCdLrOcaH/VOa9knKWjQVyyg8MtEgBAvgfNMsiLEZze', 'DIPENDENTE'),
('Andrea', 'Villari', 'admin@centro.it', '$2b$10$7Z80qZcDydZCdLrOcaH/VOa9knKWjQVyyg8MtEgBAvgfNMsiLEZze', TRUE), ('Anna', 'Verdi', 'anna.verdi@azienda.it', '$2b$10$7Z80qZcDydZCdLrOcaH/VOa9knKWjQVyyg8MtEgBAvgfNMsiLEZze', 'DIPENDENTE');
('Maria', 'Bianchi', 'maria.bianchi@centro.it', '$2b$10$7Z80qZcDydZCdLrOcaH/VOa9knKWjQVyyg8MtEgBAvgfNMsiLEZze', FALSE);