modifica a 02_seed.sql con inserimento ruolo
This commit is contained in:
parent
798c31e2cb
commit
a68eae4828
2 changed files with 24 additions and 11 deletions
15
commit-push.bat
Normal file
15
commit-push.bat
Normal 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
|
||||
|
|
@ -1,18 +1,16 @@
|
|||
-- ============================================================
|
||||
-- Dati iniziali di test – esameits24-26
|
||||
-- Password per tutti gli utenti: Password123!
|
||||
--
|
||||
-- Operatori:
|
||||
-- 1 Andrea Villari – admin@centro.it (Admin)
|
||||
-- 2 Maria Bianchi – maria.bianchi@centro.it (operatore)
|
||||
--
|
||||
-- 1 Andrea Villari – admin@azienda.it (responsabile)
|
||||
-- 2 Mario Rossi – mario.rossi@azienda.it (dipendente)
|
||||
-- 3 Marco Bianchi – marco.bianchi@azienda.it (dipendente)
|
||||
-- 4 Anna Verdi – anna.verdi@azienda.it (dipendente)
|
||||
-- ============================================================
|
||||
|
||||
USE `esameits24-26`;
|
||||
|
||||
-- ------------------------------------------------------------
|
||||
-- Utenti
|
||||
-- ------------------------------------------------------------
|
||||
INSERT INTO utenti (Nome, Cognome, Email, PasswordHash, Admin) VALUES
|
||||
('Andrea', 'Villari', 'admin@centro.it', '$2b$10$7Z80qZcDydZCdLrOcaH/VOa9knKWjQVyyg8MtEgBAvgfNMsiLEZze', TRUE),
|
||||
('Maria', 'Bianchi', 'maria.bianchi@centro.it', '$2b$10$7Z80qZcDydZCdLrOcaH/VOa9knKWjQVyyg8MtEgBAvgfNMsiLEZze', FALSE);
|
||||
INSERT INTO utenti (nome, cognome, email, password_hash, ruolo) VALUES
|
||||
('Andrea', 'Villari', 'admin@azienda.it', '$2b$10$7Z80qZcDydZCdLrOcaH/VOa9knKWjQVyyg8MtEgBAvgfNMsiLEZze', 'RESPONSABILE_AMMINISTRATIVO'),
|
||||
('Mario', 'Rossi', 'mario.rossi@azienda.it', '$2b$10$7Z80qZcDydZCdLrOcaH/VOa9knKWjQVyyg8MtEgBAvgfNMsiLEZze', 'DIPENDENTE'),
|
||||
('Marco', 'Bianchi', 'marco.bianchi@azienda.it', '$2b$10$7Z80qZcDydZCdLrOcaH/VOa9knKWjQVyyg8MtEgBAvgfNMsiLEZze', 'DIPENDENTE'),
|
||||
('Anna', 'Verdi', 'anna.verdi@azienda.it', '$2b$10$7Z80qZcDydZCdLrOcaH/VOa9knKWjQVyyg8MtEgBAvgfNMsiLEZze', 'DIPENDENTE');
|
||||
Loading…
Add table
Reference in a new issue