diff --git a/assets/Gener_Z.sql b/assets/Gener_Z.sql index 41891f1..2ec6409 100644 --- a/assets/Gener_Z.sql +++ b/assets/Gener_Z.sql @@ -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'); \ No newline at end of file