text: -- phpMyAdmin SQL Dump
  -- version 4.7.0
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Sep 14, 2017 at 01:17 AM
  -- Server version: 10.1.22-MariaDB
  -- PHP Version: 7.1.4
  
  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: `jdmeds`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `ci_sessions`
  --
  
  CREATE TABLE `ci_sessions` (
    `id` varchar(128) NOT NULL,
    `ip_address` varchar(45) NOT NULL,
    `timestamp` int(10) UNSIGNED NOT NULL DEFAULT '0',
    `data` blob NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `site_cookies`
  --
  
  CREATE TABLE `site_cookies` (
    `id` int(11) NOT NULL,
    `cookie_code` varchar(128) NOT NULL,
    `user_id` int(11) NOT NULL,
    `expiry_date` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `store_categories`
  --
  
  CREATE TABLE `store_categories` (
    `id` int(11) NOT NULL,
    `cat_title` varchar(255) NOT NULL,
    `parent_cat_id` int(11) DEFAULT NULL,
    `category_url` varchar(255) NOT NULL,
    `create_date` int(11) NOT NULL,
    `modified_date` int(11) NOT NULL,
    `admin_id` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `store_cat_assign`
  --
  
  CREATE TABLE `store_cat_assign` (
    `id` int(11) NOT NULL,
    `cat_id` int(11) NOT NULL,
    `item_id` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `store_items`
  --
  
  CREATE TABLE `store_items` (
    `id` int(11) NOT NULL,
    `item_title` varchar(255) NOT NULL,
    `item_url` varchar(255) NOT NULL,
    `item_price` decimal(7,2) NOT NULL,
    `item_description` text NOT NULL,
    `item_setup` int(1) NOT NULL,
    `product_id` varchar(60) NOT NULL,
    `model_no` varchar(90) NOT NULL,
    `big_pic` varchar(255) DEFAULT NULL,
    `small_pic` varchar(255) DEFAULT NULL,
    `was_price` decimal(7,2) NOT NULL,
    `status` int(1) NOT NULL,
    `create_date` int(11) NOT NULL,
    `mod_dt` int(11) NOT NULL,
    `userid` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `store_item_colors`
  --
  
  CREATE TABLE `store_item_colors` (
    `id` int(11) NOT NULL,
    `item_id` int(11) NOT NULL,
    `item_color` varchar(120) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `store_item_sizes`
  --
  
  CREATE TABLE `store_item_sizes` (
    `id` int(11) NOT NULL,
    `item_id` int(11) NOT NULL,
    `item_size` varchar(120) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users_upload`
  --
  
  CREATE TABLE `users_upload` (
    `id` int(11) NOT NULL,
    `userid` int(11) NOT NULL,
    `parent_cat` int(11) NOT NULL,
    `role` varchar(100) NOT NULL,
    `image` varchar(100) NOT NULL,
    `path` varchar(100) NOT NULL,
    `size` int(11) DEFAULT NULL,
    `width_height` varchar(100) NOT NULL,
    `create_date` int(11) DEFAULT NULL,
    `modified_date` int(11) NOT NULL,
    `admin_id` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user_login`
  --
  
  CREATE TABLE `user_login` (
    `id` int(11) NOT NULL,
    `username` varchar(100) NOT NULL,
    `email` varchar(100) DEFAULT NULL,
    `password` varchar(250) NOT NULL,
    `security_code` varchar(100) NOT NULL,
    `status` int(11) NOT NULL DEFAULT '0',
    `user_access` int(11) NOT NULL,
    `user_priv` int(11) NOT NULL DEFAULT '0',
    `app_completed_date` int(11) NOT NULL,
    `create_date` int(11) NOT NULL,
    `modified_date` int(11) NOT NULL,
    `avatar_name` varchar(100) NOT NULL,
    `admin_id` int(11) NOT NULL,
    `last_login` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user_main`
  --
  
  CREATE TABLE `user_main` (
    `id` int(11) NOT NULL,
    `user_id` int(11) NOT NULL,
    `email` varchar(100) DEFAULT NULL,
    `first_name` varchar(30) DEFAULT NULL,
    `last_name` varchar(30) DEFAULT NULL,
    `middle_name` varchar(30) NOT NULL,
    `phone` varchar(14) NOT NULL,
    `cell_phone` varchar(14) NOT NULL,
    `mail_to` varchar(10) DEFAULT NULL,
    `exp_date` date DEFAULT NULL,
    `old_expire` date DEFAULT NULL,
    `membership_level` varchar(20) DEFAULT NULL,
    `create_date` int(11) NOT NULL,
    `modified_date` int(11) NOT NULL,
    `admin_id` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `webpages`
  --
  
  CREATE TABLE `webpages` (
    `id` int(11) NOT NULL,
    `page_url` varchar(255) NOT NULL,
    `page_title` varchar(255) NOT NULL,
    `page_keywords` text NOT NULL,
    `page_description` text NOT NULL,
    `page_content` text NOT NULL,
    `status` int(1) NOT NULL,
    `create_date` int(11) NOT NULL,
    `mod_dt` int(11) NOT NULL,
    `userid` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `ci_sessions`
  --
  ALTER TABLE `ci_sessions`
    ADD PRIMARY KEY (`id`),
    ADD KEY `ci_sessions_timestamp` (`timestamp`);
  
  --
  -- Indexes for table `site_cookies`
  --
  ALTER TABLE `site_cookies`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `store_categories`
  --
  ALTER TABLE `store_categories`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `store_cat_assign`
  --
  ALTER TABLE `store_cat_assign`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `store_items`
  --
  ALTER TABLE `store_items`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `store_item_colors`
  --
  ALTER TABLE `store_item_colors`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `store_item_sizes`
  --
  ALTER TABLE `store_item_sizes`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `users_upload`
  --
  ALTER TABLE `users_upload`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `user_login`
  --
  ALTER TABLE `user_login`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `user_main`
  --
  ALTER TABLE `user_main`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `webpages`
  --
  ALTER TABLE `webpages`
    ADD PRIMARY KEY (`id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `site_cookies`
  --
  ALTER TABLE `site_cookies`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `store_categories`
  --
  ALTER TABLE `store_categories`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `store_cat_assign`
  --
  ALTER TABLE `store_cat_assign`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `store_items`
  --
  ALTER TABLE `store_items`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `store_item_colors`
  --
  ALTER TABLE `store_item_colors`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `store_item_sizes`
  --
  ALTER TABLE `store_item_sizes`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `users_upload`
  --
  ALTER TABLE `users_upload`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `user_login`
  --
  ALTER TABLE `user_login`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `user_main`
  --
  ALTER TABLE `user_main`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `webpages`
  --
  ALTER TABLE `webpages`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;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 */;
  