From 924a100518f5286bebfbfbc7b7fcea984cbf1800 Mon Sep 17 00:00:00 2001 From: Andrea Fiorencis Date: Wed, 8 Apr 2026 10:51:31 +0200 Subject: [PATCH] Inserimento admin di esempio in DB base --- base_db.sql | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/base_db.sql b/base_db.sql index 94f44a0..850a06f 100644 --- a/base_db.sql +++ b/base_db.sql @@ -54,4 +54,8 @@ INSERT INTO Categories(Name) VALUES INSERT INTO Products(ProductName,Description,CategoryID,Price,ImagePath,StockQuantity) VALUES ('Yealink T31P',"Telefono IP con PoE, Ethernet a 100M, 2 linee",3,'51.21','example/t31p.jpg',104), ('Lenovo ThinkCentre M920q','Mini PC (Ricondizionato) Intel Core i5, 512GB SSD, 16GB RAM, Windows 11 Pro',1,'299','example/tcM920q.jpg',69), -('Mercusys MS116GS Switch 16 Porte','Switch Gigabit 16 Porte, Montaggio Desktop o Rack, Plug & Play, Priorità del Traffico, Prevenzione Loop, Modalità di Isolamento, Funzionamento Silenzioso, Case in Metallo',2,'44.99','example/mercusysMS116GS.jpg',727); \ No newline at end of file +('Mercusys MS116GS Switch 16 Porte','Switch Gigabit 16 Porte, Montaggio Desktop o Rack, Plug & Play, Priorità del Traffico, Prevenzione Loop, Modalità di Isolamento, Funzionamento Silenzioso, Case in Metallo',2,'44.99','example/mercusysMS116GS.jpg',727); + +-- Inserimento utente admin di base (password = changeme) +INSERT INTO Users (Name,Surname,Email,Password,Role) VALUES +('Ellen', 'Joe', 'admin@example.com', '$2y$12$zEXyLRdKvvvoH4/zuIuwYuQLA5GwsvZw2usIhxxbYyw4.uoeghe4m', 'admin'); \ No newline at end of file