-- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Mar 05, 2018 at 02:04 AM
-- Server version: 10.0.34-MariaDB
-- PHP Version: 5.6.30

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `mmaaaco_ksecor`
--

-- --------------------------------------------------------

--
-- Table structure for table `3321_attributes`
--

CREATE TABLE `3321_attributes` (
  `prodid` int(5) NOT NULL,
  `options` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;


-- --------------------------------------------------------

--
-- Table structure for table `3321_buyers`
--

CREATE TABLE `3321_buyers` (
  `id` int(5) NOT NULL,
  `fullname` varchar(255) NOT NULL,
  `address` text NOT NULL,
  `city` varchar(255) NOT NULL,
  `state` varchar(255) NOT NULL,
  `zip` varchar(10) NOT NULL,
  `email` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `3321_buyers`
--


-- --------------------------------------------------------

--
-- Table structure for table `3321_cartitems`
--

CREATE TABLE `3321_cartitems` (
  `id` int(5) NOT NULL,
  `cartitems` int(3) NOT NULL,
  `attribute` varchar(255) NOT NULL,
  `qty` int(5) NOT NULL,
  `sessid` varchar(32) NOT NULL,
  `timeofentry` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `3321_cartitems`
--


-- --------------------------------------------------------

--
-- Table structure for table `3321_category`
--

CREATE TABLE `3321_category` (
  `id` int(5) NOT NULL,
  `name` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `maincatid` int(5) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `3321_category`
--

-- --------------------------------------------------------

--
-- Table structure for table `3321_coupons`
--

CREATE TABLE `3321_coupons` (
  `id` int(5) NOT NULL,
  `code` varchar(255) NOT NULL,
  `amount` varchar(255) NOT NULL,
  `dateeffect` datetime NOT NULL,
  `dateexpire` datetime NOT NULL,
  `gifttype` enum('money','percent') NOT NULL DEFAULT 'money',
  `active` enum('0','1') NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `3321_coupons`
--


-- --------------------------------------------------------

--
-- Table structure for table `3321_ecadmin`
--

CREATE TABLE `3321_ecadmin` (
  `id` int(5) NOT NULL,
  `username` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `3321_ecadmin`
--

-- --------------------------------------------------------

--
-- Table structure for table `3321_inv`
--

CREATE TABLE `3321_inv` (
  `prodid` int(5) NOT NULL,
  `qty` int(5) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `3321_inv`
--

-- --------------------------------------------------------

--
-- Table structure for table `3321_maincategory`
--

CREATE TABLE `3321_maincategory` (
  `id` int(5) NOT NULL,
  `name` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `3321_maincategory`
--

-- --------------------------------------------------------

--
-- Table structure for table `3321_orders`
--

CREATE TABLE `3321_orders` (
  `orderid` int(5) NOT NULL,
  `prodid` varchar(255) NOT NULL,
  `qty` int(5) NOT NULL,
  `options` varchar(255) NOT NULL,
  `cost` decimal(7,2) NOT NULL,
  `buyerid` int(5) NOT NULL,
  `datepurchased` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `3321_orders`
--

-- --------------------------------------------------------

--
-- Table structure for table `3321_products`
--

CREATE TABLE `3321_products` (
  `id` int(5) NOT NULL,
  `name` varchar(255) NOT NULL,
  `descrip` text NOT NULL,
  `price` decimal(9,2) NOT NULL,
  `catid` int(5) NOT NULL,
  `qty` int(5) NOT NULL,
  `link` varchar(250) NOT NULL,
  `weight` decimal(9,2) NOT NULL,
  `keywords` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `3321_products`
--

-- --------------------------------------------------------

--
-- Table structure for table `3321_ratings`
--

CREATE TABLE `3321_ratings` (
  `prodid` int(6) NOT NULL,
  `rating` int(6) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `3321_ratings`
--


-- --------------------------------------------------------

--
-- Table structure for table `3321_searchHits`
--

CREATE TABLE `3321_searchHits` (
  `unique_ip` varchar(15) NOT NULL,
  `prodId` int(5) NOT NULL,
  `keyword` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `3321_searchHits`
--


--
-- Table structure for table `3321_spec`
--

CREATE TABLE `3321_spec` (
  `id` int(5) NOT NULL,
  `prodid` int(5) NOT NULL,
  `times` varchar(255) NOT NULL,
  `timef` varchar(255) NOT NULL,
  `spec` enum('no','yes') NOT NULL DEFAULT 'no'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `3321_spec`
--

-- --------------------------------------------------------

--
-- Table structure for table `3321_zipcodes`
--

CREATE TABLE `3321_zipcodes` (
  `id` int(5) NOT NULL,
  `fname` varchar(255) NOT NULL,
  `lname` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `uname` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL,
  `active` int(5) NOT NULL DEFAULT '0',
  `signupdate` datetime NOT NULL,
  `lastlogin` datetime NOT NULL,
  `lastaction` datetime NOT NULL,
  `numtries` int(5) NOT NULL,
  `currpage` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `3321_zipcodes`
--

--
-- Indexes for dumped tables
--

--
-- Indexes for table `3321_buyers`
--
ALTER TABLE `3321_buyers`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `3321_cartitems`
--
ALTER TABLE `3321_cartitems`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `3321_category`
--
ALTER TABLE `3321_category`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `3321_coupons`
--
ALTER TABLE `3321_coupons`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `3321_ecadmin`
--
ALTER TABLE `3321_ecadmin`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `3321_maincategory`
--
ALTER TABLE `3321_maincategory`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `3321_orders`
--
ALTER TABLE `3321_orders`
  ADD PRIMARY KEY (`orderid`);

--
-- Indexes for table `3321_products`
--
ALTER TABLE `3321_products`
  ADD PRIMARY KEY (`id`);
ALTER TABLE `3321_products` ADD FULLTEXT KEY `pattern` (`descrip`);
ALTER TABLE `3321_products` ADD FULLTEXT KEY `fulltext` (`descrip`);

--
-- Indexes for table `3321_spec`
--
ALTER TABLE `3321_spec`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `3321_zipcodes`
--
ALTER TABLE `3321_zipcodes`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `3321_buyers`
--
ALTER TABLE `3321_buyers`
  MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `3321_cartitems`
--
ALTER TABLE `3321_cartitems`
  MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=55;

--
-- AUTO_INCREMENT for table `3321_category`
--
ALTER TABLE `3321_category`
  MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41;

--
-- AUTO_INCREMENT for table `3321_coupons`
--
ALTER TABLE `3321_coupons`
  MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `3321_ecadmin`
--
ALTER TABLE `3321_ecadmin`
  MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `3321_maincategory`
--
ALTER TABLE `3321_maincategory`
  MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `3321_orders`
--
ALTER TABLE `3321_orders`
  MODIFY `orderid` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `3321_products`
--
ALTER TABLE `3321_products`
  MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;

--
-- AUTO_INCREMENT for table `3321_spec`
--
ALTER TABLE `3321_spec`
  MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;

--
-- AUTO_INCREMENT for table `3321_zipcodes`
--
ALTER TABLE `3321_zipcodes`
  MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
COMMIT;

/*!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 */;
