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