scanapp_master_data.sql 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. SET FOREIGN_KEY_CHECKS=0;
  2. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  3. SET AUTOCOMMIT = 0;
  4. START TRANSACTION;
  5. SET time_zone = "+00:00";
  6. delete from language_lengthunit where 1;
  7. delete from language_weightunit where 1;
  8. delete from language_language where 1;
  9. delete from language_languagetranslation where 1;
  10. delete from scanapp_popup where 1;
  11. delete from scanapp_producttype where 1;
  12. delete from scanapp_producttypebom where 1;
  13. delete from scanapp_fixedbom where 1;
  14. delete from scanapp_producttypehier where 1;
  15. delete from scanapp_producttypetranslation where 1;
  16. delete from scanapp_activity where 1;
  17. delete from scanapp_activitypoints where 1;
  18. delete from scanapp_activitytranslation where 1;
  19. delete from scanapp_badgetypeleveltext where 1;
  20. delete from scanapp_badgetype where 1;
  21. delete from scanapp_badgetypelevel where 1;
  22. delete from scanapp_badgetypetext where 1;
  23. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  24. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  25. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  26. /*!40101 SET NAMES utf8mb4 */;
  27. INSERT INTO `language_language` (`id`, `name`, `length_unit_id`, `weight_unit_id`) VALUES
  28. (4, 'EN-US', 4, 4),
  29. (7, 'DE-DE', 4, 4),
  30. (8, 'EN-GB', 4, 8),
  31. (9, 'ES-ES', 4, 4),
  32. (10, 'RU-RU', 4, 4),
  33. (11, 'PT-PT', 4, 4),
  34. (12, 'ZH-CN', 4, 4);
  35. INSERT INTO `language_languagetranslation` (`id`, `translation`, `language_id`, `translation_language_id`) VALUES
  36. (1, 'English', 4, 4),
  37. (2, 'German', 7, 4),
  38. (3, 'English - GB', 8, 4),
  39. (4, 'Spanish', 9, 4),
  40. (5, 'Russian', 10, 4),
  41. (6, 'Portuguese', 11, 4),
  42. (7, 'Simplified Chinese', 12, 4),
  43. (8, 'English (USA)', 4, 7),
  44. (9, 'Deutsch', 7, 7),
  45. (10, 'English (GB)', 8, 7),
  46. (11, 'Spanisch', 9, 7),
  47. (12, 'Russisch', 10, 7),
  48. (13, 'Portugiesisch', 11, 7),
  49. (14, 'Chinesisch', 12, 7),
  50. (15, 'English', 4, 8),
  51. (16, 'German', 7, 8),
  52. (17, 'English - GB', 8, 8),
  53. (18, 'Spanish', 9, 8),
  54. (19, 'Russian', 10, 8),
  55. (20, 'Portuguese', 11, 8),
  56. (21, 'Simplified Chinese', 12, 8),
  57. (22, 'English', 4, 9),
  58. (23, 'German', 7, 9),
  59. (24, 'English - GB', 8, 9),
  60. (25, 'Spanish', 9, 9),
  61. (26, 'Russian', 10, 9),
  62. (27, 'Portuguese', 11, 9),
  63. (28, 'Simplified Chinese', 12, 9),
  64. (29, 'English', 4, 10),
  65. (30, 'German', 7, 10),
  66. (31, 'English - GB', 8, 10),
  67. (32, 'Spanish', 9, 10),
  68. (33, 'Russian', 10, 10),
  69. (34, 'Portuguese', 11, 10),
  70. (35, 'Simplified Chinese', 12, 10),
  71. (36, 'English', 4, 11),
  72. (37, 'German', 7, 11),
  73. (38, 'English - GB', 8, 11),
  74. (39, 'Spanish', 9, 11),
  75. (40, 'Russian', 10, 11),
  76. (41, 'Portuguese', 11, 11),
  77. (42, 'Simplified Chinese', 12, 11),
  78. (43, 'English', 4, 12),
  79. (44, 'German', 7, 12),
  80. (45, 'English - GB', 8, 12),
  81. (46, 'Spanish', 9, 12),
  82. (47, 'Russian', 10, 12),
  83. (48, 'Portuguese', 11, 12),
  84. (49, 'Simplified Chinese', 12, 12);
  85. INSERT INTO `language_weightunit` (`id`, `name`, `conversion_rate`) VALUES
  86. (4, 'g', 1000),
  87. (7, 'kg', 1),
  88. (8, 'lb', 2.20462),
  89. (9, 'oz', 35.27392);
  90. INSERT INTO `language_lengthunit` (`id`, `name`, `conversion_rate`) VALUES
  91. (4, 'M', 100),
  92. (7, 'cm', 1);
  93. INSERT INTO `scanapp_activity` (`id`, `name`, `publicly_available`) VALUES
  94. (25, 'bom', 0),
  95. (28, 'bulk_recycling', 1),
  96. (10, 'ean_codes', 0),
  97. (37, 'ean_codes/ID', 0),
  98. (7, 'login', 1),
  99. (34, 'popup_user/ID', 0),
  100. (49, 'product_hier', 0),
  101. (31, 'product_hier/ID', 0),
  102. (40, 'product_pictures', 1),
  103. (13, 'products', 0),
  104. (16, 'recycled', 1),
  105. (4, 'registration', 1),
  106. (19, 'statistics', 0),
  107. (22, 'user_statistics', 0),
  108. (43, 'webpush', 0);
  109. INSERT INTO `scanapp_activitytranslation` (`id`, `translation`, `activity_id`, `language_id`) VALUES
  110. (1, 'Massenrecycling', 28, 7),
  111. (2, 'Material recycled', 16, 7),
  112. (3, 'Bulk recycling', 28, 4),
  113. (4, 'Material recycled', 16, 4);
  114. INSERT INTO `scanapp_activitypoints` (`id`, `from_date`, `to_date`, `recycling_points`, `drops`, `activity_id`, `esd`) VALUES
  115. (4, '1970-01-01', '2099-12-31', 30, 30, 4, 5),
  116. (7, '1970-01-01', '2099-12-31', 2, 2, 7, 0),
  117. (10, '1970-01-01', '2099-12-31', 5, 5, 16, 1),
  118. (13, '1970-01-01', '2099-12-31', 8, 8, 28, 1),
  119. (16, '1970-01-01', '2099-12-31', 12, 12, 10, 2);
  120. INSERT INTO `scanapp_popup` (`id`, `name`, `link_image`, `link_video`, `link_sound`, `delay`, `link`, `popup_type`, `toast_text`) VALUES
  121. (4, 'test with GIF only', 'https://78.media.tumblr.com/fec5fd45e289e590cd90a146c1f05252/tumblr_mxbnijw7W01qfr6udo1_400.gif', 'none', 'none', 10, 'none', 1, NULL),
  122. (7, 'Sound and Image', 'https://78.media.tumblr.com/fec5fd45e289e590cd90a146c1f05252/tumblr_mxbnijw7W01qfr6udo1_400.gif', 'none', 'https://www.mediacollege.com/downloads/sound-effects/nature/forest/rainforest-ambient.wav', 10000, 'none', 1, NULL),
  123. (10, 'Video with GIF', 'https://78.media.tumblr.com/fec5fd45e289e590cd90a146c1f05252/tumblr_mxbnijw7W01qfr6udo1_400.gif', 'https://sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4', 'none', 40, 'none', 1, NULL),
  124. (13, 'Test with JPEG', 'http://notgoaway.com/wp-content/uploads/2017/07/Fun-Wallpaper-6E.jpg', 'none', 'none', 10, 'none', 1, NULL),
  125. (16, 'PNG-Example', 'http://people.sc.fsu.edu/~jburkardt/data/png/apollonian_gasket.png', 'none', 'none', 10, 'none', 1, NULL),
  126. (19, 'MP3-Sound', 'https://media.giphy.com/media/l4hLwMmFVBOAKF3EI/giphy.gif', 'none', 'http://www.orangefreesounds.com/wp-content/uploads/2018/06/Bell-ding-sound-effect.mp3', 10, 'none', 1, NULL),
  127. (22, 'Video with GIF', 'https://78.media.tumblr.com/fec5fd45e289e590cd90a146c1f05252/tumblr_mxbnijw7W01qfr6udo1_400.gif', 'https://static.videezy.com/system/resources/previews/000/000/614/original/Xplosion.mp4', 'none', 10, 'none', 1, NULL),
  128. (28, 'Consecutive login - English - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_cl_en_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  129. (29, 'Consecutive login - English - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_cl_en_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  130. (30, 'Consecutive login - English - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_cl_en_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  131. (31, 'Consecutive login - German - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_cl_de_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  132. (32, 'Consecutive login - German - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_cl_de_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  133. (33, 'Consecutive login - German - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_cl_de_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  134. (34, 'Overall Login - English - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_ld_en_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  135. (35, 'Overall Login - English - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_ld_en_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  136. (36, 'Overall Login - English - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_ld_en_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  137. (37, 'Overall Login - German - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_ld_de_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  138. (38, 'Overall Login - German - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_ld_de_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  139. (39, 'Overall Login - German - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_ld_de_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  140. (40, 'Batteries - English - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_ba_en_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  141. (41, 'Batteries - English - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_ba_en_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  142. (42, 'Batteries - English - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_ba_en_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  143. (43, 'Batteries - German - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_ba_de_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  144. (44, 'Batteries - German - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_ba_de_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  145. (45, 'Batteries - German - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_ba_de_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  146. (46, 'E-Waste - English - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_ew_en_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  147. (47, 'E-Waste - English - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_ew_en_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  148. (48, 'E-Waste - English - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_ew_en_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  149. (49, 'E-Waste - German - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_ew_de_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  150. (50, 'E-Waste - German - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_ew_de_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  151. (51, 'E-Waste - German - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_ew_de_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  152. (52, 'TetraPak - English - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_tp_en_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  153. (53, 'TetraPak - English - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_tp_en_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  154. (54, 'TetraPak - English - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_tp_en_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  155. (55, 'TetraPak - German - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_tp_de_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  156. (56, 'TetraPak - German - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_tp_de_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  157. (57, 'TetraPak - German - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_tp_de_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  158. (58, 'Plastic - English - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_pl_en_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  159. (59, 'Plastic - English - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_pl_en_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  160. (60, 'Plastic - English - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_pl_en_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  161. (61, 'Plastic - German - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_pl_de_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  162. (62, 'Plastic - German - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_pl_de_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  163. (63, 'Plastic - German - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_pl_de_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  164. (64, 'Metal - English - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_me_en_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  165. (65, 'Metal - English - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_me_en_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  166. (66, 'Metal - English - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_me_en_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  167. (67, 'Metal - German - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_me_de_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  168. (68, 'Metal - German - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_me_de_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  169. (69, 'Metal - German - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_me_de_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  170. (70, 'Paper - English - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_pa_en_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  171. (71, 'Paper - English - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_pa_en_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  172. (72, 'Paper - English - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_pa_en_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  173. (73, 'Paper - German - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_pa_de_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  174. (74, 'Paper - German - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_pa_de_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  175. (75, 'Paper - German - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_pa_de_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  176. (76, 'Glass - English - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_gl_en_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  177. (77, 'Glass - English - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_gl_en_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  178. (78, 'Glass - English - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_gl_en_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  179. (79, 'Glass - German - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_gl_de_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  180. (80, 'Glass - German - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_gl_de_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  181. (81, 'Glass - German - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_gl_de_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  182. (82, 'Cleanuminati Event - English - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_clean_en_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  183. (83, 'Cleanuminati Event - English - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_clean_en_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  184. (84, 'Cleanuminati Event - English - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_clean_en_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  185. (85, 'Cleanuminati Event - German - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_clean_de_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  186. (86, 'Cleanuminati Event - German - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_clean_de_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  187. (87, 'Cleanuminati Event - German - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_clean_de_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  188. (88, 'Trashspotters - English - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_trspot_en_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  189. (89, 'Trashspotters - English - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_trspot_en_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  190. (90, 'Trashspotters - English - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_trspot_en_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  191. (91, 'Trashspotters - German - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_trspot_de_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  192. (92, 'Trashspotters - German - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_trspot_de_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  193. (93, 'Trashspotters - German - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_trspot_de_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  194. (94, 'New Products - English - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_np_en_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  195. (95, 'New Products - English - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_np_en_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  196. (96, 'New Products - English - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_np_en_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  197. (97, 'New Products - German - Bronze', 'https://app-test.earthsquad.global/image/nginx_static/popup_np_de_bronze.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  198. (98, 'New Products - German - Silver', 'https://app-test.earthsquad.global/image/nginx_static/popup_np_de_silver.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  199. (99, 'New Products - German - Golden', 'https://app-test.earthsquad.global/image/nginx_static/popup_np_de_golden.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  200. (101, 'Daily popup', 'None', 'None', 'None', 600, 'None', 5, NULL),
  201. (102, 'First login - English', 'https://app-test.earthsquad.global/image/nginx_static/popup_fl_en.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!'),
  202. (103, 'First login - German', 'https://app-test.earthsquad.global/image/nginx_static/popup_fl_de.jpg', 'none', 'none', 600, 'none', 1, 'Badge earned!');
  203. INSERT INTO `scanapp_fixedbom` (`id`, `weight`, `product_type_id`, `product_type_bom_id`) VALUES
  204. (4, 0.033, 10, 4),
  205. (7, 0.043, 28, 7),
  206. (10, 0.045, 28, 10),
  207. (13, 0.025, 28, 13),
  208. (16, 0.055, 40, 16),
  209. (19, 0.1, 40, 19),
  210. (22, 0.15, 28, 22),
  211. (28, 0.034, 10, 28),
  212. (29, 0.025, 22, 29),
  213. (30, 0.002, 22, 30);
  214. INSERT INTO `scanapp_badgetype` (`id`, `name`, `calculation_type`, `lvl_001`, `lvl_002`, `lvl_003`, `lvl_004`, `lvl_005`, `product_type_id`) VALUES
  215. (1, 'FL', 99, 1, 99, 99, 99, 99, NULL),
  216. (2, 'CL', 3, 7, 30, 90, 365, 0, NULL),
  217. (3, 'LD', 2, 30, 90, 365, 1200, 0, NULL),
  218. (4, 'BA', 1, 10, 100, 500, 2000, 0, 22),
  219. (5, 'EW', 1, 10, 100, 500, 2000, 0, 19),
  220. (6, 'PL', 1, 100, 1000, 3000, 9000, 0, 25),
  221. (7, 'ME', 1, 100, 1000, 3000, 9000, 0, 31),
  222. (8, 'PA', 1, 100, 1000, 3000, 9000, 0, 16),
  223. (9, 'GL', 1, 100, 1000, 3000, 9000, 0, 40),
  224. (10, 'ES', 4, 1, 3, 8, 20, 0, NULL),
  225. (11, 'TD', 5, 1, 3, 8, 20, 0, NULL),
  226. (12, 'NE', 6, 10, 50, 300, 1000, 0, NULL),
  227. (13, 'TP', 1, 100, 1000, 3000, 9000, 0, 67);
  228. INSERT INTO `scanapp_badgetypelevel` (`id`, `badge_type_id`, `level_name`) VALUES
  229. (5, 1, 'bronze'),
  230. (7, 2, 'silver'),
  231. (8, 2, 'golden'),
  232. (9, 2, 'diamond'),
  233. (10, 3, 'bronze'),
  234. (11, 3, 'silver'),
  235. (12, 3, 'golden'),
  236. (14, 2, 'bronze'),
  237. (15, 3, 'diamond'),
  238. (16, 4, 'bronze'),
  239. (17, 4, 'silver'),
  240. (18, 4, 'golden'),
  241. (19, 4, 'diamond'),
  242. (20, 5, 'bronze'),
  243. (21, 5, 'silver'),
  244. (22, 5, 'golden'),
  245. (23, 5, 'diamond'),
  246. (24, 6, 'bronze'),
  247. (25, 6, 'silver'),
  248. (26, 6, 'golden'),
  249. (27, 6, 'diamond'),
  250. (28, 7, 'bronze'),
  251. (29, 7, 'silver'),
  252. (30, 7, 'golden'),
  253. (31, 7, 'diamond'),
  254. (32, 8, 'bronze'),
  255. (33, 8, 'silver'),
  256. (34, 8, 'golden'),
  257. (35, 8, 'diamond'),
  258. (36, 9, 'bronze'),
  259. (37, 9, 'silver'),
  260. (38, 9, 'golden'),
  261. (39, 9, 'diamond'),
  262. (40, 10, 'bronze'),
  263. (41, 10, 'silver'),
  264. (42, 10, 'golden'),
  265. (43, 10, 'diamond'),
  266. (44, 11, 'bronze'),
  267. (45, 11, 'silver'),
  268. (46, 11, 'golden'),
  269. (47, 11, 'diamond'),
  270. (48, 12, 'bronze'),
  271. (49, 12, 'silver'),
  272. (50, 12, 'golden'),
  273. (51, 12, 'diamond'),
  274. (52, 13, 'bronze'),
  275. (53, 13, 'silver'),
  276. (54, 13, 'golden'),
  277. (55, 13, 'diamond');
  278. INSERT INTO `scanapp_badgetypeleveltext` (`id`, `name_short`, `name_long`, `image`, `badge_type_level_id`, `language_id`, `popup_id`, `image_zoom`) VALUES
  279. (19, 'Batteries Diamond', 'Batteries Diamond', 'badge_ba_diamond.gif', 19, 4, 4, 'badge_ba_diamond.gif'),
  280. (13, '365 cons. days!', '365 days constant activtity!', 'badge_cl_diamond.gif', 9, 4, 4, 'badge_cl_diamond.gif'),
  281. (39, 'E-Waste Diamond', 'E-Waste Diamond', 'badge_ew_diamond.gif', 23, 4, 4, 'badge_ew_diamond.gif'),
  282. (28, 'Glass Diamond', 'Glass Badge Diamond', 'badge_gl_diamond.gif', 39, 4, 4, 'badge_gl_diamond.gif'),
  283. (16, '1200 days!', '1200 days activity', 'badge_ld_diamond.gif', 15, 4, 4, 'badge_ld_diamond.gif'),
  284. (25, 'Metal Diamond', 'Metal Badge Diamond', 'badge_me_diamond.gif', 31, 4, 4, 'badge_me_diamond.gif'),
  285. (35, 'New Products King', 'New Products scout - Diamond!', 'badge_np_diamond.gif', 51, 4, 4, 'badge_np_diamond.gif'),
  286. (42, 'Paper diamond', 'Paper Diamon Badge', 'badge_pa_diamond.gif', 35, 4, 4, 'badge_pa_diamond.gif'),
  287. (22, 'Plastics Diamond', 'Plastics recycling Badge Diamond', 'badge_pl_diamond.gif', 27, 4, 4, 'badge_pl_diamond.gif'),
  288. (32, 'Tetra Pak Diamond', 'Tetra Pak Diamond', 'badge_tp_diamond.gif', 55, 4, 4, 'badge_tp_diamond.gif'),
  289. (4, 'Batteries Bronze', 'Batteries Bronze', 'badge_ba_bronze.png', 16, 4, 40, 'popup_ba_en_bronze.jpg'),
  290. (18, 'Batteries Golden', 'Batteries Golden', 'badge_ba_golden.png', 18, 4, 42, 'popup_ba_en_golden.jpg'),
  291. (17, 'Batteries Silver', 'Batteries Silver', 'badge_ba_silver.png', 17, 4, 41, 'popup_ba_en_silver.jpg'),
  292. (2, '7 cons days!', '7 consecutive days of login!', 'badge_cl_bronze.png', 14, 4, 28, 'popup_cl_en_bronze.jpg'),
  293. (12, '90 cons. days!', '90 days constant activtity!', 'badge_cl_golden.png', 8, 4, 30, 'popup_cl_en_golden.jpg'),
  294. (11, '30 cons. days!', '30 days constant activtity!', 'badge_cl_silver.png', 7, 4, 29, 'popup_cl_en_silver.jpg'),
  295. (36, 'E-Waste Bronze', 'E-Waste Bronze', 'badge_ew_bronze.png', 20, 4, 46, 'popup_ew_en_bronze.jpg'),
  296. (38, 'E-Waste Golden', 'E-Waste Golden', 'badge_ew_golden.png', 22, 4, 48, 'popup_ew_en_golden.png'),
  297. (37, 'E-Waste Silver', 'E-Waste Silver', 'badge_ew_silver.png', 21, 4, 47, 'popup_ew_en_silver.jpg'),
  298. (0, 'First Login!', 'Welcome to EarthSquad!', 'badge_fl.png', 5, 4, 102, 'popup_fl_en.jpg'),
  299. (9, 'Glass Bronze', 'Glass Badge Bronze', 'badge_gl_bronze.png', 36, 4, 76, 'popup_gl_en_bronze.jpg'),
  300. (27, 'Glass Golden', 'Glass Badge Golden', 'badge_gl_golden.png', 38, 4, 78, 'popup_gl_en_golden.jpg'),
  301. (26, 'Glass Silver', 'Glass Badge Silver', 'badge_gl_silver.png', 37, 4, 77, 'popup_gl_en_silver.jpg'),
  302. (3, 'Login Day Bronze', 'Login Days Bronze achieved!', 'badge_ld_bronze.png', 10, 4, 34, 'popup_ld_en_bronze.jpg'),
  303. (15, '365 days!', '365 days activity', 'badge_ld_golden.png', 12, 4, 36, 'popup_ld_en_golden.jpg'),
  304. (14, '90 days!', '90 days activity', 'badge_ld_silver.png', 11, 4, 35, 'popup_ld_en_silver.jpg'),
  305. (7, 'Metal Bronze', 'Metal Badge Bronze', 'badge_me_bronze.png', 28, 4, 64, 'popup_me_en_bronze.jpg'),
  306. (24, 'Metal Golden', 'Metal Badge Golden', 'badge_me_golden.png', 30, 4, 66, 'popup_me_en_golden.jpg'),
  307. (23, 'Metal Silver', 'Metal Badge Silver', 'badge_me_silver.png', 29, 4, 65, 'popup_me_en_silver.jpg'),
  308. (10, 'New Products created', 'New Products scout in Bronze', 'badge_np_bronze.png', 48, 4, 94, 'popup_np_en_bronze.jpg'),
  309. (34, 'New Products created', 'New Products scout in Gold', 'badge_np_golden.png', 50, 4, 96, 'popup_np_en_golden.jpg'),
  310. (33, 'New Products created', 'New Products scout in Silver', 'badge_np_silver.png', 49, 4, 95, 'popup_np_en_silver.jpg'),
  311. (8, 'Paper bronze', 'Paper Bronze Badge', 'badge_pa_bronze.png', 32, 4, 70, 'popup_pa_en_bronze.jpg'),
  312. (40, 'Paper Silver', 'Paper Silver Badge', 'badge_pa_silver.png', 33, 4, 71, 'popup_pa_en_bronze.jpg'),
  313. (41, 'Paper golden', 'Paper Golden Badge', 'badge_pa_golden.png', 34, 4, 72, 'popup_pa_en_golden.jpg'),
  314. (6, 'Plastics Bronze', 'Plastics recycling Badge Bronze', 'badge_pl_bronze.png', 24, 4, 58, 'popup_pl_en_bronze.jpg'),
  315. (21, 'Plastics Golden', 'Plastics recycling Badge Golden', 'badge_pl_golden.png', 26, 4, 60, 'popup_pl_en_golden.jpg'),
  316. (20, 'Plastics Silver', 'Plastics recycling Badge Silver', 'badge_pl_silver.png', 25, 4, 59, 'popup_pl_en_silver.jpg'),
  317. (29, 'Tetra Pak Bronze', 'Tetra Pak Bronze', 'badge_tp_bronze.png', 52, 4, 52, 'popup_tp_en_bronze.jpg'),
  318. (31, 'Tetra Pak Golden', 'Tetra Pak Golden', 'badge_tp_golden.png', 54, 4, 54, 'popup_tp_en_golden.jpg'),
  319. (30, 'Tetra Pak Silver', 'Tetra Pak Silver', 'badge_tp_silver.png', 53, 4, 53, 'popup_tp_en_silver.jpg');
  320. INSERT INTO `scanapp_badgetypetext` (`id`, `name_short`, `name_long`, `badge_type_id`, `language_id`) VALUES
  321. (1, 'Welcome!', 'Welcome first login!', 1, 4),
  322. (2, 'Cons.Login', 'Consequitive Login Days Challenge', 2, 4),
  323. (3, 'Login Days', 'Login Days Challenge', 3, 4),
  324. (4, 'Batteries', 'Batteries', 4, 4),
  325. (5, 'E-Waste', 'E-Waste Badge', 5, 4),
  326. (6, 'Plastics', 'Plastics recycling Badge', 6, 4),
  327. (7, 'Metal', 'Metal Badge', 7, 4),
  328. (8, 'Glass', 'Glass Badge', 9, 4),
  329. (9, 'Cleanuminati', 'Cleanuminati Events', 10, 4),
  330. (10, 'Trashspotter!', 'Trashspotter Badge', 11, 4),
  331. (11, 'New Products', 'New Products scout', 12, 4),
  332. (12, 'Tetra Pak', 'Tetra Pak', 13, 4),
  333. (13, 'Paper', 'Paper', 8, 4);
  334. INSERT INTO `scanapp_producttype` (`id`, `is_packaging_material`, `icon`, `deleted`, `name`, `lvl_001`, `lvl_002`, `lvl_003`, `lvl_004`, `lvl_005`) VALUES
  335. (1, 0, 'static/drops.png', 0, 'Product Types', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000'),
  336. (2, 1, 'icon_glass', 0, 'Recycling Materials', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000'),
  337. (10, 1, 'icon_metall', 0, 'Aluminium', '0.002173', '0.000960', '0.000000', '0.003867', '0.000000'),
  338. (13, 1, 'biod', 0, 'Biodegradable', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000'),
  339. (16, 1, 'paper', 0, 'Paper and Cardboard', '0.003375', '0.000477', '0.000001', '0.004825', '0.000000'),
  340. (19, 1, 'icon_div', 0, 'E-Waste', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000'),
  341. (22, 1, 'icon_battery', 0, 'Batteries', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000'),
  342. (25, 1, 'plastic', 0, 'Plastic', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000'),
  343. (28, 1, 'PET', 0, 'PET-Plastic', '0.001520', '0.002280', '0.000000', '0.001044', '0.000000'),
  344. (31, 1, 'icon_metal', 0, 'Metal', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000'),
  345. (34, 1, 'Wood', 0, 'Wood', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000'),
  346. (37, 1, 'Tires', 0, 'Tires', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000'),
  347. (40, 1, 'glass', 0, 'Glass', '0.000105', '0.000735', '0.000000', '0.000455', '0.000000'),
  348. (43, 1, 'nores-plastic', 0, 'Waste (non-recyclable)', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000'),
  349. (46, 0, 'icon_dummy', 0, 'PET 0,5l', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000'),
  350. (49, 0, 'icon_dummy', 0, 'PET 1,0l', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000'),
  351. (52, 0, 'icon_dummy', 0, 'PET 1,5l', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000'),
  352. (55, 0, 'icon_dummy', 0, 'beer 0,33l', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000'),
  353. (58, 0, 'icon_dummy', 0, 'beer 0,5l', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000'),
  354. (61, 0, 'icon_dummy', 0, 'glass bottle 0,5l', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000'),
  355. (64, 0, 'icon_dummy', 0, 'glass bottle 1,0', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000'),
  356. (65, 0, 'icon_dummy', 0, 'Battery AA', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000'),
  357. (66, 0, 'icon_dummy', 0, 'Battery AAA', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000'),
  358. (67, 1, 'icon_div', 0, 'Tetra Pack', '0.000000', '0.000000', '0.000000', '0.000000', '0.000000');
  359. INSERT INTO `scanapp_producttypebom` (`id`, `created_at`, `updated_at`, `product_type_id`) VALUES
  360. (4, '2018-06-22 13:49:00.599002', '2018-07-12 06:30:11.116771', 55),
  361. (7, '2018-06-22 13:49:16.342903', '2018-07-12 06:29:54.576937', 52),
  362. (10, '2018-06-22 13:49:33.956186', '2018-07-12 06:29:38.152841', 49),
  363. (13, '2018-06-22 13:49:52.813425', '2018-07-12 06:29:19.656163', 49),
  364. (16, '2018-06-22 13:50:07.079450', '2018-07-12 15:54:57.977940', 64),
  365. (19, '2018-06-22 13:50:28.545773', '2018-07-12 15:54:21.809192', 61),
  366. (22, '2018-06-22 13:50:48.039702', '2018-07-12 06:29:01.240854', 46),
  367. (28, '2018-07-12 06:30:36.225361', '2018-07-12 15:54:11.776823', 58),
  368. (29, '2018-08-05 13:50:48.039702', '2018-08-05 13:50:48.039702', 66),
  369. (30, '2018-08-05 13:50:48.039702', '2018-08-05 13:50:48.039702', 65);
  370. INSERT INTO `scanapp_producttypehier` (`id`, `child_id`, `parent_id`) VALUES
  371. (4, 13, 2),
  372. (10, 10, 31),
  373. (16, 16, 2),
  374. (19, 19, 2),
  375. (22, 22, 2),
  376. (25, 25, 2),
  377. (28, 28, 25),
  378. (31, 31, 2),
  379. (34, 34, 2),
  380. (37, 37, 2),
  381. (40, 40, 2),
  382. (43, 43, 2),
  383. (46, 46, 1),
  384. (49, 49, 1),
  385. (52, 52, 1),
  386. (55, 55, 1),
  387. (58, 58, 1),
  388. (64, 61, 1),
  389. (67, 64, 1),
  390. (68, 65, 1),
  391. (69, 66, 1),
  392. (70, 67, 2);
  393. INSERT INTO `scanapp_producttypetranslation` (`id`, `translation`, `language_id`, `word_id_id`) VALUES
  394. (4, 'Standard Products', 4, 1),
  395. (7, 'Recycling Materials', 4, 2),
  396. (10, 'Aluminium', 4, 10),
  397. (13, 'Biodegradable', 4, 13),
  398. (16, 'Paper and Cardboard', 4, 16),
  399. (19, 'E-Waste', 4, 19),
  400. (22, 'Batteries', 4, 22),
  401. (25, 'Plastic', 4, 25),
  402. (28, 'PET-Plastic', 4, 28),
  403. (31, 'Metal', 4, 31),
  404. (34, 'Wood', 4, 34),
  405. (37, 'Tires', 4, 37),
  406. (40, 'Glass', 4, 40),
  407. (43, 'Waste (non-recyclable)', 4, 43),
  408. (46, 'PET 0,5l', 4, 46),
  409. (49, 'PET 1,0l', 4, 49),
  410. (52, 'PET 1,5l', 4, 52),
  411. (55, 'Aluminium can 0,33l', 4, 55),
  412. (58, 'Aluminium can 0,5l', 4, 58),
  413. (61, 'Glas bottle 0,5l', 4, 61),
  414. (64, 'Glas bottle 1,0l', 4, 64),
  415. (65, 'Battery AA', 4, 65),
  416. (66, 'Battery AAA', 4, 66),
  417. (67, 'Tetra Pack', 4, 67);
  418. SET FOREIGN_KEY_CHECKS=1;
  419. COMMIT;
  420. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  421. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  422. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;