JFIF  H H (ICC_PROFILE   0 mntrRGB XYZ acsp   - desc trXYZ d gXYZ x bXYZ  rTRC  (gTRC  (bTRC  (wtpt  cprt  بV7eudakt!Q ,*RGPQNČzŬb 5666p z"c83''Mq6Gitql@90.ۚAcN|li:9蠃p/^ZnLx84v;[#$ nh'c32o8Ɛ5KAv*_?nX?pyֆ̈́#z23F0Oe> {Gu.V (C'h/o%>x1X r:(>}{ycX8b]U:dOMsVAp'Z3'3E-ybj:>jOvUw#2cl~@gFCjțbz ^:-tdfj{XTh8aUM^+dAl"(KK m1$$ XKKqržoqg V FF#pG~:]֦!!Ң:pC+ AzӬ].t`='h_/} @L\,x㌼z԰+J-v+Y['8' % X q=[4Sj~4ݢ#dʂēRL5kX؊>l:t\baBA\Q38( ө:&$ 'L#d{qH>*5;jDo ˷YmԈ*[9*5tUf%3= GUW\'AR_W4_P պ -|4RFJZv0d[ˠzJ|PU8;鯌 'VcL,κ>*eb)f,0"j1 1v՘;bJ++COz7%>NU,=z\cEVK>Ic7} .jHn;^觱GHI HVǂO:ߊ{mSV?K|@ AiAT`2j 1~K8’$ ~]=9ឦG *9EMּm5Xf9Qĸ}i D%+t+;F: v:-&h_rD|! Ә;Zl븂':C&ҀaeKkm6 uT".}J&\ hciB2B+T7t?EPþЌmAF\lc2ЊABmE,cն\QJ]d5 `O Y@8?lx#KiI&Ri1fR2f1N%_g*TӨ??N:}+לɀh٭qL,ʈBrcuBmz ̢TV^ 뙏8' ufUX3㓏>NG:/;Hp饕B1K /%iɫ VQ%:_ -1oL?Roa\i^F|W*Na)P X#y㯨z+Cح\вjirm*dWҡQbBȨi'%NEb?'[h=`OiU϶u nR}GW4fVJmiR~J|l%m'%"LW V27NsXb?_={s}ij4Ý=SNjxFV"ԎI(E)]ӝЖm[4 m`5-7Wf󪥎bZKa#Vb%KY5T$y`46̼p C7HM'l{Oi +Pw~j,S5T4(FԨ;A`*HJTPgt(6/cg5U1@Qb8Y!rBzOQKF+6v%=~XDPpWc_-:߈#c坣CW1:^Q 06Ӭq@ Dj$ UW$?9F\cSM5=2>hב\,()JBk; J#j徻W(p=oQD #UMhU*Fc ?N=nF5Ӑ12w05Z뀩4ڣ霅uC1y%nJ8Ԑ*crR 9W=H9,A׻,.ZFb QEGVNs, q';OMmbtNVqOw*֙kPѬ؈XJIӯEWok+R{%j; Yx 7&&,LԜYbw"lI(*`۹F AS- #$413)Qpڤ3RxOJ$cP]viuq {kyN.- B,@󪳪ڸAor%X0UNb9 򍕑7)*233|Rnb@q|EUý$!7&["XOy ~ƓtADhP]mG파9p=ԜZ]ӭሎOeyq !bI GU:5~FoL ST[е$]$g*w]!;m@ޠ&IUڬ{҄բ-.SmҒ` vU"oL;'5s"W)@äL1i}^Y5$+Pv0o HU @ȓsQM)?M\4Q $2;g WJ/NwFJGD: y όMfW!QUZ%azҳDK_XhM^rԝ^!d'<#ﴛO{/F?+$ Y' wg'$ljGAH7l4xѶc}I*esg~;ͤt@B2iB'9C a8fTR: %NO@ m3sv w .@濾 ,FYrT0mUW_v>>d[A6ڊx:YTLHvӺ!nSD}>[mET0_,'C]pjVᅷPDZ[-V0`>}ܟpmֻ2O6O*ݹXHSN(J /+1՟#(P*gEO#w&j6?;ڡ)+U]l\/{莄*I/9<'$'#'yt/&-\\WPL`/p9qa'e¨E] fAAEYnGtm,ϮwXT>AaN#FjŵjQFdq^<H?yJ܃2*3 T4ЧH**W;(ꭽ¾Pf=eyA4FJ6{e]JqOCf#3SJf iMM\ iT$rG8$9>2:M)Q#NKe&"E8.z<mHk?#t˒A]; G0H:f!i! j{1m}o7u;$99Ӱ\ncz:zALq޶wyKT<4X,'!Y;Ͱ6q GM~_~܂}t>(zl}:r L9 fe}.-R*<`c6oܛ=prҽGB)nQ%)s*&i΍%—Zb{m[NNkbwBw Q*dF HP iܛ; aV68j}\eIGI'͔B;yA :^bn-m#@S6ˎr ;~cmƻgU:X6G%[gc{]c4)fpsgY˅>*"1}2<175)]V5)kdkM~`΂:{4nGPTTb   뎱϶w FFᓂG8>zF_H9_rDl:ҶH5Z!Bj.yk}erb:SOT]!ǎ?n:HεZsyztn[7NZ#UQO$.J#]Cr#YX9c<'$z 9 .$$PnDSn 2u5X g\ ?|Aᬰⶵ >>bE)Cb-ruMc׺*,\)`^m ge\k.۫8گoK1gWMpU޻zI=EErz:#6--/Wm\z8מ0x tA_c?Ծc^MژIMyO>l0ċ}t7[\ʲ9̜m_a[姯rְjP\kx1'CdmvF70e+m-]a?ݝKuSMUm 8f Yb!)2Z.UD \~:ܽ8zR̪Kcbs&ߦ1$, w\gc3F$iU#<`:I4{w.2aQ$EXNo?Gm NN rE$#Jn҉!AH'zePzRog8u(tJP߁Z.pÐ͢Aռ65Xsyvm 6RW7W;|0 >OүG@ٳ<>omԼ()kZJlK,F 4)snOQ{u㌏= Ao,ծ?eKBzG 6e6 f|CU _4C[j͕M8,%emM8\ cv COwTGi _94BDf%'ns8MPc&-y"8R_j 3a+z+N 9QlDQ40E VۋrH2I_YO',:뿉WNHvﵐ0B}na*E zUbN#0e"f.Q H5"-HVn=+ # Eiy- v8=g`o[ 鼛2.D^QeB ؅qϿRC~ B+Jۍ8 4*ӖΝ1R BI\ 1[0 I9y)Y " 7]6qg\ vP  s= Ѭ֕)פE< c`ϷU9W,: ?y1hsU(T ge/룮JA]|4aZVAIeIhBI!l$3![qHnw\7R{oM/ִ>5& gwjFE dc@K:V&W/k+=Yk[ @fU5zzmFȖH,[ n-dc wd[z"g4ϘRr0`B8_; #$^Zo5KZYKj GY%s"!a[9I2TF-w#a]˒Itٮei_FpVЧ૱W3eCi7 "}HApG>h֝5i T٧- '`dX1AF$$ޙ_Z]ڷTC Uy JGO} >A"5a> ZUR -Z\9 jrWݖQRݳ*ļ]$ڵXq=/w z\II#{ӭl^;F_R쵎[ָ[gKKͰoQ )W녕іs*kuzŨQde`WU_KLE~"g r<2GyއL(-VY -Z(IU0 |\;8C mhl:̄DkYHOk|:*DY tsس |zrO;񍃌sT31=jwyШ^nZHm_G̮0W󿓹S;_$mٛIDV=f-H}U]HA*vԶ3\Wh*I#$@6x^OZC&JU 16 XD*if&BDGFYYP[KLX uX .Z hq Ghb8M#Mqt\c> aT 00=㎨ʕGQԪR,ĜI9zӦJO3Rn`C5܊@QO1N.ؔ"I\YÖĐHdL\}IP~jm$ y; :ZGZVJv =&*UF#``R`*S+p\=) ҭ9k̮Ršx0'**ԑLkɺk+zJb#:|MZ ?j$ݼ &X)$6FY6ѕ/; J*nlC*ų_ ԕ{_6:\47ڷs4RmĊ=z *ʪXT[]5Bl#a-˙bv8@H|Rwe9A%5&M%Z02TN)&&GfM 儀oŒM;=.//k~ E"a9/3y,>lj>ZXy&εYP&h gec<``]!}i'c KQulFIʓ_\T58(+cJq~ [dgmm/`Xڙhtkq ו$"c[PVY[uɜ&#몵"ȾqC"ÜȔ!<Mj8u-dx*gϫtTLdKlaWڭ\~|7u`h(w֋cL=˼=FvcGs}зUBSМ;FI;Q$8+V|[CS쮙1%YP Q% LVVK+&,cIb]Vyi ~h?yF4"5As-F ݆x55P&E:W@f;}Gy^]U ITki 1 d﫠*cNh' cؗYnsL:b?H :kM~@8#Iqɔ~:f]P*i]H'fjhxTҗ1O:^t$1]UXz&tODT>(^s&3#N_/x-䬦? ~vU-W$4'ӎvRG|jySW?u4(1 G[ِ22jʎhrmoյشgRͮ%ϟѬ9 oR  n-&F-@hgY_qN;"2 !KJ  šA^, "aG8`=14=5Mqk>U@UT :RgjrKF.O$I9'=i}._ One Hat Cyber Team
  • Your IP: 216.73.216.143
  • Server IP: 198.54.115.72
  • Server: Linux premium27.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
  • Server Software: LiteSpeed
  • PHP Version: 8.2.28
  • Buat File | Buat Folder
View File Name : toaster.sql
\r\n

','{$plugin:widcard:BizEmail:notag}','Success','Error','Thank you for contacting us.','email','{$plugin:widcard:BizEmail:notag}','','Hello!\r\nThank you for contacting us.','0','','0','subject','0','{$plugin:widcard:BizEmail:notag}','{$plugin:widcard:BizEmail:notag}','','0',NULL),(2,'Wholesale','

We welcome inquiries from salons, day spas, beauty supply stores and other retailers interested in reselling our products. Please complete the form.
Thank you!

\r\n\r\n

\r\n \r\n \r\n

\r\n

\r\n \r\n \r\n

\r\n

\r\n \r\n \r\n

\r\n

\r\n \r\n \r\n

\r\n

\r\n \r\n \r\n

\r\n

\r\n \r\n \r\n

\r\n

\r\n \r\n \r\n

\r\n

\r\n \r\n \r\n

\r\n

\r\n \r\n\r\n

\r\n

\r\n \r\n \r\n

\r\n

\r\n \r\n\r\n

\r\n

\r\n \r\n \r\n

\r\n

\r\n \r\n \r\n

\r\n

\r\n \r\n \r\n

\r\n

\r\n \r\n\r\n

\r\n

\r\n \r\n \r\n

','{$plugin:widcard:BizEmail:notag}','Success','Error','Subject','email','{$plugin:widcard:BizEmail:notag}','','Reply text','0','','0','','0','{$plugin:widcard:BizEmail:notag}','{$plugin:widcard:BizEmail:notag}','','0',NULL),(3,'newsletter','

\r\n \r\n

','{$plugin:widcard:BizEmail:notag}','Success','Error','Subject','email','{$plugin:widcard:BizEmail:notag}','','Reply Text','0','','0','subject','0','{$plugin:widcard:BizEmail:notag}','{$plugin:widcard:BizEmail:notag}','','0',NULL),(4,'contact-small','

\r\n \r\n \r\n

\r\n

\r\n \r\n \r\n

\r\n

\r\n \r\n \r\n

','{$plugin:widcard:BizEmail:notag}','Success','Error','subject','0','{$plugin:widcard:BizEmail:notag}','','','0','','0',NULL,NULL,'{$plugin:widcard:BizEmail:notag}','{$plugin:widcard:BizEmail:notag}',NULL,'0',NULL); /*!40000 ALTER TABLE `form` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `form_blacklist_rules` -- DROP TABLE IF EXISTS `form_blacklist_rules`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `form_blacklist_rules` ( `id` int(10) NOT NULL AUTO_INCREMENT, `type` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`type`,`value`), UNIQUE KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `form_blacklist_rules` -- LOCK TABLES `form_blacklist_rules` WRITE; /*!40000 ALTER TABLE `form_blacklist_rules` DISABLE KEYS */; /*!40000 ALTER TABLE `form_blacklist_rules` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `form_page_conversion` -- DROP TABLE IF EXISTS `form_page_conversion`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `form_page_conversion` ( `page_id` int(10) unsigned NOT NULL, `form_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `conversion_code` text COLLATE utf8_unicode_ci, PRIMARY KEY (`page_id`,`form_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `form_page_conversion` -- LOCK TABLES `form_page_conversion` WRITE; /*!40000 ALTER TABLE `form_page_conversion` DISABLE KEYS */; INSERT INTO `form_page_conversion` VALUES (1,'newsletter',''),(1,'quote',''),(6,'contact',''),(7,'contact',''); /*!40000 ALTER TABLE `form_page_conversion` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `link_container` -- DROP TABLE IF EXISTS `link_container`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `link_container` ( `id_container` int(10) unsigned NOT NULL, `link` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id_container`,`link`), KEY `indContainerId` (`id_container`), KEY `indLink` (`link`), CONSTRAINT `FK_link_container` FOREIGN KEY (`id_container`) REFERENCES `container` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `link_container` -- LOCK TABLES `link_container` WRITE; /*!40000 ALTER TABLE `link_container` DISABLE KEYS */; /*!40000 ALTER TABLE `link_container` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `masks_list` -- DROP TABLE IF EXISTS `masks_list`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `masks_list` ( `country_code` char(2) COLLATE utf8_unicode_ci NOT NULL, `mask_type` enum('mobile','desktop') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'mobile', `mask_value` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `full_mask_value` varchar(20) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`country_code`,`mask_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `masks_list` -- LOCK TABLES `masks_list` WRITE; /*!40000 ALTER TABLE `masks_list` DISABLE KEYS */; INSERT INTO `masks_list` VALUES ('AC','mobile','9999','9999'),('AC','desktop','9999','9999'),('AD','mobile','999-999','999-999'),('AD','desktop','999-999','999-999'),('AE','mobile','59-999-9999','59-999-9999'),('AE','desktop','59-999-9999','59-999-9999'),('AF','mobile','99-999-9999','99-999-9999'),('AF','desktop','99-999-9999','99-999-9999'),('AG','mobile','(268)999-9999','(268)999-9999'),('AG','desktop','(268)999-9999','(268)999-9999'),('AI','mobile','(264)999-9999','(264)999-9999'),('AI','desktop','(264)999-9999','(264)999-9999'),('AL','mobile','(999)999-999','(999)999-999'),('AL','desktop','(999)999-999','(999)999-999'),('AM','mobile','99-999-999','99-999-999'),('AM','desktop','99-999-999','99-999-999'),('AN','mobile','999-9999','999-9999'),('AN','desktop','999-9999','999-9999'),('AO','mobile','(999)999-999','(999)999-999'),('AO','desktop','(999)999-999','(999)999-999'),('AQ','mobile','199-999','199-999'),('AQ','desktop','199-999','199-999'),('AR','mobile','(999)999-9999','(999)999-9999'),('AR','desktop','(999)999-9999','(999)999-9999'),('AS','mobile','(684)999-9999','(684)999-9999'),('AS','desktop','(684)999-9999','(684)999-9999'),('AT','mobile','(999)999-9999','(999)999-9999'),('AT','desktop','(999)999-9999','(999)999-9999'),('AU','mobile','9-9999-9999','9-9999-9999'),('AU','desktop','9-9999-9999','9-9999-9999'),('AW','mobile','999-9999','999-9999'),('AW','desktop','999-9999','999-9999'),('AZ','mobile','99-999-99-99','99-999-99-99'),('AZ','desktop','99-999-99-99','99-999-99-99'),('BA','mobile','99-99999','99-99999'),('BA','desktop','99-99999','99-99999'),('BB','mobile','(246)999-9999','(246)999-9999'),('BB','desktop','(246)999-9999','(246)999-9999'),('BD','mobile','99-999-999','99-999-999'),('BD','desktop','99-999-999','99-999-999'),('BE','mobile','9 99 99 99 99','9 99 99 99 99'),('BE','desktop','9 99 99 99 99','9 99 99 99 99'),('BF','mobile','99-99-9999','99-99-9999'),('BF','desktop','99-99-9999','99-99-9999'),('BG','mobile','(999)999-999','(999)999-999'),('BG','desktop','(999)999-999','(999)999-999'),('BH','mobile','9999-9999','9999-9999'),('BH','desktop','9999-9999','9999-9999'),('BI','mobile','99-99-9999','99-99-9999'),('BI','desktop','99-99-9999','99-99-9999'),('BJ','mobile','99-99-9999','99-99-9999'),('BJ','desktop','99-99-9999','99-99-9999'),('BM','mobile','(441)999-9999','(441)999-9999'),('BM','desktop','(441)999-9999','(441)999-9999'),('BN','mobile','999-9999','999-9999'),('BN','desktop','999-9999','999-9999'),('BO','mobile','9-999-9999','9-999-9999'),('BO','desktop','9-999-9999','9-999-9999'),('BR','mobile','(99)9999-9999','(99)9999-9999'),('BR','desktop','(99)9999-9999','(99)9999-9999'),('BS','mobile','(242)999-9999','(242)999-9999'),('BS','desktop','(242)999-9999','(242)999-9999'),('BT','mobile','17-999-999','17-999-999'),('BT','desktop','17-999-999','17-999-999'),('BW','mobile','99-999-999','99-999-999'),('BW','desktop','99-999-999','99-999-999'),('BY','mobile','(99)999-99-99','(99)999-99-99'),('BY','desktop','(99)999-99-99','(99)999-99-99'),('BZ','mobile','999-9999','999-9999'),('BZ','desktop','999-9999','999-9999'),('CA','mobile','(999)999-9999','(999)999-9999'),('CA','desktop','(999)999-9999','(999)999-9999'),('CD','mobile','(999)999-999','(999)999-999'),('CD','desktop','(999)999-999','(999)999-999'),('CF','mobile','99-99-9999','99-99-9999'),('CF','desktop','99-99-9999','99-99-9999'),('CG','mobile','99-999-9999','99-999-9999'),('CG','desktop','99-999-9999','99-999-9999'),('CH','mobile','99 999 99 99','99 999 99 99'),('CH','desktop','99 999 99 99','99 999 99 99'),('CI','mobile','99-999-999','99-999-999'),('CI','desktop','99-999-999','99-999-999'),('CK','mobile','99-999','99-999'),('CK','desktop','99-999','99-999'),('CL','mobile','9-9999-9999','9-9999-9999'),('CL','desktop','9-9999-9999','9-9999-9999'),('CM','mobile','9999-9999','9999-9999'),('CM','desktop','9999-9999','9999-9999'),('CN','mobile','(999)9999-9999','(999)9999-9999'),('CN','desktop','(999)9999-9999','(999)9999-9999'),('CO','mobile','(999)999-9999','(999)999-9999'),('CO','desktop','(999)999-9999','(999)999-9999'),('CR','mobile','9999-9999','9999-9999'),('CR','desktop','9999-9999','9999-9999'),('CU','mobile','9-999-9999','9-999-9999'),('CU','desktop','9-999-9999','9-999-9999'),('CV','mobile','(999)99-99','(999)99-99'),('CV','desktop','(999)99-99','(999)99-99'),('CW','mobile','999-9999','999-9999'),('CW','desktop','999-9999','999-9999'),('CY','mobile','99-999-999','99-999-999'),('CY','desktop','99-999-999','99-999-999'),('CZ','mobile','(999)999-999','(999)999-999'),('CZ','desktop','(999)999-999','(999)999-999'),('DE','mobile','(9999)999-9999','(9999)999-9999'),('DE','desktop','(9999)999-9999','(9999)999-9999'),('DJ','mobile','99-99-99-99','99-99-99-99'),('DJ','desktop','99-99-99-99','99-99-99-99'),('DK','mobile','99-99-99-99','99-99-99-99'),('DK','desktop','99-99-99-99','99-99-99-99'),('DM','mobile','(767)999-9999','(767)999-9999'),('DM','desktop','(767)999-9999','(767)999-9999'),('DO','mobile','(809)999-9999','(809)999-9999'),('DO','desktop','(809)999-9999','(809)999-9999'),('DZ','mobile','99-999-9999','99-999-9999'),('DZ','desktop','99-999-9999','99-999-9999'),('EC','mobile','99-999-9999','99-999-9999'),('EC','desktop','99-999-9999','99-999-9999'),('EE','mobile','9999-9999','9999-9999'),('EE','desktop','9999-9999','9999-9999'),('EG','mobile','(999)999-9999','(999)999-9999'),('EG','desktop','(999)999-9999','(999)999-9999'),('ER','mobile','9-999-999','9-999-999'),('ER','desktop','9-999-999','9-999-999'),('ES','mobile','(999)999-999','(999)999-999'),('ES','desktop','(999)999-999','(999)999-999'),('ET','mobile','99-999-9999','99-999-9999'),('ET','desktop','99-999-9999','99-999-9999'),('FI','mobile','(999)999-99-99','(999)999-99-99'),('FI','desktop','(999)999-99-99','(999)999-99-99'),('FJ','mobile','99-99999','99-99999'),('FJ','desktop','99-99999','99-99999'),('FK','mobile','99999','99999'),('FK','desktop','99999','99999'),('FM','mobile','999-9999','999-9999'),('FM','desktop','999-9999','999-9999'),('FO','mobile','999-999','999-999'),('FO','desktop','999-999','999-999'),('FR','mobile','99 99 99 99 9?9','99 99 99 99 9?9'),('FR','desktop','99 99 99 99 9?9','99 99 99 99 9?9'),('GA','mobile','9-99-99-99','9-99-99-99'),('GA','desktop','9-99-99-99','9-99-99-99'),('GB','mobile','99-9999-9999?9','99-9999-9999?9'),('GB','desktop','99-9999-9999?9','99-9999-9999?9'),('GD','mobile','(473)999-9999','(473)999-9999'),('GD','desktop','(473)999-9999','(473)999-9999'),('GE','mobile','(999)999-999','(999)999-999'),('GE','desktop','(999)999-999','(999)999-999'),('GF','mobile','99999-9999','99999-9999'),('GF','desktop','99999-9999','99999-9999'),('GH','mobile','(999)999-999','(999)999-999'),('GH','desktop','(999)999-999','(999)999-999'),('GI','mobile','999-99999','999-99999'),('GI','desktop','999-99999','999-99999'),('GL','mobile','99-99-99','99-99-99'),('GL','desktop','99-99-99','99-99-99'),('GM','mobile','(999)99-99','(999)99-99'),('GM','desktop','(999)99-99','(999)99-99'),('GN','mobile','99-999-999','99-999-999'),('GN','desktop','99-999-999','99-999-999'),('GQ','mobile','99-999-9999','99-999-9999'),('GQ','desktop','99-999-9999','99-999-9999'),('GR','mobile','(999)999-9999','(999)999-9999'),('GR','desktop','(999)999-9999','(999)999-9999'),('GT','mobile','9-999-9999','9-999-9999'),('GT','desktop','9-999-9999','9-999-9999'),('GU','mobile','(671)999-9999','(671)999-9999'),('GU','desktop','(671)999-9999','(671)999-9999'),('GW','mobile','9-999999','9-999999'),('GW','desktop','9-999999','9-999999'),('GY','mobile','999-9999','999-9999'),('GY','desktop','999-9999','999-9999'),('HK','mobile','9999-9999','9999-9999'),('HK','desktop','9999-9999','9999-9999'),('HN','mobile','9999-9999','9999-9999'),('HN','desktop','9999-9999','9999-9999'),('HR','mobile','99-999-999','99-999-999'),('HR','desktop','99-999-999','99-999-999'),('HT','mobile','99-99-9999','99-99-9999'),('HT','desktop','99-99-9999','99-99-9999'),('HU','mobile','(999)999-999','(999)999-999'),('HU','desktop','(999)999-999','(999)999-999'),('ID','mobile','(899)999-9999','(899)999-9999'),('ID','desktop','(899)999-9999','(899)999-9999'),('IE','mobile','(999)999-999','(999)999-999'),('IE','desktop','(999)999-999','(999)999-999'),('IL','mobile','59-999-9999','59-999-9999'),('IL','desktop','59-999-9999','59-999-9999'),('IN','mobile','(9999)999-999','(9999)999-999'),('IN','desktop','(9999)999-999','(9999)999-999'),('IO','mobile','999-9999','999-9999'),('IO','desktop','999-9999','999-9999'),('IQ','mobile','(999)999-9999','(999)999-9999'),('IQ','desktop','(999)999-9999','(999)999-9999'),('IR','mobile','(999)999-9999','(999)999-9999'),('IR','desktop','(999)999-9999','(999)999-9999'),('IS','mobile','999-9999','999-9999'),('IS','desktop','999-9999','999-9999'),('IT','mobile','(999)9999-999','(999)9999-999'),('IT','desktop','(999)9999-999','(999)9999-999'),('JM','mobile','(876)999-9999','(876)999-9999'),('JM','desktop','(876)999-9999','(876)999-9999'),('JO','mobile','9-9999-9999','9-9999-9999'),('JO','desktop','9-9999-9999','9-9999-9999'),('JP','mobile','99-9999-9999','99-9999-9999'),('JP','desktop','99-9999-9999','99-9999-9999'),('KE','mobile','999-999999','999-999999'),('KE','desktop','999-999999','999-999999'),('KG','mobile','(999)999-999','(999)999-999'),('KG','desktop','(999)999-999','(999)999-999'),('KH','mobile','99-999-999','99-999-999'),('KH','desktop','99-999-999','99-999-999'),('KI','mobile','99-999','99-999'),('KI','desktop','99-999','99-999'),('KM','mobile','99-99999','99-99999'),('KM','desktop','99-99999','99-99999'),('KN','mobile','(869)999-9999','(869)999-9999'),('KN','desktop','(869)999-9999','(869)999-9999'),('KP','mobile','191-999-9999','191-999-9999'),('KP','desktop','191-999-9999','191-999-9999'),('KR','mobile','99-999-9999','99-999-9999'),('KR','desktop','99-999-9999','99-999-9999'),('KW','mobile','9999-9999','9999-9999'),('KW','desktop','9999-9999','9999-9999'),('KY','mobile','(345)999-9999','(345)999-9999'),('KY','desktop','(345)999-9999','(345)999-9999'),('KZ','mobile','(699)999-99-99','(699)999-99-99'),('KZ','desktop','(699)999-99-99','(699)999-99-99'),('LA','mobile','(2099)999-999','(2099)999-999'),('LA','desktop','(2099)999-999','(2099)999-999'),('LB','mobile','99-999-999','99-999-999'),('LB','desktop','99-999-999','99-999-999'),('LC','mobile','999-9999','999-9999'),('LC','desktop','999-9999','999-9999'),('LI','mobile','(999)999-9999','(999)999-9999'),('LI','desktop','(999)999-9999','(999)999-9999'),('LK','mobile','99-999-9999','99-999-9999'),('LK','desktop','99-999-9999','99-999-9999'),('LR','mobile','99-999-999','99-999-999'),('LR','desktop','99-999-999','99-999-999'),('LS','mobile','9-999-9999','9-999-9999'),('LS','desktop','9-999-9999','9-999-9999'),('LT','mobile','(999)99-999','(999)99-999'),('LT','desktop','(999)99-999','(999)99-999'),('LU','mobile','(999)999-999','(999)999-999'),('LU','desktop','(999)999-999','(999)999-999'),('LV','mobile','99-999-999','99-999-999'),('LV','desktop','99-999-999','99-999-999'),('LY','mobile','99-999-999','99-999-999'),('LY','desktop','99-999-999','99-999-999'),('MA','mobile','99-9999-999','99-9999-999'),('MA','desktop','99-9999-999','99-9999-999'),('MC','mobile','99 99 99 99','99 99 99 99'),('MC','desktop','99 99 99 99','99 99 99 99'),('MD','mobile','9999-9999','9999-9999'),('MD','desktop','9999-9999','9999-9999'),('ME','mobile','99-999-999','99-999-999'),('ME','desktop','99-999-999','99-999-999'),('MG','mobile','99-99-99999','99-99-99999'),('MG','desktop','99-99-99999','99-99-99999'),('MH','mobile','999-9999','999-9999'),('MH','desktop','999-9999','999-9999'),('MK','mobile','99-999-999','99-999-999'),('MK','desktop','99-999-999','99-999-999'),('ML','mobile','99-99-9999','99-99-9999'),('ML','desktop','99-99-9999','99-99-9999'),('MM','mobile','99-999-999','99-999-999'),('MM','desktop','99-999-999','99-999-999'),('MN','mobile','99-99-9999','99-99-9999'),('MN','desktop','99-99-9999','99-99-9999'),('MO','mobile','9999-9999','9999-9999'),('MO','desktop','9999-9999','9999-9999'),('MP','mobile','999-9999','999-9999'),('MP','desktop','999-9999','999-9999'),('MQ','mobile','(999)99-99-99','(999)99-99-99'),('MQ','desktop','(999)99-99-99','(999)99-99-99'),('MR','mobile','99-99-9999','99-99-9999'),('MR','desktop','99-99-9999','99-99-9999'),('MS','mobile','999-9999','999-9999'),('MS','desktop','999-9999','999-9999'),('MT','mobile','9999-9999','9999-9999'),('MT','desktop','9999-9999','9999-9999'),('MU','mobile','999-9999','999-9999'),('MU','desktop','999-9999','999-9999'),('MV','mobile','999-9999','999-9999'),('MV','desktop','999-9999','999-9999'),('MW','mobile','999-999','999-999'),('MW','desktop','999-999','999-999'),('MX','mobile','(999)999-9999','(999)999-9999'),('MX','desktop','(999)999-9999','(999)999-9999'),('MY','mobile','99-999-9999','99-999-9999'),('MY','desktop','99-999-9999','99-999-9999'),('MZ','mobile','99-999-999','99-999-999'),('MZ','desktop','99-999-999','99-999-999'),('NA','mobile','99-999-9999','99-999-9999'),('NA','desktop','99-999-9999','99-999-9999'),('NC','mobile','99-9999','99-9999'),('NC','desktop','99-9999','99-9999'),('NE','mobile','99-99-9999','99-99-9999'),('NE','desktop','99-99-9999','99-99-9999'),('NF','mobile','99-999','99-999'),('NF','desktop','99-999','99-999'),('NG','mobile','(999)999-9999','(999)999-9999'),('NG','desktop','(999)999-9999','(999)999-9999'),('NI','mobile','9999-9999','9999-9999'),('NI','desktop','9999-9999','9999-9999'),('NL','mobile','99-999-9999','99-999-9999'),('NL','desktop','99-999-9999','99-999-9999'),('NO','mobile','(999)99-999','(999)99-999'),('NO','desktop','(999)99-999','(999)99-999'),('NP','mobile','99-999-999','99-999-999'),('NP','desktop','99-999-999','99-999-999'),('NR','mobile','999-9999','999-9999'),('NR','desktop','999-9999','999-9999'),('NU','mobile','9999','9999'),('NU','desktop','9999','9999'),('NZ','mobile','(999)999-999','(999)999-999'),('NZ','desktop','(999)999-999','(999)999-999'),('OM','mobile','99-999-999','99-999-999'),('OM','desktop','99-999-999','99-999-999'),('PA','mobile','999-9999','999-9999'),('PA','desktop','999-9999','999-9999'),('PE','mobile','(999)999-999','(999)999-999'),('PE','desktop','(999)999-999','(999)999-999'),('PF','mobile','99-99-99','99-99-99'),('PF','desktop','99-99-99','99-99-99'),('PG','mobile','(999)99-999','(999)99-999'),('PG','desktop','(999)99-999','(999)99-999'),('PH','mobile','(999)999-9999','(999)999-9999'),('PH','desktop','(999)999-9999','(999)999-9999'),('PK','mobile','(999)999-9999','(999)999-9999'),('PK','desktop','(999)999-9999','(999)999-9999'),('PL','mobile','(999)999-999','(999)999-999'),('PL','desktop','(999)999-999','(999)999-999'),('PS','mobile','99-999-9999','99-999-9999'),('PS','desktop','99-999-9999','99-999-9999'),('PT','mobile','99-999-9999','99-999-9999'),('PT','desktop','99-999-9999','99-999-9999'),('PW','mobile','999-9999','999-9999'),('PW','desktop','999-9999','999-9999'),('PY','mobile','(999)999-999','(999)999-999'),('PY','desktop','(999)999-999','(999)999-999'),('QA','mobile','9999-9999','9999-9999'),('QA','desktop','9999-9999','9999-9999'),('RE','mobile','99999-9999','99999-9999'),('RE','desktop','99999-9999','99999-9999'),('RO','mobile','99-999-9999','99-999-9999'),('RO','desktop','99-999-9999','99-999-9999'),('RS','mobile','99-999-9999','99-999-9999'),('RS','desktop','99-999-9999','99-999-9999'),('RU','mobile','(999)999-99-99','(999)999-99-99'),('RU','desktop','(999)999-99-99','(999)999-99-99'),('RW','mobile','(999)999-999','(999)999-999'),('RW','desktop','(999)999-999','(999)999-999'),('SA','mobile','9999-9999','9999-9999'),('SA','desktop','9999-9999','9999-9999'),('SB','mobile','999-9999','999-9999'),('SB','desktop','999-9999','999-9999'),('SC','mobile','9-999-999','9-999-999'),('SC','desktop','9-999-999','9-999-999'),('SD','mobile','99-999-9999','99-999-9999'),('SD','desktop','99-999-9999','99-999-9999'),('SE','mobile','99-999-9999','99-999-9999'),('SE','desktop','99-999-9999','99-999-9999'),('SG','mobile','9999-9999','9999-9999'),('SG','desktop','9999-9999','9999-9999'),('SH','mobile','9999','9999'),('SH','desktop','9999','9999'),('SI','mobile','99-999-999','99-999-999'),('SI','desktop','99-999-999','99-999-999'),('SK','mobile','(999)999-999','(999)999-999'),('SK','desktop','(999)999-999','(999)999-999'),('SL','mobile','99-999999','99-999999'),('SL','desktop','99-999999','99-999999'),('SM','mobile','9999-999999','9999-999999'),('SM','desktop','9999-999999','9999-999999'),('SN','mobile','99-999-9999','99-999-9999'),('SN','desktop','99-999-9999','99-999-9999'),('SO','mobile','99-999-999','99-999-999'),('SO','desktop','99-999-999','99-999-999'),('SR','mobile','999-9999','999-9999'),('SR','desktop','999-9999','999-9999'),('SS','mobile','99-999-9999','99-999-9999'),('SS','desktop','99-999-9999','99-999-9999'),('ST','mobile','99-99999','99-99999'),('ST','desktop','99-99999','99-99999'),('SV','mobile','99-99-9999','99-99-9999'),('SV','desktop','99-99-9999','99-99-9999'),('SX','mobile','999-9999','999-9999'),('SX','desktop','999-9999','999-9999'),('SY','mobile','99-9999-999','99-9999-999'),('SY','desktop','99-9999-999','99-9999-999'),('SZ','mobile','99-99-9999','99-99-9999'),('SZ','desktop','99-99-9999','99-99-9999'),('TC','mobile','999-9999','999-9999'),('TC','desktop','999-9999','999-9999'),('TD','mobile','99-99-99-99','99-99-99-99'),('TD','desktop','99-99-99-99','99-99-99-99'),('TG','mobile','99-999-999','99-999-999'),('TG','desktop','99-999-999','99-999-999'),('TH','mobile','99-999-9999','99-999-9999'),('TH','desktop','99-999-9999','99-999-9999'),('TJ','mobile','99-999-9999','99-999-9999'),('TJ','desktop','99-999-9999','99-999-9999'),('TK','mobile','9999','9999'),('TK','desktop','9999','9999'),('TL','mobile','999-9999','999-9999'),('TL','desktop','999-9999','999-9999'),('TM','mobile','9-999-9999','9-999-9999'),('TM','desktop','9-999-9999','9-999-9999'),('TN','mobile','99-999-999','99-999-999'),('TN','desktop','99-999-999','99-999-999'),('TO','mobile','99999','99999'),('TO','desktop','99999','99999'),('TR','mobile','(999)999-9999','(999)999-9999'),('TR','desktop','(999)999-9999','(999)999-9999'),('TT','mobile','999-9999','999-9999'),('TT','desktop','999-9999','999-9999'),('TV','mobile','9999','9999'),('TV','desktop','9999','9999'),('TW','mobile','9-9999-9999','9-9999-9999'),('TW','desktop','9-9999-9999','9-9999-9999'),('TZ','mobile','99-999-9999','99-999-9999'),('TZ','desktop','99-999-9999','99-999-9999'),('UA','mobile','(99)999-99-99','(99)999-99-99'),('UA','desktop','(99)999-99-99','(99)999-99-99'),('UG','mobile','(999)999-999','(999)999-999'),('UG','desktop','(999)999-999','(999)999-999'),('US','mobile','(999)999-9999','(999)999-9999'),('US','desktop','(999)999-9999','(999)999-9999'),('UY','mobile','9-999-99-99','9-999-99-99'),('UY','desktop','9-999-99-99','9-999-99-99'),('UZ','mobile','99-999-9999','99-999-9999'),('UZ','desktop','99-999-9999','99-999-9999'),('VA','mobile','99999','99999'),('VA','desktop','99999','99999'),('VC','mobile','999-9999','999-9999'),('VC','desktop','999-9999','999-9999'),('VE','mobile','(999)999-9999','(999)999-9999'),('VE','desktop','(999)999-9999','(999)999-9999'),('VG','mobile','999-9999','999-9999'),('VG','desktop','999-9999','999-9999'),('VI','mobile','999-9999','999-9999'),('VI','desktop','999-9999','999-9999'),('VN','mobile','99-9999-999','99-9999-999'),('VN','desktop','99-9999-999','99-9999-999'),('VU','mobile','99-99999','99-99999'),('VU','desktop','99-99999','99-99999'),('WF','mobile','99-9999','99-9999'),('WF','desktop','99-9999','99-9999'),('WS','mobile','99-9999','99-9999'),('WS','desktop','99-9999','99-9999'),('YE','mobile','999-999-999','999-999-999'),('YE','desktop','999-999-999','999-999-999'),('ZA','mobile','99-999-9999','99-999-9999'),('ZA','desktop','99-999-9999','99-999-9999'),('ZM','mobile','99-999-9999','99-999-9999'),('ZM','desktop','99-999-9999','99-999-9999'),('ZW','mobile','9-999999','9-999999'),('ZW','desktop','9-999999','9-999999'); /*!40000 ALTER TABLE `masks_list` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `observers_queue` -- DROP TABLE IF EXISTS `observers_queue`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `observers_queue` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `observable` text COLLATE utf8_unicode_ci NOT NULL COMMENT 'Observable Class Name', `observer` text COLLATE utf8_unicode_ci NOT NULL COMMENT 'Observer Class Name', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `observers_queue` -- LOCK TABLES `observers_queue` WRITE; /*!40000 ALTER TABLE `observers_queue` DISABLE KEYS */; INSERT INTO `observers_queue` VALUES (1,'Application_Model_Models_Page','Api_Tools_PageObserver'),(2,'Models_Model_CartSession','Api_Tools_PurchaseWatchdog'),(3,'Application_Model_Models_Form','Tools_SmsServiceFormWatchdog'),(4,'Application_Model_Models_Form','Tools_MailServiceFormWatchdog'),(5,'Application_Model_Models_Form','Tools_CrmServiceFormWatchdog'),(6,'Application_Model_Models_Page','Newslog_Tools_Watchdog_Page'),(7,'Models_Model_CartSession','Quote_Tools_PurchaseWatchdog'),(8,'Models_Model_Product','PromoObserver'),(9,'Models_Model_CartSession','Cartstatusemail_Tools_CartStatusObserver'),(10,'Application_Model_Models_Form','Tools_LeadFormWatchdog'),(11,'Quote_Models_Model_Quote','Tools_LeadQuoteWatchdog'),(12,'Models_Model_Customer','Tools_LeadRegistrationWatchdog'),(13,'Application_Model_Models_User','Tools_LeadRegistrationWatchdog'),(14,'Models_Model_CartSession','Tools_LeadPurchaseWatchdog'),(15,'Downloader_Models_Model_DownloaderFilesModel','Tools_LeadDownloaderWatchdog'),(16,'Models_Model_CartSession','Api_Tools_PurchaseWatchdog'),(17,'Models_Model_Product','Tools_AllowanceObserver'),(18,'Models_Model_Product','Tools_GroupPriceObserver'),(19,'Models_Model_Product','Tools_NotifyObserver'),(20,'Newslog_Models_Model_News','Tools_NotifierNewsObserver'); /*!40000 ALTER TABLE `observers_queue` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `optimized` -- DROP TABLE IF EXISTS `optimized`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `optimized` ( `page_id` int(10) unsigned NOT NULL COMMENT 'Foreign key to page table', `url` tinytext COLLATE utf8_unicode_ci, `h1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `header_title` text COLLATE utf8_unicode_ci, `nav_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `targeted_key_phrase` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `meta_description` text COLLATE utf8_unicode_ci, `meta_keywords` text COLLATE utf8_unicode_ci, `teaser_text` text COLLATE utf8_unicode_ci, `seo_intro` text COLLATE utf8_unicode_ci, `seo_intro_target` text COLLATE utf8_unicode_ci, `status` enum('tweaked','on') COLLATE utf8_unicode_ci DEFAULT NULL, `seo_rule_id` int(10) DEFAULT NULL, `url_rule_id` int(10) DEFAULT NULL, UNIQUE KEY `page_id` (`page_id`), KEY `h1` (`h1`), KEY `status` (`status`), KEY `nav_name` (`nav_name`), KEY `url` (`url`(30)), CONSTRAINT `optimized_ibfk_1` FOREIGN KEY (`page_id`) REFERENCES `page` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `optimized` -- LOCK TABLES `optimized` WRITE; /*!40000 ALTER TABLE `optimized` DISABLE KEYS */; /*!40000 ALTER TABLE `optimized` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `page` -- DROP TABLE IF EXISTS `page`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `page` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `template_id` varchar(45) COLLATE utf8_unicode_ci NOT NULL, `parent_id` int(11) NOT NULL DEFAULT '0', `nav_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `meta_description` text COLLATE utf8_unicode_ci, `meta_keywords` text COLLATE utf8_unicode_ci, `header_title` text COLLATE utf8_unicode_ci, `h1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `teaser_text` text COLLATE utf8_unicode_ci, `last_update` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `is_404page` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `show_in_menu` enum('0','1','2') COLLATE utf8_unicode_ci DEFAULT '0', `order` int(10) unsigned DEFAULT NULL, `weight` tinyint(3) unsigned DEFAULT '0', `silo_id` int(10) unsigned DEFAULT NULL, `targeted_key_phrase` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `protected` enum('0','1') CHARACTER SET utf8 DEFAULT '0', `system` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', `draft` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', `publish_at` date DEFAULT NULL, `news` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', `err_login_landing` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', `mem_landing` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', `signup_landing` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', `checkout` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', `preview_image` text COLLATE utf8_unicode_ci COMMENT 'Page Preview Image', `external_link_status` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', `external_link` text COLLATE utf8_unicode_ci, `page_type` tinyint(3) unsigned NOT NULL DEFAULT '1', `page_folder` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `is_folder_index` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `exclude_category` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', `page_target_blank` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', `not_clickable` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `indParentId` (`parent_id`), KEY `indUrl` (`url`), KEY `indMenu` (`show_in_menu`), KEY `indOrder` (`order`), KEY `indProtected` (`protected`), KEY `draft` (`draft`), KEY `news` (`news`), KEY `nav_name` (`nav_name`), KEY `page_folder` (`page_folder`), CONSTRAINT `page_ibfk_2` FOREIGN KEY (`page_folder`) REFERENCES `page_folder` (`name`) ON DELETE SET NULL ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `page` -- LOCK TABLES `page` WRITE; /*!40000 ALTER TABLE `page` DISABLE KEYS */; INSERT INTO `page` VALUES (1,'index',0,'Home','','','Home','Home','index.html','','2012-06-20 15:30:39','0','1',0,0,NULL,'','0','0','0',NULL,'0','0','0','0','0',NULL,'0',NULL,1,NULL,'0','0','0','0'); /*!40000 ALTER TABLE `page` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `page_fa` -- DROP TABLE IF EXISTS `page_fa`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `page_fa` ( `page_id` int(10) unsigned NOT NULL, `fa_id` int(10) unsigned NOT NULL, `order` int(10) unsigned NOT NULL, PRIMARY KEY (`page_id`,`fa_id`), KEY `indPageId` (`page_id`), KEY `indFaId` (`fa_id`), KEY `indOrder` (`order`), CONSTRAINT `FK_page_fa` FOREIGN KEY (`page_id`) REFERENCES `page` (`id`) ON DELETE CASCADE, CONSTRAINT `page_fa_ibfk_1` FOREIGN KEY (`fa_id`) REFERENCES `featured_area` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `page_fa` -- LOCK TABLES `page_fa` WRITE; /*!40000 ALTER TABLE `page_fa` DISABLE KEYS */; INSERT INTO `page_fa` VALUES (41,2,0),(126,12,0),(141,13,0),(153,14,0),(167,16,0),(337,47,0),(362,54,0),(407,64,0),(609,92,0),(616,93,0),(619,94,0),(42,2,1),(127,12,1),(143,13,1),(154,14,1),(165,16,1),(571,91,1),(610,92,1),(617,93,1),(144,13,2),(155,14,2),(168,12,2),(613,92,2),(618,93,2),(43,93,3),(44,2,3),(130,12,3),(145,13,3),(156,14,3),(161,16,3),(275,41,3),(131,12,4),(146,13,4),(157,14,4),(162,16,4),(380,60,4),(39,1,5),(41,5,5),(132,12,5),(147,13,5),(158,14,5),(163,16,5),(40,1,6),(42,5,6),(133,12,6),(148,13,6),(159,14,6),(166,16,6),(134,12,7),(149,13,7),(523,86,7),(44,5,8),(126,6,8),(135,12,8),(150,13,8),(127,6,9),(136,12,9),(151,13,9),(137,12,10),(152,13,10),(131,6,11),(138,12,11),(132,6,12),(139,12,12),(133,6,13),(140,12,13),(134,6,14),(433,71,14),(135,6,15),(136,6,16),(137,6,17),(138,6,18),(139,6,19),(140,6,20),(141,6,21),(143,6,22),(144,6,23),(145,6,24),(146,6,25),(147,6,26),(148,6,27),(149,6,28),(150,6,29),(151,6,30),(152,6,31),(450,71,31),(153,6,32),(154,6,33),(155,6,34),(156,6,35),(157,6,36),(158,6,37),(159,6,38),(311,41,39),(161,6,40),(162,6,41),(163,6,42),(165,6,44),(166,6,45),(167,6,46),(168,6,47),(130,6,49); /*!40000 ALTER TABLE `page_fa` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `page_folder` -- DROP TABLE IF EXISTS `page_folder`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `page_folder` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `index_page` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`), KEY `index_page` (`index_page`), CONSTRAINT `page_folder_ibfk_4` FOREIGN KEY (`index_page`) REFERENCES `page` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `page_folder` -- LOCK TABLES `page_folder` WRITE; /*!40000 ALTER TABLE `page_folder` DISABLE KEYS */; /*!40000 ALTER TABLE `page_folder` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `page_has_option` -- DROP TABLE IF EXISTS `page_has_option`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `page_has_option` ( `page_id` int(10) unsigned NOT NULL, `option_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`page_id`,`option_id`), KEY `option_id` (`option_id`), CONSTRAINT `page_has_option_ibfk_1` FOREIGN KEY (`page_id`) REFERENCES `page` (`id`) ON DELETE CASCADE, CONSTRAINT `page_has_option_ibfk_2` FOREIGN KEY (`option_id`) REFERENCES `page_option` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `page_has_option` -- LOCK TABLES `page_has_option` WRITE; /*!40000 ALTER TABLE `page_has_option` DISABLE KEYS */; INSERT INTO `page_has_option` VALUES (111,'option_404page'),(19,'option_checkout'),(8,'option_newsindex'),(116,'option_storeclientlogin'),(661,'option_storethankyou'); /*!40000 ALTER TABLE `page_has_option` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `page_option` -- DROP TABLE IF EXISTS `page_option`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `page_option` ( `id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `title` tinytext COLLATE utf8_unicode_ci NOT NULL, `context` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'In which context this option is used. E.g. option_newsindex used in News system context', `active` tinyint(1) NOT NULL DEFAULT '1', `option_usage` enum('once','many') COLLATE utf8_unicode_ci DEFAULT 'many', PRIMARY KEY (`id`), KEY `active` (`active`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `page_option` -- LOCK TABLES `page_option` WRITE; /*!40000 ALTER TABLE `page_option` DISABLE KEYS */; INSERT INTO `page_option` VALUES ('option_404page','Our error 404 \"Not found\" page','Seotoaster pages',1,'many'),('option_adminredirect','Page where superadmin will be redirected after login','Redirect',1,'once'),('option_checkout','The cart checkout page','Cart and checkout',1,'once'),('option_member_landing','Where members land after logging-in','Seotoaster membership',1,'once'),('option_member_loginerror','Our membership login error page','Seotoaster membership',1,'once'),('option_member_signuplanding','Where members land after signed-up','Seotoaster membership',1,'once'),('option_newsindex','News index page','News system',1,'once'),('option_newspage','News page','News system',1,'many'),('option_protected','Accessible only to logged-in members','Seotoaster pages',1,'many'),('option_quotepage','Quote page','Quote system',1,'many'),('option_quotethankyoupage','Quote \"Thank you\" page','Quote system',1,'once'),('option_search','Search landing page','Seotoaster pages',1,'once'),('option_storeclientlogin','Store client landing page','Cart and checkout',1,'once'),('option_storeshippingterms','Shipping terms and conditions','Cart and checkout',1,'once'),('option_storethankyou','Post purchase \"Thank you\" page','Cart and checkout',1,'once'); /*!40000 ALTER TABLE `page_option` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `page_types` -- DROP TABLE IF EXISTS `page_types`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `page_types` ( `page_type_id` tinyint(3) unsigned NOT NULL, `page_type_name` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`page_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `page_types` -- LOCK TABLES `page_types` WRITE; /*!40000 ALTER TABLE `page_types` DISABLE KEYS */; INSERT INTO `page_types` VALUES (1,'page'),(2,'product'),(3,'news'),(4,'quote'); /*!40000 ALTER TABLE `page_types` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `page_types_access` -- DROP TABLE IF EXISTS `page_types_access`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `page_types_access` ( `page_type_id` tinyint(3) unsigned NOT NULL, `resource_type` varchar(60) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', PRIMARY KEY (`page_type_id`,`resource_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `page_types_access` -- LOCK TABLES `page_types_access` WRITE; /*!40000 ALTER TABLE `page_types_access` DISABLE KEYS */; INSERT INTO `page_types_access` VALUES (1,'link_list'),(1,'list_pages'),(1,'organize_pages'),(1,'seo_pages'),(1,'sitemap_pages'),(2,'seo_pages'),(2,'sitemap_pages'),(3,'seo_pages'),(3,'sitemap_pages'); /*!40000 ALTER TABLE `page_types_access` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `password_reset_log` -- DROP TABLE IF EXISTS `password_reset_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `password_reset_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `token_hash` varchar(100) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Password reset token. Unique hash string.', `user_id` int(10) unsigned NOT NULL, `status` enum('new','used','expired') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'new' COMMENT 'Recovery link status', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `expired_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), UNIQUE KEY `token_hash` (`token_hash`), KEY `status` (`status`), KEY `user_id` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `password_reset_log` -- LOCK TABLES `password_reset_log` WRITE; /*!40000 ALTER TABLE `password_reset_log` DISABLE KEYS */; /*!40000 ALTER TABLE `password_reset_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin` -- DROP TABLE IF EXISTS `plugin`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `status` enum('enabled','disabled') COLLATE utf8_unicode_ci DEFAULT 'disabled', `tags` text COLLATE utf8_unicode_ci COMMENT 'comma separated words', `license` blob, `version` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `indName` (`name`), KEY `indStatus` (`status`) ) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin` -- LOCK TABLES `plugin` WRITE; /*!40000 ALTER TABLE `plugin` DISABLE KEYS */; INSERT INTO `plugin` VALUES (1,'api','enabled','','','2.2.2'),(2,'apps','enabled','','','2.2.5'),(3,'netcontent','enabled','','','2.2.0'),(4,'newslog','enabled','feed','','2.2.8'),(5,'socialposter','enabled','','','2.2.0'),(7,'webbuilder','enabled','','','2.2.2'),(8,'widcard','enabled','','','2.2.3'),(9,'shopping','enabled','processphones,userupdate,crm','','3.0.6'),(10,'cart','enabled','','','2.2.0'),(11,'quote','enabled','ecommerce,userdeleteerror,userdelete,salespermission','','2.3.9'),(12,'toasterstats','enabled','','','2.2.0'),(13,'paypal','enabled','','','2.3.4'),(14,'productonly','enabled','','','2.2.0'),(15,'promo','enabled','ecommerce,merchandising','','2.2.0'),(16,'cartstatusemail','disabled','ecommerce,merchandising','','2.3.7'),(17,'dashboard','enabled','ecommerce','','2.2.0'),(18,'delivery','enabled','','','2.2.1'),(19,'flatrateshipping','enabled','','','2.2.1'),(20,'invoicetopdf','enabled','ecommerce','','2.5.0'),(21,'crm','enabled','','','1.0.0'),(22,'emailsequence','enabled','cartstatusemail','','2.2.9'),(23,'leads','enabled','crm,hiddenemail,emaillog,userdelete,assigngroup,userupdate','','2.2.7'),(24,'toastauth','enabled','','','2.2.0'),(25,'notifier','enabled','','','3.0.2'); /*!40000 ALTER TABLE `plugin` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_apps_crm` -- DROP TABLE IF EXISTS `plugin_apps_crm`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_apps_crm` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dataType` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `lists` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `additional_list` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `service` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_apps_crm` -- LOCK TABLES `plugin_apps_crm` WRITE; /*!40000 ALTER TABLE `plugin_apps_crm` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_apps_crm` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_apps_settings` -- DROP TABLE IF EXISTS `plugin_apps_settings`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_apps_settings` ( `service_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `status` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `category` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `detailed_info` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', PRIMARY KEY (`service_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_apps_settings` -- LOCK TABLES `plugin_apps_settings` WRITE; /*!40000 ALTER TABLE `plugin_apps_settings` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_apps_settings` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_apps_system_form` -- DROP TABLE IF EXISTS `plugin_apps_system_form`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_apps_system_form` ( `id` int(11) NOT NULL AUTO_INCREMENT, `form` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `lists` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `additional_list` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `service` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_apps_system_form` -- LOCK TABLES `plugin_apps_system_form` WRITE; /*!40000 ALTER TABLE `plugin_apps_system_form` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_apps_system_form` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_cartstatusemail_queue` -- DROP TABLE IF EXISTS `plugin_cartstatusemail_queue`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_cartstatusemail_queue` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `cartStatusId` int(10) NOT NULL, `status` enum('0','1','2') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', `cartStatus` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `cartId` int(10) NOT NULL, `type` enum('email','sms') NOT NULL DEFAULT 'email', `userEmail` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `userFullName` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `userPhoneNumber` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `emailMessage` text CHARACTER SET utf8 COLLATE utf8_unicode_ci, `emailTemplate` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `emailFrom` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `emailFromLabel` text CHARACTER SET utf8 COLLATE utf8_unicode_ci COMMENT 'Email from label', `sentAt` datetime DEFAULT NULL, `delayDelivery` enum('0','1') DEFAULT '0', `delayedTo` datetime DEFAULT NULL, `externalId` int(10) unsigned DEFAULT NULL, `sequence_id` int(10) unsigned DEFAULT NULL, `externalType` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `subject` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `preheader` text CHARACTER SET utf8 COLLATE utf8_unicode_ci COMMENT 'Email preheader text is a small line of text that appears after the subject line in an email inbox.', PRIMARY KEY (`id`), KEY `externalId` (`externalId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_cartstatusemail_queue` -- LOCK TABLES `plugin_cartstatusemail_queue` WRITE; /*!40000 ALTER TABLE `plugin_cartstatusemail_queue` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_cartstatusemail_queue` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_cartstatusemail_restored_cart` -- DROP TABLE IF EXISTS `plugin_cartstatusemail_restored_cart`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_cartstatusemail_restored_cart` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `cart_id` int(10) unsigned NOT NULL COMMENT 'Restored cart id', `sent_at` datetime NOT NULL COMMENT 'sent link date', `restored_at` datetime NOT NULL COMMENT 'restored cart date', `code` char(40) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Hash for restore cart link', `user_id` int(10) unsigned NOT NULL COMMENT 'System user id', `cart_status` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Cart status', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_cartstatusemail_restored_cart` -- LOCK TABLES `plugin_cartstatusemail_restored_cart` WRITE; /*!40000 ALTER TABLE `plugin_cartstatusemail_restored_cart` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_cartstatusemail_restored_cart` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_cartstatusemail_settings` -- DROP TABLE IF EXISTS `plugin_cartstatusemail_settings`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_cartstatusemail_settings` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `cartStatus` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `type` enum('email','sms') NOT NULL DEFAULT 'email', `period` int(4) unsigned NOT NULL, `productsIds` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `emailTemplate` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `emailFrom` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `emailFromLabel` text CHARACTER SET utf8 COLLATE utf8_unicode_ci COMMENT 'Email from label', `productsRule` enum('all','any','without') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'all', `emailMessage` text CHARACTER SET utf8 COLLATE utf8_unicode_ci, `schedulePeriod` set('sunday','monday','tuesday','wednesday','thursday','friday','saturday') NOT NULL, `schedulePeriodType` enum('operation_hours','anytime') DEFAULT 'anytime', `lagType` enum('hour','day','month') DEFAULT 'hour', `sequenceOnly` enum('0','1') DEFAULT '0', `triggerName` varchar(255) DEFAULT NULL, `subject` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `preheader` text CHARACTER SET utf8 COLLATE utf8_unicode_ci COMMENT 'Email preheader text is a small line of text that appears after the subject line in an email inbox.', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_cartstatusemail_settings` -- LOCK TABLES `plugin_cartstatusemail_settings` WRITE; /*!40000 ALTER TABLE `plugin_cartstatusemail_settings` DISABLE KEYS */; INSERT INTO `plugin_cartstatusemail_settings` VALUES (1,'no_cart','email',1,'','NPS request system','{$leadowner:email}',NULL,'without','','sunday,monday,tuesday,wednesday,thursday,friday,saturday','anytime','hour','1','NPS request','Please share your experience with others',NULL); /*!40000 ALTER TABLE `plugin_cartstatusemail_settings` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_cartstatusemail_subscribe` -- DROP TABLE IF EXISTS `plugin_cartstatusemail_subscribe`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_cartstatusemail_subscribe` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL, `code` char(40) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Hash for unsubscribe link', `status` enum('subscribed','unsubscribed') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'subscribed', `unsubscribed_at` timestamp NULL DEFAULT NULL, `external` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `external_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_cartstatusemail_subscribe` -- LOCK TABLES `plugin_cartstatusemail_subscribe` WRITE; /*!40000 ALTER TABLE `plugin_cartstatusemail_subscribe` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_cartstatusemail_subscribe` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_cartstatusemail_subscribe_sms` -- DROP TABLE IF EXISTS `plugin_cartstatusemail_subscribe_sms`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_cartstatusemail_subscribe_sms` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL, `code` char(40) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Hash for unsubscribe link', `status` enum('subscribed','unsubscribed') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'subscribed', `unsubscribed_at` timestamp NULL DEFAULT NULL, `external` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `external_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `mobile_number` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_cartstatusemail_subscribe_sms` -- LOCK TABLES `plugin_cartstatusemail_subscribe_sms` WRITE; /*!40000 ALTER TABLE `plugin_cartstatusemail_subscribe_sms` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_cartstatusemail_subscribe_sms` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_crm_checklist` -- DROP TABLE IF EXISTS `plugin_crm_checklist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_crm_checklist` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `checklist_status` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `closed_by` enum('automatically','manually') COLLATE utf8_unicode_ci DEFAULT NULL, `checklist_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_crm_checklist` -- LOCK TABLES `plugin_crm_checklist` WRITE; /*!40000 ALTER TABLE `plugin_crm_checklist` DISABLE KEYS */; INSERT INTO `plugin_crm_checklist` VALUES (1,'0',NULL,'leads_import'),(2,'0',NULL,'add_products_screen'),(3,'0',NULL,'paypal_account_screen'),(4,'0',NULL,'dashboard_leads_tab'),(5,'0',NULL,'create_groups'),(6,'0',NULL,'manage_users_screen'),(7,'0','automatically','mojo_registartion'),(8,'0',NULL,'imap_service'); /*!40000 ALTER TABLE `plugin_crm_checklist` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_dashboard_theme` -- DROP TABLE IF EXISTS `plugin_dashboard_theme`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_dashboard_theme` ( `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `value` text COLLATE utf8_unicode_ci, PRIMARY KEY (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_dashboard_theme` -- LOCK TABLES `plugin_dashboard_theme` WRITE; /*!40000 ALTER TABLE `plugin_dashboard_theme` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_dashboard_theme` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_emailsequence_has_mms` -- DROP TABLE IF EXISTS `plugin_emailsequence_has_mms`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_emailsequence_has_mms` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `sequence_id` int(10) unsigned NOT NULL, `mms_files` text COLLATE utf8_unicode_ci, `mms_files_original_names` mediumtext COLLATE utf8_unicode_ci, PRIMARY KEY (`id`), KEY `sequence_id` (`sequence_id`), CONSTRAINT `plugin_emailsequence_has_mms_ibfk_1` FOREIGN KEY (`sequence_id`) REFERENCES `plugin_cartstatusemail_settings` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_emailsequence_has_mms` -- LOCK TABLES `plugin_emailsequence_has_mms` WRITE; /*!40000 ALTER TABLE `plugin_emailsequence_has_mms` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_emailsequence_has_mms` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_emailsequence_settings` -- DROP TABLE IF EXISTS `plugin_emailsequence_settings`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_emailsequence_settings` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `sequence_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `archive` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `sequence_name` (`sequence_name`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_emailsequence_settings` -- LOCK TABLES `plugin_emailsequence_settings` WRITE; /*!40000 ALTER TABLE `plugin_emailsequence_settings` DISABLE KEYS */; INSERT INTO `plugin_emailsequence_settings` VALUES (1,'NPS request','0'); /*!40000 ALTER TABLE `plugin_emailsequence_settings` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_emailsequence_triggers` -- DROP TABLE IF EXISTS `plugin_emailsequence_triggers`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_emailsequence_triggers` ( `sequence_settings_id` int(10) unsigned NOT NULL, `trigger_id` int(10) unsigned NOT NULL, `trigger_enabled` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', PRIMARY KEY (`sequence_settings_id`,`trigger_id`), KEY `trigger_id` (`trigger_id`), CONSTRAINT `plugin_emailsequence_triggers_ibfk_1` FOREIGN KEY (`sequence_settings_id`) REFERENCES `plugin_emailsequence_settings` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `plugin_emailsequence_triggers_ibfk_2` FOREIGN KEY (`trigger_id`) REFERENCES `plugin_cartstatusemail_settings` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_emailsequence_triggers` -- LOCK TABLES `plugin_emailsequence_triggers` WRITE; /*!40000 ALTER TABLE `plugin_emailsequence_triggers` DISABLE KEYS */; INSERT INTO `plugin_emailsequence_triggers` VALUES (1,1,'1'); /*!40000 ALTER TABLE `plugin_emailsequence_triggers` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_flatrateshipping_config` -- DROP TABLE IF EXISTS `plugin_flatrateshipping_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_flatrateshipping_config` ( `id` int(10) unsigned NOT NULL, `amount_type_limit` enum('up to','over') COLLATE utf8_unicode_ci DEFAULT NULL, `amount_limit` decimal(10,2) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_flatrateshipping_config` -- LOCK TABLES `plugin_flatrateshipping_config` WRITE; /*!40000 ALTER TABLE `plugin_flatrateshipping_config` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_flatrateshipping_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_flatrateshipping_zones_config` -- DROP TABLE IF EXISTS `plugin_flatrateshipping_zones_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_flatrateshipping_zones_config` ( `config_id` int(10) unsigned NOT NULL, `flatrate_zone_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `amount_zone` decimal(10,2) DEFAULT NULL, `config_zone_id` int(10) unsigned NOT NULL, PRIMARY KEY (`config_id`,`config_zone_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_flatrateshipping_zones_config` -- LOCK TABLES `plugin_flatrateshipping_zones_config` WRITE; /*!40000 ALTER TABLE `plugin_flatrateshipping_zones_config` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_flatrateshipping_zones_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_invoicetopdf_settings` -- DROP TABLE IF EXISTS `plugin_invoicetopdf_settings`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_invoicetopdf_settings` ( `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_invoicetopdf_settings` -- LOCK TABLES `plugin_invoicetopdf_settings` WRITE; /*!40000 ALTER TABLE `plugin_invoicetopdf_settings` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_invoicetopdf_settings` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_lead_organization` -- DROP TABLE IF EXISTS `plugin_lead_organization`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_lead_organization` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `organization_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_address1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_domain` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_domain1` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_zip` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_country_code` char(2) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_state_code` varchar(3) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_employees` int(10) DEFAULT NULL, `organization_state_id` int(10) DEFAULT NULL, `customer_group_id` int(10) unsigned DEFAULT NULL, `organization_website` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_website1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `organization_industry_id` int(10) unsigned DEFAULT NULL, `organization_phone` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_phone_country_code` char(2) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_phone_country_code_value` varchar(4) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_phone_extension` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_mobile` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_mobile_country_code` char(2) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_mobile_country_code_value` varchar(4) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_notes` text COLLATE utf8_unicode_ci, `external_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, `creation_type` enum('local','import','user') COLLATE utf8_unicode_ci DEFAULT 'local', `primary_contact_id` int(10) unsigned DEFAULT NULL, `first_contact_creation_date` timestamp NULL DEFAULT NULL, `address_hash` char(40) COLLATE utf8_unicode_ci NOT NULL, `lat` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `lng` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `last_coordinates_processed_date` timestamp NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), UNIQUE KEY `organization_name` (`organization_name`), UNIQUE KEY `external_id` (`external_id`), KEY `organization_industry_id` (`organization_industry_id`), KEY `customer_group_id` (`customer_group_id`), KEY `primary_contact_id` (`primary_contact_id`), CONSTRAINT `plugin_lead_organization_ibfk_1` FOREIGN KEY (`organization_industry_id`) REFERENCES `plugin_leads_industry` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION, CONSTRAINT `plugin_lead_organization_ibfk_2` FOREIGN KEY (`customer_group_id`) REFERENCES `shopping_group` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION, CONSTRAINT `plugin_lead_organization_ibfk_3` FOREIGN KEY (`primary_contact_id`) REFERENCES `plugin_leads_data` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_lead_organization` -- LOCK TABLES `plugin_lead_organization` WRITE; /*!40000 ALTER TABLE `plugin_lead_organization` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_lead_organization` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_action_log` -- DROP TABLE IF EXISTS `plugin_leads_action_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_action_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `type` varchar(64) COLLATE utf8_unicode_ci NOT NULL, `lead_id` int(10) unsigned NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `action_type` enum('inbound','outbound') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'inbound', `additional_content` text COLLATE utf8_unicode_ci, `event_type` enum('expired','upcoming') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'expired', `lead_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `lead_id` (`lead_id`), KEY `created_at_lead_id` (`created_at`,`lead_id`), KEY `lead_id_created_at` (`lead_id`,`created_at`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_action_log` -- LOCK TABLES `plugin_leads_action_log` WRITE; /*!40000 ALTER TABLE `plugin_leads_action_log` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_action_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_additional_email_log` -- DROP TABLE IF EXISTS `plugin_leads_additional_email_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_additional_email_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `email_subject` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `content` text COLLATE utf8_unicode_ci, `encoded_content` mediumblob, `email_from` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email_from_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email_to` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email_bcc` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `lead_id` int(10) unsigned NOT NULL, `email_status` enum('sent','opened','openattachment','received') COLLATE utf8_unicode_ci DEFAULT NULL, `email_source_type` enum('internal','external') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'internal', `external_source_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `message_id` varchar(998) COLLATE utf8_unicode_ci DEFAULT NULL, `reply_id` text COLLATE utf8_unicode_ci, `references` text COLLATE utf8_unicode_ci, `uid` int(10) unsigned DEFAULT NULL, `message_number` int(10) unsigned DEFAULT NULL, `account_id` int(10) unsigned DEFAULT NULL, `received_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `message_id` (`message_id`(255)) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_additional_email_log` -- LOCK TABLES `plugin_leads_additional_email_log` WRITE; /*!40000 ALTER TABLE `plugin_leads_additional_email_log` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_additional_email_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_advertiser_account_config` -- DROP TABLE IF EXISTS `plugin_leads_advertiser_account_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_advertiser_account_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `adv_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `adv_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `adv_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `adv_status` enum('pending','connected','disconnected') COLLATE utf8_unicode_ci DEFAULT 'pending', `adv_verification_link` text COLLATE utf8_unicode_ci, `allow_delete` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '1', PRIMARY KEY (`id`), UNIQUE KEY `adv_id` (`adv_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_advertiser_account_config` -- LOCK TABLES `plugin_leads_advertiser_account_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_advertiser_account_config` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_advertiser_account_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_api_access_list` -- DROP TABLE IF EXISTS `plugin_leads_api_access_list`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_api_access_list` ( `api_user_id` int(10) unsigned NOT NULL, `resource` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`api_user_id`,`resource`), CONSTRAINT `plugin_leads_api_access_list_ibfk_1` FOREIGN KEY (`api_user_id`) REFERENCES `plugin_leads_users_api_access` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_api_access_list` -- LOCK TABLES `plugin_leads_api_access_list` WRITE; /*!40000 ALTER TABLE `plugin_leads_api_access_list` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_api_access_list` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_api_request_log` -- DROP TABLE IF EXISTS `plugin_leads_api_request_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_api_request_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `token` char(255) COLLATE utf8_unicode_ci NOT NULL, `request` text COLLATE utf8_unicode_ci NOT NULL, `endpoint` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `request_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL, `api_user_id` int(10) unsigned NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `ip_address` varchar(45) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_api_request_log` -- LOCK TABLES `plugin_leads_api_request_log` WRITE; /*!40000 ALTER TABLE `plugin_leads_api_request_log` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_api_request_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_apps_notification_queue` -- DROP TABLE IF EXISTS `plugin_leads_apps_notification_queue`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_apps_notification_queue` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `lead_id` int(10) unsigned NOT NULL, `type` enum('new_lead','update_lead') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'new_lead', `status` enum('scheduled','sent','failed') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'scheduled', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `lead_id` (`lead_id`,`type`), CONSTRAINT `plugin_leads_apps_notification_queue_ibfk_1` FOREIGN KEY (`lead_id`) REFERENCES `plugin_leads_data` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_apps_notification_queue` -- LOCK TABLES `plugin_leads_apps_notification_queue` WRITE; /*!40000 ALTER TABLE `plugin_leads_apps_notification_queue` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_apps_notification_queue` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_builder_form_fields` -- DROP TABLE IF EXISTS `plugin_leads_builder_form_fields`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_builder_form_fields` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `form_id` int(10) unsigned NOT NULL, `field_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `field_label` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `field_value` mediumtext COLLATE utf8_unicode_ci, `field_data` text COLLATE utf8_unicode_ci NOT NULL, `field_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `system_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `form_id` (`form_id`), CONSTRAINT `plugin_leads_builder_form_fields_ibfk_1` FOREIGN KEY (`form_id`) REFERENCES `plugin_leads_builder_form_general_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_builder_form_fields` -- LOCK TABLES `plugin_leads_builder_form_fields` WRITE; /*!40000 ALTER TABLE `plugin_leads_builder_form_fields` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_builder_form_fields` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_builder_form_general_config` -- DROP TABLE IF EXISTS `plugin_leads_builder_form_general_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_builder_form_general_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `form_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `form_type` enum('internal','external') COLLATE utf8_unicode_ci DEFAULT 'internal', `form_title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `form_domain` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `form_button_label` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `form_code` mediumtext COLLATE utf8_unicode_ci, `form_signature` char(40) COLLATE utf8_unicode_ci NOT NULL, `recaptcha_public_key` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `recaptcha_private_key` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `success_url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `fail_url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `sms_mobile` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Mobile numbers for sms', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `creator_id` int(10) unsigned DEFAULT NULL, `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `editor_id` int(10) unsigned DEFAULT NULL, `send_email` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `send_auto_reply` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `send_email_config` mediumtext COLLATE utf8_unicode_ci, `send_auto_reply_config` mediumtext COLLATE utf8_unicode_ci, `external_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'External id', PRIMARY KEY (`id`), UNIQUE KEY `form_name` (`form_name`), KEY `creator_id` (`creator_id`), KEY `editor_id` (`editor_id`), CONSTRAINT `plugin_leads_builder_form_general_config_ibfk_1` FOREIGN KEY (`creator_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_builder_form_general_config_ibfk_2` FOREIGN KEY (`editor_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_builder_form_general_config` -- LOCK TABLES `plugin_leads_builder_form_general_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_builder_form_general_config` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_builder_form_general_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_call_log` -- DROP TABLE IF EXISTS `plugin_leads_call_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_call_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `call_sid` varchar(34) COLLATE utf8_unicode_ci DEFAULT NULL, `creator_id` int(10) unsigned DEFAULT NULL, `type` enum('call','sms','mms') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'call', `sub_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `account_sid` varchar(34) COLLATE utf8_unicode_ci DEFAULT NULL, `caller` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `timestamp` timestamp NULL DEFAULT NULL, `status` enum('queued','ringing','in-progress','canceled','completed','failed','busy','no-answer','sending','sent') COLLATE utf8_unicode_ci DEFAULT 'queued', `score` enum('valid','invalid','review_requested','reviewed_validated') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'valid', `link` tinytext COLLATE utf8_unicode_ci, `call_duration` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, `action_log_id` int(10) unsigned NOT NULL, `lead_id` int(10) unsigned DEFAULT NULL, `details` text COLLATE utf8_unicode_ci, `call_source` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `receiver` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `is_voip` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `is_mms` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `mms_files` text COLLATE utf8_unicode_ci, `call_transcription` mediumtext COLLATE utf8_unicode_ci, `call_transcription_details` mediumtext COLLATE utf8_unicode_ci, `sentiment` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `action_log_id` (`action_log_id`), KEY `lead_id` (`lead_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_call_log` -- LOCK TABLES `plugin_leads_call_log` WRITE; /*!40000 ALTER TABLE `plugin_leads_call_log` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_call_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_clean_up_fields_log` -- DROP TABLE IF EXISTS `plugin_leads_clean_up_fields_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_clean_up_fields_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `created_at` timestamp NULL DEFAULT NULL, `logged_user_id` int(10) unsigned NOT NULL, `type` varchar(64) COLLATE utf8_unicode_ci NOT NULL, `ip_address` varchar(45) COLLATE utf8_unicode_ci NOT NULL, `deleted_items_info` mediumtext COLLATE utf8_unicode_ci, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_clean_up_fields_log` -- LOCK TABLES `plugin_leads_clean_up_fields_log` WRITE; /*!40000 ALTER TABLE `plugin_leads_clean_up_fields_log` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_clean_up_fields_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_config` -- DROP TABLE IF EXISTS `plugin_leads_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_config` ( `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_config` -- LOCK TABLES `plugin_leads_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_config` DISABLE KEYS */; INSERT INTO `plugin_leads_config` VALUES ('enableAiChat','1'),('enableProcessLeadSourceUtmTags','1'),('remarketingAudiencesAdwordsProcessedCount','0'),('remarketingAudiencesAdwordsProcessedDate',''),('remarketingAudiencesFacebookProcessedCount','0'),('remarketingAudiencesFacebookProcessedDate',''); /*!40000 ALTER TABLE `plugin_leads_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_custom_tabs_config` -- DROP TABLE IF EXISTS `plugin_leads_custom_tabs_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_custom_tabs_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `tab_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Crm tab name', `tab_label` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Crm tab label', `tab_type` enum('lead','organization') COLLATE utf8_unicode_ci DEFAULT 'lead', `draggable_params_ids` text COLLATE utf8_unicode_ci COMMENT 'Draggable custom params ids', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_custom_tabs_config` -- LOCK TABLES `plugin_leads_custom_tabs_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_custom_tabs_config` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_custom_tabs_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_custom_tabs_has_custom_params` -- DROP TABLE IF EXISTS `plugin_leads_custom_tabs_has_custom_params`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_custom_tabs_has_custom_params` ( `tab_id` int(10) unsigned NOT NULL, `custom_param_id` int(10) unsigned NOT NULL, PRIMARY KEY (`tab_id`,`custom_param_id`), CONSTRAINT `plugin_leads_custom_tabs_has_custom_params_ibfk_1` FOREIGN KEY (`tab_id`) REFERENCES `plugin_leads_custom_tabs_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_custom_tabs_has_custom_params` -- LOCK TABLES `plugin_leads_custom_tabs_has_custom_params` WRITE; /*!40000 ALTER TABLE `plugin_leads_custom_tabs_has_custom_params` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_custom_tabs_has_custom_params` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_data` -- DROP TABLE IF EXISTS `plugin_leads_data`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_data` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `lead_first_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `lead_last_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `middle_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `prefix` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `lead_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `lead_secondary_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `lead_phone` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `lead_phone_country_code` char(2) COLLATE utf8_unicode_ci DEFAULT NULL, `lead_phone_country_code_value` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `lead_phone_extension` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, `lead_mobile` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `lead_mobile_country_code` char(2) COLLATE utf8_unicode_ci DEFAULT NULL, `lead_mobile_country_code_value` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `lead_source` text COLLATE utf8_unicode_ci, `lead_utm_source` text COLLATE utf8_unicode_ci, `lead_utm_medium` text COLLATE utf8_unicode_ci, `lead_utm_campaign` text COLLATE utf8_unicode_ci, `lead_utm_term` text COLLATE utf8_unicode_ci, `lead_utm_content` text COLLATE utf8_unicode_ci, `lead_notes` text COLLATE utf8_unicode_ci, `lead_position` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `lead_zip` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, `lead_city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `lead_address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `lead_address1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `lead_ip_address` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL, `lead_country_code` char(2) COLLATE utf8_unicode_ci DEFAULT NULL, `lead_state_code` varchar(3) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_id` int(10) unsigned DEFAULT NULL, `user_id` int(10) unsigned DEFAULT NULL, `owner_id` int(10) unsigned NOT NULL, `lead_type_id` int(10) unsigned DEFAULT NULL, `stage_id` int(10) unsigned DEFAULT NULL, `customer_group_id` int(10) unsigned DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `last_activity` timestamp NULL DEFAULT NULL, `last_activity_type_id` int(10) unsigned DEFAULT NULL, `external_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, `creation_type` enum('local','import','user','api') COLLATE utf8_unicode_ci DEFAULT 'local', `use_organization_address` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', `last_activity_subtype` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `last_activity_outbound` timestamp NULL DEFAULT '0000-00-00 00:00:00', `score` int(10) unsigned DEFAULT NULL, `score_processed_at` timestamp NULL DEFAULT NULL, `remote_authorization_token` char(40) COLLATE utf8_unicode_ci DEFAULT NULL, `email_validated_status` enum('not_verified','valid','invalid','risky') COLLATE utf8_unicode_ci DEFAULT 'not_verified', `email_validated_date` timestamp NULL DEFAULT NULL, `email_validated_score` float DEFAULT NULL, `address_hash` char(40) COLLATE utf8_unicode_ci NOT NULL, `lat` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `lng` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `last_coordinates_processed_date` timestamp NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), UNIQUE KEY `lead_email` (`lead_email`), UNIQUE KEY `lead_mobile_country_code_value_lead_mobile` (`lead_mobile_country_code_value`,`lead_mobile`), UNIQUE KEY `lead_phone_country_code_value_lead_phone` (`lead_phone_country_code_value`,`lead_phone`), KEY `stage_id` (`stage_id`), KEY `organization_id` (`organization_id`), KEY `user_id` (`user_id`), KEY `customer_group_id` (`customer_group_id`), CONSTRAINT `plugin_leads_data_ibfk_1` FOREIGN KEY (`stage_id`) REFERENCES `plugin_leads_stage` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_data_ibfk_2` FOREIGN KEY (`organization_id`) REFERENCES `plugin_lead_organization` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_data_ibfk_3` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_data_ibfk_4` FOREIGN KEY (`customer_group_id`) REFERENCES `shopping_group` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_data` -- LOCK TABLES `plugin_leads_data` WRITE; /*!40000 ALTER TABLE `plugin_leads_data` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_data` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_documents` -- DROP TABLE IF EXISTS `plugin_leads_documents`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_documents` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `lead_id` int(10) unsigned NOT NULL, `file_stored_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Stored file name', `file_hash` char(40) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Hash for download link', `original_file_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Original file name', `display_file_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Display file name', `uploaded_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Upload date', `external_url` text COLLATE utf8_unicode_ci COMMENT 'External url', PRIMARY KEY (`id`), UNIQUE KEY `file_hash` (`file_hash`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_documents` -- LOCK TABLES `plugin_leads_documents` WRITE; /*!40000 ALTER TABLE `plugin_leads_documents` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_documents` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_downloader_log` -- DROP TABLE IF EXISTS `plugin_leads_downloader_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_downloader_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `file_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `file_path` text COLLATE utf8_unicode_ci NOT NULL, `page_url` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `action_log_id` int(10) unsigned NOT NULL, `lead_id` int(10) unsigned NOT NULL, `page_id` int(10) unsigned NOT NULL, `content` text COLLATE utf8_unicode_ci, PRIMARY KEY (`id`), KEY `action_log_id` (`action_log_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_downloader_log` -- LOCK TABLES `plugin_leads_downloader_log` WRITE; /*!40000 ALTER TABLE `plugin_leads_downloader_log` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_downloader_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_email_link_attachment_log` -- DROP TABLE IF EXISTS `plugin_leads_email_link_attachment_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_email_link_attachment_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `file_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `file_folder_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `file_link` text COLLATE utf8_unicode_ci, `email_log_sent_hash` char(64) COLLATE utf8_unicode_ci NOT NULL, `file_hash` char(64) COLLATE utf8_unicode_ci NOT NULL, `source_type` enum('internal','external') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'internal', `link_type` enum('click','attachment') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'attachment', `created_datetime` datetime DEFAULT NULL, `archived` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `email_log_sent_hash_2` (`email_log_sent_hash`,`file_hash`), KEY `email_log_sent_hash` (`email_log_sent_hash`), KEY `file_hash` (`file_hash`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_email_link_attachment_log` -- LOCK TABLES `plugin_leads_email_link_attachment_log` WRITE; /*!40000 ALTER TABLE `plugin_leads_email_link_attachment_log` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_email_link_attachment_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_email_log` -- DROP TABLE IF EXISTS `plugin_leads_email_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_email_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `email_subject` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `content` text COLLATE utf8_unicode_ci, `encoded_content` mediumblob, `email_from` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email_from_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email_to` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email_bcc` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email_template` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `follow_up_sequences_id` int(10) unsigned DEFAULT NULL, `action_log_id` int(10) unsigned NOT NULL, `lead_id` int(10) unsigned NOT NULL, `email_status` enum('sent','click','opened','openattachment','received','bounce','deferred','dropped','unsubscribed') COLLATE utf8_unicode_ci DEFAULT NULL, `tracking_code` char(64) COLLATE utf8_unicode_ci DEFAULT NULL, `attachment_id` int(10) unsigned DEFAULT NULL, `email_source_type` enum('internal','external') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'internal', `external_source_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `campaign_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `list_names` text COLLATE utf8_unicode_ci, `message_id` text COLLATE utf8_unicode_ci, `reply_id` text COLLATE utf8_unicode_ci, `references` text COLLATE utf8_unicode_ci, `uid` int(10) unsigned DEFAULT NULL, `message_number` int(10) unsigned DEFAULT NULL, `creator_id` int(10) unsigned DEFAULT NULL, `account_id` int(10) unsigned DEFAULT NULL, `received_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `action_log_id` (`action_log_id`), KEY `tracking_code` (`tracking_code`), KEY `message_id` (`message_id`(255)), KEY `reply_id` (`reply_id`(255)), KEY `lead_id` (`lead_id`), KEY `follow_up_sequences_id` (`follow_up_sequences_id`), KEY `attachment_id` (`attachment_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_email_log` -- LOCK TABLES `plugin_leads_email_log` WRITE; /*!40000 ALTER TABLE `plugin_leads_email_log` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_email_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_email_report_log` -- DROP TABLE IF EXISTS `plugin_leads_email_report_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_email_report_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL, `status` enum('processed','processing','delayed') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'processing', `sent_at_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `processed_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `user_id` (`user_id`), CONSTRAINT `plugin_leads_email_report_log_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_email_report_log` -- LOCK TABLES `plugin_leads_email_report_log` WRITE; /*!40000 ALTER TABLE `plugin_leads_email_report_log` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_email_report_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_email_sequence_status` -- DROP TABLE IF EXISTS `plugin_leads_email_sequence_status`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_email_sequence_status` ( `lead_id` int(10) unsigned NOT NULL, `sequence_id` int(10) unsigned NOT NULL, `cart_status_settings_id` int(10) unsigned NOT NULL, `sequence_applied_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`sequence_id`,`cart_status_settings_id`,`lead_id`), KEY `lead_id` (`lead_id`), CONSTRAINT `plugin_leads_email_sequence_status_ibfk_1` FOREIGN KEY (`lead_id`) REFERENCES `plugin_leads_data` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_email_sequence_status` -- LOCK TABLES `plugin_leads_email_sequence_status` WRITE; /*!40000 ALTER TABLE `plugin_leads_email_sequence_status` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_email_sequence_status` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_emailsequence_ban_ips` -- DROP TABLE IF EXISTS `plugin_leads_emailsequence_ban_ips`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_emailsequence_ban_ips` ( `ip_address` varchar(45) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`ip_address`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_emailsequence_ban_ips` -- LOCK TABLES `plugin_leads_emailsequence_ban_ips` WRITE; /*!40000 ALTER TABLE `plugin_leads_emailsequence_ban_ips` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_emailsequence_ban_ips` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_event_rules_actions` -- DROP TABLE IF EXISTS `plugin_leads_event_rules_actions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_event_rules_actions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `rule_id` int(10) unsigned NOT NULL, `action_type` enum('assign_owner','assign_task','assign_tags','assign_lifecycle','assign_sequence','assign_email_list','assign_email_copy','assign_remarketing_list') COLLATE utf8_unicode_ci DEFAULT 'assign_owner', `action_config` text COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `rule_id` (`rule_id`,`action_type`), CONSTRAINT `plugin_leads_event_rules_actions_ibfk_1` FOREIGN KEY (`rule_id`) REFERENCES `plugin_leads_event_rules_general_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_event_rules_actions` -- LOCK TABLES `plugin_leads_event_rules_actions` WRITE; /*!40000 ALTER TABLE `plugin_leads_event_rules_actions` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_event_rules_actions` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_event_rules_config` -- DROP TABLE IF EXISTS `plugin_leads_event_rules_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_event_rules_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `rule_id` int(10) unsigned NOT NULL, `field_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `rule_comparison_operator` enum('equal','notequal','like','in','greaterthan','lessthan') COLLATE utf8_unicode_ci DEFAULT 'equal', `field_value` mediumtext COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `rule_id` (`rule_id`), CONSTRAINT `plugin_leads_event_rules_config_ibfk_1` FOREIGN KEY (`rule_id`) REFERENCES `plugin_leads_event_rules_general_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_event_rules_config` -- LOCK TABLES `plugin_leads_event_rules_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_event_rules_config` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_event_rules_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_event_rules_general_config` -- DROP TABLE IF EXISTS `plugin_leads_event_rules_general_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_event_rules_general_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `event_id` int(10) unsigned NOT NULL, `rule_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `creator_id` int(10) unsigned DEFAULT NULL, `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `editor_id` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `rule_name` (`rule_name`,`event_id`), KEY `creator_id` (`creator_id`), KEY `editor_id` (`editor_id`), KEY `event_id` (`event_id`), CONSTRAINT `plugin_leads_event_rules_general_config_ibfk_1` FOREIGN KEY (`creator_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_event_rules_general_config_ibfk_2` FOREIGN KEY (`editor_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_event_rules_general_config_ibfk_3` FOREIGN KEY (`event_id`) REFERENCES `plugin_leads_events` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_event_rules_general_config` -- LOCK TABLES `plugin_leads_event_rules_general_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_event_rules_general_config` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_event_rules_general_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_events` -- DROP TABLE IF EXISTS `plugin_leads_events`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_events` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `event_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `event_label` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_events` -- LOCK TABLES `plugin_leads_events` WRITE; /*!40000 ALTER TABLE `plugin_leads_events` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_events` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_events_relation` -- DROP TABLE IF EXISTS `plugin_leads_events_relation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_events_relation` ( `event_id` int(10) unsigned NOT NULL, `external_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`event_id`,`external_id`), CONSTRAINT `plugin_leads_events_relation_ibfk_1` FOREIGN KEY (`event_id`) REFERENCES `plugin_leads_events` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_events_relation` -- LOCK TABLES `plugin_leads_events_relation` WRITE; /*!40000 ALTER TABLE `plugin_leads_events_relation` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_events_relation` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_external_notifications` -- DROP TABLE IF EXISTS `plugin_leads_external_notifications`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_external_notifications` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `status` enum('scheduled','sent','failed') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'scheduled', `lead_id` int(10) unsigned NOT NULL, `additional_info` text COLLATE utf8_unicode_ci, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_external_notifications` -- LOCK TABLES `plugin_leads_external_notifications` WRITE; /*!40000 ALTER TABLE `plugin_leads_external_notifications` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_external_notifications` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_external_notifications_endpoints` -- DROP TABLE IF EXISTS `plugin_leads_external_notifications_endpoints`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_external_notifications_endpoints` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `method_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_external_notifications_endpoints` -- LOCK TABLES `plugin_leads_external_notifications_endpoints` WRITE; /*!40000 ALTER TABLE `plugin_leads_external_notifications_endpoints` DISABLE KEYS */; INSERT INTO `plugin_leads_external_notifications_endpoints` VALUES (1,'crmLeadInfo'); /*!40000 ALTER TABLE `plugin_leads_external_notifications_endpoints` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_filter_preset` -- DROP TABLE IF EXISTS `plugin_leads_filter_preset`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_filter_preset` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `creator_id` int(10) unsigned NOT NULL, `filter_preset_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `filter_preset_data` text COLLATE utf8_unicode_ci NOT NULL, `is_default` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `filter_preset_type` enum('lead','organization') COLLATE utf8_unicode_ci DEFAULT 'lead', `access` enum('all','individual') COLLATE utf8_unicode_ci DEFAULT 'individual', PRIMARY KEY (`id`), KEY `creator_id` (`creator_id`), CONSTRAINT `plugin_leads_filter_preset_ibfk_1` FOREIGN KEY (`creator_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_filter_preset` -- LOCK TABLES `plugin_leads_filter_preset` WRITE; /*!40000 ALTER TABLE `plugin_leads_filter_preset` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_filter_preset` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_form_log` -- DROP TABLE IF EXISTS `plugin_leads_form_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_form_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `form_name` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, `content` text COLLATE utf8_unicode_ci NOT NULL, `form_url` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `action_log_id` int(10) unsigned NOT NULL, `lead_id` int(10) unsigned NOT NULL, `form_type` enum('internal','external') COLLATE utf8_unicode_ci DEFAULT 'internal', PRIMARY KEY (`id`), KEY `action_log_id` (`action_log_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_form_log` -- LOCK TABLES `plugin_leads_form_log` WRITE; /*!40000 ALTER TABLE `plugin_leads_form_log` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_form_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_form_rules_actions` -- DROP TABLE IF EXISTS `plugin_leads_form_rules_actions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_form_rules_actions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `rule_id` int(10) unsigned NOT NULL, `action_type` enum('assign_owner','assign_task','assign_tags','assign_lifecycle','assign_sequence','assign_email_list','assign_email_copy','assign_remarketing_list') COLLATE utf8_unicode_ci DEFAULT 'assign_owner', `action_config` text COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `rule_id` (`rule_id`,`action_type`), CONSTRAINT `plugin_leads_form_rules_actions_ibfk_1` FOREIGN KEY (`rule_id`) REFERENCES `plugin_leads_form_rules_general_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_form_rules_actions` -- LOCK TABLES `plugin_leads_form_rules_actions` WRITE; /*!40000 ALTER TABLE `plugin_leads_form_rules_actions` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_form_rules_actions` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_form_rules_config` -- DROP TABLE IF EXISTS `plugin_leads_form_rules_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_form_rules_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `rule_id` int(10) unsigned NOT NULL, `field_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `rule_comparison_operator` enum('equal','notequal','like','in','greaterthan','lessthan') COLLATE utf8_unicode_ci DEFAULT 'equal', `field_value` mediumtext COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `rule_id` (`rule_id`), CONSTRAINT `plugin_leads_form_rules_config_ibfk_1` FOREIGN KEY (`rule_id`) REFERENCES `plugin_leads_form_rules_general_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_form_rules_config` -- LOCK TABLES `plugin_leads_form_rules_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_form_rules_config` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_form_rules_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_form_rules_general_config` -- DROP TABLE IF EXISTS `plugin_leads_form_rules_general_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_form_rules_general_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `form_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `form_type` enum('internal','external') COLLATE utf8_unicode_ci DEFAULT 'internal', `rule_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `creator_id` int(10) unsigned DEFAULT NULL, `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `editor_id` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `rule_name` (`rule_name`,`form_name`,`form_type`), KEY `creator_id` (`creator_id`), KEY `editor_id` (`editor_id`), KEY `form_name` (`form_name`,`form_type`), CONSTRAINT `plugin_leads_form_rules_general_config_ibfk_1` FOREIGN KEY (`creator_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_form_rules_general_config_ibfk_2` FOREIGN KEY (`editor_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_form_rules_general_config` -- LOCK TABLES `plugin_leads_form_rules_general_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_form_rules_general_config` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_form_rules_general_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_has_email_sequence` -- DROP TABLE IF EXISTS `plugin_leads_has_email_sequence`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_has_email_sequence` ( `lead_id` int(10) unsigned NOT NULL, `sequence_id` int(10) unsigned NOT NULL, `sequence_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`lead_id`,`sequence_id`), KEY `sequence_id` (`sequence_id`), KEY `lead_id` (`lead_id`), CONSTRAINT `plugin_leads_has_email_sequence_ibfk_1` FOREIGN KEY (`lead_id`) REFERENCES `plugin_leads_data` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_has_email_sequence` -- LOCK TABLES `plugin_leads_has_email_sequence` WRITE; /*!40000 ALTER TABLE `plugin_leads_has_email_sequence` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_has_email_sequence` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_has_social_service` -- DROP TABLE IF EXISTS `plugin_leads_has_social_service`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_has_social_service` ( `lead_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `service_id` int(10) unsigned NOT NULL, `service_link` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`lead_id`,`service_id`), KEY `service_id` (`service_id`), CONSTRAINT `plugin_leads_has_social_service_ibfk_1` FOREIGN KEY (`service_id`) REFERENCES `plugin_leads_social_services_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_has_social_service` -- LOCK TABLES `plugin_leads_has_social_service` WRITE; /*!40000 ALTER TABLE `plugin_leads_has_social_service` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_has_social_service` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_has_tags` -- DROP TABLE IF EXISTS `plugin_leads_has_tags`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_has_tags` ( `tag_id` int(10) unsigned NOT NULL, `lead_id` int(10) unsigned NOT NULL, PRIMARY KEY (`tag_id`,`lead_id`), KEY `lead_id` (`lead_id`), CONSTRAINT `plugin_leads_has_tags_ibfk_1` FOREIGN KEY (`tag_id`) REFERENCES `plugin_leads_tags` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_has_tags_ibfk_2` FOREIGN KEY (`lead_id`) REFERENCES `plugin_leads_data` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_has_tags` -- LOCK TABLES `plugin_leads_has_tags` WRITE; /*!40000 ALTER TABLE `plugin_leads_has_tags` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_has_tags` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_hidden_opportunities` -- DROP TABLE IF EXISTS `plugin_leads_hidden_opportunities`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_hidden_opportunities` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `opportunity_id` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `opportunity_id` (`opportunity_id`), CONSTRAINT `plugin_leads_hidden_opportunities_ibfk_1` FOREIGN KEY (`opportunity_id`) REFERENCES `plugin_leads_opportunity` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_hidden_opportunities` -- LOCK TABLES `plugin_leads_hidden_opportunities` WRITE; /*!40000 ALTER TABLE `plugin_leads_hidden_opportunities` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_hidden_opportunities` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_imap_config` -- DROP TABLE IF EXISTS `plugin_leads_imap_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_imap_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `service_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `owner_id` int(10) unsigned DEFAULT NULL, `host` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `encryption` enum('none','tls','ssl') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'none', `login` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password` blob NOT NULL, `initial_data_processed` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `last_processed_date` timestamp NULL DEFAULT NULL, `process_all_emails` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `notification_sent` timestamp NULL DEFAULT NULL, `is_oauth2` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `access_token` text COLLATE utf8_unicode_ci, `refresh_token` text COLLATE utf8_unicode_ci, `oauth2_service_app_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `is_temporary` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_imap_config` -- LOCK TABLES `plugin_leads_imap_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_imap_config` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_imap_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_imap_rules_config` -- DROP TABLE IF EXISTS `plugin_leads_imap_rules_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_imap_rules_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `rule_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Rule name', `imap_config_id` int(10) unsigned NOT NULL COMMENT 'IMAP config id', `rule_email` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Rule email', `sub_rules_config` text COLLATE utf8_unicode_ci COMMENT 'Rule subrules', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `creator_id` int(10) unsigned DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `editor_id` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `creator_id` (`creator_id`), KEY `editor_id` (`editor_id`), KEY `imap_config_id` (`imap_config_id`), CONSTRAINT `plugin_leads_imap_rules_config_ibfk_1` FOREIGN KEY (`creator_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_imap_rules_config_ibfk_2` FOREIGN KEY (`editor_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_imap_rules_config_ibfk_3` FOREIGN KEY (`imap_config_id`) REFERENCES `plugin_leads_imap_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_imap_rules_config` -- LOCK TABLES `plugin_leads_imap_rules_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_imap_rules_config` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_imap_rules_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_industry` -- DROP TABLE IF EXISTS `plugin_leads_industry`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_industry` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `type` (`type`) ) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_industry` -- LOCK TABLES `plugin_leads_industry` WRITE; /*!40000 ALTER TABLE `plugin_leads_industry` DISABLE KEYS */; INSERT INTO `plugin_leads_industry` VALUES (1,'Accommodations','Accommodations'),(2,'Accounting','Accounting'),(3,'Advertising','Advertising'),(4,'Aerospace','Aerospace'),(5,'Agriculture_Agribusiness','Agriculture & Agribusiness'),(6,'Air_Transportation','Air Transportation'),(7,'Apparel_Accessories','Apparel & Accessories'),(8,'Auto','Auto'),(9,'Banking','Banking'),(10,'Beauty_Cosmetics','Beauty & Cosmetics'),(11,'Biotechnology','Biotechnology'),(12,'Chemical','Chemical'),(13,'Communications','Communications'),(14,'Computer','Computer'),(15,'Construction','Construction'),(16,'Consulting','Consulting'),(17,'Consumer Products','Consumer Products'),(18,'Education','Education'),(19,'Electronics','Electronics'),(20,'Employment','Employment'),(21,'Energy','Energy'),(22,'Entertainment_Recreation','Entertainment & Recreation'),(23,'Fashion','Fashion'),(24,'Financial_Services','Financial Services'),(25,'Fine_Arts','Fine Arts'),(26,'Food_Beverage','Food & Beverage'),(27,'Health','Health'),(28,'Information','Information'),(29,'Information_Technology','Information Technology'),(30,'Insurance','Insurance'),(31,'Journalism_News','Journalism & News'),(32,'Legal_Services','Legal Services'),(33,'Manufacturing','Manufacturing'),(34,'Media_Broadcasting','Media & Broadcasting'),(35,'Medical_Devices_Supplies','Medical Devices & Supplies'),(36,'Music','Music'),(37,'Pharmaceutical','Pharmaceutical'),(38,'Public_Administration','Public Administration'),(39,'Publishing','Publishing'),(40,'Real_Estate','Real Estate'),(41,'Retail','Retail'),(42,'Telecommunications','Telecommunications'),(43,'Tourism','Tourism'),(44,'Transportation','Transportation'),(45,'Web_Services','Web Services'); /*!40000 ALTER TABLE `plugin_leads_industry` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_internal_notifications` -- DROP TABLE IF EXISTS `plugin_leads_internal_notifications`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_internal_notifications` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `status` enum('scheduled','sent','failed') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'scheduled', `lead_id` int(10) unsigned NOT NULL, `additional_info` text COLLATE utf8_unicode_ci, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_internal_notifications` -- LOCK TABLES `plugin_leads_internal_notifications` WRITE; /*!40000 ALTER TABLE `plugin_leads_internal_notifications` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_internal_notifications` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_ip_user_profile_log` -- DROP TABLE IF EXISTS `plugin_leads_ip_user_profile_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_ip_user_profile_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `visit_ip_address` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL, `website_id` int(10) unsigned NOT NULL, `id_visit` int(10) unsigned NOT NULL, `piwik_id_website` int(10) unsigned NOT NULL, `visitor_id` char(16) COLLATE utf8_unicode_ci NOT NULL, `goal_conversions` int(10) unsigned DEFAULT '0', `site_currency` char(3) COLLATE utf8_unicode_ci DEFAULT NULL, `server_date` date DEFAULT NULL, `piwik_user_id` int(10) unsigned DEFAULT NULL, `last_action_date_time` datetime DEFAULT NULL, `visitor_type` enum('new','returning') COLLATE utf8_unicode_ci DEFAULT 'new', `visit_converted` enum('yes','no') COLLATE utf8_unicode_ci DEFAULT 'no', `visit_count` int(10) unsigned DEFAULT '0', `first_action_timestamp` datetime DEFAULT NULL, `visit_ecommerce_status` enum('none','ordered','abandonedCart','orderedThenAbandonedCart') COLLATE utf8_unicode_ci DEFAULT 'none', `days_since_first_visit` smallint(6) unsigned DEFAULT '0', `days_since_last_ecommerce_order` int(10) unsigned DEFAULT '0', `visit_duration` int(10) unsigned DEFAULT '0', `searches` int(10) unsigned DEFAULT '0', `actions` int(10) unsigned DEFAULT '0', `referrer_type` enum('search','direct','website','campaign') COLLATE utf8_unicode_ci DEFAULT 'search', `referrer_type_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `referrer_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `referrer_keyword` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `referrer_keyword_position` int(10) unsigned DEFAULT '0', `referrer_url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `referrer_search_engine_url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `language_code` char(5) COLLATE utf8_unicode_ci DEFAULT NULL, `device_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `device_brand` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `device_model` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `operating_system` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `operating_system_name` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `operating_system_code` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `operating_system_version` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `browser_family` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, `browser_family_description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `browser` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `browser_name` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `browser_code` char(2) COLLATE utf8_unicode_ci DEFAULT NULL, `browser_version` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, `events` int(10) unsigned DEFAULT '0', `continent_code` char(3) COLLATE utf8_unicode_ci DEFAULT NULL, `country_code` char(2) COLLATE utf8_unicode_ci DEFAULT NULL, `region` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `location` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `latitude` decimal(10,8) DEFAULT NULL, `longitude` decimal(11,8) DEFAULT NULL, `server_timestamp` datetime DEFAULT NULL, `resolution` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `lead_id` int(10) unsigned NOT NULL, `days_since_last_visit` smallint(6) unsigned DEFAULT '0', `action_log_id` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `action_log_id` (`action_log_id`), KEY `lead_id` (`lead_id`), CONSTRAINT `plugin_leads_ip_user_profile_log_ibfk_1` FOREIGN KEY (`lead_id`) REFERENCES `plugin_leads_data` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_ip_user_profile_log` -- LOCK TABLES `plugin_leads_ip_user_profile_log` WRITE; /*!40000 ALTER TABLE `plugin_leads_ip_user_profile_log` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_ip_user_profile_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_ip_user_profile_log_actions_details` -- DROP TABLE IF EXISTS `plugin_leads_ip_user_profile_log_actions_details`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_ip_user_profile_log_actions_details` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `domain_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `page_url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `page_title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `time_spent` int(10) unsigned DEFAULT NULL, `page_generation_time` decimal(10,2) DEFAULT '0.00', `page_id_action` int(10) unsigned DEFAULT '0', `user_profile_log_id` int(10) unsigned NOT NULL, `action_datetime` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `user_profile_log_id` (`user_profile_log_id`), CONSTRAINT `plugin_leads_ip_user_profile_log_actions_details_ibfk_1` FOREIGN KEY (`user_profile_log_id`) REFERENCES `plugin_leads_ip_user_profile_log` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_ip_user_profile_log_actions_details` -- LOCK TABLES `plugin_leads_ip_user_profile_log_actions_details` WRITE; /*!40000 ALTER TABLE `plugin_leads_ip_user_profile_log_actions_details` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_ip_user_profile_log_actions_details` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_ips` -- DROP TABLE IF EXISTS `plugin_leads_ips`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_ips` ( `lead_id` int(10) unsigned NOT NULL, `lead_ip_address` varchar(45) COLLATE utf8_unicode_ci NOT NULL, `ip_quantity` int(10) unsigned NOT NULL, PRIMARY KEY (`lead_id`,`lead_ip_address`), CONSTRAINT `plugin_leads_ips_ibfk_1` FOREIGN KEY (`lead_id`) REFERENCES `plugin_leads_data` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_ips` -- LOCK TABLES `plugin_leads_ips` WRITE; /*!40000 ALTER TABLE `plugin_leads_ips` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_ips` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_last_viewed` -- DROP TABLE IF EXISTS `plugin_leads_last_viewed`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_last_viewed` ( `id` int(10) unsigned NOT NULL, `lead_type` enum('lead','organization') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'lead', `user_id` int(10) unsigned NOT NULL, `viewed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`,`lead_type`,`user_id`,`viewed_at`), KEY `user_id` (`user_id`), CONSTRAINT `plugin_leads_last_viewed_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_last_viewed` -- LOCK TABLES `plugin_leads_last_viewed` WRITE; /*!40000 ALTER TABLE `plugin_leads_last_viewed` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_last_viewed` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_lead_custom_params_config` -- DROP TABLE IF EXISTS `plugin_leads_lead_custom_params_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_lead_custom_params_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `param_type` enum('text','date','input','checkbox','select','radio') COLLATE utf8_unicode_ci DEFAULT 'input', `param_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `param_type` (`param_type`,`param_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_lead_custom_params_config` -- LOCK TABLES `plugin_leads_lead_custom_params_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_lead_custom_params_config` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_lead_custom_params_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_lead_custom_params_data` -- DROP TABLE IF EXISTS `plugin_leads_lead_custom_params_data`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_lead_custom_params_data` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `param_id` int(10) unsigned NOT NULL, `lead_id` int(10) unsigned NOT NULL, `param_value` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `params_option_id` int(10) DEFAULT NULL, PRIMARY KEY (`id`), KEY `param_id` (`param_id`), KEY `lead_id` (`lead_id`), KEY `param_value` (`param_value`), CONSTRAINT `plugin_leads_lead_custom_params_data_ibfk_1` FOREIGN KEY (`param_id`) REFERENCES `plugin_leads_lead_custom_params_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_lead_custom_params_data_ibfk_2` FOREIGN KEY (`lead_id`) REFERENCES `plugin_leads_data` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_lead_custom_params_data` -- LOCK TABLES `plugin_leads_lead_custom_params_data` WRITE; /*!40000 ALTER TABLE `plugin_leads_lead_custom_params_data` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_lead_custom_params_data` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_lead_custom_params_options_data` -- DROP TABLE IF EXISTS `plugin_leads_lead_custom_params_options_data`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_lead_custom_params_options_data` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `custom_param_id` int(10) unsigned NOT NULL, `option_value` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `fk_plugin_leads_lead_custom_params_options_data_plugin_lead_idx` (`custom_param_id`), CONSTRAINT `fk_plugin_leads_lead_custom_params_options_data_plugin_leads_1` FOREIGN KEY (`custom_param_id`) REFERENCES `plugin_leads_lead_custom_params_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_lead_custom_params_options_data` -- LOCK TABLES `plugin_leads_lead_custom_params_options_data` WRITE; /*!40000 ALTER TABLE `plugin_leads_lead_custom_params_options_data` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_lead_custom_params_options_data` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_mass_actions_queue` -- DROP TABLE IF EXISTS `plugin_leads_mass_actions_queue`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_mass_actions_queue` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `creator_id` int(10) unsigned DEFAULT NULL, `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Name of mass action', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Record added to queue date', `process_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'To process item', `processed_at` timestamp NULL DEFAULT NULL COMMENT 'Processed at item', `delayed_to` timestamp NULL DEFAULT NULL COMMENT 'Delayed to item', `lead_ids` mediumtext COLLATE utf8_unicode_ci, `status` enum('new','processing','delayed','processed','error') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'new', `processed_leads` int(10) unsigned DEFAULT NULL, `not_processed_leads` int(10) unsigned DEFAULT NULL, `additional_data` text COLLATE utf8_unicode_ci, `error_info` text COLLATE utf8_unicode_ci, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_mass_actions_queue` -- LOCK TABLES `plugin_leads_mass_actions_queue` WRITE; /*!40000 ALTER TABLE `plugin_leads_mass_actions_queue` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_mass_actions_queue` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_meeting` -- DROP TABLE IF EXISTS `plugin_leads_meeting`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_meeting` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `lead_id` int(10) unsigned NOT NULL, `start_time_date` timestamp NULL DEFAULT NULL, `end_time_date` timestamp NULL DEFAULT NULL, `location` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `invite_attendees` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `period` enum('all_day','fixed') COLLATE utf8_unicode_ci DEFAULT 'fixed', `subject` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `details` text COLLATE utf8_unicode_ci, `google_calendar` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `creator_id` int(10) unsigned NOT NULL, `first_notification_is_sent` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `second_notification_is_sent` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `send_notification_sms` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `send_sms` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `first_notification_date` timestamp NULL DEFAULT NULL, `second_notification_date` timestamp NULL DEFAULT NULL, `first_notification_sent_date` timestamp NULL DEFAULT NULL, `second_notification_sent_date` timestamp NULL DEFAULT NULL, `meeting_type` enum('auto','manual') COLLATE utf8_unicode_ci DEFAULT 'auto', `additional_notes` text COLLATE utf8_unicode_ci, `status` enum('no_show','rescheduled','completed') COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `lead_id` (`lead_id`), CONSTRAINT `plugin_leads_meeting_ibfk_1` FOREIGN KEY (`lead_id`) REFERENCES `plugin_leads_data` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_meeting` -- LOCK TABLES `plugin_leads_meeting` WRITE; /*!40000 ALTER TABLE `plugin_leads_meeting` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_meeting` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_meeting_log` -- DROP TABLE IF EXISTS `plugin_leads_meeting_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_meeting_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `start_time_date` timestamp NULL DEFAULT NULL, `end_time_date` timestamp NULL DEFAULT NULL, `location` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `invite_attendees` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `period` enum('all_day','fixed') COLLATE utf8_unicode_ci DEFAULT 'fixed', `subject` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `details` text COLLATE utf8_unicode_ci, `google_calendar` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `action_log_id` int(10) unsigned NOT NULL, `meeting_status` enum('created','finished','upcoming') COLLATE utf8_unicode_ci DEFAULT 'created', `meeting_id` int(10) unsigned NOT NULL, `creator_id` int(10) unsigned NOT NULL, `lead_id` int(10) unsigned NOT NULL, `additional_content` text COLLATE utf8_unicode_ci, PRIMARY KEY (`id`), KEY `action_log_id` (`action_log_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_meeting_log` -- LOCK TABLES `plugin_leads_meeting_log` WRITE; /*!40000 ALTER TABLE `plugin_leads_meeting_log` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_meeting_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_mobile_app_config` -- DROP TABLE IF EXISTS `plugin_leads_mobile_app_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_mobile_app_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned DEFAULT NULL, `login` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `status` enum('enabled','disabled') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'enabled', `social_app_status` enum('enabled','disabled') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'enabled', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), UNIQUE KEY `login` (`login`), KEY `user_id` (`user_id`), CONSTRAINT `plugin_leads_mobile_app_config_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_mobile_app_config` -- LOCK TABLES `plugin_leads_mobile_app_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_mobile_app_config` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_mobile_app_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_notes` -- DROP TABLE IF EXISTS `plugin_leads_notes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_notes` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `note` text COLLATE utf8_unicode_ci, `lead_id` int(10) unsigned NOT NULL, `date_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `user_id` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `lead_id` (`lead_id`), CONSTRAINT `plugin_leads_notes_ibfk_1` FOREIGN KEY (`lead_id`) REFERENCES `plugin_leads_data` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_notes` -- LOCK TABLES `plugin_leads_notes` WRITE; /*!40000 ALTER TABLE `plugin_leads_notes` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_notes` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_oauth2_apps_config` -- DROP TABLE IF EXISTS `plugin_leads_oauth2_apps_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_oauth2_apps_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `service_app_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `client_secret` text COLLATE utf8_unicode_ci, `client_id` text COLLATE utf8_unicode_ci, `is_imap` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `is_system` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `service_app_name` (`service_app_name`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_oauth2_apps_config` -- LOCK TABLES `plugin_leads_oauth2_apps_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_oauth2_apps_config` DISABLE KEYS */; INSERT INTO `plugin_leads_oauth2_apps_config` VALUES (1,'outlook','','','1','1'),(2,'gmail','','','1','1'); /*!40000 ALTER TABLE `plugin_leads_oauth2_apps_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_opportunity` -- DROP TABLE IF EXISTS `plugin_leads_opportunity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_opportunity` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `opportunity_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `opportunity_stage_id` int(10) unsigned NOT NULL, `opportunity_value` decimal(10,2) DEFAULT NULL, `expected_close_date` timestamp NULL DEFAULT NULL, `creator_id` int(10) unsigned DEFAULT NULL, `lead_id` int(10) unsigned NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `change_stage_date` timestamp NULL DEFAULT NULL, `opportunity_type_id` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `opportunity_name` (`opportunity_name`,`opportunity_stage_id`,`lead_id`), KEY `opportunity_stage_id` (`opportunity_stage_id`), KEY `creator_id` (`creator_id`), KEY `lead_id` (`lead_id`), CONSTRAINT `plugin_leads_opportunity_ibfk_1` FOREIGN KEY (`opportunity_stage_id`) REFERENCES `plugin_leads_opportunity_stage` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_opportunity_ibfk_2` FOREIGN KEY (`creator_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_opportunity_ibfk_3` FOREIGN KEY (`lead_id`) REFERENCES `plugin_leads_data` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_opportunity` -- LOCK TABLES `plugin_leads_opportunity` WRITE; /*!40000 ALTER TABLE `plugin_leads_opportunity` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_opportunity` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_opportunity_quote` -- DROP TABLE IF EXISTS `plugin_leads_opportunity_quote`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_opportunity_quote` ( `quote_id` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `opportunity_id` int(10) unsigned NOT NULL, `lead_id` int(10) unsigned NOT NULL, `cart_id` int(10) unsigned NOT NULL, `created_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`quote_id`,`opportunity_id`), KEY `lead_id` (`lead_id`), KEY `opportunity_id` (`opportunity_id`), CONSTRAINT `plugin_leads_opportunity_quote_ibfk_1` FOREIGN KEY (`lead_id`) REFERENCES `plugin_leads_data` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_opportunity_quote_ibfk_2` FOREIGN KEY (`quote_id`) REFERENCES `shopping_quote` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_opportunity_quote_ibfk_3` FOREIGN KEY (`opportunity_id`) REFERENCES `plugin_leads_opportunity` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_opportunity_quote` -- LOCK TABLES `plugin_leads_opportunity_quote` WRITE; /*!40000 ALTER TABLE `plugin_leads_opportunity_quote` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_opportunity_quote` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_opportunity_stage` -- DROP TABLE IF EXISTS `plugin_leads_opportunity_stage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_opportunity_stage` ( `id` int(10) unsigned NOT NULL, `description` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `default` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_opportunity_stage` -- LOCK TABLES `plugin_leads_opportunity_stage` WRITE; /*!40000 ALTER TABLE `plugin_leads_opportunity_stage` DISABLE KEYS */; INSERT INTO `plugin_leads_opportunity_stage` VALUES (1,'Lost','0'),(10,'Unqualified','0'),(20,'Needs assessment','0'),(30,'Qualified','0'),(40,'Meeting set','0'),(50,'Meeting held','0'),(60,'Proposal sent','0'),(70,'Proposal acknowledged','0'),(80,'Objections raised','0'),(90,'Objections overcame','0'),(100,'Won','0'); /*!40000 ALTER TABLE `plugin_leads_opportunity_stage` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_opportunity_type` -- DROP TABLE IF EXISTS `plugin_leads_opportunity_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_opportunity_type` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `type_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `type_label` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_opportunity_type` -- LOCK TABLES `plugin_leads_opportunity_type` WRITE; /*!40000 ALTER TABLE `plugin_leads_opportunity_type` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_opportunity_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_organization_custom_params_config` -- DROP TABLE IF EXISTS `plugin_leads_organization_custom_params_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_organization_custom_params_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `param_type` enum('text','date','input','checkbox','select','radio') COLLATE utf8_unicode_ci DEFAULT 'input', `param_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `param_type` (`param_type`,`param_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_organization_custom_params_config` -- LOCK TABLES `plugin_leads_organization_custom_params_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_organization_custom_params_config` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_organization_custom_params_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_organization_custom_params_data` -- DROP TABLE IF EXISTS `plugin_leads_organization_custom_params_data`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_organization_custom_params_data` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `param_id` int(10) unsigned NOT NULL, `organization_id` int(10) unsigned NOT NULL, `param_value` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `params_option_id` int(10) DEFAULT NULL, PRIMARY KEY (`id`), KEY `param_id` (`param_id`), KEY `organization_id` (`organization_id`), CONSTRAINT `plugin_leads_organization_custom_params_data_ibfk_1` FOREIGN KEY (`param_id`) REFERENCES `plugin_leads_organization_custom_params_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_organization_custom_params_data_ibfk_2` FOREIGN KEY (`organization_id`) REFERENCES `plugin_lead_organization` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_organization_custom_params_data` -- LOCK TABLES `plugin_leads_organization_custom_params_data` WRITE; /*!40000 ALTER TABLE `plugin_leads_organization_custom_params_data` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_organization_custom_params_data` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_organization_custom_params_options_data` -- DROP TABLE IF EXISTS `plugin_leads_organization_custom_params_options_data`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_organization_custom_params_options_data` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `custom_param_id` int(10) unsigned NOT NULL, `option_value` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `fk_plugin_leads_organ_custom_params_options_data_plugin_lead_idx` (`custom_param_id`), CONSTRAINT `fk_plugin_leads_organ_custom_params_options_data_plugin_leads_1` FOREIGN KEY (`custom_param_id`) REFERENCES `plugin_leads_organization_custom_params_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_organization_custom_params_options_data` -- LOCK TABLES `plugin_leads_organization_custom_params_options_data` WRITE; /*!40000 ALTER TABLE `plugin_leads_organization_custom_params_options_data` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_organization_custom_params_options_data` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_organization_documents` -- DROP TABLE IF EXISTS `plugin_leads_organization_documents`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_organization_documents` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `organization_id` int(10) unsigned NOT NULL, `file_stored_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Stored file name', `file_hash` char(40) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Hash for download link', `original_file_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Original file name', `display_file_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Display file name', `uploaded_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Upload date', PRIMARY KEY (`id`), UNIQUE KEY `file_hash` (`file_hash`), KEY `organization_id` (`organization_id`), CONSTRAINT `plugin_leads_organization_documents_ibfk_1` FOREIGN KEY (`organization_id`) REFERENCES `plugin_lead_organization` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_organization_documents` -- LOCK TABLES `plugin_leads_organization_documents` WRITE; /*!40000 ALTER TABLE `plugin_leads_organization_documents` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_organization_documents` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_organize_custom_fields_config` -- DROP TABLE IF EXISTS `plugin_leads_organize_custom_fields_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_organize_custom_fields_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `draggable_params_ids` text COLLATE utf8_unicode_ci COMMENT 'Draggable custom params ids', PRIMARY KEY (`id`), UNIQUE KEY `type` (`type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_organize_custom_fields_config` -- LOCK TABLES `plugin_leads_organize_custom_fields_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_organize_custom_fields_config` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_organize_custom_fields_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_owner_goals` -- DROP TABLE IF EXISTS `plugin_leads_owner_goals`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_owner_goals` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL, `quote_objective` int(10) unsigned NOT NULL, `quotes_amount` int(10) unsigned NOT NULL, `meetings_held` int(10) unsigned NOT NULL, `calls_placed` int(10) unsigned NOT NULL, `emails_sent` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `user_id` (`user_id`), CONSTRAINT `plugin_leads_owner_goals_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_owner_goals` -- LOCK TABLES `plugin_leads_owner_goals` WRITE; /*!40000 ALTER TABLE `plugin_leads_owner_goals` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_owner_goals` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_owner_goals_opportunities` -- DROP TABLE IF EXISTS `plugin_leads_owner_goals_opportunities`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_owner_goals_opportunities` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `owner_goals_id` int(10) unsigned NOT NULL, `opportunity_amount` int(10) unsigned NOT NULL, `opportunity_count` int(10) unsigned NOT NULL, `opportunity_type_id` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `owner_goals_id` (`owner_goals_id`), KEY `opportunity_type_id` (`opportunity_type_id`), CONSTRAINT `plugin_leads_owner_goals_opportunities_ibfk_1` FOREIGN KEY (`owner_goals_id`) REFERENCES `plugin_leads_owner_goals` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_owner_goals_opportunities_ibfk_2` FOREIGN KEY (`opportunity_type_id`) REFERENCES `plugin_leads_opportunity_type` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_owner_goals_opportunities` -- LOCK TABLES `plugin_leads_owner_goals_opportunities` WRITE; /*!40000 ALTER TABLE `plugin_leads_owner_goals_opportunities` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_owner_goals_opportunities` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_products` -- DROP TABLE IF EXISTS `plugin_leads_products`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_products` ( `lead_id` int(10) unsigned NOT NULL, `product_id` int(10) unsigned NOT NULL, PRIMARY KEY (`lead_id`,`product_id`), KEY `product_id` (`product_id`), CONSTRAINT `plugin_leads_products_ibfk_1` FOREIGN KEY (`lead_id`) REFERENCES `plugin_leads_data` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_products_ibfk_2` FOREIGN KEY (`product_id`) REFERENCES `shopping_product` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_products` -- LOCK TABLES `plugin_leads_products` WRITE; /*!40000 ALTER TABLE `plugin_leads_products` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_products` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_purchase_log` -- DROP TABLE IF EXISTS `plugin_leads_purchase_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_purchase_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `cart_id` int(10) unsigned NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `action_log_id` int(10) unsigned NOT NULL, `lead_id` int(10) unsigned NOT NULL, `status` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `total` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'Sub Total + Total Tax + Shipping', `is_partial` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `is_manually_paid` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `partially_paid_amount` decimal(10,2) NOT NULL DEFAULT '0.00', `signed_only_by` int(10) unsigned DEFAULT '0', `gateway` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `action_log_id` (`action_log_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_purchase_log` -- LOCK TABLES `plugin_leads_purchase_log` WRITE; /*!40000 ALTER TABLE `plugin_leads_purchase_log` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_purchase_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_quote_log` -- DROP TABLE IF EXISTS `plugin_leads_quote_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_quote_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `quote_id` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `status` enum('new','sent','sold','lost','deleted','signature_only_signed') COLLATE utf8_unicode_ci DEFAULT 'new', `created_at` timestamp NULL DEFAULT NULL, `action_log_id` int(10) unsigned NOT NULL, `creator_id` int(10) unsigned DEFAULT NULL, `quote_link` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `quote_action_type` enum('view','change','deleted') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'change', `lead_id` int(10) unsigned NOT NULL, `quote_sent` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', `total` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'Sub Total + Total Tax + Shipping', `is_deleted` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `deleted_by` int(10) unsigned DEFAULT NULL, `force_display` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `signed_only_by` int(10) unsigned DEFAULT '0', PRIMARY KEY (`id`), KEY `action_log_id` (`action_log_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_quote_log` -- LOCK TABLES `plugin_leads_quote_log` WRITE; /*!40000 ALTER TABLE `plugin_leads_quote_log` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_quote_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_registration_log` -- DROP TABLE IF EXISTS `plugin_leads_registration_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_registration_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `first_name` text COLLATE utf8_unicode_ci, `last_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `mobile` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `action_log_id` int(10) unsigned NOT NULL, `lead_id` int(10) unsigned NOT NULL, `user_role` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL, `user_id` int(10) unsigned DEFAULT NULL, `registration_page_url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `registration_page_id` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `action_log_id` (`action_log_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_registration_log` -- LOCK TABLES `plugin_leads_registration_log` WRITE; /*!40000 ALTER TABLE `plugin_leads_registration_log` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_registration_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_remarketing_audiences` -- DROP TABLE IF EXISTS `plugin_leads_remarketing_audiences`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_remarketing_audiences` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `type` enum('facebook','adwords') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'facebook', `action` enum('add','remove') COLLATE utf8_unicode_ci DEFAULT 'add', `audience_id` text COLLATE utf8_unicode_ci NOT NULL, `list_content` longtext COLLATE utf8_unicode_ci, `additional_info` text COLLATE utf8_unicode_ci, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_remarketing_audiences` -- LOCK TABLES `plugin_leads_remarketing_audiences` WRITE; /*!40000 ALTER TABLE `plugin_leads_remarketing_audiences` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_remarketing_audiences` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_review_request` -- DROP TABLE IF EXISTS `plugin_leads_review_request`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_review_request` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `review_token` char(40) COLLATE utf8_unicode_ci NOT NULL, `lead_id` int(10) unsigned NOT NULL, `status` enum('sent','reviewed') COLLATE utf8_unicode_ci DEFAULT 'sent', `review_status` enum('sent','reviewed') COLLATE utf8_unicode_ci DEFAULT NULL, `score` tinyint(4) NOT NULL DEFAULT '0', `sent_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `reviewed_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `review_request_sent_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `request_reviewed_facebook_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `request_reviewed_gmb_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), UNIQUE KEY `review_token` (`review_token`), KEY `pllr_special_index` (`lead_id`,`score`,`reviewed_at`,`sent_at`,`status`,`review_request_sent_at`,`request_reviewed_facebook_date`,`request_reviewed_gmb_date`,`review_status`), CONSTRAINT `plugin_leads_review_request_ibfk_1` FOREIGN KEY (`lead_id`) REFERENCES `plugin_leads_data` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_review_request` -- LOCK TABLES `plugin_leads_review_request` WRITE; /*!40000 ALTER TABLE `plugin_leads_review_request` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_review_request` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_score_rules_config` -- DROP TABLE IF EXISTS `plugin_leads_score_rules_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_score_rules_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `rule_id` int(10) unsigned NOT NULL, `rule_type` enum('lead_attribute','organization_attribute','action_type','lead_opportunities','lead_custom_attributes','organization_custom_attributes','form_name') COLLATE utf8_unicode_ci DEFAULT 'lead_attribute', `rule_subtype` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `field_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `rule_comparison_operator` enum('equal','notequal','like','in','greaterthan','lessthan','notin') COLLATE utf8_unicode_ci DEFAULT 'equal', `field_value` mediumtext COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `rule_id` (`rule_id`), CONSTRAINT `plugin_leads_score_rules_config_ibfk_1` FOREIGN KEY (`rule_id`) REFERENCES `plugin_leads_score_rules_general_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_score_rules_config` -- LOCK TABLES `plugin_leads_score_rules_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_score_rules_config` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_score_rules_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_score_rules_general_config` -- DROP TABLE IF EXISTS `plugin_leads_score_rules_general_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_score_rules_general_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `rule_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `creator_id` int(10) unsigned DEFAULT NULL, `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `editor_id` int(10) unsigned DEFAULT NULL, `score` int(10) unsigned NOT NULL, `score_sign` enum('+','-') COLLATE utf8_unicode_ci DEFAULT '+', PRIMARY KEY (`id`), UNIQUE KEY `rule_name` (`rule_name`), KEY `creator_id` (`creator_id`), KEY `editor_id` (`editor_id`), CONSTRAINT `plugin_leads_score_rules_general_config_ibfk_1` FOREIGN KEY (`creator_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_score_rules_general_config_ibfk_2` FOREIGN KEY (`editor_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_score_rules_general_config` -- LOCK TABLES `plugin_leads_score_rules_general_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_score_rules_general_config` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_score_rules_general_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_score_rules_log` -- DROP TABLE IF EXISTS `plugin_leads_score_rules_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_score_rules_log` ( `lead_id` int(10) unsigned NOT NULL, `rule_id` int(10) unsigned NOT NULL, PRIMARY KEY (`lead_id`,`rule_id`), CONSTRAINT `plugin_leads_score_rules_log_ibfk_1` FOREIGN KEY (`lead_id`) REFERENCES `plugin_leads_data` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_score_rules_log` -- LOCK TABLES `plugin_leads_score_rules_log` WRITE; /*!40000 ALTER TABLE `plugin_leads_score_rules_log` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_score_rules_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_social_services_config` -- DROP TABLE IF EXISTS `plugin_leads_social_services_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_social_services_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `service_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `service_label` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `image_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `service_name` (`service_name`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_social_services_config` -- LOCK TABLES `plugin_leads_social_services_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_social_services_config` DISABLE KEYS */; INSERT INTO `plugin_leads_social_services_config` VALUES (1,'X','X','icon-twitter.png'),(2,'linkedin','linkedin','icon-linkedin.png'),(3,'facebook','facebook','icon-facebook.png'),(4,'instagram','instagram','icon-instagram.png'),(5,'gmb','google my business','icon-gmb.png'),(6,'pinterest','pinterest','pinterest.png'); /*!40000 ALTER TABLE `plugin_leads_social_services_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_source` -- DROP TABLE IF EXISTS `plugin_leads_source`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_source` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `source_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `system` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_source` -- LOCK TABLES `plugin_leads_source` WRITE; /*!40000 ALTER TABLE `plugin_leads_source` DISABLE KEYS */; INSERT INTO `plugin_leads_source` VALUES (1,'Referrer','1'),(2,'Marketing asset','1'),(3,'Ad campaign','1'); /*!40000 ALTER TABLE `plugin_leads_source` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_stage` -- DROP TABLE IF EXISTS `plugin_leads_stage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_stage` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `stage_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `default` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_stage` -- LOCK TABLES `plugin_leads_stage` WRITE; /*!40000 ALTER TABLE `plugin_leads_stage` DISABLE KEYS */; INSERT INTO `plugin_leads_stage` VALUES (1,'qualification','0'),(2,'quote sent','0'),(3,'closed won','0'),(4,'closed lost','0'),(5,'1. Subscriber','0'),(6,'2. Lead','0'),(7,'3. Marketing qualified lead','0'),(8,'4. Sales qualified lead','0'),(9,'5. Opportunity','0'),(10,'6. Customer','0'),(11,'7. Evangelist','0'),(12,'8. Other','0'); /*!40000 ALTER TABLE `plugin_leads_stage` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_table_columns_order` -- DROP TABLE IF EXISTS `plugin_leads_table_columns_order`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_table_columns_order` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `table_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `preset_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `is_default` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `fields_data` text COLLATE utf8_unicode_ci, `user_id` int(10) unsigned DEFAULT NULL, `apply_to_all` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_table_columns_order` -- LOCK TABLES `plugin_leads_table_columns_order` WRITE; /*!40000 ALTER TABLE `plugin_leads_table_columns_order` DISABLE KEYS */; INSERT INTO `plugin_leads_table_columns_order` VALUES (1,'dashboard_latest_leads','corporate','0','[\"placeholder\",\"id\",\"name\",\"organization\",\"leadEmail\",\"leadPhone\",\"leadCreatedAt\",\"leadType\",\"leadOwner\",\"actions\"]',NULL,'1','2022-01-27 11:29:02'),(2,'dashboard_engaged_leads','corporate','0','[\"placeholder\",\"id\",\"score\",\"name\",\"organization\",\"leadEmail\",\"leadPhone\",\"totalOppsAmount\",\"leadLastActivity\",\"engagedLifecycle\",\"actions\"]',NULL,'1','2022-01-27 11:29:02'); /*!40000 ALTER TABLE `plugin_leads_table_columns_order` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_tags` -- DROP TABLE IF EXISTS `plugin_leads_tags`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_tags` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `tag_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_tags` -- LOCK TABLES `plugin_leads_tags` WRITE; /*!40000 ALTER TABLE `plugin_leads_tags` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_tags` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_tasks` -- DROP TABLE IF EXISTS `plugin_leads_tasks`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_tasks` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `user_id` int(10) unsigned NOT NULL, `creator_id` int(10) unsigned NOT NULL, `expired_at` timestamp NULL DEFAULT NULL, `due_date` timestamp NULL DEFAULT NULL, `notes` text COLLATE utf8_unicode_ci, `lead_id` int(10) unsigned NOT NULL, `creation_type` enum('local','import','user') COLLATE utf8_unicode_ci DEFAULT 'local', `task_external_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, `is_task_completed` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `is_task_overdue` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `is_task_start_email_sent` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `task_completed_by` int(10) unsigned DEFAULT NULL, `completion_comment` text COLLATE utf8_unicode_ci, PRIMARY KEY (`id`), KEY `fk_plugin_leads_tasks_user_id` (`user_id`), KEY `fk_plugin_leads_tasks_creator_id` (`creator_id`), KEY `fk_plugin_leads_tasks_lead_id` (`lead_id`), CONSTRAINT `fk_plugin_leads_tasks_creator_id` FOREIGN KEY (`creator_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `fk_plugin_leads_tasks_lead_id` FOREIGN KEY (`lead_id`) REFERENCES `plugin_leads_data` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `fk_plugin_leads_tasks_user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_tasks` -- LOCK TABLES `plugin_leads_tasks` WRITE; /*!40000 ALTER TABLE `plugin_leads_tasks` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_tasks` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_tasks_log` -- DROP TABLE IF EXISTS `plugin_leads_tasks_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_tasks_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `user_id` int(10) unsigned NOT NULL, `creator_id` int(10) unsigned NOT NULL, `expired_at` timestamp NULL DEFAULT NULL, `due_date` timestamp NULL DEFAULT NULL, `notes` text COLLATE utf8_unicode_ci, `action_log_id` int(10) unsigned NOT NULL, `task_id` int(10) unsigned NOT NULL, `lead_id` int(10) unsigned NOT NULL, `is_task_completed` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `is_task_overdue` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `task_completed_by` int(10) unsigned DEFAULT NULL, `completion_comment` text COLLATE utf8_unicode_ci, PRIMARY KEY (`id`), KEY `action_log_id` (`action_log_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_tasks_log` -- LOCK TABLES `plugin_leads_tasks_log` WRITE; /*!40000 ALTER TABLE `plugin_leads_tasks_log` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_tasks_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_tasks_presets` -- DROP TABLE IF EXISTS `plugin_leads_tasks_presets`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_tasks_presets` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `preset_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Preset name', `task_title` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Task title', `task_note` text COLLATE utf8_unicode_ci COMMENT 'Task notes', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `creator_id` int(10) unsigned DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `editor_id` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `creator_id` (`creator_id`), KEY `editor_id` (`editor_id`), CONSTRAINT `plugin_leads_tasks_presets_ibfk_1` FOREIGN KEY (`creator_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_tasks_presets_ibfk_2` FOREIGN KEY (`editor_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_tasks_presets` -- LOCK TABLES `plugin_leads_tasks_presets` WRITE; /*!40000 ALTER TABLE `plugin_leads_tasks_presets` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_tasks_presets` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_tasks_queue` -- DROP TABLE IF EXISTS `plugin_leads_tasks_queue`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_tasks_queue` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `task_id` int(10) unsigned NOT NULL, `to_send_date` timestamp NULL DEFAULT NULL, `sent_date` timestamp NULL DEFAULT NULL, `status` enum('processing','sent','error') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'processing', `queue_type` enum('first_task_reminder','second_task_reminder','custom') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'custom', PRIMARY KEY (`id`), KEY `task_id` (`task_id`), CONSTRAINT `plugin_leads_tasks_queue_ibfk_1` FOREIGN KEY (`task_id`) REFERENCES `plugin_leads_tasks` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_tasks_queue` -- LOCK TABLES `plugin_leads_tasks_queue` WRITE; /*!40000 ALTER TABLE `plugin_leads_tasks_queue` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_tasks_queue` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_templates_and_directories_config` -- DROP TABLE IF EXISTS `plugin_leads_templates_and_directories_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_templates_and_directories_config` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(45) COLLATE utf8_unicode_ci NOT NULL, `item_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_templates_and_directories_config` -- LOCK TABLES `plugin_leads_templates_and_directories_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_templates_and_directories_config` DISABLE KEYS */; INSERT INTO `plugin_leads_templates_and_directories_config` VALUES (8,'template','CRM - Cold email'),(9,'template','CRM - Follow up email'),(10,'template','CRM - Intro email'),(11,'template','CRM - Materials after contact'),(12,'template','CRM - Opening channels back up'),(13,'template','email - user'),(14,'template','CRM subscription'); /*!40000 ALTER TABLE `plugin_leads_templates_and_directories_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_type` -- DROP TABLE IF EXISTS `plugin_leads_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_type` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `type_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `type_label` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `system` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', `default` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_type` -- LOCK TABLES `plugin_leads_type` WRITE; /*!40000 ALTER TABLE `plugin_leads_type` DISABLE KEYS */; INSERT INTO `plugin_leads_type` VALUES (1,'inbound_email','Inbound email','1','0'),(2,'inbound_call','Inbound call','1','0'),(3,'inbound_quote','Inbound quote request','1','0'),(4,'inbound_purchase','Inbound purchase','1','0'),(5,'inbound_quote_view','Inbound quote view','1','0'),(6,'inbound_registration','Inbound registration','1','0'),(7,'inbound_form','Inbound form contact','1','0'),(8,'inbound_downloader','Inbound document download','1','0'),(9,'inbound_website_visit','Inbound website visit','1','0'),(10,'inbound_external','External resource','1','0'),(11,'outbound_email','Outbound email','1','0'),(12,'outbound_call','Outbound call','1','0'),(13,'outbound_quote','Outbound quote','1','0'),(14,'outbound_meeting','Outbound meeting','1','0'),(15,'outbound_task','Outbound task','1','0'),(16,'inbound_sms','Inbound sms','1','0'),(17,'outbound_sms','Outbound sms','1','0'),(18,'inbound_chat','Inbound chat','1','0'); /*!40000 ALTER TABLE `plugin_leads_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_users_api_access` -- DROP TABLE IF EXISTS `plugin_leads_users_api_access`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_users_api_access` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL, `ip_addresses` text COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`), CONSTRAINT `plugin_leads_users_api_access_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_users_api_access` -- LOCK TABLES `plugin_leads_users_api_access` WRITE; /*!40000 ALTER TABLE `plugin_leads_users_api_access` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_users_api_access` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_users_api_tokens` -- DROP TABLE IF EXISTS `plugin_leads_users_api_tokens`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_users_api_tokens` ( `api_user_id` int(10) unsigned NOT NULL, `token` char(255) COLLATE utf8_unicode_ci NOT NULL, `expiration_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `creation_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `ip_address` varchar(45) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`api_user_id`,`token`), UNIQUE KEY `token` (`token`), CONSTRAINT `plugin_leads_users_api_tokens_ibfk_1` FOREIGN KEY (`api_user_id`) REFERENCES `plugin_leads_users_api_access` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_users_api_tokens` -- LOCK TABLES `plugin_leads_users_api_tokens` WRITE; /*!40000 ALTER TABLE `plugin_leads_users_api_tokens` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_users_api_tokens` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_validate_emails_queue` -- DROP TABLE IF EXISTS `plugin_leads_validate_emails_queue`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_validate_emails_queue` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `creator_id` int(10) unsigned DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Record added to queue date', `process_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'To process item', `processed_at` timestamp NULL DEFAULT NULL COMMENT 'Processed at item', `delayed_to` timestamp NULL DEFAULT NULL COMMENT 'Delayed to item', `lead_ids` mediumtext COLLATE utf8_unicode_ci, `status` enum('new','processing','delayed','processed','error') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'new', `processed_leads` int(10) unsigned DEFAULT NULL, `not_processed_leads` int(10) unsigned DEFAULT NULL, `balance` int(10) unsigned DEFAULT NULL, `error_info` text COLLATE utf8_unicode_ci, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_validate_emails_queue` -- LOCK TABLES `plugin_leads_validate_emails_queue` WRITE; /*!40000 ALTER TABLE `plugin_leads_validate_emails_queue` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_validate_emails_queue` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_webhook_notifications` -- DROP TABLE IF EXISTS `plugin_leads_webhook_notifications`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_webhook_notifications` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `status` enum('scheduled','sent','failed') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'scheduled', `webhook_type` enum('lead','organization','order') COLLATE utf8_unicode_ci DEFAULT 'lead', `resource_id` int(10) unsigned NOT NULL, `webhook_action_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `additional_info` mediumtext COLLATE utf8_unicode_ci, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `sent_notifications_data` text COLLATE utf8_unicode_ci, `sent_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_webhook_notifications` -- LOCK TABLES `plugin_leads_webhook_notifications` WRITE; /*!40000 ALTER TABLE `plugin_leads_webhook_notifications` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_webhook_notifications` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_webhook_urls` -- DROP TABLE IF EXISTS `plugin_leads_webhook_urls`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_webhook_urls` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `webhook_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `webhook_type` enum('lead','organization','order') COLLATE utf8_unicode_ci DEFAULT 'lead', `webhook_action_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `action_url` text COLLATE utf8_unicode_ci, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `creator_id` int(10) unsigned DEFAULT NULL, `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `editor_id` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `creator_id` (`creator_id`), KEY `editor_id` (`editor_id`), CONSTRAINT `plugin_leads_webhook_urls_ibfk_1` FOREIGN KEY (`creator_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_webhook_urls_ibfk_2` FOREIGN KEY (`editor_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_webhook_urls` -- LOCK TABLES `plugin_leads_webhook_urls` WRITE; /*!40000 ALTER TABLE `plugin_leads_webhook_urls` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_webhook_urls` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_workflow_actions` -- DROP TABLE IF EXISTS `plugin_leads_workflow_actions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_workflow_actions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `rule_id` int(10) unsigned NOT NULL, `action_type` enum('assign_owner','assign_task','assign_tags','assign_lifecycle','assign_sequence','assign_email_list','assign_email_copy','send_review_request','assign_remarketing_list') COLLATE utf8_unicode_ci DEFAULT 'assign_owner', `action_config` text COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `rule_id` (`rule_id`,`action_type`), CONSTRAINT `plugin_leads_workflow_actions_ibfk_1` FOREIGN KEY (`rule_id`) REFERENCES `plugin_leads_workflow_general_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_workflow_actions` -- LOCK TABLES `plugin_leads_workflow_actions` WRITE; /*!40000 ALTER TABLE `plugin_leads_workflow_actions` DISABLE KEYS */; INSERT INTO `plugin_leads_workflow_actions` VALUES (1,1,'send_review_request','{\"sendReviewRequest\":\"1\"}'); /*!40000 ALTER TABLE `plugin_leads_workflow_actions` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_workflow_config` -- DROP TABLE IF EXISTS `plugin_leads_workflow_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_workflow_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `rule_id` int(10) unsigned NOT NULL, `rule_type` enum('lead_attribute','organization_attribute','action_type','lead_opportunities','lead_custom_attributes','organization_custom_attributes') COLLATE utf8_unicode_ci DEFAULT 'lead_attribute', `rule_subtype` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `field_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `rule_comparison_operator` enum('equal','notequal','like','in','greaterthan','lessthan','notin','datebefore','dateafter','dategreaterthan','datelessthan') COLLATE utf8_unicode_ci DEFAULT 'equal', `field_value` mediumtext COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `rule_id` (`rule_id`), CONSTRAINT `plugin_leads_workflow_config_ibfk_1` FOREIGN KEY (`rule_id`) REFERENCES `plugin_leads_workflow_general_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_workflow_config` -- LOCK TABLES `plugin_leads_workflow_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_workflow_config` DISABLE KEYS */; INSERT INTO `plugin_leads_workflow_config` VALUES (1,1,'lead_attribute','','nps_review_score','greaterthan','9'); /*!40000 ALTER TABLE `plugin_leads_workflow_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_workflow_general_config` -- DROP TABLE IF EXISTS `plugin_leads_workflow_general_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_workflow_general_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `rule_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `creator_id` int(10) unsigned DEFAULT NULL, `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `editor_id` int(10) unsigned DEFAULT NULL, `score` int(10) unsigned NOT NULL, `score_comparison_operator` enum('equal','greaterthan','lessthan') COLLATE utf8_unicode_ci DEFAULT 'equal', PRIMARY KEY (`id`), UNIQUE KEY `rule_name` (`rule_name`), KEY `creator_id` (`creator_id`), KEY `editor_id` (`editor_id`), CONSTRAINT `plugin_leads_workflow_general_config_ibfk_1` FOREIGN KEY (`creator_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION, CONSTRAINT `plugin_leads_workflow_general_config_ibfk_2` FOREIGN KEY (`editor_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_workflow_general_config` -- LOCK TABLES `plugin_leads_workflow_general_config` WRITE; /*!40000 ALTER TABLE `plugin_leads_workflow_general_config` DISABLE KEYS */; INSERT INTO `plugin_leads_workflow_general_config` VALUES (1,'Review request','2020-04-06 00:00:00',1,'2020-04-06 00:00:00',1,0,'equal'); /*!40000 ALTER TABLE `plugin_leads_workflow_general_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_leads_workflow_rules_log` -- DROP TABLE IF EXISTS `plugin_leads_workflow_rules_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_leads_workflow_rules_log` ( `lead_id` int(10) unsigned NOT NULL, `rule_id` int(10) unsigned NOT NULL, PRIMARY KEY (`lead_id`,`rule_id`), CONSTRAINT `plugin_leads_workflow_rules_log_ibfk_1` FOREIGN KEY (`lead_id`) REFERENCES `plugin_leads_data` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_leads_workflow_rules_log` -- LOCK TABLES `plugin_leads_workflow_rules_log` WRITE; /*!40000 ALTER TABLE `plugin_leads_workflow_rules_log` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_leads_workflow_rules_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_netcontent_widget` -- DROP TABLE IF EXISTS `plugin_netcontent_widget`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_netcontent_widget` ( `widget_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `content` text COLLATE utf8_unicode_ci, `publish` tinyint(1) DEFAULT NULL, `p2p` tinyint(1) NOT NULL DEFAULT '0', `modify_date` date DEFAULT NULL, PRIMARY KEY (`widget_name`,`p2p`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_netcontent_widget` -- LOCK TABLES `plugin_netcontent_widget` WRITE; /*!40000 ALTER TABLE `plugin_netcontent_widget` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_netcontent_widget` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_newslog_configuration` -- DROP TABLE IF EXISTS `plugin_newslog_configuration`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_newslog_configuration` ( `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `value` text COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_newslog_configuration` -- LOCK TABLES `plugin_newslog_configuration` WRITE; /*!40000 ALTER TABLE `plugin_newslog_configuration` DISABLE KEYS */; INSERT INTO `plugin_newslog_configuration` VALUES ('folder','news'); /*!40000 ALTER TABLE `plugin_newslog_configuration` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_newslog_events` -- DROP TABLE IF EXISTS `plugin_newslog_events`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_newslog_events` ( `id` int(10) NOT NULL AUTO_INCREMENT, `news_tag_id` int(10) NOT NULL, `archive_tag_id` int(10) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_newslog_events` -- LOCK TABLES `plugin_newslog_events` WRITE; /*!40000 ALTER TABLE `plugin_newslog_events` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_newslog_events` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_newslog_news` -- DROP TABLE IF EXISTS `plugin_newslog_news`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_newslog_news` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `page_id` int(10) unsigned DEFAULT NULL, `metaData` text COLLATE utf8_unicode_ci NOT NULL, `title` tinytext COLLATE utf8_unicode_ci NOT NULL, `teaser` text COLLATE utf8_unicode_ci, `content` longtext COLLATE utf8_unicode_ci, `broadcast` tinyint(1) NOT NULL DEFAULT '0', `published` tinyint(1) NOT NULL DEFAULT '0', `featured` tinyint(1) NOT NULL DEFAULT '0', `archived` tinyint(1) NOT NULL DEFAULT '0', `type` enum('internal','external') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'internal', `event` int(10) unsigned NOT NULL DEFAULT '0', `event_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `event_location` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `external_id` int(10) unsigned DEFAULT NULL, `user_id` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `page_id` (`page_id`), KEY `type` (`type`), KEY `external_id` (`external_id`), KEY `index_created_ad` (`created_at`), KEY `index_id_created_at` (`id`,`created_at`), CONSTRAINT `plugin_newslog_news_ibfk_1` FOREIGN KEY (`page_id`) REFERENCES `page` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Local author id'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_newslog_news` -- LOCK TABLES `plugin_newslog_news` WRITE; /*!40000 ALTER TABLE `plugin_newslog_news` DISABLE KEYS */; INSERT INTO `plugin_newslog_news` VALUES (6,51,'{\"h1\":\"Morbi vehicula, libero aliquet lorem velit leo in sit, arcu commodo ullamcorper qui neque. \",\"title\":\"Morbi vehicula, libero aliquet lorem velit leo in sit, arcu commodo ullamcorper qui neque. \",\"navName\":\"Morbi vehicula, libero aliquet lorem velit leo in sit, arcu commodo ullamcorper qui neque. \",\"url\":\"morbi-vehicula-libero-aliquet-lorem-velit-leo-in-sit-arcu-commodo-ullamcorper-qui-neque-1486454974.html\",\"teaserText\":\"Elit eu feugiat enim erat eu, nibh dapibus non proin quis, dictum pellentesque eleifend lectus perferendis. Nulla at dignissim quisque tincidunt purus leo, commodo sed euismod, orci ad id risus mattis condimentum, aliquam consequat placerat montes faucibus, quam libero sed.\",\"metaKeywords\":\"\",\"template\":\"news\",\"image\":\"morbi-vehicula-libero-aliquet-lorem-velit-leo-in-sit-arcu-commodo-ullamcorper-qui-neque-1486454974.jpg\"}','Morbi vehicula, libero aliquet lorem velit leo in sit, arcu commodo ullamcorper qui neque. ','Elit eu feugiat enim erat eu, nibh dapibus non proin quis, dictum pellentesque eleifend lectus perferendis. Nulla at dignissim quisque tincidunt purus leo, commodo sed euismod, orci ad id risus mattis condimentum, aliquam consequat placerat montes faucibus, quam libero sed.','\r\n Edit repeat- Article blocks\r\n ',0,1,0,0,'internal',0,'0000-00-00 00:00:00','','2015-11-02 08:09:34','2018-03-13 10:37:45',NULL,1),(7,52,'{\"h1\":\"Lorem ipsum dolor sit amet, ac nunc.\",\"title\":\"Lorem ipsum dolor sit amet, ac nunc.\",\"navName\":\"Lorem ipsum dolor sit amet, ac nunc.\",\"url\":\"lorem-ipsum-dolor-sit-amet-ac-nunc-1486454911.html\",\"teaserText\":\"Vel sit lectus hac et nibh, corporis dui, sed nullam fringilla ut, magna et velit a amet vivamus, nec phasellus. Ipsum et dui litora. Aliquam integer vivamus pellentesque ut a metus\",\"metaKeywords\":\"\",\"template\":\"news\",\"image\":\"lorem-ipsum-dolor-sit-amet-ac-nunc-1486454911.jpg\"}','Lorem ipsum dolor sit amet, ac nunc.','Vel sit lectus hac et nibh, corporis dui, sed nullam fringilla ut, magna et velit a amet vivamus, nec phasellus. Ipsum et dui litora. Aliquam integer vivamus pellentesque ut a metus','\r\n Edit repeat- Article blocks\r\n ',0,1,0,0,'internal',0,'0000-00-00 00:00:00','','2015-12-23 08:08:31','2018-03-13 10:39:22',NULL,1),(8,578,'{\"h1\":\"Test Article 1\",\"title\":\"Test Article 1\",\"navName\":\"Test Article 1\",\"url\":\"test-article-1-1450968456.html\",\"teaserText\":\"Test Article 1. This is a test article. \",\"metaKeywords\":\"Test Article 1\",\"template\":\"news\",\"image\":\"test-article-1-1450968456.jpg\"}','Test Article 1','Test Article 1. This is a test article. ','\r\n \r\n
\r\n

\r\n \r\n \r\n
\r\n \r\n ',0,1,0,0,'internal',0,'0000-00-00 00:00:00','','2015-12-24 14:47:36','2016-10-25 13:04:18',NULL,65692); /*!40000 ALTER TABLE `plugin_newslog_news` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_newslog_news_has_tag` -- DROP TABLE IF EXISTS `plugin_newslog_news_has_tag`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_newslog_news_has_tag` ( `news_id` int(10) unsigned NOT NULL, `tag_id` int(10) unsigned NOT NULL, PRIMARY KEY (`news_id`,`tag_id`), KEY `tag_id` (`tag_id`), CONSTRAINT `plugin_newslog_news_has_tag_ibfk_1` FOREIGN KEY (`news_id`) REFERENCES `plugin_newslog_news` (`id`) ON DELETE CASCADE, CONSTRAINT `plugin_newslog_news_has_tag_ibfk_2` FOREIGN KEY (`tag_id`) REFERENCES `plugin_newslog_tag` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_newslog_news_has_tag` -- LOCK TABLES `plugin_newslog_news_has_tag` WRITE; /*!40000 ALTER TABLE `plugin_newslog_news_has_tag` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_newslog_news_has_tag` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_newslog_pingservice` -- DROP TABLE IF EXISTS `plugin_newslog_pingservice`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_newslog_pingservice` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `url` tinytext COLLATE utf8_unicode_ci NOT NULL, `status` enum('enabled','disabled') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'disabled', `is_default` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `status` (`status`), KEY `default` (`is_default`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_newslog_pingservice` -- LOCK TABLES `plugin_newslog_pingservice` WRITE; /*!40000 ALTER TABLE `plugin_newslog_pingservice` DISABLE KEYS */; INSERT INTO `plugin_newslog_pingservice` VALUES (3,'http://rpc.weblogs.com/RPC2','disabled',1),(4,'http://ping.blo.gs/','enabled',1),(5,'http://rpc.pingomatic.com/RPC2','enabled',1); /*!40000 ALTER TABLE `plugin_newslog_pingservice` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_newslog_tag` -- DROP TABLE IF EXISTS `plugin_newslog_tag`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_newslog_tag` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_newslog_tag` -- LOCK TABLES `plugin_newslog_tag` WRITE; /*!40000 ALTER TABLE `plugin_newslog_tag` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_newslog_tag` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_notifier_config` -- DROP TABLE IF EXISTS `plugin_notifier_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_notifier_config` ( `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_notifier_config` -- LOCK TABLES `plugin_notifier_config` WRITE; /*!40000 ALTER TABLE `plugin_notifier_config` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_notifier_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_notifier_news` -- DROP TABLE IF EXISTS `plugin_notifier_news`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_notifier_news` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `news_id` int(10) unsigned DEFAULT NULL, `token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `sent_at` timestamp NULL DEFAULT NULL, `status` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `token` (`token`), KEY `news_id` (`news_id`), CONSTRAINT `plugin_notifier_news_ibfk_3` FOREIGN KEY (`news_id`) REFERENCES `plugin_newslog_news` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `plugin_notifier_news_ibfk_4` FOREIGN KEY (`token`) REFERENCES `plugin_notifier_subscriptions` (`token`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_notifier_news` -- LOCK TABLES `plugin_notifier_news` WRITE; /*!40000 ALTER TABLE `plugin_notifier_news` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_notifier_news` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_notifier_news_info` -- DROP TABLE IF EXISTS `plugin_notifier_news_info`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_notifier_news_info` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `news_id` int(10) unsigned NOT NULL, `published_at` date DEFAULT NULL, PRIMARY KEY (`id`), KEY `plugin_notifier_news_info_ibfk_1` (`news_id`), CONSTRAINT `plugin_notifier_news_info_ibfk_1` FOREIGN KEY (`news_id`) REFERENCES `plugin_newslog_news` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_notifier_news_info` -- LOCK TABLES `plugin_notifier_news_info` WRITE; /*!40000 ALTER TABLE `plugin_notifier_news_info` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_notifier_news_info` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_notifier_pending_news` -- DROP TABLE IF EXISTS `plugin_notifier_pending_news`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_notifier_pending_news` ( `news_id` int(10) unsigned NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `status` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`news_id`), CONSTRAINT `plugin_notifier_news_ibfk_33` FOREIGN KEY (`news_id`) REFERENCES `plugin_newslog_news` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_notifier_pending_news` -- LOCK TABLES `plugin_notifier_pending_news` WRITE; /*!40000 ALTER TABLE `plugin_notifier_pending_news` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_notifier_pending_news` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_notifier_subscriptions` -- DROP TABLE IF EXISTS `plugin_notifier_subscriptions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_notifier_subscriptions` ( `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `endpoint` varchar(512) COLLATE utf8_unicode_ci NOT NULL, `auth` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `p256dh` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`token`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_notifier_subscriptions` -- LOCK TABLES `plugin_notifier_subscriptions` WRITE; /*!40000 ALTER TABLE `plugin_notifier_subscriptions` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_notifier_subscriptions` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_paypal_recurring_payments` -- DROP TABLE IF EXISTS `plugin_paypal_recurring_payments`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_paypal_recurring_payments` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL, `cart_id` int(10) unsigned DEFAULT NULL, `profile_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `status` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `auto_bill_out_amt` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL, `desc` text COLLATE utf8_unicode_ci, `max_failed_payments` smallint(5) DEFAULT '0', `profile_start_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `next_billing_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `num_cycles_completed` int(10) unsigned DEFAULT '0', `num_cycles_remaining` bigint(10) unsigned DEFAULT '0', `outstanding_balance` decimal(10,2) DEFAULT '0.00', `failed_payment_count` int(10) unsigned DEFAULT '0', `last_payment_date` timestamp NULL DEFAULT NULL, `last_payment_amt` decimal(10,2) DEFAULT '0.00', `trial_amt_paid` decimal(10,2) DEFAULT '0.00', `regular_amt_paid` decimal(10,2) DEFAULT '0.00', `aggregate_amt` decimal(10,2) DEFAULT '0.00', `aggregate_optional_amt` decimal(10,2) DEFAULT '0.00', `final_payment_due_date` timestamp NULL DEFAULT NULL, `timestamp` timestamp NULL DEFAULT NULL, `correlation_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `billing_period` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `billing_frequency` smallint(5) unsigned DEFAULT '0', `total_billing_cycles` smallint(5) unsigned DEFAULT '0', `currency_code` char(3) COLLATE utf8_unicode_ci DEFAULT '', `amt` decimal(10,2) DEFAULT '0.00', `shipping_amt` decimal(10,2) DEFAULT '0.00', `tax_amt` decimal(10,2) DEFAULT '0.00', `regular_billing_period` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `regular_billing_frequency` smallint(5) unsigned DEFAULT '0', `regular_total_billing_cycles` smallint(5) unsigned DEFAULT '0', `regular_currency_code` char(3) COLLATE utf8_unicode_ci DEFAULT '', `regular_amt` decimal(10,2) DEFAULT '0.00', `regular_shipping_amt` decimal(10,2) DEFAULT '0.00', `regular_tax_amt` decimal(10,2) DEFAULT '0.00', `acct` int(10) unsigned DEFAULT '0', `credit_card_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `exp_date` char(6) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `street` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `state` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `zip` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, `country_code` char(2) COLLATE utf8_unicode_ci DEFAULT NULL, `country` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `address_owner` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `address_status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `payer_status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_paypal_recurring_payments` -- LOCK TABLES `plugin_paypal_recurring_payments` WRITE; /*!40000 ALTER TABLE `plugin_paypal_recurring_payments` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_paypal_recurring_payments` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_paypal_settings` -- DROP TABLE IF EXISTS `plugin_paypal_settings`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_paypal_settings` ( `id` int(10) NOT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `apiSignature` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `apiUser` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `apiPassword` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `useSandbox` tinyint(1) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_paypal_settings` -- LOCK TABLES `plugin_paypal_settings` WRITE; /*!40000 ALTER TABLE `plugin_paypal_settings` DISABLE KEYS */; INSERT INTO `plugin_paypal_settings` VALUES (1,'','','','',0); /*!40000 ALTER TABLE `plugin_paypal_settings` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_paypal_transactions` -- DROP TABLE IF EXISTS `plugin_paypal_transactions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_paypal_transactions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `txnId` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL, `payerId` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL, `payerMail` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL, `amount` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL, `shippingAmount` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL, `tax` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL, `currency` text COLLATE utf8_unicode_ci, `paymentStatus` text COLLATE utf8_unicode_ci, `status` text COLLATE utf8_unicode_ci, `paymentType` text COLLATE utf8_unicode_ci, `paymentId` int(11) DEFAULT NULL, `paymentDate` timestamp NULL DEFAULT NULL, `pFirstName` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `pLastName` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `pCountry` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL, `pCountryCode` text COLLATE utf8_unicode_ci, `pAddressState` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL, `pAddressCity` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL, `pAddressZip` text COLLATE utf8_unicode_ci, `pAddressName` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL, `cartId` int(10) DEFAULT NULL, `pendingReason` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `subscribeStatus` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL, `subscribePeriod` int(10) DEFAULT NULL, `subscribePeriodType` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `subscribeQuantity` int(10) DEFAULT NULL, `subscribeAmount` decimal(10,4) DEFAULT NULL, `subscribeDate` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL, `subscriptionId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `subscriptionDatePayed` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL, `subscriptionAmountPayed` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL, `emailSent` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `customerEmailSent` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `refundTransactionId` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, `refundReason` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `user_set_password` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `partiallyPaid` decimal(10,4) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_paypal_transactions` -- LOCK TABLES `plugin_paypal_transactions` WRITE; /*!40000 ALTER TABLE `plugin_paypal_transactions` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_paypal_transactions` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_promo` -- DROP TABLE IF EXISTS `plugin_promo`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_promo` ( `product_id` int(10) unsigned NOT NULL, `promo_price` decimal(10,2) NOT NULL, `promo_from` date DEFAULT NULL, `promo_due` date DEFAULT NULL, PRIMARY KEY (`product_id`), CONSTRAINT `plugin_promo_ibfk_1` FOREIGN KEY (`product_id`) REFERENCES `shopping_product` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_promo` -- LOCK TABLES `plugin_promo` WRITE; /*!40000 ALTER TABLE `plugin_promo` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_promo` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_shopping_notification_partial_log` -- DROP TABLE IF EXISTS `plugin_shopping_notification_partial_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_shopping_notification_partial_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `cart_id` int(10) unsigned NOT NULL, `notified_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_shopping_notification_partial_log` -- LOCK TABLES `plugin_shopping_notification_partial_log` WRITE; /*!40000 ALTER TABLE `plugin_shopping_notification_partial_log` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_shopping_notification_partial_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_toastauth_settings` -- DROP TABLE IF EXISTS `plugin_toastauth_settings`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_toastauth_settings` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `settings` text COLLATE utf8_unicode_ci NOT NULL, `status` tinyint(1) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_toastauth_settings` -- LOCK TABLES `plugin_toastauth_settings` WRITE; /*!40000 ALTER TABLE `plugin_toastauth_settings` DISABLE KEYS */; INSERT INTO `plugin_toastauth_settings` VALUES (1,'facebook','a:6:{s:9:\"client_id\";s:0:\"\";s:13:\"client_secret\";s:0:\"\";s:12:\"redirect_uri\";s:0:\"\";s:5:\"scope\";s:5:\"email\";s:8:\"auth_url\";s:37:\"https://www.facebook.com/dialog/oauth\";s:9:\"token_url\";s:45:\"https://graph.facebook.com/oauth/access_token\";}',1),(2,'google','a:8:{s:9:\"client_id\";s:0:\"\";s:13:\"client_secret\";s:0:\"\";s:12:\"redirect_uri\";s:0:\"\";s:5:\"scope\";s:5:\"email\";s:8:\"auth_url\";s:41:\"https://accounts.google.com/o/oauth2/auth\";s:9:\"token_url\";s:42:\"https://accounts.google.com/o/oauth2/token\";s:10:\"grant_type\";s:18:\"authorization_code\";s:13:\"response_type\";s:4:\"code\";}',1),(3,'linkedin','a:8:{s:13:\"response_type\";s:4:\"code\";s:9:\"client_id\";s:0:\"\";s:13:\"client_secret\";s:0:\"\";s:5:\"scope\";s:29:\"r_basicprofile r_emailaddress\";s:12:\"redirect_uri\";s:60:\"http://auth.com/plugin/toastauth/run/login/provider/linkedin\";s:10:\"grant_type\";s:18:\"authorization_code\";s:9:\"token_url\";s:47:\"https://www.linkedin.com/uas/oauth2/accessToken\";s:8:\"auth_url\";s:49:\"https://www.linkedin.com/uas/oauth2/authorization\";}',1); /*!40000 ALTER TABLE `plugin_toastauth_settings` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_widcard_custom_params` -- DROP TABLE IF EXISTS `plugin_widcard_custom_params`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin_widcard_custom_params` ( `name` varchar(128) COLLATE utf8_unicode_ci NOT NULL, `value` text COLLATE utf8_unicode_ci, PRIMARY KEY (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin_widcard_custom_params` -- LOCK TABLES `plugin_widcard_custom_params` WRITE; /*!40000 ALTER TABLE `plugin_widcard_custom_params` DISABLE KEYS */; INSERT INTO `plugin_widcard_custom_params` VALUES ('facebook',''),('google my business',''),('yelp',''); /*!40000 ALTER TABLE `plugin_widcard_custom_params` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `quote_custom_fields_config` -- DROP TABLE IF EXISTS `quote_custom_fields_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `quote_custom_fields_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `param_type` enum('text','select','radio','textarea','checkbox') COLLATE utf8_unicode_ci DEFAULT 'text', `param_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `param_type` (`param_type`,`param_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `quote_custom_fields_config` -- LOCK TABLES `quote_custom_fields_config` WRITE; /*!40000 ALTER TABLE `quote_custom_fields_config` DISABLE KEYS */; /*!40000 ALTER TABLE `quote_custom_fields_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `quote_custom_params_data` -- DROP TABLE IF EXISTS `quote_custom_params_data`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `quote_custom_params_data` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `cart_id` int(10) unsigned NOT NULL, `param_id` int(10) unsigned NOT NULL, `param_value` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `params_option_id` int(10) DEFAULT NULL, PRIMARY KEY (`id`), KEY `param_id` (`param_id`), KEY `cart_id` (`cart_id`), CONSTRAINT `quote_custom_params_data_ibfk_1` FOREIGN KEY (`param_id`) REFERENCES `quote_custom_fields_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `quote_custom_params_data_ibfk_2` FOREIGN KEY (`cart_id`) REFERENCES `shopping_cart_session` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `quote_custom_params_data` -- LOCK TABLES `quote_custom_params_data` WRITE; /*!40000 ALTER TABLE `quote_custom_params_data` DISABLE KEYS */; /*!40000 ALTER TABLE `quote_custom_params_data` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `quote_custom_params_options_data` -- DROP TABLE IF EXISTS `quote_custom_params_options_data`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `quote_custom_params_options_data` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `custom_param_id` int(10) unsigned NOT NULL, `option_value` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `custom_param_id` (`custom_param_id`), CONSTRAINT `quote_custom_params_options_data_ibfk_1` FOREIGN KEY (`custom_param_id`) REFERENCES `quote_custom_fields_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `quote_custom_params_options_data` -- LOCK TABLES `quote_custom_params_options_data` WRITE; /*!40000 ALTER TABLE `quote_custom_params_options_data` DISABLE KEYS */; /*!40000 ALTER TABLE `quote_custom_params_options_data` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `redirect` -- DROP TABLE IF EXISTS `redirect`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `redirect` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `page_id` int(10) unsigned DEFAULT NULL, `from_url` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `to_url` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `domain_to` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `domain_from` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `indPageId` (`page_id`), KEY `indFromUrl` (`from_url`), KEY `indToUrl` (`to_url`), CONSTRAINT `FK_redirect` FOREIGN KEY (`page_id`) REFERENCES `page` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `redirect` -- LOCK TABLES `redirect` WRITE; /*!40000 ALTER TABLE `redirect` DISABLE KEYS */; /*!40000 ALTER TABLE `redirect` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `seo_data` -- DROP TABLE IF EXISTS `seo_data`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `seo_data` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `seo_top` longtext COLLATE utf8_unicode_ci, `seo_bottom` longtext COLLATE utf8_unicode_ci, `seo_head` longtext COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `seo_data` -- LOCK TABLES `seo_data` WRITE; /*!40000 ALTER TABLE `seo_data` DISABLE KEYS */; INSERT INTO `seo_data` VALUES (1,'{$form:conversioncode}','',''); /*!40000 ALTER TABLE `seo_data` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_allowance_products` -- DROP TABLE IF EXISTS `shopping_allowance_products`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_allowance_products` ( `product_id` int(10) unsigned NOT NULL, `allowance_due` date DEFAULT NULL, PRIMARY KEY (`product_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_allowance_products` -- LOCK TABLES `shopping_allowance_products` WRITE; /*!40000 ALTER TABLE `shopping_allowance_products` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_allowance_products` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_brands` -- DROP TABLE IF EXISTS `shopping_brands`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_brands` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(200) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_brands` -- LOCK TABLES `shopping_brands` WRITE; /*!40000 ALTER TABLE `shopping_brands` DISABLE KEYS */; INSERT INTO `shopping_brands` VALUES (4,'new brand'); /*!40000 ALTER TABLE `shopping_brands` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_cart_session` -- DROP TABLE IF EXISTS `shopping_cart_session`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_cart_session` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `ip_address` varchar(25) COLLATE utf8_unicode_ci NOT NULL, `referer` tinytext COLLATE utf8_unicode_ci COMMENT 'Referer', `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NULL DEFAULT '0000-00-00 00:00:00', `user_id` int(10) unsigned DEFAULT NULL, `shipping_address_id` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `billing_address_id` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `shipping_price` decimal(10,2) DEFAULT NULL, `shipping_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `shipping_service` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `shipping_tracking_id` tinytext COLLATE utf8_unicode_ci COMMENT 'Shipping Tracking ID', `shipping_tracking_code_id` int(10) unsigned DEFAULT NULL, `shipping_service_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Shipping service external id', `shipping_availability_days` text COLLATE utf8_unicode_ci COMMENT 'Availability dates. Json format', `shipping_service_info` text COLLATE utf8_unicode_ci COMMENT 'Additional shipping service info. Json format', `shipping_label_link` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Shipping label link url', `status` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `gateway` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `discount_tax_rate` enum('0','1','2','3') COLLATE utf8_unicode_ci DEFAULT '0', `sub_total` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'Sub Total', `shipping_tax` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'Shipping Tax', `discount_tax` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'Discount Tax', `sub_total_tax` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'Sub total Tax', `total_tax` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'Total Tax', `total` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'Sub Total + Total Tax + Shipping', `notes` text COLLATE utf8_unicode_ci COMMENT 'Comment for order', `discount` decimal(10,2) DEFAULT NULL COMMENT 'Order discount', `free_cart` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `refund_amount` decimal(10,2) DEFAULT NULL COMMENT 'Partial or full refund amount', `refund_notes` text COLLATE utf8_unicode_ci COMMENT 'Refund info', `purchased_on` timestamp NULL DEFAULT NULL, `partial_type` enum('amount','percentage') COLLATE utf8_unicode_ci DEFAULT NULL, `partial_percentage` decimal(12,6) DEFAULT '0.000000', `is_partial` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `partial_paid_amount` decimal(10,2) DEFAULT '0.00', `first_partial_paid_amount` decimal(10,2) DEFAULT '0.00', `second_partial_paid_amount` decimal(10,2) DEFAULT '0.00', `partial_purchased_on` timestamp NULL DEFAULT NULL, `is_first_payment_manually_paid` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `is_second_payment_manually_paid` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `is_full_order_manually_paid` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `first_payment_gateway` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `second_payment_gateway` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `additional_info` text COLLATE utf8_unicode_ci, `is_gift` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `gift_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Gift purchase email', `order_subtype` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `partial_notification_date` timestamp NULL DEFAULT NULL, `purchase_error_message` text COLLATE utf8_unicode_ci, `is_pickup_notification_sent` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `pickup_notification_sent_on` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`), KEY `shipping_address_id` (`shipping_address_id`), KEY `billing_address_id` (`billing_address_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_cart_session` -- LOCK TABLES `shopping_cart_session` WRITE; /*!40000 ALTER TABLE `shopping_cart_session` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_cart_session` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_cart_session_content` -- DROP TABLE IF EXISTS `shopping_cart_session_content`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_cart_session_content` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `cart_id` int(10) unsigned DEFAULT NULL, `product_id` int(10) unsigned DEFAULT NULL, `options` text COLLATE utf8_unicode_ci, `price` decimal(10,4) DEFAULT NULL COMMENT 'Price w/o Tax', `qty` int(10) unsigned DEFAULT NULL, `tax` decimal(10,4) DEFAULT NULL COMMENT 'Tax Price', `tax_price` decimal(10,4) DEFAULT NULL COMMENT 'Price + Tax', `freebies` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `is_digital` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', PRIMARY KEY (`id`), KEY `cart_id` (`cart_id`,`product_id`), CONSTRAINT `shopping_cart_session_content_ibfk_2` FOREIGN KEY (`cart_id`) REFERENCES `shopping_cart_session` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_cart_session_content` -- LOCK TABLES `shopping_cart_session_content` WRITE; /*!40000 ALTER TABLE `shopping_cart_session_content` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_cart_session_content` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_cart_session_has_recurring` -- DROP TABLE IF EXISTS `shopping_cart_session_has_recurring`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_cart_session_has_recurring` ( `recurring_cart_id` int(10) unsigned NOT NULL COMMENT 'recurrent payment id', `cart_id` int(10) unsigned NOT NULL COMMENT 'dependent cart id to recurring payment', PRIMARY KEY (`recurring_cart_id`,`cart_id`), KEY `shopping_cart_session_has_recurring_ibfk_3` (`cart_id`), CONSTRAINT `shopping_cart_session_has_recurring_ibfk_2` FOREIGN KEY (`recurring_cart_id`) REFERENCES `shopping_cart_session` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `shopping_cart_session_has_recurring_ibfk_3` FOREIGN KEY (`cart_id`) REFERENCES `shopping_cart_session` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_cart_session_has_recurring` -- LOCK TABLES `shopping_cart_session_has_recurring` WRITE; /*!40000 ALTER TABLE `shopping_cart_session_has_recurring` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_cart_session_has_recurring` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_cart_session_options` -- DROP TABLE IF EXISTS `shopping_cart_session_options`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_cart_session_options` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `cart_id` int(10) unsigned NOT NULL, `product_id` int(10) unsigned NOT NULL, `option_id` int(10) unsigned NOT NULL, `cart_content_id` int(10) unsigned NOT NULL, `option_title` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `option_type` enum('dropdown','radio','text','date','file') COLLATE utf8_unicode_ci NOT NULL, `option_selection_id` int(10) unsigned DEFAULT NULL, `title` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL, `priceSign` enum('+','-') COLLATE utf8_unicode_ci DEFAULT NULL, `priceValue` decimal(10,4) DEFAULT NULL, `priceType` enum('percent','unit') COLLATE utf8_unicode_ci DEFAULT NULL, `weightSign` enum('+','-') COLLATE utf8_unicode_ci DEFAULT NULL, `weightValue` decimal(8,3) DEFAULT NULL, `cart_item_key` char(32) COLLATE utf8_unicode_ci NOT NULL, `cart_item_option_key` char(32) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `cart_item_key` (`cart_item_key`), KEY `cart_item_option_key` (`cart_item_option_key`), KEY `cart_item_key_2` (`cart_item_key`,`cart_item_option_key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_cart_session_options` -- LOCK TABLES `shopping_cart_session_options` WRITE; /*!40000 ALTER TABLE `shopping_cart_session_options` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_cart_session_options` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_companies` -- DROP TABLE IF EXISTS `shopping_companies`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_companies` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `company_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `company_name` (`company_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_companies` -- LOCK TABLES `shopping_companies` WRITE; /*!40000 ALTER TABLE `shopping_companies` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_companies` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_company_products` -- DROP TABLE IF EXISTS `shopping_company_products`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_company_products` ( `product_id` int(10) unsigned NOT NULL, `company_id` int(10) unsigned NOT NULL, PRIMARY KEY (`product_id`,`company_id`), KEY `company_id` (`company_id`), CONSTRAINT `shopping_company_products_ibfk_1` FOREIGN KEY (`product_id`) REFERENCES `shopping_product` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `shopping_company_products_ibfk_2` FOREIGN KEY (`company_id`) REFERENCES `shopping_companies` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_company_products` -- LOCK TABLES `shopping_company_products` WRITE; /*!40000 ALTER TABLE `shopping_company_products` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_company_products` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_company_suppliers` -- DROP TABLE IF EXISTS `shopping_company_suppliers`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_company_suppliers` ( `supplier_id` int(10) unsigned NOT NULL, `company_id` int(10) unsigned NOT NULL, PRIMARY KEY (`supplier_id`,`company_id`), KEY `company_id` (`company_id`), CONSTRAINT `shopping_company_suppliers_ibfk_1` FOREIGN KEY (`supplier_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `shopping_company_suppliers_ibfk_2` FOREIGN KEY (`company_id`) REFERENCES `shopping_companies` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_company_suppliers` -- LOCK TABLES `shopping_company_suppliers` WRITE; /*!40000 ALTER TABLE `shopping_company_suppliers` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_company_suppliers` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_config` -- DROP TABLE IF EXISTS `shopping_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_config` ( `name` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `value` text COLLATE utf8_unicode_ci, PRIMARY KEY (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_config` -- LOCK TABLES `shopping_config` WRITE; /*!40000 ALTER TABLE `shopping_config` DISABLE KEYS */; INSERT INTO `shopping_config` VALUES ('action','fireaction'),('address1','827 Shrader St.'),('address2','Suite 400'),('allowAutosave','1'),('autoQuote','0'),('cartPlugin','cart'),('city','San Francisco'),('company','Demo Store'),('controller','backend_plugin'),('country','US'),('currency','USD'),('disableAutosaveEmail','0'),('email','demostore@example.com'),('expirationDelay',''),('fiscalYearStart','1'),('forceSSLCheckout','0'),('lengthUnit','cm'),('minimumOrder','0'),('name','quote'),('noZeroPrice','1'),('phone','415 899 3455'),('pickupLocationLinks','0'),('pickupLocationLinksLimit','4'),('quoteDraggableProducts','1'),('quoteTemplate','quote'),('run','settings'),('secureToken','01c9b879214617ac1975d6dff93bef4d'),('showPriceIncTax','1'),('state','5'),('timezone','America/New_York'),('unsubscribeUserStatsEmailSentTo','2025-06-01'),('usNumericFormat','0'),('version','3.0.6'),('weightUnit','kg'),('wordCountAiFullDescription','500'),('wordCountAiShortDescription','150'),('zip','94117'); /*!40000 ALTER TABLE `shopping_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_coupon` -- DROP TABLE IF EXISTS `shopping_coupon`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_coupon` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Coupon ID', `code` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Coupon code', `type` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'discount' COMMENT 'Coupon discount type', `scope` enum('order','client') COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Coupon usage scope', `startDate` date DEFAULT NULL COMMENT 'Coupon start date', `endDate` date DEFAULT NULL COMMENT 'Coupon expire date', `allowCombination` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0' COMMENT 'Allow combination with other coupons', `zoneId` int(10) unsigned DEFAULT NULL, `oneTimeUse` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0' COMMENT 'One time use coupon', PRIMARY KEY (`id`), KEY `code` (`code`), KEY `type` (`type`), CONSTRAINT `shopping_coupon_ibfk_1` FOREIGN KEY (`type`) REFERENCES `shopping_coupon_type` (`type`) ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_coupon` -- LOCK TABLES `shopping_coupon` WRITE; /*!40000 ALTER TABLE `shopping_coupon` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_coupon` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_coupon_discount` -- DROP TABLE IF EXISTS `shopping_coupon_discount`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_coupon_discount` ( `coupon_id` int(10) unsigned NOT NULL COMMENT 'Coupon ID', `minOrderAmount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'Allow combination with other coupons', `discountAmount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'Coupon discount amount', `discountUnits` enum('unit','percent') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'unit' COMMENT 'Coupon discount units', PRIMARY KEY (`coupon_id`), CONSTRAINT `shopping_coupon_discount_ibfk_1` FOREIGN KEY (`coupon_id`) REFERENCES `shopping_coupon` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_coupon_discount` -- LOCK TABLES `shopping_coupon_discount` WRITE; /*!40000 ALTER TABLE `shopping_coupon_discount` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_coupon_discount` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_coupon_freeshipping` -- DROP TABLE IF EXISTS `shopping_coupon_freeshipping`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_coupon_freeshipping` ( `coupon_id` int(10) unsigned NOT NULL COMMENT 'Coupon ID', `minOrderAmount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'Minimal order amount', PRIMARY KEY (`coupon_id`), CONSTRAINT `shopping_coupon_freeshipping_ibfk_2` FOREIGN KEY (`coupon_id`) REFERENCES `shopping_coupon` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_coupon_freeshipping` -- LOCK TABLES `shopping_coupon_freeshipping` WRITE; /*!40000 ALTER TABLE `shopping_coupon_freeshipping` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_coupon_freeshipping` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_coupon_product` -- DROP TABLE IF EXISTS `shopping_coupon_product`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_coupon_product` ( `coupon_id` int(10) unsigned NOT NULL COMMENT 'Coupon ID', `product_id` int(10) unsigned NOT NULL COMMENT 'Product ID', PRIMARY KEY (`coupon_id`,`product_id`), KEY `product_id` (`product_id`), CONSTRAINT `shopping_coupon_product_ibfk_3` FOREIGN KEY (`coupon_id`) REFERENCES `shopping_coupon` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `shopping_coupon_product_ibfk_4` FOREIGN KEY (`product_id`) REFERENCES `shopping_product` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_coupon_product` -- LOCK TABLES `shopping_coupon_product` WRITE; /*!40000 ALTER TABLE `shopping_coupon_product` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_coupon_product` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_coupon_sales` -- DROP TABLE IF EXISTS `shopping_coupon_sales`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_coupon_sales` ( `coupon_code` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Coupon code', `cart_id` int(10) unsigned NOT NULL COMMENT 'Cart Id', PRIMARY KEY (`coupon_code`,`cart_id`), KEY `cart_id` (`cart_id`), CONSTRAINT `shopping_coupon_sales_ibfk_3` FOREIGN KEY (`cart_id`) REFERENCES `shopping_cart_session` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_coupon_sales` -- LOCK TABLES `shopping_coupon_sales` WRITE; /*!40000 ALTER TABLE `shopping_coupon_sales` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_coupon_sales` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_coupon_type` -- DROP TABLE IF EXISTS `shopping_coupon_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_coupon_type` ( `type` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `label` tinytext COLLATE utf8_unicode_ci, PRIMARY KEY (`type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_coupon_type` -- LOCK TABLES `shopping_coupon_type` WRITE; /*!40000 ALTER TABLE `shopping_coupon_type` DISABLE KEYS */; INSERT INTO `shopping_coupon_type` VALUES ('discount','Discount with min. order'),('freeshipping','Free shipping with min. order'); /*!40000 ALTER TABLE `shopping_coupon_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_coupon_usage` -- DROP TABLE IF EXISTS `shopping_coupon_usage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_coupon_usage` ( `coupon_id` int(10) unsigned NOT NULL COMMENT 'Coupon ID', `cart_id` int(10) unsigned NOT NULL COMMENT 'Customer ID', PRIMARY KEY (`coupon_id`,`cart_id`), KEY `cart_id` (`cart_id`), CONSTRAINT `shopping_coupon_usage_ibfk_4` FOREIGN KEY (`coupon_id`) REFERENCES `shopping_coupon` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `shopping_coupon_usage_ibfk_5` FOREIGN KEY (`cart_id`) REFERENCES `shopping_cart_session` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_coupon_usage` -- LOCK TABLES `shopping_coupon_usage` WRITE; /*!40000 ALTER TABLE `shopping_coupon_usage` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_coupon_usage` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_customer_address` -- DROP TABLE IF EXISTS `shopping_customer_address`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_customer_address` ( `id` varchar(32) COLLATE utf8_unicode_ci NOT NULL, `user_id` int(10) unsigned DEFAULT NULL, `address_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `prefix` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `firstname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `lastname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `company` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `address1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `address2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `country` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `state` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `zip` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `mobile` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `mobilecountrycode` char(2) COLLATE utf8_unicode_ci DEFAULT NULL, `mobile_country_code_value` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL, `phonecountrycode` char(2) COLLATE utf8_unicode_ci DEFAULT NULL, `phone_country_code_value` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL, `customer_notes` text COLLATE utf8_unicode_ci, `position` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`), KEY `state` (`state`), CONSTRAINT `shopping_customer_address_ibfk_3` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_customer_address` -- LOCK TABLES `shopping_customer_address` WRITE; /*!40000 ALTER TABLE `shopping_customer_address` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_customer_address` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_customer_info` -- DROP TABLE IF EXISTS `shopping_customer_info`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_customer_info` ( `user_id` int(10) unsigned NOT NULL, `default_shipping_address_id` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `default_billing_address_id` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `group_id` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`user_id`), CONSTRAINT `shopping_customer_info_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_customer_info` -- LOCK TABLES `shopping_customer_info` WRITE; /*!40000 ALTER TABLE `shopping_customer_info` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_customer_info` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_customer_rules_actions` -- DROP TABLE IF EXISTS `shopping_customer_rules_actions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_customer_rules_actions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `rule_id` int(10) unsigned NOT NULL, `action_type` enum('assign_group') COLLATE utf8_unicode_ci DEFAULT 'assign_group', `action_config` text COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `rule_id` (`rule_id`,`action_type`), CONSTRAINT `shopping_customer_rules_actions_ibfk_1` FOREIGN KEY (`rule_id`) REFERENCES `shopping_customer_rules_general_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_customer_rules_actions` -- LOCK TABLES `shopping_customer_rules_actions` WRITE; /*!40000 ALTER TABLE `shopping_customer_rules_actions` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_customer_rules_actions` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_customer_rules_config` -- DROP TABLE IF EXISTS `shopping_customer_rules_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_customer_rules_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `rule_id` int(10) unsigned NOT NULL, `field_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `rule_comparison_operator` enum('equal','notequal','like','in','greaterthan','lessthan') COLLATE utf8_unicode_ci DEFAULT 'equal', `field_value` mediumtext COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `rule_id` (`rule_id`), CONSTRAINT `shopping_customer_rules_config_ibfk_1` FOREIGN KEY (`rule_id`) REFERENCES `shopping_customer_rules_general_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_customer_rules_config` -- LOCK TABLES `shopping_customer_rules_config` WRITE; /*!40000 ALTER TABLE `shopping_customer_rules_config` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_customer_rules_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_customer_rules_general_config` -- DROP TABLE IF EXISTS `shopping_customer_rules_general_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_customer_rules_general_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `rule_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `creator_id` int(10) unsigned DEFAULT NULL, `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `editor_id` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `rule_name` (`rule_name`), KEY `creator_id` (`creator_id`), KEY `editor_id` (`editor_id`), CONSTRAINT `shopping_customer_rules_general_config_ibfk_1` FOREIGN KEY (`creator_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION, CONSTRAINT `shopping_customer_rules_general_config_ibfk_2` FOREIGN KEY (`editor_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_customer_rules_general_config` -- LOCK TABLES `shopping_customer_rules_general_config` WRITE; /*!40000 ALTER TABLE `shopping_customer_rules_general_config` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_customer_rules_general_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_draggable` -- DROP TABLE IF EXISTS `shopping_draggable`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_draggable` ( `id` char(32) COLLATE utf8_unicode_ci NOT NULL, `data` text COLLATE utf8_unicode_ci NOT NULL, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `user_id` int(10) unsigned NOT NULL, `ip_address` varchar(45) COLLATE utf8_unicode_ci NOT NULL, `page_id` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_draggable` -- LOCK TABLES `shopping_draggable` WRITE; /*!40000 ALTER TABLE `shopping_draggable` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_draggable` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_filter_preset` -- DROP TABLE IF EXISTS `shopping_filter_preset`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_filter_preset` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `creator_id` int(10) unsigned NOT NULL, `filter_preset_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `filter_preset_data` text COLLATE utf8_unicode_ci NOT NULL, `is_default` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `access` enum('all','individual') COLLATE utf8_unicode_ci DEFAULT 'individual', PRIMARY KEY (`id`), KEY `creator_id` (`creator_id`), CONSTRAINT `shopping_filter_preset_ibfk_1` FOREIGN KEY (`creator_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_filter_preset` -- LOCK TABLES `shopping_filter_preset` WRITE; /*!40000 ALTER TABLE `shopping_filter_preset` DISABLE KEYS */; INSERT INTO `shopping_filter_preset` VALUES (1,1,'Default filter','{\"filter_from_amount\":\"\",\"filter_to_amount\":\"\",\"filter_by_coupon_code\":\"\",\"orders_filter_fromdate\":\"\",\"orders_filter_todate\":\"\",\"filter_status\":[\"pending\",\"partial\",\"completed\",\"shipped\",\"delivered\",\"quote_signed\"],\"filter_order_type\":\"0\",\"filter_recurring_order_type\":\"\",\"filter_country\":\"_\",\"filter_state\":null,\"filter_carrier\":\"0\"}','1','all'); /*!40000 ALTER TABLE `shopping_filter_preset` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_filtering_attributes` -- DROP TABLE IF EXISTS `shopping_filtering_attributes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_filtering_attributes` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Attribute ID', `name` varchar(200) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Attribute Name', `label` tinytext COLLATE utf8_unicode_ci NOT NULL COMMENT 'Attribute Label', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_filtering_attributes` -- LOCK TABLES `shopping_filtering_attributes` WRITE; /*!40000 ALTER TABLE `shopping_filtering_attributes` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_filtering_attributes` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_filtering_tags_has_attributes` -- DROP TABLE IF EXISTS `shopping_filtering_tags_has_attributes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_filtering_tags_has_attributes` ( `tag_id` int(10) unsigned NOT NULL, `attribute_id` int(10) unsigned NOT NULL, PRIMARY KEY (`tag_id`,`attribute_id`), KEY `attribute_id` (`attribute_id`), CONSTRAINT `shopping_filtering_tags_has_attributes_ibfk_1` FOREIGN KEY (`tag_id`) REFERENCES `shopping_tags` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_filtering_tags_has_attributes` -- LOCK TABLES `shopping_filtering_tags_has_attributes` WRITE; /*!40000 ALTER TABLE `shopping_filtering_tags_has_attributes` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_filtering_tags_has_attributes` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_filtering_values` -- DROP TABLE IF EXISTS `shopping_filtering_values`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_filtering_values` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `product_id` int(10) unsigned NOT NULL COMMENT 'Product ID', `attribute_id` int(10) unsigned NOT NULL COMMENT 'Attribute ID', `value` tinytext COLLATE utf8_unicode_ci NOT NULL COMMENT 'Attribute Value', PRIMARY KEY (`id`), KEY `attribute_id` (`attribute_id`), KEY `product_id` (`product_id`), CONSTRAINT `shopping_filtering_values_ibfk_1` FOREIGN KEY (`product_id`) REFERENCES `shopping_product` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_filtering_values` -- LOCK TABLES `shopping_filtering_values` WRITE; /*!40000 ALTER TABLE `shopping_filtering_values` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_filtering_values` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_filtering_widget_settings` -- DROP TABLE IF EXISTS `shopping_filtering_widget_settings`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_filtering_widget_settings` ( `filter_id` varchar(32) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Filter ID', `settings` text COLLATE utf8_unicode_ci NOT NULL COMMENT 'Widget Settings', PRIMARY KEY (`filter_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_filtering_widget_settings` -- LOCK TABLES `shopping_filtering_widget_settings` WRITE; /*!40000 ALTER TABLE `shopping_filtering_widget_settings` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_filtering_widget_settings` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_gateway_label` -- DROP TABLE IF EXISTS `shopping_gateway_label`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_gateway_label` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `gateway` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `gateway_label` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `gateway` (`gateway`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_gateway_label` -- LOCK TABLES `shopping_gateway_label` WRITE; /*!40000 ALTER TABLE `shopping_gateway_label` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_gateway_label` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_group` -- DROP TABLE IF EXISTS `shopping_group`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_group` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `groupName` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `priceSign` enum('plus','minus') COLLATE utf8_unicode_ci DEFAULT NULL, `priceType` enum('percent','unit') COLLATE utf8_unicode_ci DEFAULT NULL, `priceValue` decimal(10,2) DEFAULT NULL, `nonTaxable` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_group` -- LOCK TABLES `shopping_group` WRITE; /*!40000 ALTER TABLE `shopping_group` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_group` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_group_price` -- DROP TABLE IF EXISTS `shopping_group_price`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_group_price` ( `groupId` int(10) unsigned NOT NULL, `productId` int(10) unsigned NOT NULL, `priceValue` decimal(10,2) DEFAULT NULL, `priceSign` enum('plus','minus') COLLATE utf8_unicode_ci DEFAULT NULL, `priceType` enum('percent','unit') COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`groupId`,`productId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_group_price` -- LOCK TABLES `shopping_group_price` WRITE; /*!40000 ALTER TABLE `shopping_group_price` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_group_price` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_import_orders` -- DROP TABLE IF EXISTS `shopping_import_orders`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_import_orders` ( `real_order_id` int(10) unsigned NOT NULL, `import_order_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` datetime DEFAULT NULL, PRIMARY KEY (`real_order_id`,`import_order_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_import_orders` -- LOCK TABLES `shopping_import_orders` WRITE; /*!40000 ALTER TABLE `shopping_import_orders` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_import_orders` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_list_country` -- DROP TABLE IF EXISTS `shopping_list_country`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_list_country` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `country` varchar(10) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=263 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_list_country` -- LOCK TABLES `shopping_list_country` WRITE; /*!40000 ALTER TABLE `shopping_list_country` DISABLE KEYS */; INSERT INTO `shopping_list_country` VALUES (1,'AD'),(2,'AE'),(3,'AF'),(4,'AG'),(5,'AI'),(6,'AL'),(7,'AM'),(8,'AN'),(9,'AO'),(10,'AQ'),(11,'AR'),(12,'AS'),(13,'AT'),(14,'AU'),(15,'AW'),(16,'AX'),(17,'AZ'),(18,'BA'),(19,'BB'),(20,'BD'),(21,'BE'),(22,'BF'),(23,'BG'),(24,'BH'),(25,'BI'),(26,'BJ'),(27,'BL'),(28,'BM'),(29,'BN'),(30,'BO'),(31,'BQ'),(32,'BR'),(33,'BS'),(34,'BT'),(35,'BV'),(36,'BW'),(37,'BY'),(38,'BZ'),(39,'CA'),(40,'CC'),(41,'CD'),(42,'CF'),(43,'CG'),(44,'CH'),(45,'CI'),(46,'CK'),(47,'CL'),(48,'CM'),(49,'CN'),(50,'CO'),(51,'CR'),(52,'CS'),(53,'CT'),(54,'CU'),(55,'CV'),(56,'CX'),(57,'CY'),(58,'CZ'),(59,'DD'),(60,'DE'),(61,'DJ'),(62,'DK'),(63,'DM'),(64,'DO'),(65,'DZ'),(66,'EC'),(67,'EE'),(68,'EG'),(69,'EH'),(70,'ER'),(71,'ES'),(72,'ET'),(73,'FI'),(74,'FJ'),(75,'FK'),(76,'FM'),(77,'FO'),(78,'FQ'),(79,'FR'),(80,'FX'),(81,'GA'),(82,'GB'),(83,'GD'),(84,'GE'),(85,'GF'),(86,'GG'),(87,'GH'),(88,'GI'),(89,'GL'),(90,'GM'),(91,'GN'),(92,'GP'),(93,'GQ'),(94,'GR'),(95,'GS'),(96,'GT'),(97,'GU'),(98,'GW'),(99,'GY'),(100,'HK'),(101,'HM'),(102,'HN'),(103,'HR'),(104,'HT'),(105,'HU'),(106,'ID'),(107,'IE'),(108,'IL'),(109,'IM'),(110,'IN'),(111,'IO'),(112,'IQ'),(113,'IR'),(114,'IS'),(115,'IT'),(116,'JE'),(117,'JM'),(118,'JO'),(119,'JP'),(120,'JT'),(121,'KE'),(122,'KG'),(123,'KH'),(124,'KI'),(125,'KM'),(126,'KN'),(127,'KP'),(128,'KR'),(129,'KW'),(130,'KY'),(131,'KZ'),(132,'LA'),(133,'LB'),(134,'LC'),(135,'LI'),(136,'LK'),(137,'LR'),(138,'LS'),(139,'LT'),(140,'LU'),(141,'LV'),(142,'LY'),(143,'MA'),(144,'MC'),(145,'MD'),(146,'ME'),(147,'MF'),(148,'MG'),(149,'MH'),(150,'MI'),(151,'MK'),(152,'ML'),(153,'MM'),(154,'MN'),(155,'MO'),(156,'MP'),(157,'MQ'),(158,'MR'),(159,'MS'),(160,'MT'),(161,'MU'),(162,'MV'),(163,'MW'),(164,'MX'),(165,'MY'),(166,'MZ'),(167,'NA'),(168,'NC'),(169,'NE'),(170,'NF'),(171,'NG'),(172,'NI'),(173,'NL'),(174,'NO'),(175,'NP'),(176,'NQ'),(177,'NR'),(178,'NT'),(179,'NU'),(180,'NZ'),(181,'OM'),(182,'PA'),(183,'PC'),(184,'PE'),(185,'PF'),(186,'PG'),(187,'PH'),(188,'PK'),(189,'PL'),(190,'PM'),(191,'PN'),(192,'PR'),(193,'PS'),(194,'PT'),(195,'PU'),(196,'PW'),(197,'PY'),(198,'PZ'),(199,'QA'),(200,'RE'),(201,'RO'),(202,'RS'),(203,'RU'),(204,'RW'),(205,'SA'),(206,'SB'),(207,'SC'),(208,'SD'),(209,'SE'),(210,'SG'),(211,'SH'),(212,'SI'),(213,'SJ'),(214,'SK'),(215,'SL'),(216,'SM'),(217,'SN'),(218,'SO'),(219,'SR'),(220,'ST'),(221,'SV'),(222,'SY'),(223,'SZ'),(224,'TC'),(225,'TD'),(226,'TF'),(227,'TG'),(228,'TH'),(229,'TJ'),(230,'TK'),(231,'TL'),(232,'TM'),(233,'TN'),(234,'TO'),(235,'TR'),(236,'TT'),(237,'TV'),(238,'TW'),(239,'TZ'),(240,'UA'),(241,'UG'),(242,'UM'),(243,'US'),(244,'UY'),(245,'UZ'),(246,'VA'),(247,'VC'),(248,'VD'),(249,'VE'),(250,'VG'),(251,'VI'),(252,'VN'),(253,'VU'),(254,'WF'),(255,'WK'),(256,'WS'),(257,'YD'),(258,'YE'),(259,'YT'),(260,'ZA'),(261,'ZM'),(262,'ZW'); /*!40000 ALTER TABLE `shopping_list_country` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_list_state` -- DROP TABLE IF EXISTS `shopping_list_state`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_list_state` ( `id` int(11) NOT NULL AUTO_INCREMENT, `country` varchar(10) COLLATE utf8_unicode_ci NOT NULL, `state` varchar(10) COLLATE utf8_unicode_ci NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=73 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_list_state` -- LOCK TABLES `shopping_list_state` WRITE; /*!40000 ALTER TABLE `shopping_list_state` DISABLE KEYS */; INSERT INTO `shopping_list_state` VALUES (1,'US','AL','Alabama'),(2,'US','AK','Alaska'),(3,'US','AZ','Arizona'),(4,'US','AR','Arkansas'),(5,'US','CA','California'),(6,'US','CO','Colorado'),(7,'US','CT','Connecticut'),(8,'US','DE','Delaware'),(9,'US','DC','District Of Columbia'),(10,'US','FL','Florida'),(11,'US','GA','Georgia'),(12,'US','HI','Hawaii'),(13,'US','ID','Idaho'),(14,'US','IL','Illinois'),(15,'US','IN','Indiana'),(16,'US','IA','Iowa'),(17,'US','KS','Kansas'),(18,'US','KY','Kentucky'),(19,'US','LA','Louisiana'),(20,'US','ME','Maine'),(21,'US','MD','Maryland'),(22,'US','MA','Massachusetts'),(23,'US','MI','Michigan'),(24,'US','MN','Minnesota'),(25,'US','MS','Mississippi'),(26,'US','MO','Missouri'),(27,'US','MT','Montana'),(28,'US','NE','Nebraska'),(29,'US','NV','Nevada'),(30,'US','NH','New Hampshire'),(31,'US','NJ','New Jersey'),(32,'US','NM','New Mexico'),(33,'US','NY','New York'),(34,'US','NC','North Carolina'),(35,'US','ND','North Dakota'),(36,'US','OH','Ohio'),(37,'US','OK','Oklahoma'),(38,'US','OR','Oregon'),(39,'US','PA','Pennsylvania'),(40,'US','RI','Rhode Island'),(41,'US','SC','South Carolina'),(42,'US','SD','South Dakota'),(43,'US','TN','Tennessee'),(44,'US','TX','Texas'),(45,'US','UT','Utah'),(46,'US','VT','Vermont'),(47,'US','VA','Virginia'),(48,'US','WA','Washington'),(49,'US','WV','West Virginia'),(50,'US','WI','Wisconsin'),(51,'US','WY','Wyoming'),(52,'CA','AB','Alberta'),(53,'CA','BC','British Columbia'),(54,'CA','MB','Manitoba'),(55,'CA','NB','New Brunswick'),(56,'CA','NF','Newfoundland and Labrador'),(57,'CA','NT','Northwest Territories'),(58,'CA','NS','Nova Scotia'),(59,'CA','NU','Nunavut'),(60,'CA','ON','Ontario'),(61,'CA','PE','Prince Edward Island'),(62,'CA','QC','Quebec'),(63,'CA','SK','Saskatchewan'),(64,'CA','YT','Yukon Territory'),(65,'AU','ACT','Australian Capital Territory'),(66,'AU','NSW','New South Wales'),(67,'AU','NT','Northern Territory'),(68,'AU','QLD','Queensland'),(69,'AU','SA','South Australia'),(70,'AU','TAS','Tasmania'),(71,'AU','VIC','Victoria'),(72,'AU','WA','Western Australia'); /*!40000 ALTER TABLE `shopping_list_state` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_notification_notified_products` -- DROP TABLE IF EXISTS `shopping_notification_notified_products`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_notification_notified_products` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL, `product_id` int(10) unsigned NOT NULL, `added_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `send_notification` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `user_id` (`user_id`), KEY `product_id` (`product_id`), CONSTRAINT `shopping_notification_notified_products_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `shopping_notification_notified_products_ibfk_2` FOREIGN KEY (`product_id`) REFERENCES `shopping_product` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_notification_notified_products` -- LOCK TABLES `shopping_notification_notified_products` WRITE; /*!40000 ALTER TABLE `shopping_notification_notified_products` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_notification_notified_products` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_pickup_location` -- DROP TABLE IF EXISTS `shopping_pickup_location`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_pickup_location` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `address1` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `address2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `zip` varchar(10) COLLATE utf8_unicode_ci NOT NULL, `country` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `city` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `working_hours` text COLLATE utf8_unicode_ci NOT NULL, `phone` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `location_category_id` int(10) unsigned NOT NULL, `lat` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `lng` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `notes` text COLLATE utf8_unicode_ci, `weight` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `external_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `allowed_to_delete` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', PRIMARY KEY (`id`), KEY `country` (`country`), KEY `city` (`city`), KEY `country_city` (`city`,`country`), KEY `location_category_id` (`location_category_id`), CONSTRAINT `shopping_pickup_location_ibfk_1` FOREIGN KEY (`location_category_id`) REFERENCES `shopping_pickup_location_category` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_pickup_location` -- LOCK TABLES `shopping_pickup_location` WRITE; /*!40000 ALTER TABLE `shopping_pickup_location` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_pickup_location` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_pickup_location_cart` -- DROP TABLE IF EXISTS `shopping_pickup_location_cart`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_pickup_location_cart` ( `cart_id` int(10) unsigned NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `address1` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `address2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `zip` varchar(10) COLLATE utf8_unicode_ci NOT NULL, `country` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `city` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `working_hours` text COLLATE utf8_unicode_ci NOT NULL, `phone` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `location_category_id` int(10) unsigned NOT NULL, `lat` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `lng` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`cart_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_pickup_location_cart` -- LOCK TABLES `shopping_pickup_location_cart` WRITE; /*!40000 ALTER TABLE `shopping_pickup_location_cart` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_pickup_location_cart` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_pickup_location_category` -- DROP TABLE IF EXISTS `shopping_pickup_location_category`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_pickup_location_category` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `img` varchar(300) COLLATE utf8_unicode_ci DEFAULT NULL, `external_category` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_pickup_location_category` -- LOCK TABLES `shopping_pickup_location_category` WRITE; /*!40000 ALTER TABLE `shopping_pickup_location_category` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_pickup_location_category` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_pickup_location_config` -- DROP TABLE IF EXISTS `shopping_pickup_location_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_pickup_location_config` ( `id` int(10) unsigned NOT NULL, `amount_type_limit` enum('up to','over','eachover') COLLATE utf8_unicode_ci DEFAULT NULL, `amount_limit` decimal(10,2) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_pickup_location_config` -- LOCK TABLES `shopping_pickup_location_config` WRITE; /*!40000 ALTER TABLE `shopping_pickup_location_config` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_pickup_location_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_pickup_location_zones` -- DROP TABLE IF EXISTS `shopping_pickup_location_zones`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_pickup_location_zones` ( `config_id` int(10) unsigned NOT NULL, `pickup_location_category_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `amount_location_category` decimal(10,2) DEFAULT NULL, `config_zone_id` int(10) unsigned NOT NULL, PRIMARY KEY (`config_id`,`config_zone_id`), CONSTRAINT `shopping_pickup_location_zones_ibfk_1` FOREIGN KEY (`config_id`) REFERENCES `shopping_pickup_location_config` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_pickup_location_zones` -- LOCK TABLES `shopping_pickup_location_zones` WRITE; /*!40000 ALTER TABLE `shopping_pickup_location_zones` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_pickup_location_zones` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_product` -- DROP TABLE IF EXISTS `shopping_product`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_product` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `parent_id` int(10) unsigned DEFAULT NULL, `page_id` int(10) unsigned DEFAULT NULL, `enabled` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '1', `sku` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `name` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `mpn` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL, `weight` decimal(8,3) DEFAULT NULL, `brand_id` int(10) unsigned DEFAULT NULL, `photo` varchar(300) COLLATE utf8_unicode_ci DEFAULT NULL, `short_description` mediumtext COLLATE utf8_unicode_ci, `full_description` text COLLATE utf8_unicode_ci, `price` decimal(10,4) DEFAULT NULL, `tax_class` enum('0','1','2','3') COLLATE utf8_unicode_ci DEFAULT '1', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `base_price` decimal(10,2) DEFAULT NULL, `inventory` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `free_shipping` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `is_digital` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `prod_length` decimal(10,2) DEFAULT NULL, `prod_depth` decimal(10,2) DEFAULT NULL, `prod_width` decimal(10,2) DEFAULT NULL, `gtin` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `wishlist_qty` int(10) unsigned DEFAULT '0', `minimum_order` int(3) unsigned DEFAULT '0', `negative_stock` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `condition` enum('new','refurbished','used') COLLATE utf8_unicode_ci DEFAULT 'new', PRIMARY KEY (`id`), UNIQUE KEY `sku` (`sku`), KEY `page_id` (`page_id`), KEY `brand_id` (`brand_id`) ) ENGINE=InnoDB AUTO_INCREMENT=106 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_product` -- LOCK TABLES `shopping_product` WRITE; /*!40000 ALTER TABLE `shopping_product` DISABLE KEYS */; INSERT INTO `shopping_product` VALUES (97,NULL,608,'1','1-1-1','product new 1','',NULL,4,'new-products/eye-shadow.jpg','Lorem ipsum dolor sit amet, non quis nulla justo id eleifend vitae, parturient sapien sodales vel.','',20.0000,'1','2016-10-12 04:57:44',NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,0,0,'0','new'),(98,NULL,609,'1','2-2-2','product new 2','',NULL,4,'new-products/nail-varnish-.jpg','product new 2','',20.0000,'1','2016-10-12 04:58:48','2016-10-26 04:26:02',NULL,NULL,'0','0',NULL,NULL,NULL,NULL,0,0,'0','new'),(99,NULL,610,'1','3-3-3','Super Lustrous Lipstick','',NULL,4,'new-products/lipstick.jpg','product new 3','',20.0000,'1','2016-10-12 04:59:33','2016-10-26 04:21:57',NULL,NULL,'0','0',NULL,NULL,NULL,NULL,0,0,'0','new'),(100,NULL,611,'1','4-4-4','Proruct new 4','',NULL,4,'new-products/eye-shadow1.jpg','Proruct new 4','',30.0000,'1','2016-10-12 06:47:37','2016-10-25 06:12:31',NULL,NULL,'0','0',NULL,NULL,NULL,NULL,0,0,'0','new'),(101,NULL,612,'1','5-5-5','Product new 5','',NULL,4,'new-products/lipstick1.jpg','Product new 5','',30.0000,'1','2016-10-12 06:48:48','2016-10-26 04:23:57',NULL,NULL,'0','0',NULL,NULL,NULL,NULL,0,0,'0','new'),(102,NULL,613,'1','6-6-6','Nail Polish - Park Dark','',NULL,4,'new-products/manicure.jpg','This nail polish available in vivid shades that pop, wow, flatter and inspire. In cream, glitter, shimmer and matte, and in formulas you want, that provide full colour coverage.','',40.0000,'1','2016-10-12 06:50:06','2016-10-26 04:26:11',NULL,NULL,'0','0',NULL,NULL,NULL,NULL,0,0,'0','new'),(103,NULL,614,'1','8-8-8','Product new 8','',NULL,4,'new-products/nail-varnish1.jpg','Product new 8','',20.0000,'1','2016-10-12 07:34:24','2016-10-26 04:26:25',NULL,NULL,'0','0',NULL,NULL,NULL,NULL,0,0,'0','new'),(104,NULL,621,'1','56443','cream for face','',NULL,4,'new-products/face-cream.jpg','cream for face','',30.0000,'1','2016-10-26 04:01:40','2017-01-27 05:14:06',NULL,NULL,'0','0',NULL,NULL,NULL,NULL,0,0,'0','new'),(105,NULL,622,'1','2112','cream for face 1','',NULL,4,'new-products/face-cream.jpg','cream for face 1','',40.0000,'1','2016-10-26 04:07:16','2017-01-27 05:14:32',NULL,NULL,'0','0',NULL,NULL,NULL,NULL,0,0,'0','new'); /*!40000 ALTER TABLE `shopping_product` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_product_custom_fields_config` -- DROP TABLE IF EXISTS `shopping_product_custom_fields_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_product_custom_fields_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `param_type` enum('text','select') COLLATE utf8_unicode_ci DEFAULT 'text', `param_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `param_type` (`param_type`,`param_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_product_custom_fields_config` -- LOCK TABLES `shopping_product_custom_fields_config` WRITE; /*!40000 ALTER TABLE `shopping_product_custom_fields_config` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_product_custom_fields_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_product_custom_params_data` -- DROP TABLE IF EXISTS `shopping_product_custom_params_data`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_product_custom_params_data` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `param_id` int(10) unsigned NOT NULL, `product_id` int(10) unsigned NOT NULL, `param_value` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `params_option_id` int(10) DEFAULT NULL, PRIMARY KEY (`id`), KEY `param_id` (`param_id`), KEY `product_id` (`product_id`), CONSTRAINT `shopping_product_custom_params_data_ibfk_1` FOREIGN KEY (`param_id`) REFERENCES `shopping_product_custom_fields_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `shopping_product_custom_params_data_ibfk_2` FOREIGN KEY (`product_id`) REFERENCES `shopping_product` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_product_custom_params_data` -- LOCK TABLES `shopping_product_custom_params_data` WRITE; /*!40000 ALTER TABLE `shopping_product_custom_params_data` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_product_custom_params_data` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_product_custom_params_options_data` -- DROP TABLE IF EXISTS `shopping_product_custom_params_options_data`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_product_custom_params_options_data` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `custom_param_id` int(10) unsigned NOT NULL, `option_value` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `custom_param_id` (`custom_param_id`), CONSTRAINT `shopping_product_custom_params_options_data_ibfk_1` FOREIGN KEY (`custom_param_id`) REFERENCES `shopping_product_custom_fields_config` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_product_custom_params_options_data` -- LOCK TABLES `shopping_product_custom_params_options_data` WRITE; /*!40000 ALTER TABLE `shopping_product_custom_params_options_data` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_product_custom_params_options_data` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_product_digital_goods` -- DROP TABLE IF EXISTS `shopping_product_digital_goods`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_product_digital_goods` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `file_stored_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Stored file name', `file_hash` char(40) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Hash for download link', `original_file_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Original file name', `display_file_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Display file name', `product_id` int(10) unsigned NOT NULL COMMENT 'Product id', `uploaded_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Upload date', `start_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Start sales date', `end_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'End sales date', `download_limit` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'File download limit', `product_type` enum('downloadable','viewable') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'downloadable' COMMENT 'Digital product distribution type', `ip_address` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `file_hash` (`file_hash`), KEY `shopping_product_digital_goods_ibfk_1` (`product_id`), CONSTRAINT `shopping_product_digital_goods_ibfk_1` FOREIGN KEY (`product_id`) REFERENCES `shopping_product` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_product_digital_goods` -- LOCK TABLES `shopping_product_digital_goods` WRITE; /*!40000 ALTER TABLE `shopping_product_digital_goods` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_product_digital_goods` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_product_freebies_settings` -- DROP TABLE IF EXISTS `shopping_product_freebies_settings`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_product_freebies_settings` ( `prod_id` int(10) unsigned NOT NULL, `price_value` decimal(10,4) DEFAULT '0.0000', `quantity` int(4) unsigned DEFAULT '0', PRIMARY KEY (`prod_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_product_freebies_settings` -- LOCK TABLES `shopping_product_freebies_settings` WRITE; /*!40000 ALTER TABLE `shopping_product_freebies_settings` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_product_freebies_settings` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_product_has_freebies` -- DROP TABLE IF EXISTS `shopping_product_has_freebies`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_product_has_freebies` ( `product_id` int(10) unsigned NOT NULL, `freebies_id` int(10) unsigned NOT NULL, `freebies_quantity` int(4) unsigned NOT NULL, PRIMARY KEY (`product_id`,`freebies_id`), KEY `freebies_id` (`freebies_id`), CONSTRAINT `shopping_product_has_freebies_ibfk_1` FOREIGN KEY (`freebies_id`) REFERENCES `shopping_product` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_product_has_freebies` -- LOCK TABLES `shopping_product_has_freebies` WRITE; /*!40000 ALTER TABLE `shopping_product_has_freebies` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_product_has_freebies` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_product_has_option` -- DROP TABLE IF EXISTS `shopping_product_has_option`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_product_has_option` ( `product_id` int(10) unsigned NOT NULL, `option_id` int(10) unsigned NOT NULL, PRIMARY KEY (`product_id`,`option_id`), KEY `fk_shopping_product_has_shopping_product_option_shopping_prod2` (`option_id`), CONSTRAINT `shopping_product_has_option_ibfk_1` FOREIGN KEY (`option_id`) REFERENCES `shopping_product_option` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `shopping_product_has_option_ibfk_2` FOREIGN KEY (`product_id`) REFERENCES `shopping_product` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_product_has_option` -- LOCK TABLES `shopping_product_has_option` WRITE; /*!40000 ALTER TABLE `shopping_product_has_option` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_product_has_option` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_product_has_part` -- DROP TABLE IF EXISTS `shopping_product_has_part`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_product_has_part` ( `product_id` int(10) unsigned NOT NULL, `part_id` int(10) unsigned NOT NULL, PRIMARY KEY (`product_id`,`part_id`), CONSTRAINT `shopping_product_has_part_ibfk_1` FOREIGN KEY (`product_id`) REFERENCES `shopping_product` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_product_has_part` -- LOCK TABLES `shopping_product_has_part` WRITE; /*!40000 ALTER TABLE `shopping_product_has_part` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_product_has_part` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_product_has_related` -- DROP TABLE IF EXISTS `shopping_product_has_related`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_product_has_related` ( `product_id` int(10) unsigned NOT NULL, `related_id` int(10) unsigned NOT NULL, PRIMARY KEY (`product_id`,`related_id`), KEY `fk_shopping_product1` (`related_id`), KEY `fk_shopping_product2` (`product_id`), CONSTRAINT `shopping_product_has_related_ibfk_1` FOREIGN KEY (`product_id`) REFERENCES `shopping_product` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_product_has_related` -- LOCK TABLES `shopping_product_has_related` WRITE; /*!40000 ALTER TABLE `shopping_product_has_related` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_product_has_related` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_product_has_tag` -- DROP TABLE IF EXISTS `shopping_product_has_tag`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_product_has_tag` ( `product_id` int(10) unsigned NOT NULL, `tag_id` int(10) unsigned NOT NULL, PRIMARY KEY (`product_id`,`tag_id`), KEY `tag_id` (`tag_id`), CONSTRAINT `shopping_product_has_tag_ibfk_2` FOREIGN KEY (`product_id`) REFERENCES `shopping_product` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `shopping_product_has_tag_ibfk_3` FOREIGN KEY (`tag_id`) REFERENCES `shopping_tags` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_product_has_tag` -- LOCK TABLES `shopping_product_has_tag` WRITE; /*!40000 ALTER TABLE `shopping_product_has_tag` DISABLE KEYS */; INSERT INTO `shopping_product_has_tag` VALUES (97,11),(98,11),(99,11),(100,11),(101,11),(102,11),(103,11),(104,11),(105,11),(97,12),(98,12),(99,12),(102,12),(100,13),(101,13),(102,13),(103,13),(104,14),(105,14),(99,15),(101,15),(98,16),(102,16),(103,16); /*!40000 ALTER TABLE `shopping_product_has_tag` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_product_option` -- DROP TABLE IF EXISTS `shopping_product_option`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_product_option` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `parentId` int(10) unsigned DEFAULT NULL, `title` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `type` enum('dropdown','radio','text','date','file','textarea','additionalpricefield') COLLATE utf8_unicode_ci NOT NULL, `hideDefaultOption` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', PRIMARY KEY (`id`), KEY `indTitle` (`title`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_product_option` -- LOCK TABLES `shopping_product_option` WRITE; /*!40000 ALTER TABLE `shopping_product_option` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_product_option` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_product_option_selection` -- DROP TABLE IF EXISTS `shopping_product_option_selection`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_product_option_selection` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `option_id` int(10) unsigned DEFAULT NULL, `title` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL, `priceSign` enum('+','-') COLLATE utf8_unicode_ci DEFAULT NULL, `priceValue` decimal(10,4) DEFAULT NULL, `priceType` enum('percent','unit') COLLATE utf8_unicode_ci DEFAULT NULL, `weightSign` enum('+','-') COLLATE utf8_unicode_ci DEFAULT NULL, `weightValue` decimal(8,3) DEFAULT NULL, `isDefault` enum('1','0') COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `indTitle` (`title`), KEY `fk_shopping_product_option_selection_shopping_product_option1` (`option_id`), CONSTRAINT `fk_shopping_product_option_selection_shopping_product_option1` FOREIGN KEY (`option_id`) REFERENCES `shopping_product_option` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_product_option_selection` -- LOCK TABLES `shopping_product_option_selection` WRITE; /*!40000 ALTER TABLE `shopping_product_option_selection` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_product_option_selection` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_product_set_settings` -- DROP TABLE IF EXISTS `shopping_product_set_settings`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_product_set_settings` ( `productId` int(10) unsigned NOT NULL, `autoCalculatePrice` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '1', PRIMARY KEY (`productId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_product_set_settings` -- LOCK TABLES `shopping_product_set_settings` WRITE; /*!40000 ALTER TABLE `shopping_product_set_settings` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_product_set_settings` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_quote` -- DROP TABLE IF EXISTS `shopping_quote`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_quote` ( `id` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `status` enum('new','sent','signature_only_signed','sold','lost') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'new', `disclaimer` text COLLATE utf8_unicode_ci, `internal_note` text COLLATE utf8_unicode_ci, `discount_tax_rate` enum('0','1','2','3') COLLATE utf8_unicode_ci DEFAULT '1', `delivery_type` tinytext COLLATE utf8_unicode_ci, `cart_id` int(10) unsigned DEFAULT NULL, `edited_by` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `editor_id` int(10) DEFAULT NULL, `creator_id` int(10) unsigned DEFAULT '0', `expires_at` timestamp NULL DEFAULT NULL, `expiration_notification_is_send` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `user_id` int(10) unsigned DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `payment_type` enum('full_payment','partial_payment','only_signature') COLLATE utf8_unicode_ci DEFAULT 'full_payment', `is_signature_required` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `pdf_template` varchar(45) COLLATE utf8_unicode_ci DEFAULT '', `signature` longtext COLLATE utf8_unicode_ci, `is_quote_signed` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `quote_signed_at` timestamp NULL DEFAULT NULL, `is_quote_restricted_control` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `signature_info_field` text COLLATE utf8_unicode_ci, PRIMARY KEY (`id`), KEY `title` (`title`), KEY `status` (`status`), KEY `edited_by` (`edited_by`), KEY `cart_id` (`cart_id`), KEY `user_id` (`user_id`), CONSTRAINT `shopping_quote_ibfk_2` FOREIGN KEY (`cart_id`) REFERENCES `shopping_cart_session` (`id`) ON DELETE SET NULL, CONSTRAINT `shopping_quote_ibfk_3` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_quote` -- LOCK TABLES `shopping_quote` WRITE; /*!40000 ALTER TABLE `shopping_quote` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_quote` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_quote_conversions` -- DROP TABLE IF EXISTS `shopping_quote_conversions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_quote_conversions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `cart_id` int(10) unsigned NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `cart_id` (`cart_id`), CONSTRAINT `shopping_quote_conversions_ibfk_1` FOREIGN KEY (`cart_id`) REFERENCES `shopping_cart_session` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_quote_conversions` -- LOCK TABLES `shopping_quote_conversions` WRITE; /*!40000 ALTER TABLE `shopping_quote_conversions` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_quote_conversions` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_quote_draggable` -- DROP TABLE IF EXISTS `shopping_quote_draggable`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_quote_draggable` ( `quoteId` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `data` text COLLATE utf8_unicode_ci, PRIMARY KEY (`quoteId`), CONSTRAINT `shopping_quote_draggable_ibfk_1` FOREIGN KEY (`quoteId`) REFERENCES `shopping_quote` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_quote_draggable` -- LOCK TABLES `shopping_quote_draggable` WRITE; /*!40000 ALTER TABLE `shopping_quote_draggable` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_quote_draggable` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_recurring_payment` -- DROP TABLE IF EXISTS `shopping_recurring_payment`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_recurring_payment` ( `cart_id` int(10) unsigned NOT NULL COMMENT 'Cart id', `subscription_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Subscription id', `ipn_tracking_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Ipn number', `gateway_type` varchar(100) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Payment gateway name', `payment_period` varchar(30) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Frequency of recurring payment', `recurring_times` smallint(5) unsigned NOT NULL COMMENT 'Amount of payments', `subscription_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Subscription date', `payment_cycle_amount` decimal(10,4) DEFAULT NULL COMMENT 'Amount for each recurring cycle', `total_amount_paid` decimal(10,4) DEFAULT NULL COMMENT 'Amount paid', `last_payment_date` date NOT NULL DEFAULT '0000-00-00' COMMENT 'Last payment date', `next_payment_date` date NOT NULL DEFAULT '0000-00-00' COMMENT 'Next payment date', `recurring_status` enum('new','active','pending','expired','suspended','canceled') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'new' COMMENT 'Recurring payment status', `accept_changing_next_billing_date` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0' COMMENT 'Flag for change next payment date', `accept_changing_shipping_address` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0' COMMENT 'Flag for change shipping address', `free_transaction_cycle` tinyint(3) unsigned DEFAULT NULL COMMENT 'Free transaction cycle quantity', `transactions_quantity` smallint(5) unsigned DEFAULT NULL COMMENT 'Transaction total quantity', `custom_type` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Additional information for payment', PRIMARY KEY (`cart_id`), CONSTRAINT `shopping_recurring_payment_ibfk_2` FOREIGN KEY (`cart_id`) REFERENCES `shopping_cart_session` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_recurring_payment` -- LOCK TABLES `shopping_recurring_payment` WRITE; /*!40000 ALTER TABLE `shopping_recurring_payment` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_recurring_payment` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_shipping_config` -- DROP TABLE IF EXISTS `shopping_shipping_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_shipping_config` ( `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Shipping plugin name', `enabled` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', `config` text COLLATE utf8_unicode_ci, PRIMARY KEY (`name`), KEY `enabled` (`enabled`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_shipping_config` -- LOCK TABLES `shopping_shipping_config` WRITE; /*!40000 ALTER TABLE `shopping_shipping_config` DISABLE KEYS */; INSERT INTO `shopping_shipping_config` VALUES ('freeshipping','1',NULL),('pickup','1',NULL); /*!40000 ALTER TABLE `shopping_shipping_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_shipping_service_label` -- DROP TABLE IF EXISTS `shopping_shipping_service_label`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_shipping_service_label` ( `name` varchar(200) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Service Name', `label` varchar(200) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Service Custom Label', UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_shipping_service_label` -- LOCK TABLES `shopping_shipping_service_label` WRITE; /*!40000 ALTER TABLE `shopping_shipping_service_label` DISABLE KEYS */; INSERT INTO `shopping_shipping_service_label` VALUES ('delivery','Delivery service'),('flatrateshipping','Flatrateshipping'); /*!40000 ALTER TABLE `shopping_shipping_service_label` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_shipping_url` -- DROP TABLE IF EXISTS `shopping_shipping_url`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_shipping_url` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `default_status` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_shipping_url` -- LOCK TABLES `shopping_shipping_url` WRITE; /*!40000 ALTER TABLE `shopping_shipping_url` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_shipping_url` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_tags` -- DROP TABLE IF EXISTS `shopping_tags`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_tags` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(200) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_tags` -- LOCK TABLES `shopping_tags` WRITE; /*!40000 ALTER TABLE `shopping_tags` DISABLE KEYS */; INSERT INTO `shopping_tags` VALUES (15,'Lips'),(16,'Nails'),(11,'New product'),(12,'Recommended'),(13,'Sale'),(14,'Skin'); /*!40000 ALTER TABLE `shopping_tags` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_tax` -- DROP TABLE IF EXISTS `shopping_tax`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_tax` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `zoneId` int(10) unsigned NOT NULL, `rate1` decimal(10,2) NOT NULL DEFAULT '0.00', `rate2` decimal(10,2) NOT NULL DEFAULT '0.00', `rate3` decimal(10,2) NOT NULL DEFAULT '0.00', `isDefault` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `zoneId` (`zoneId`), CONSTRAINT `shopping_tax_ibfk_1` FOREIGN KEY (`zoneId`) REFERENCES `shopping_zone` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_tax` -- LOCK TABLES `shopping_tax` WRITE; /*!40000 ALTER TABLE `shopping_tax` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_tax` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_wishlist_wished_products` -- DROP TABLE IF EXISTS `shopping_wishlist_wished_products`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_wishlist_wished_products` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL, `product_id` int(10) unsigned NOT NULL, `added_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `user_id` (`user_id`), KEY `product_id` (`product_id`), CONSTRAINT `shopping_wishlist_wished_products_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `shopping_wishlist_wished_products_ibfk_2` FOREIGN KEY (`product_id`) REFERENCES `shopping_product` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_wishlist_wished_products` -- LOCK TABLES `shopping_wishlist_wished_products` WRITE; /*!40000 ALTER TABLE `shopping_wishlist_wished_products` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_wishlist_wished_products` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_zone` -- DROP TABLE IF EXISTS `shopping_zone`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_zone` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(200) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_zone` -- LOCK TABLES `shopping_zone` WRITE; /*!40000 ALTER TABLE `shopping_zone` DISABLE KEYS */; INSERT INTO `shopping_zone` VALUES (1,'US'),(2,'CA'),(3,'EU'); /*!40000 ALTER TABLE `shopping_zone` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_zone_country` -- DROP TABLE IF EXISTS `shopping_zone_country`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_zone_country` ( `zone_id` int(11) unsigned NOT NULL, `country_id` int(11) unsigned NOT NULL, PRIMARY KEY (`zone_id`,`country_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_zone_country` -- LOCK TABLES `shopping_zone_country` WRITE; /*!40000 ALTER TABLE `shopping_zone_country` DISABLE KEYS */; INSERT INTO `shopping_zone_country` VALUES (1,243),(2,39),(3,13),(3,21),(3,23),(3,57),(3,58),(3,60),(3,62),(3,67),(3,71),(3,73),(3,79),(3,82),(3,94),(3,105),(3,107),(3,115),(3,139),(3,140),(3,141),(3,160),(3,173),(3,189),(3,194),(3,201),(3,209),(3,212),(3,214); /*!40000 ALTER TABLE `shopping_zone_country` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_zone_state` -- DROP TABLE IF EXISTS `shopping_zone_state`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_zone_state` ( `zone_id` int(10) unsigned NOT NULL, `state_id` int(10) unsigned NOT NULL, PRIMARY KEY (`zone_id`,`state_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_zone_state` -- LOCK TABLES `shopping_zone_state` WRITE; /*!40000 ALTER TABLE `shopping_zone_state` DISABLE KEYS */; INSERT INTO `shopping_zone_state` VALUES (1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9),(1,10),(1,11),(1,12),(1,13),(1,14),(1,15),(1,16),(1,17),(1,18),(1,19),(1,20),(1,21),(1,22),(1,23),(1,24),(1,25),(1,26),(1,27),(1,28),(1,29),(1,30),(1,31),(1,32),(1,33),(1,34),(1,35),(1,36),(1,37),(1,38),(1,39),(1,40),(1,41),(1,42),(1,43),(1,44),(1,45),(1,46),(1,47),(1,48),(1,49),(1,50),(1,51),(2,52),(2,53),(2,54),(2,55),(2,56),(2,57),(2,58),(2,59),(2,60),(2,61),(2,62),(2,63),(2,64); /*!40000 ALTER TABLE `shopping_zone_state` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shopping_zone_zip` -- DROP TABLE IF EXISTS `shopping_zone_zip`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shopping_zone_zip` ( `zone_id` int(11) NOT NULL, `zip` varchar(10) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`zone_id`,`zip`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shopping_zone_zip` -- LOCK TABLES `shopping_zone_zip` WRITE; /*!40000 ALTER TABLE `shopping_zone_zip` DISABLE KEYS */; /*!40000 ALTER TABLE `shopping_zone_zip` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `silo` -- DROP TABLE IF EXISTS `silo`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `silo` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `indName` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `silo` -- LOCK TABLES `silo` WRITE; /*!40000 ALTER TABLE `silo` DISABLE KEYS */; /*!40000 ALTER TABLE `silo` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `template` -- DROP TABLE IF EXISTS `template`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `template` ( `name` varchar(45) COLLATE utf8_unicode_ci NOT NULL, `content` longtext COLLATE utf8_unicode_ci NOT NULL, `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`name`), KEY `type` (`type`), CONSTRAINT `template_ibfk_1` FOREIGN KEY (`type`) REFERENCES `template_type` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `template` -- LOCK TABLES `template` WRITE; /*!40000 ALTER TABLE `template` DISABLE KEYS */; INSERT INTO `template` VALUES ('category','\n\n\n \n {$page:title}\n \n \n \n\n \n \n \n\n \n\n\n\n\n
\n
\n
\n
\n \n \"seotoaster\"\n \n
\n
\n
\n

Welcome to SEOTOASTER V2 !

\n \n
\n
\n
\n \n
\n

{$page:h1}

\n
\n

Header widgets

\n {$header:header}\n {$header:header1:static}\n
\n
\n

Content widgets

\n {$content:header}\n {$content:header1:static}\n
\n
\n

Image Only widget

\n {$imageonly:photo:200}\n
\n
\n

Gallery Only widget

\n {$galleryonly:uniq_name}\n
\n
\n

Text Only widget

\n {$textonly:uniq_name}\n
\n
\n

Featured Area Only widget

\n {$featuredonly:name}\n
\n
\n

DirectUpload widget

\n {$directupload:foldername:imagename:100::crop}\n
\n
\n
\n
\n

Powered by Free & Open Source Ecommerce Website Builder SEOTOASTER, Courtesy of SEO Samba.

\n
\n
\n{$content:newContent}\n\n','typeregular'),('CRM subscription','\n\n\n {$plugin:widcard:BizOrgName:notag}\n\n\n\n \n \n \n \n
\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n \n \n \n \n \n \n
\n \n \n \n \n \n \n \n
\n

You\'re losing out on critical sales data.

\n

Upgrade your CRM subscription now

\n
\n \"arrow\"\n
\n
\n \n \n \n \n
\n \n {emailmessage}\n\n
\n
\n\n \n \n \n \n \n \n \n
\n Upgrade your CRM subscription now! \n
\n Don\'t lose any more valuable opportunities. \n
\n
\n SeoSamba CRM\n
\n
\n\n\n','typemail'),('default','\n\n\n \n {$page:title}\n \n \n \n\n \n \n \n\n \n\n\n\n\n
\n
\n
\n
\n \n \"seotoaster\"\n \n
\n
\n
\n

Welcome to SEOTOASTER V2 !

\n \n
\n
\n
\n \n
\n

{$page:h1}

\n
\n

Header widgets

\n {$header:header}\n {$header:header1:static}\n
\n
\n

Content widgets

\n {$content:header}\n {$content:header1:static}\n
\n
\n

Image Only widget

\n {$imageonly:photo:200}\n
\n
\n

Gallery Only widget

\n {$galleryonly:uniq_name}\n
\n
\n

Text Only widget

\n {$textonly:uniq_name}\n
\n
\n

FeaturedArea Only widget

\n {$featuredonly:name}\n
\n
\n

DirectUpload widget

\n {$directupload:foldername:imagename:100::crop}\n
\n
\n
\n
\n

Powered by Free & Open Source Ecommerce Website Builder SEOTOASTER, Courtesy of SEO Samba.

\n
\n
\n{$content:newContent}\n\n','typeregular'),('email message','\n\n\n \n \n\n\n\n\n \n \n \n \n \n
 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n \"{$plugin:widcard:BizOrgName:notag}\"\n \n \n \n \"facebook\"\n \n \n \"GMB\"\n \n \n \"twitter\"\n \n \n \"linkedin\"\n \n
\n {emailmessage}\n
\n
\n {$plugin:widcard:BizOrgName:notag} | {$plugin:widcard:BizAddress1:notag}, {$plugin:widcard:BizCity:notag}, {$plugin:widcard:BizState:notag} {$plugin:widcard:BizZip:notag} | Tel : {$plugin:widcard:BizTelephone:notag}
\n
\n
 
\n\n','typemail'),('index','\n\n\n \n {$page:title}\n \n \n \n\n \n \n \n\n \n\n\n\n\n
\n\n
\n
\n

\n \n \"seotoaster\"\n \n

\n
\n\n
\n

Congratulations,
you have successfully installed
\n SEOTOASTER V3 !

\n
Now log into your admin console at {$website:url}go
\n
\n
\n {adminonly}\n \n
\n

1Hit the ground running: get your website on the map now

\n\n

Complete the website ID [WID] card below. It\'s a great time saver, and when you use one of our free premium\n themes your information shows up in all the right places throughout your website.

\n\n

In addition, SEOTOASTER build a kml file to help search engines and geolocation services locate your\n business while plug-ins work better and provide you with a pre-built mobile\n version of your website for instance.

\n
\n\n {$plugin:widcard:landing}\n

2Use the easy-to-follow assembly instructions

\n \n \n \n\n
\n {/adminonly}\n
\n
\n

Powered by Free & Open Source Ecommerce Website Builder SEOTOASTER, Courtesy of SEO Samba.

\n
\n{$content:newContent}\n\n','typeregular'),('news','\r\n\r\n \r\n {$template:_head}\r\n \r\n \r\n {$template:_header}\r\n
\r\n

{$page:h1}

\r\n
\r\n {newscontent}\r\n {repeat:Article blocks:key}\r\n
\r\n

{$header:content_key}

\r\n {$content:content_key1}\r\n {$content:content_key2}\r\n
\r\n {/repeat}\r\n {/newscontent}\r\n
\r\n \r\n
\r\n {$template:_footer}\r\n {$template:_mobile elements}\r\n {$template:_scripts}\r\n \r\n','type_news'),('NPS leave review system','\n\n\n \n \n\n\n\n\n \n \n \n \n \n
 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n \"{$plugin:widcard:BizOrgName:notag}\"\n \n \n \n \"facebook\"\n \n \n \"GMB\"\n \n \n \"twitter\"\n \n \n \"linkedin\"\n \n
\n

Hello {$lead:firstname} {$lead:lastname},


\n {$content:email_text}\n {emailmessage}\n \n \n \n \n \n
\n \"facebook\"\n \n \"GMB\"\n
\n

\n
\n
\n {$plugin:widcard:BizOrgName:notag} | {$plugin:widcard:BizAddress1:notag}, {$plugin:widcard:BizCity:notag}, {$plugin:widcard:BizState:notag} {$plugin:widcard:BizZip:notag} | Tel : {$plugin:widcard:BizTelephone:notag}
\n
\n
 
\n\n','typemail'),('NPS request system','\n\n\n \n \n\n\n\n\n \n \n \n \n \n
 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n \"{$plugin:widcard:BizOrgName:notag}\"\n \n \n \n \"facebook\"\n \n \n \"GMB\"\n \n \n \"twitter\"\n \n \n \"linkedin\"\n \n
\n

Hello, {$lead:firstname}!

\n

Help us to improve our services

\n
\n

\n How likely is it that you would recommend
\n {$plugin:widcard:BizOrgName:notag} to a friend or collegue?\n

\n

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
012345678910

\n \n \n \n \n \n
Very UnlikelyExtremely Likely
\n



\n {$content:email_text}\n {emailmessage}\n
\n
\n {$plugin:widcard:BizOrgName:notag} | {$plugin:widcard:BizAddress1:notag}, {$plugin:widcard:BizCity:notag}, {$plugin:widcard:BizState:notag} {$plugin:widcard:BizZip:notag} | Tel : {$plugin:widcard:BizTelephone:notag}
\n
\n
 
\n\n','typemail'); /*!40000 ALTER TABLE `template` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `template_type` -- DROP TABLE IF EXISTS `template_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `template_type` ( `id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Template type name: For example ''quote'', ''regularpage'', etc...', `title` tinytext COLLATE utf8_unicode_ci NOT NULL COMMENT 'Alias for the template "Product listing", etc...', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `template_type` -- LOCK TABLES `template_type` WRITE; /*!40000 ALTER TABLE `template_type` DISABLE KEYS */; INSERT INTO `template_type` VALUES ('type_fa_template','Featuredarea Templates'),('type_form_auto_reply_pdf','Form auto reply pdf'),('type_news','News'),('type_news_list','News listing'),('type_partial_template','Nested Templates'),('typecheckout','Checkout'),('typeinvoice','Invoices'),('typelisting','Product listing'),('typemail','E-mail'),('typemenu','Menu'),('typemobile','Mobile page'),('typepdfquote','Quote pdf'),('typeproduct','Product'),('typequote','Quote'),('typeregular','Regular'); /*!40000 ALTER TABLE `template_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user` -- DROP TABLE IF EXISTS `user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `user` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `role_id` varchar(15) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'user password', `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `prefix` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `full_name` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, `last_login` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ipaddress` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `reg_date` timestamp NULL DEFAULT NULL, `referer` tinytext COLLATE utf8_unicode_ci, `gplus_profile` tinytext COLLATE utf8_unicode_ci, `mobile_phone` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `voip_phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `notes` text COLLATE utf8_unicode_ci, `timezone` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, `mobile_country_code` char(2) COLLATE utf8_unicode_ci DEFAULT NULL, `mobile_country_code_value` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL, `desktop_phone` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `desktop_country_code` char(2) COLLATE utf8_unicode_ci DEFAULT NULL, `desktop_country_code_value` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL, `signature` text COLLATE utf8_unicode_ci, `subscribed` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `allow_remote_authorization` enum('1','0') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', `remote_authorization_info` text COLLATE utf8_unicode_ci COMMENT 'additional info', `remote_authorization_token` char(40) COLLATE utf8_unicode_ci DEFAULT NULL, `personal_calendar_url` text COLLATE utf8_unicode_ci, `avatar_link` text COLLATE utf8_unicode_ci, `receive_reports` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `receive_reports_preferable_time` int(10) unsigned DEFAULT NULL, `receive_reports_cc_email` text COLLATE utf8_unicode_ci, `receive_reports_types_list` text COLLATE utf8_unicode_ci, `enabled_mfa` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', `mfa_code` char(6) COLLATE utf8_unicode_ci DEFAULT NULL, `mfa_code_expiration_time` timestamp NULL DEFAULT NULL, `exclude_weekends` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0', PRIMARY KEY (`id`), KEY `indEmail` (`email`), KEY `indPassword` (`password`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user` -- LOCK TABLES `user` WRITE; /*!40000 ALTER TABLE `user` DISABLE KEYS */; INSERT INTO `user` VALUES (1,'superadmin','[[admin_pass]]','[[admin_email]]',NULL,'[[admin_username]]','[[regtime]]',NULL,'[[regtime]]',NULL,NULL,NULL,NULL,NULL,'America/New_York',NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,'0',NULL,NULL,NULL,'0',NULL,NULL,'0'); /*!40000 ALTER TABLE `user` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user_attributes` -- DROP TABLE IF EXISTS `user_attributes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `user_attributes` ( `user_id` int(10) unsigned NOT NULL, `attribute` tinytext COLLATE utf8_unicode_ci NOT NULL, `value` text COLLATE utf8_unicode_ci, PRIMARY KEY (`user_id`,`attribute`(20)), CONSTRAINT `user_attributes_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user_attributes` -- LOCK TABLES `user_attributes` WRITE; /*!40000 ALTER TABLE `user_attributes` DISABLE KEYS */; /*!40000 ALTER TABLE `user_attributes` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user_whitelist_ips` -- DROP TABLE IF EXISTS `user_whitelist_ips`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `user_whitelist_ips` ( `id` int(10) NOT NULL AUTO_INCREMENT, `role_id` varchar(15) COLLATE utf8_unicode_ci NOT NULL, `ip_address` varchar(30) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`role_id`,`ip_address`), UNIQUE KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user_whitelist_ips` -- LOCK TABLES `user_whitelist_ips` WRITE; /*!40000 ALTER TABLE `user_whitelist_ips` DISABLE KEYS */; /*!40000 ALTER TABLE `user_whitelist_ips` ENABLE KEYS */; UNLOCK TABLES; -- -- Dumping routines for database 'toaster3100' -- /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on [[regtime]]