@@ -842,6 +842,67 @@ CREATE TABLE `product_option_value` (
842842
843843-- --------------------------------------------------------
844844
845+ --
846+ -- Table structure for table `product_question`
847+ --
848+
849+ CREATE TABLE `product_question ` (
850+ ` product_question_id` int (11 ) NOT NULL ,
851+ ` product_id` int (11 ) NOT NULL ,
852+ ` customer_id` int (11 ) NOT NULL ,
853+ ` question` varchar (255 ) NOT NULL ,
854+ ` date_added` datetime NOT NULL ,
855+ ` status` tinyint (1 ) NOT NULL
856+ ) ENGINE= MyISAM DEFAULT CHARSET= utf8;
857+
858+ -- --------------------------------------------------------
859+
860+ --
861+ -- Table structure for table `product_question_answer`
862+ --
863+
864+ CREATE TABLE `product_question_answer ` (
865+ ` product_question_answer_id` int (11 ) NOT NULL ,
866+ ` product_question_id` int (11 ) NOT NULL ,
867+ ` product_id` int (11 ) NOT NULL ,
868+ ` customer_id` int (11 ) NOT NULL ,
869+ ` seller_id` int (11 ) NOT NULL ,
870+ ` answer` text NOT NULL ,
871+ ` date_added` datetime NOT NULL ,
872+ ` status` tinyint (1 ) NOT NULL
873+ ) ENGINE= MyISAM DEFAULT CHARSET= utf8;
874+
875+ -- --------------------------------------------------------
876+
877+ --
878+ -- Table structure for table `product_question_answer_vote`
879+ --
880+
881+ CREATE TABLE `product_question_answer_vote ` (
882+ ` product_question_answer_vote_id` int (11 ) NOT NULL ,
883+ ` product_question_answer_id` int (11 ) NOT NULL ,
884+ ` customer_id` int (11 ) NOT NULL ,
885+ ` vote` tinyint (1 ) NOT NULL ,
886+ ` date_added` datetime NOT NULL
887+ ) ENGINE= MyISAM DEFAULT CHARSET= utf8;
888+
889+ -- --------------------------------------------------------
890+
891+ --
892+ -- Table structure for table `product_question_vote`
893+ --
894+
895+ CREATE TABLE `product_question_vote ` (
896+ ` product_question_vote_id` int (11 ) NOT NULL ,
897+ ` product_question_id` int (11 ) NOT NULL ,
898+ ` customer_id` int (11 ) NOT NULL ,
899+ ` vote` tinyint (1 ) NOT NULL ,
900+ ` date_added` datetime NOT NULL ,
901+ ` date_modified` datetime NOT NULL
902+ ) ENGINE= MyISAM DEFAULT CHARSET= utf8;
903+
904+ -- --------------------------------------------------------
905+
845906--
846907-- Table structure for table `product_review`
847908--
@@ -1575,6 +1636,30 @@ ALTER TABLE `product_option`
15751636ALTER TABLE ` product_option_value`
15761637 ADD PRIMARY KEY (` product_option_value_id` );
15771638
1639+ --
1640+ -- Indexes for table `product_question`
1641+ --
1642+ ALTER TABLE ` product_question`
1643+ ADD PRIMARY KEY (` product_question_id` );
1644+
1645+ --
1646+ -- Indexes for table `product_question_answer`
1647+ --
1648+ ALTER TABLE ` product_question_answer`
1649+ ADD PRIMARY KEY (` product_question_answer_id` );
1650+
1651+ --
1652+ -- Indexes for table `product_question_answer_vote`
1653+ --
1654+ ALTER TABLE ` product_question_answer_vote`
1655+ ADD PRIMARY KEY (` product_question_answer_vote_id` );
1656+
1657+ --
1658+ -- Indexes for table `product_question_vote`
1659+ --
1660+ ALTER TABLE ` product_question_vote`
1661+ ADD PRIMARY KEY (` product_question_vote_id` );
1662+
15781663--
15791664-- Indexes for table `product_review`
15801665--
@@ -1916,6 +2001,30 @@ ALTER TABLE `product_option`
19162001ALTER TABLE ` product_option_value`
19172002 MODIFY ` product_option_value_id` int (11 ) NOT NULL AUTO_INCREMENT;
19182003
2004+ --
2005+ -- AUTO_INCREMENT for table `product_question`
2006+ --
2007+ ALTER TABLE ` product_question`
2008+ MODIFY ` product_question_id` int (11 ) NOT NULL AUTO_INCREMENT;
2009+
2010+ --
2011+ -- AUTO_INCREMENT for table `product_question_answer`
2012+ --
2013+ ALTER TABLE ` product_question_answer`
2014+ MODIFY ` product_question_answer_id` int (11 ) NOT NULL AUTO_INCREMENT;
2015+
2016+ --
2017+ -- AUTO_INCREMENT for table `product_question_answer_vote`
2018+ --
2019+ ALTER TABLE ` product_question_answer_vote`
2020+ MODIFY ` product_question_answer_vote_id` int (11 ) NOT NULL AUTO_INCREMENT;
2021+
2022+ --
2023+ -- AUTO_INCREMENT for table `product_question_vote`
2024+ --
2025+ ALTER TABLE ` product_question_vote`
2026+ MODIFY ` product_question_vote_id` int (11 ) NOT NULL AUTO_INCREMENT;
2027+
19192028--
19202029-- AUTO_INCREMENT for table `product_review`
19212030--
0 commit comments