Aggiunta tabella utenti per autenticazione

This commit is contained in:
2026-04-14 08:41:17 +02:00
parent 6f1ae46271
commit d1330023c1
+16
View File
@@ -30,6 +30,15 @@ CREATE TABLE Statistiche_Social (
FOREIGN KEY (id_fascia) REFERENCES Fasce_Eta(id_fascia)
);
-- Tabella per l'autenticazione
CREATE TABLE Utenti(
id_utente INT PRIMARY KEY AUTO_INCREMENT,
nome VARCHAR(30),
cognome VARCHAR(18),
email VARCHAR(255),
password VARCHAR(255)
);
-- 3. INSERIMENTO DATI (INSERT INTO)
-- Popolamento Fasce d'Età
@@ -65,3 +74,10 @@ INSERT INTO Statistiche_Social (id_fascia, piattaforma, minuti_medi_giornalieri,
(4, 'WhatsApp', 60, 95),
(4, 'LinkedIn', 25, 45);
-- Inserimento utenti per autenticazione
-- Login utente esempio
-- Email: jeevacation@gmail.com
-- Password: changeme
INSERT INTO Utenti(nome,cognome,email,password) VALUES
('Jeffrey', 'Epstein', 'jeevacation@gmail.com', '$2y$10$1ZILQ71xxMjaAxDs2A6/Iut8UJfBPEGkeEuZgoIkVDapbNYUACxtW'),
('Andrea', 'Fiorencis', 'andrea@fiorencis.eu','$2y$10$y7fs8u4UOFJW5ds/dO84KumTxG2kh4jCubb1W0mAHzgmBZKRqA8Va');