From 7ba0823249427975e8a6f225cac4a9248748ea89 Mon Sep 17 00:00:00 2001 From: Giada Gabriele Date: Sat, 12 Feb 2022 16:19:29 +0100 Subject: [PATCH] database --- db.sql/categories.sql | 7 +++ db.sql/city.sql | 111 +++++++++++++++++++++++++++++++++++++++ db.sql/country.sql | 2 + db.sql/payment.sql | 8 +++ db.sql/products.sql | 15 ++++++ db.sql/subcategories.sql | 7 +++ db.sql/user.sql | 2 + 7 files changed, 152 insertions(+) create mode 100644 db.sql/categories.sql create mode 100644 db.sql/city.sql create mode 100644 db.sql/country.sql create mode 100644 db.sql/payment.sql create mode 100644 db.sql/products.sql create mode 100644 db.sql/subcategories.sql create mode 100644 db.sql/user.sql diff --git a/db.sql/categories.sql b/db.sql/categories.sql new file mode 100644 index 0000000..2198df0 --- /dev/null +++ b/db.sql/categories.sql @@ -0,0 +1,7 @@ + +INSERT INTO `categories` (`id`,`name`) VALUES (1,'shoes'); +INSERT INTO `categories` (`id`,`name`) VALUES (2,'technology'); +INSERT INTO `categories` (`id`,`name`) VALUES (3,'clothes'); +INSERT INTO `categories` (`id`,`name`) VALUES (4,'books'); +INSERT INTO `categories` (`id`,`name`) VALUES (5,'cook'); +INSERT INTO `categories` (`id`,`name`) VALUES (6,'accessories'); diff --git a/db.sql/city.sql b/db.sql/city.sql new file mode 100644 index 0000000..4fd6d1c --- /dev/null +++ b/db.sql/city.sql @@ -0,0 +1,111 @@ + +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (1,'Torino',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (2,'Vercelli',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (3,'Novara',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (4,'Cuneo',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (5,'Asti',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (6,'Alessandria',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (7,'Valle d\'Aosta / Vallée d\'Aoste',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (8,'Imperia',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (9,'Savona',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (10,'Genova',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (11,'La Spezia',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (12,'Varese',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (13,'Como',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (14,'Sondrio',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (15,'Milano',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (16,'Bergamo',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (17,'Brescia',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (18,'Pavia',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (19,'Cremona',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (20,'Mantova',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (21,'Bolzano / Bozen',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (22,'Trento',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (23,'Verona',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (24,'Vicenza',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (25,'Belluno',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (26,'Treviso',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (27,'Venezia',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (28,'Padova',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (29,'Rovigo',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (30,'Udine',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (31,'Gorizia',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (32,'Trieste',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (33,'Piacenza',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (34,'Parma',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (35,'Reggio nell\'Emilia',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (36,'Modena',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (37,'Bologna',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (38,'Ferrara',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (39,'Ravenna',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (40,'Forlì-Cesena',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (41,'Pesaro e Urbino',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (42,'Ancona',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (43,'Macerata',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (44,'Ascoli Piceno',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (45,'Massa-Carrara',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (46,'Lucca',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (47,'Pistoia',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (48,'Firenze',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (49,'Livorno',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (50,'Pisa',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (51,'Arezzo',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (52,'Siena',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (53,'Grosseto',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (54,'Perugia',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (55,'Terni',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (56,'Viterbo',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (57,'Rieti',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (58,'Roma',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (59,'Latina',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (60,'Frosinone',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (61,'Caserta',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (62,'Benevento',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (63,'Napoli',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (64,'Avellino',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (65,'Salerno',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (66,'L\'Aquila',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (67,'Teramo',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (68,'Pescara',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (69,'Chieti',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (70,'Campobasso',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (71,'Foggia',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (72,'Bari',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (73,'Taranto',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (74,'Brindisi',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (75,'Lecce',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (76,'Potenza',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (77,'Matera',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (78,'Cosenza',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (79,'Catanzaro',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (80,'Reggio di Calabria',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (81,'Trapani',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (82,'Palermo',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (83,'Messina',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (84,'Agrigento',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (85,'Caltanissetta',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (86,'Enna',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (87,'Catania',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (88,'Ragusa',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (89,'Siracusa',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (90,'Sassari',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (91,'Nuoro',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (92,'Cagliari',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (93,'Pordenone',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (94,'Isernia',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (95,'Oristano',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (96,'Biella',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (97,'Lecco',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (98,'Lodi',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (99,'Rimini',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (100,'Prato',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (101,'Crotone',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (102,'Vibo Valentia',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (103,'Verbano-Cusio-Ossola',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (104,'Olbia-Tempio',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (105,'Ogliastra',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (106,'Medio Campidano',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (107,'Carbonia-Iglesias',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (108,'Monza e della Brianza',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (109,'Fermo',NULL,1,NULL,NULL); +INSERT INTO `city` (`id`,`name`,`postal_code`,`country_id`,`postalCode`,`countryId`) VALUES (110,'Barletta-Andria-Trani',NULL,1,NULL,NULL); diff --git a/db.sql/country.sql b/db.sql/country.sql new file mode 100644 index 0000000..506a000 --- /dev/null +++ b/db.sql/country.sql @@ -0,0 +1,2 @@ + +INSERT INTO `country` (`id`,`country_code`,`name`,`countryCode`) VALUES (1,'1','Italy',NULL); diff --git a/db.sql/payment.sql b/db.sql/payment.sql new file mode 100644 index 0000000..804aee2 --- /dev/null +++ b/db.sql/payment.sql @@ -0,0 +1,8 @@ +/* +-- Query: SELECT * FROM vinted.payment +LIMIT 0, 1000 + +-- Date: 2022-01-31 17:27 +*/ +INSERT INTO `payment` (`id`,`payment_date`,`address_line1`,`city`,`country_code`,`currency`,`description`,`intent`,`method`,`payee_name`,`payer_email`,`payer_name`,`payer_id`,`paymentid`,`payment_mode`,`postal_code`,`price`,`productid`,`state`,`stripe_email`,`stripe_token`,`userid`) VALUES (309,'2022-01-28',NULL,NULL,NULL,'eur','Payment for order',NULL,'CCD',NULL,'janedoe@email.com',NULL,NULL,NULL,NULL,NULL,70,'1',NULL,NULL,NULL,58); +INSERT INTO `payment` (`id`,`payment_date`,`address_line1`,`city`,`country_code`,`currency`,`description`,`intent`,`method`,`payee_name`,`payer_email`,`payer_name`,`payer_id`,`paymentid`,`payment_mode`,`postal_code`,`price`,`productid`,`state`,`stripe_email`,`stripe_token`,`userid`) VALUES (312,'2022-01-28',NULL,NULL,NULL,'eur','Payment for order',NULL,'CCD',NULL,'janedoe@email.com',NULL,NULL,NULL,NULL,NULL,1300,'12',NULL,NULL,NULL,58); diff --git a/db.sql/products.sql b/db.sql/products.sql new file mode 100644 index 0000000..d9a4976 --- /dev/null +++ b/db.sql/products.sql @@ -0,0 +1,15 @@ + +INSERT INTO `products` (`id`,`brand`,`color`,`description`,`name`,`pics`,`price`,`quantity`,`size`,`upload_time`,`subcategory_id`,`category`,`image`,`user_id`) VALUES (1,'Vans','Black','Inspired by Vans Classic Old Skool, the Ward is a low top, vulcanized lace up style with Vans signature side stripe, a round toe, padded collar for extra comfort, a smooth Lining and a cushioning insole.','Vans Old Skool',NULL,70,1,'36',NULL,NULL,'shoes','/assets/img/shoes.png',58); +INSERT INTO `products` (`id`,`brand`,`color`,`description`,`name`,`pics`,`price`,`quantity`,`size`,`upload_time`,`subcategory_id`,`category`,`image`,`user_id`) VALUES (2,'Feltrinelli','','The Big Book of Dinosaurs is a comprehensive anthology of all things prehistoric. Covering the Triassic, Jurassic and Cretaceous periods, it offers a clear and simple visual introduction to the weirdest, smallest and scariest dinosaurs of all time. ','The big book of dinosaurs',NULL,20,1,'100 pages',NULL,NULL,'book','/assets/img/book.png',58); +INSERT INTO `products` (`id`,`brand`,`color`,`description`,`name`,`pics`,`price`,`quantity`,`size`,`upload_time`,`subcategory_id`,`category`,`image`,`user_id`) VALUES (3,'Vans','Black','Inspired by Vans Classic Old Skool, the Ward is a low top, vulcanized lace up style with Vans signature side stripe, a round toe, padded collar for extra comfort, a smooth Lining and a cushioning insole.','Test shoes',NULL,87,1,'38',NULL,NULL,'shoes','/assets/img/shoes.png',58); +INSERT INTO `products` (`id`,`brand`,`color`,`description`,`name`,`pics`,`price`,`quantity`,`size`,`upload_time`,`subcategory_id`,`category`,`image`,`user_id`) VALUES (4,'Swarovski','White','Swarovski necklace used only once','Swarovski Sunshine',NULL,201,1,'15',NULL,NULL,'accessories','/assets/img/aa.png',58); +INSERT INTO `products` (`id`,`brand`,`color`,`description`,`name`,`pics`,`price`,`quantity`,`size`,`upload_time`,`subcategory_id`,`category`,`image`,`user_id`) VALUES (5,'Pandora','Gold','Pandora necklace never used','Pandora Love',NULL,100,1,NULL,NULL,NULL,'accessories','/assets/img/accesories.png',58); +INSERT INTO `products` (`id`,`brand`,`color`,`description`,`name`,`pics`,`price`,`quantity`,`size`,`upload_time`,`subcategory_id`,`category`,`image`,`user_id`) VALUES (6,'Vans','Black','Black hoodie by Vans','Hoodie',NULL,50,1,'M',NULL,NULL,'clothes','/assets/img/clothes.png',58); +INSERT INTO `products` (`id`,`brand`,`color`,`description`,`name`,`pics`,`price`,`quantity`,`size`,`upload_time`,`subcategory_id`,`category`,`image`,`user_id`) VALUES (8,'HP','Silver','Intel Core i3-1115G4 (Frequenza Di Base 3,0Ghz, Fino A 4,1Ghz Con Tecnologia Intel Turbo Boost, 6MB Di Cache L3, 2Core), Monitor Da 15.6\" Antiriflesso Hd (1920x1080) IPS, bordi sottili, antiriflesso, Ram :8Gb, Ddr4-Sdram - Ssd PcIe Nvme M.2 Da 256Gb ','HP pavillion',NULL,600,1,NULL,NULL,NULL,'technology','/assets/img/tecnology.png',58); +INSERT INTO `products` (`id`,`brand`,`color`,`description`,`name`,`pics`,`price`,`quantity`,`size`,`upload_time`,`subcategory_id`,`category`,`image`,`user_id`) VALUES (9,'Apple','Silver/Black','Processore Intel \"Core i5\" da 2,7 GHz \"Broadwell\" da 2,7 GHz un 3 MB di cache di livello 3 condivisa, 8 GB di SDRAM LPDDR3 a 1866 MHz integrata, 512 GB di memoria flash basata su PCIe a 4 corsie Intel Iris Graphics 6100 integrato','Macbook Pro',NULL,1200,1,NULL,NULL,NULL,'technology','/assets/img/product01.png',58); +INSERT INTO `products` (`id`,`brand`,`color`,`description`,`name`,`pics`,`price`,`quantity`,`size`,`upload_time`,`subcategory_id`,`category`,`image`,`user_id`) VALUES (10,'Apple','Silver/Black','Processore Intel \"Core i7\" da 2,7 GHz \"Broadwell\" da 2,7 GHz un 4 MB di cache di livello 3 condivisa, 16 GB di SDRAM LPDDR3 a 1866 MHz integrata, 512 GB di memoria flash basata su PCIe a 4 corsie Intel Iris Graphics 6100 integrato','Macbook Pro',NULL,1300,1,NULL,NULL,NULL,'technology','/assets/img/product03.png',58); +INSERT INTO `products` (`id`,`brand`,`color`,`description`,`name`,`pics`,`price`,`quantity`,`size`,`upload_time`,`subcategory_id`,`category`,`image`,`user_id`) VALUES (11,'Sony','Black','Sony 1294 – 9064 – Xperia Z4 Tablet Black WiFi with bkb50 keyboard','Sony',NULL,350,1,NULL,NULL,NULL,'technology','/assets/img/product04.png',58); +INSERT INTO `products` (`id`,`brand`,`color`,`description`,`name`,`pics`,`price`,`quantity`,`size`,`upload_time`,`subcategory_id`,`category`,`image`,`user_id`) VALUES (12,'MSI','Black/Red','Intel Core i5 10300H e scheda grafica GeForce RTX 3060 Max-Q di NVIDIA (16 GB RAM e 512 GB SSD). ','MSI',NULL,1300,1,NULL,NULL,NULL,'technology','/assets/img/product06.png',58); +INSERT INTO `products` (`id`,`brand`,`color`,`description`,`name`,`pics`,`price`,`quantity`,`size`,`upload_time`,`subcategory_id`,`category`,`image`,`user_id`) VALUES (13,'Samsung','Silver','Samsung A5 2016, Smartphone LTE / UMTS / HSDPA / Quadri Band, Sistema Operativo: Android 4.4 (KitKat), Memoria: 16 GB Espandibile con MicroSD fino a 64 GB, Display: 5,0\"Fotocamera: 13 MP','Samsung Galaxy',NULL,550,1,NULL,NULL,NULL,'technology','/assets/img/product07.png',58); +INSERT INTO `products` (`id`,`brand`,`color`,`description`,`name`,`pics`,`price`,`quantity`,`size`,`upload_time`,`subcategory_id`,`category`,`image`,`user_id`) VALUES (14,'Asus','Black','Notebook Asus Portatile Pc Display da 15.6\"Windows 10 Pro e CPU INTEL','Asus KK6769',NULL,1200,1,NULL,NULL,NULL,'technology','/assets/img/product08.png',58); +INSERT INTO `products` (`id`,`brand`,`color`,`description`,`name`,`pics`,`price`,`quantity`,`size`,`upload_time`,`subcategory_id`,`category`,`image`,`user_id`) VALUES (15,'Lagostina','Silver','Acciaio Inox 18/10','Silverware',NULL,3000,1,'',NULL,NULL,'cook','/assets/img/cook.png',58); diff --git a/db.sql/subcategories.sql b/db.sql/subcategories.sql new file mode 100644 index 0000000..cb22fd4 --- /dev/null +++ b/db.sql/subcategories.sql @@ -0,0 +1,7 @@ + +INSERT INTO `subcategories` (`id`,`name`,`category_id`,`categoryId`) VALUES (1,'shoes',1,NULL); +INSERT INTO `subcategories` (`id`,`name`,`category_id`,`categoryId`) VALUES (2,'book',2,NULL); +INSERT INTO `subcategories` (`id`,`name`,`category_id`,`categoryId`) VALUES (3,'technology',3,NULL); +INSERT INTO `subcategories` (`id`,`name`,`category_id`,`categoryId`) VALUES (4,'clothes',4,NULL); +INSERT INTO `subcategories` (`id`,`name`,`category_id`,`categoryId`) VALUES (5,'cook',5,NULL); +INSERT INTO `subcategories` (`id`,`name`,`category_id`,`categoryId`) VALUES (6,'accesories',6,NULL); diff --git a/db.sql/user.sql b/db.sql/user.sql new file mode 100644 index 0000000..ebcd157 --- /dev/null +++ b/db.sql/user.sql @@ -0,0 +1,2 @@ + +INSERT INTO `user` (`id`,`address`,`birth_date`,`email`,`firstname`,`last_name`,`password`,`profile_pic`,`user_name`,`city_id`,`first_name`,`username`,`gender`,`phone_number`,`show_city_in_profile`,`user_information_id`,`first_login`,`birthDate`,`firstLogin`,`lastName`,`phoneNumber`,`profilePic`,`showCityInProfile`,`cityId`,`userInformationId`) VALUES (58,NULL,NULL,'janedoe@email.com',NULL,'Doe','cGFzc3Bhc3M=','/assets/img/img_avatar.png',NULL,3,'Jane','janedoe',NULL,NULL,'0',NULL,'0',NULL,NULL,NULL,NULL,NULL,NULL,3,NULL);