settings
Showing
application/controllers/Brand.php
0 → 100644
application/controllers/Settings.php
0 → 100644
application/helpers/generals_helper.php
0 → 100644
application/models/Brand_model.php
0 → 100644
application/models/Settings_model.php
0 → 100644
application/models/Subcategory_model.php
0 → 100644
application/views/Brand/create.php
0 → 100644
application/views/Brand/list.php
0 → 100644
application/views/Category/edit.php
0 → 100644
application/views/Settings/viewSettings.php
0 → 100644
application/views/Subcategory/edit.php
0 → 100644
sql/access (1).sql
0 → 100644
-- phpMyAdmin SQL Dump | |||
-- version 4.8.5 | |||
-- https://www.phpmyadmin.net/ | |||
-- | |||
-- Host: 127.0.0.1 | |||
-- Generation Time: Apr 10, 2019 at 07:27 AM | |||
-- Server version: 10.1.38-MariaDB | |||
-- PHP Version: 7.1.27 | |||
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: `access` | |||
-- | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `admin` | |||
-- | |||
CREATE TABLE `admin` ( | |||
`id` int(11) NOT NULL, | |||
`role` int(11) DEFAULT '1' COMMENT '1=>Super Admin, 2=>Admin', | |||
`username` varchar(50) DEFAULT NULL, | |||
`password` varchar(255) DEFAULT NULL, | |||
`status` int(11) DEFAULT '1' COMMENT '1=>Active, 0=>Deleted' | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- | |||
-- Dumping data for table `admin` | |||
-- | |||
INSERT INTO `admin` (`id`, `role`, `username`, `password`, `status`) VALUES | |||
(1, 1, '[email protected]', '21232f297a57a5a743894a0e4a801fc3', 1); | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `booking` | |||
-- | |||
CREATE TABLE `booking` ( | |||
`id` int(11) NOT NULL, | |||
`book_code` varchar(100) DEFAULT NULL, | |||
`cust_id` int(11) NOT NULL, | |||
`shopper_id` int(11) NOT NULL, | |||
`prod_id` int(11) NOT NULL, | |||
`booked_date` datetime DEFAULT NULL, | |||
`prod_price` double DEFAULT NULL, | |||
`vat` double DEFAULT NULL, | |||
`shipping_charge` double DEFAULT NULL, | |||
`amount` double DEFAULT NULL, | |||
`commission` double DEFAULT NULL, | |||
`shopper_amount` double DEFAULT NULL, | |||
`qty` varchar(45) DEFAULT NULL, | |||
`delivery_time` date DEFAULT NULL, | |||
`track_status` varchar(50) DEFAULT NULL COMMENT 'Shipping Track Status', | |||
`status` int(11) DEFAULT '1' COMMENT '0=>Cancelled, 1=>Booked, 2=>Processing, 3=>Completed' | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `brand` | |||
-- | |||
CREATE TABLE `brand` ( | |||
`id` int(11) NOT NULL, | |||
`brand_image` varchar(444) NOT NULL, | |||
`brand_name` varchar(50) DEFAULT NULL, | |||
`status` int(11) DEFAULT '1' COMMENT '1=>Active, 0=> Inactive/Deleted' | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- | |||
-- Dumping data for table `brand` | |||
-- | |||
INSERT INTO `brand` (`id`, `brand_image`, `brand_name`, `status`) VALUES | |||
(1, './uploads/brand/1554720705green4.png', 'aa', 0), | |||
(7, './uploads/brand/1554716795blue2.jpg', 'PUMA', 1), | |||
(8, './uploads/brand/1554720626brown6.jpg', 'PUMA22', 1), | |||
(9, './uploads/brand/1554787730black5.jpg', 'aa', 0); | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `cart` | |||
-- | |||
CREATE TABLE `cart` ( | |||
`id` int(11) NOT NULL, | |||
`cust_id` int(11) NOT NULL, | |||
`shopper_id` int(11) NOT NULL, | |||
`prod_id` int(11) NOT NULL, | |||
`qty` int(11) DEFAULT NULL, | |||
`status` int(11) DEFAULT '1' COMMENT '1=>Active, 0=>Inactive/Deleted' | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `category` | |||
-- | |||
CREATE TABLE `category` ( | |||
`id` int(11) NOT NULL, | |||
`cat_name` varchar(50) DEFAULT NULL, | |||
`cat_image` varchar(255) DEFAULT NULL, | |||
`status` int(11) DEFAULT '1' COMMENT '1=>Active, 0=>Inactive/Deleted' | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- | |||
-- Dumping data for table `category` | |||
-- | |||
INSERT INTO `category` (`id`, `cat_name`, `cat_image`, `status`) VALUES | |||
(7, 'PUMA1', './uploads/category1554449751green4.png', 0), | |||
(9, 'bb3412', './uploads/category/1554452377benzz.jpg', 1), | |||
(10, 'gh', './uploads/category/1554803570blue2.jpg', 0); | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `currency` | |||
-- | |||
CREATE TABLE `currency` ( | |||
`id` int(11) NOT NULL, | |||
`curr_name` varchar(50) DEFAULT NULL, | |||
`symbol` varchar(5) DEFAULT NULL, | |||
`rate` double DEFAULT NULL COMMENT 'Rate Converted into SAR (1 USD = 3.75 SAR) ', | |||
`status` int(11) DEFAULT '1' COMMENT '1=>Active, 2=>Inactive/Deleted' | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `customer` | |||
-- | |||
CREATE TABLE `customer` ( | |||
`id` int(11) NOT NULL, | |||
`users_id` int(11) NOT NULL, | |||
`name` varchar(45) DEFAULT NULL, | |||
`email_id` varchar(50) DEFAULT NULL, | |||
`phone_no` varchar(15) DEFAULT NULL, | |||
`dob` varchar(25) DEFAULT NULL, | |||
`address` varchar(255) DEFAULT NULL, | |||
`profile_photo` varchar(255) DEFAULT NULL, | |||
`assist_name` varchar(45) DEFAULT NULL, | |||
`assist_phone_no` varchar(25) DEFAULT NULL, | |||
`assist_email_id` varchar(50) DEFAULT NULL | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `customer_address` | |||
-- | |||
CREATE TABLE `customer_address` ( | |||
`id` int(11) NOT NULL, | |||
`customer_id` int(11) NOT NULL, | |||
`address_type` int(11) DEFAULT '1' COMMENT '1=> Home, 2=>Work', | |||
`name` varchar(50) DEFAULT NULL, | |||
`phone_no` varchar(15) DEFAULT NULL, | |||
`pincode` varchar(15) DEFAULT NULL, | |||
`building` varchar(100) DEFAULT NULL, | |||
`area` varchar(100) DEFAULT NULL, | |||
`city` varchar(50) DEFAULT NULL, | |||
`state` varchar(50) DEFAULT NULL, | |||
`landmark` varchar(100) DEFAULT NULL, | |||
`status` int(11) DEFAULT '1' COMMENT '1=>Active, 0=>Inactive/Deleted' | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `cust_shopper_wish` | |||
-- | |||
CREATE TABLE `cust_shopper_wish` ( | |||
`id` int(11) NOT NULL, | |||
`wish_id` int(11) NOT NULL, | |||
`cust_id` int(11) NOT NULL, | |||
`shopper_id` int(11) NOT NULL, | |||
`curr_id` int(11) NOT NULL, | |||
`cost` double DEFAULT NULL, | |||
`delivery_time` varchar(50) DEFAULT NULL, | |||
`status` int(11) DEFAULT '1' COMMENT '1=>Request, 2=>Accept, 0=>Decline' | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `favourite` | |||
-- | |||
CREATE TABLE `favourite` ( | |||
`id` int(11) NOT NULL, | |||
`cust_id` int(11) NOT NULL, | |||
`prod_id` int(11) NOT NULL, | |||
`status` int(11) DEFAULT '1' COMMENT '1=>Active, 0=>Inactive/Deleted' | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `notification` | |||
-- | |||
CREATE TABLE `notification` ( | |||
`id` int(11) NOT NULL, | |||
`date` datetime DEFAULT NULL, | |||
`cust_id` int(11) NOT NULL, | |||
`message` text, | |||
`status` int(11) DEFAULT '1' COMMENT '1=> Active, 0=>Inactive' | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `order_address` | |||
-- | |||
CREATE TABLE `order_address` ( | |||
`id` int(11) NOT NULL, | |||
`booking_id` int(11) NOT NULL, | |||
`address_type` int(11) DEFAULT '1' COMMENT '1=> Home, 2=>Work', | |||
`name` varchar(50) DEFAULT NULL, | |||
`phone_no` varchar(15) DEFAULT NULL, | |||
`pincode` varchar(15) DEFAULT NULL, | |||
`building` varchar(100) DEFAULT NULL, | |||
`area` varchar(100) DEFAULT NULL, | |||
`city` varchar(50) DEFAULT NULL, | |||
`state` varchar(50) DEFAULT NULL, | |||
`landmark` varchar(100) DEFAULT NULL | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `products` | |||
-- | |||
CREATE TABLE `products` ( | |||
`id` int(11) NOT NULL, | |||
`curr_id` int(11) NOT NULL, | |||
`cat_id` int(11) NOT NULL, | |||
`sub_cat_id` int(11) NOT NULL, | |||
`brand_id` int(11) NOT NULL, | |||
`prod_name` varchar(255) DEFAULT NULL, | |||
`prod_desc` text, | |||
`price` double DEFAULT NULL, | |||
`delivery_time` varchar(50) DEFAULT NULL, | |||
`location` varchar(100) DEFAULT NULL, | |||
`image` varchar(100) DEFAULT NULL, | |||
`qty` int(11) DEFAULT NULL, | |||
`status` int(11) DEFAULT '1' COMMENT '1=>Active, 0=>Inactive/Deleted', | |||
`wish_flag` int(11) DEFAULT '0' | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `prod_galley` | |||
-- | |||
CREATE TABLE `prod_galley` ( | |||
`id` int(11) NOT NULL, | |||
`prod_id` int(11) NOT NULL, | |||
`media_url` varchar(100) DEFAULT NULL, | |||
`media_type` int(11) DEFAULT '1' COMMENT '1=>Image, 2=> Video', | |||
`status` int(11) DEFAULT '1' COMMENT '1=>Active, 0=>Inactive/Deleted' | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `recent` | |||
-- | |||
CREATE TABLE `recent` ( | |||
`id` int(11) NOT NULL, | |||
`cust_id` int(11) NOT NULL, | |||
`prod_id` int(11) NOT NULL | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `settings` | |||
-- | |||
CREATE TABLE `settings` ( | |||
`id` int(11) NOT NULL, | |||
`commission` double DEFAULT NULL, | |||
`vat` double DEFAULT NULL, | |||
`smtp_host` varchar(50) DEFAULT NULL, | |||
`smtp_username` varchar(45) DEFAULT NULL, | |||
`smtp_password` varchar(100) DEFAULT NULL, | |||
`smtp_port` int(11) DEFAULT NULL, | |||
`title` varchar(150) NOT NULL, | |||
`title_short` varchar(100) NOT NULL, | |||
`site_logo` varchar(150) NOT NULL, | |||
`country_flag` varchar(100) NOT NULL, | |||
`currency` varchar(20) NOT NULL, | |||
`fav_icon` varchar(55) NOT NULL, | |||
`google_api_key` varchar(66) NOT NULL, | |||
`service_charge` varchar(55) NOT NULL | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- | |||
-- Dumping data for table `settings` | |||
-- | |||
INSERT INTO `settings` (`id`, `commission`, `vat`, `smtp_host`, `smtp_username`, `smtp_password`, `smtp_port`, `title`, `title_short`, `site_logo`, `country_flag`, `currency`, `fav_icon`, `google_api_key`, `service_charge`) VALUES | |||
(1, 20, 22, 'asffsfdgf', 'smtp', '123456', 8, 'access', 'acs', 'uploads/services/1554873867_black5.jpg', 'sse', '22', 'uploads/services/1554873867_brown6.jpg', 'fsgs', '2211'); | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `shopper` | |||
-- | |||
CREATE TABLE `shopper` ( | |||
`id` int(11) NOT NULL, | |||
`users_id` int(11) NOT NULL, | |||
`name` varchar(45) DEFAULT NULL, | |||
`email_id` varchar(50) DEFAULT NULL, | |||
`phone_no` varchar(15) DEFAULT NULL, | |||
`shop_name` varchar(50) DEFAULT NULL, | |||
`dob` varchar(25) DEFAULT NULL, | |||
`profile_photo` varchar(255) DEFAULT NULL, | |||
`commission` double DEFAULT NULL | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `sub_category` | |||
-- | |||
CREATE TABLE `sub_category` ( | |||
`id` int(11) NOT NULL, | |||
`sub_cat_name` varchar(50) DEFAULT NULL, | |||
`sub_cat_image` varchar(100) DEFAULT NULL, | |||
`status` int(11) DEFAULT '1' COMMENT '1=>Active, 0=>inactive', | |||
`cat_id` int(11) NOT NULL | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- | |||
-- Dumping data for table `sub_category` | |||
-- | |||
INSERT INTO `sub_category` (`id`, `sub_cat_name`, `sub_cat_image`, `status`, `cat_id`) VALUES | |||
(2, 'ajil', './uploads/subcategory/1554811443usADWQ.jpg', 1, 7), | |||
(3, 'amal', './uploads/subcategory/1554811530green4.png', 1, 9); | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `transaction` | |||
-- | |||
CREATE TABLE `transaction` ( | |||
`id` int(11) NOT NULL, | |||
`booking_id` int(11) NOT NULL, | |||
`book_code` varchar(100) DEFAULT NULL, | |||
`trans_date` datetime DEFAULT NULL, | |||
`trans_id` varchar(50) DEFAULT NULL, | |||
`amount` double DEFAULT NULL, | |||
`status` int(11) DEFAULT NULL COMMENT '1=>Success, 0=>Failure' | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `users` | |||
-- | |||
CREATE TABLE `users` ( | |||
`id` int(11) NOT NULL, | |||
`user_type` int(11) DEFAULT NULL COMMENT '1=>Customer, 2=>Shopper', | |||
`user_id` int(11) DEFAULT NULL, | |||
`username` varchar(100) DEFAULT NULL, | |||
`password` varchar(255) DEFAULT NULL, | |||
`status` int(11) DEFAULT '0' COMMENT '1=>Active, 0=>Inactive, 2=>Deleted' | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `wish` | |||
-- | |||
CREATE TABLE `wish` ( | |||
`id` int(11) NOT NULL, | |||
`cust_id` int(11) NOT NULL, | |||
`cat_id` int(11) NOT NULL, | |||
`sub_cat_id` int(11) NOT NULL, | |||
`prod_name` varchar(50) DEFAULT NULL, | |||
`description` text, | |||
`media_url` text, | |||
`price_range` varchar(45) DEFAULT NULL, | |||
`status` int(11) DEFAULT '1' COMMENT '1=>Active, 0=>Inactive/Deleted' | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- | |||
-- Indexes for dumped tables | |||
-- | |||
-- | |||
-- Indexes for table `admin` | |||
-- | |||
ALTER TABLE `admin` | |||
ADD PRIMARY KEY (`id`); | |||
-- | |||
-- Indexes for table `booking` | |||
-- | |||
ALTER TABLE `booking` | |||
ADD PRIMARY KEY (`id`,`cust_id`,`shopper_id`,`prod_id`), | |||
ADD KEY `fk_booking_customer1_idx` (`cust_id`), | |||
ADD KEY `fk_booking_shopper1_idx` (`shopper_id`), | |||
ADD KEY `fk_booking_products1_idx` (`prod_id`); | |||
-- | |||
-- Indexes for table `brand` | |||
-- | |||
ALTER TABLE `brand` | |||
ADD PRIMARY KEY (`id`); | |||
-- | |||
-- Indexes for table `cart` | |||
-- | |||
ALTER TABLE `cart` | |||
ADD PRIMARY KEY (`id`,`cust_id`,`shopper_id`,`prod_id`), | |||
ADD KEY `fk_cart_customer1_idx` (`cust_id`), | |||
ADD KEY `fk_cart_shopper1_idx` (`shopper_id`), | |||
ADD KEY `fk_cart_products1_idx` (`prod_id`); | |||
-- | |||
-- Indexes for table `category` | |||
-- | |||
ALTER TABLE `category` | |||
ADD PRIMARY KEY (`id`); | |||
-- | |||
-- Indexes for table `currency` | |||
-- | |||
ALTER TABLE `currency` | |||
ADD PRIMARY KEY (`id`); | |||
-- | |||
-- Indexes for table `customer` | |||
-- | |||
ALTER TABLE `customer` | |||
ADD PRIMARY KEY (`id`,`users_id`), | |||
ADD KEY `fk_customer_users_idx` (`users_id`); | |||
-- | |||
-- Indexes for table `customer_address` | |||
-- | |||
ALTER TABLE `customer_address` | |||
ADD PRIMARY KEY (`id`,`customer_id`), | |||
ADD KEY `fk_customer_address_customer1_idx` (`customer_id`); | |||
-- | |||
-- Indexes for table `cust_shopper_wish` | |||
-- | |||
ALTER TABLE `cust_shopper_wish` | |||
ADD PRIMARY KEY (`id`,`wish_id`,`cust_id`,`shopper_id`,`curr_id`), | |||
ADD KEY `fk_cust_shopper_wish_customer1_idx` (`cust_id`), | |||
ADD KEY `fk_cust_shopper_wish_wish2_idx` (`wish_id`), | |||
ADD KEY `fk_cust_shopper_wish_shopper1_idx` (`shopper_id`), | |||
ADD KEY `fk_cust_shopper_wish_currency1_idx` (`curr_id`); | |||
-- | |||
-- Indexes for table `favourite` | |||
-- | |||
ALTER TABLE `favourite` | |||
ADD PRIMARY KEY (`id`,`cust_id`,`prod_id`), | |||
ADD KEY `fk_favourite_customer1_idx` (`cust_id`), | |||
ADD KEY `fk_favourite_products1_idx` (`prod_id`); | |||
-- | |||
-- Indexes for table `notification` | |||
-- | |||
ALTER TABLE `notification` | |||
ADD PRIMARY KEY (`id`,`cust_id`), | |||
ADD KEY `fk_notification_customer1_idx` (`cust_id`); | |||
-- | |||
-- Indexes for table `order_address` | |||
-- | |||
ALTER TABLE `order_address` | |||
ADD PRIMARY KEY (`id`,`booking_id`), | |||
ADD KEY `fk_order_address_booking1_idx` (`booking_id`); | |||
-- | |||
-- Indexes for table `products` | |||
-- | |||
ALTER TABLE `products` | |||
ADD PRIMARY KEY (`id`,`curr_id`,`cat_id`,`sub_cat_id`,`brand_id`), | |||
ADD KEY `fk_products_currency1_idx` (`curr_id`), | |||
ADD KEY `fk_products_brand1_idx` (`brand_id`), | |||
ADD KEY `fk_products_category1_idx` (`cat_id`), | |||
ADD KEY `fk_products_sub_category1_idx` (`sub_cat_id`); | |||
-- | |||
-- Indexes for table `prod_galley` | |||
-- | |||
ALTER TABLE `prod_galley` | |||
ADD PRIMARY KEY (`id`,`prod_id`), | |||
ADD KEY `fk_prod_galley_products1_idx` (`prod_id`); | |||
-- | |||
-- Indexes for table `recent` | |||
-- | |||
ALTER TABLE `recent` | |||
ADD PRIMARY KEY (`id`,`cust_id`,`prod_id`), | |||
ADD KEY `fk_recent_customer1_idx` (`cust_id`), | |||
ADD KEY `fk_recent_products1_idx` (`prod_id`); | |||
-- | |||
-- Indexes for table `settings` | |||
-- | |||
ALTER TABLE `settings` | |||
ADD PRIMARY KEY (`id`); | |||
-- | |||
-- Indexes for table `shopper` | |||
-- | |||
ALTER TABLE `shopper` | |||
ADD PRIMARY KEY (`id`,`users_id`), | |||
ADD KEY `fk_shopper_users1_idx` (`users_id`); | |||
-- | |||
-- Indexes for table `sub_category` | |||
-- | |||
ALTER TABLE `sub_category` | |||
ADD PRIMARY KEY (`id`,`cat_id`), | |||
ADD KEY `fk_sub_category_category1_idx` (`cat_id`); | |||
-- | |||
-- Indexes for table `transaction` | |||
-- | |||
ALTER TABLE `transaction` | |||
ADD PRIMARY KEY (`id`,`booking_id`), | |||
ADD KEY `fk_transaction_booking1_idx` (`booking_id`); | |||
-- | |||
-- Indexes for table `users` | |||
-- | |||
ALTER TABLE `users` | |||
ADD PRIMARY KEY (`id`); | |||
-- | |||
-- Indexes for table `wish` | |||
-- | |||
ALTER TABLE `wish` | |||
ADD PRIMARY KEY (`id`,`cust_id`,`cat_id`,`sub_cat_id`), | |||
ADD KEY `fk_wish_category1_idx` (`cat_id`), | |||
ADD KEY `fk_wish_customer1_idx` (`cust_id`), | |||
ADD KEY `fk_wish_sub_category1_idx` (`sub_cat_id`); | |||
-- | |||
-- AUTO_INCREMENT for dumped tables | |||
-- | |||
-- | |||
-- AUTO_INCREMENT for table `admin` | |||
-- | |||
ALTER TABLE `admin` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; | |||
-- | |||
-- AUTO_INCREMENT for table `booking` | |||
-- | |||
ALTER TABLE `booking` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | |||
-- | |||
-- AUTO_INCREMENT for table `brand` | |||
-- | |||
ALTER TABLE `brand` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; | |||
-- | |||
-- AUTO_INCREMENT for table `cart` | |||
-- | |||
ALTER TABLE `cart` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | |||
-- | |||
-- AUTO_INCREMENT for table `category` | |||
-- | |||
ALTER TABLE `category` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; | |||
-- | |||
-- AUTO_INCREMENT for table `customer` | |||
-- | |||
ALTER TABLE `customer` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | |||
-- | |||
-- AUTO_INCREMENT for table `customer_address` | |||
-- | |||
ALTER TABLE `customer_address` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | |||
-- | |||
-- AUTO_INCREMENT for table `cust_shopper_wish` | |||
-- | |||
ALTER TABLE `cust_shopper_wish` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | |||
-- | |||
-- AUTO_INCREMENT for table `favourite` | |||
-- | |||
ALTER TABLE `favourite` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | |||
-- | |||
-- AUTO_INCREMENT for table `notification` | |||
-- | |||
ALTER TABLE `notification` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | |||
-- | |||
-- AUTO_INCREMENT for table `order_address` | |||
-- | |||
ALTER TABLE `order_address` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | |||
-- | |||
-- AUTO_INCREMENT for table `products` | |||
-- | |||
ALTER TABLE `products` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | |||
-- | |||
-- AUTO_INCREMENT for table `prod_galley` | |||
-- | |||
ALTER TABLE `prod_galley` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | |||
-- | |||
-- AUTO_INCREMENT for table `recent` | |||
-- | |||
ALTER TABLE `recent` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | |||
-- | |||
-- AUTO_INCREMENT for table `shopper` | |||
-- | |||
ALTER TABLE `shopper` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | |||
-- | |||
-- AUTO_INCREMENT for table `sub_category` | |||
-- | |||
ALTER TABLE `sub_category` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; | |||
-- | |||
-- AUTO_INCREMENT for table `transaction` | |||
-- | |||
ALTER TABLE `transaction` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | |||
-- | |||
-- AUTO_INCREMENT for table `users` | |||
-- | |||
ALTER TABLE `users` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | |||
-- | |||
-- AUTO_INCREMENT for table `wish` | |||
-- | |||
ALTER TABLE `wish` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | |||
-- | |||
-- Constraints for dumped tables | |||
-- | |||
-- | |||
-- Constraints for table `booking` | |||
-- | |||
ALTER TABLE `booking` | |||
ADD CONSTRAINT `fk_booking_customer1` FOREIGN KEY (`cust_id`) REFERENCES `customer` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, | |||
ADD CONSTRAINT `fk_booking_products1` FOREIGN KEY (`prod_id`) REFERENCES `products` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, | |||
ADD CONSTRAINT `fk_booking_shopper1` FOREIGN KEY (`shopper_id`) REFERENCES `shopper` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; | |||
-- | |||
-- Constraints for table `cart` | |||
-- | |||
ALTER TABLE `cart` | |||
ADD CONSTRAINT `fk_cart_customer1` FOREIGN KEY (`cust_id`) REFERENCES `customer` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, | |||
ADD CONSTRAINT `fk_cart_products1` FOREIGN KEY (`prod_id`) REFERENCES `products` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, | |||
ADD CONSTRAINT `fk_cart_shopper1` FOREIGN KEY (`shopper_id`) REFERENCES `shopper` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; | |||
-- | |||
-- Constraints for table `customer` | |||
-- | |||
ALTER TABLE `customer` | |||
ADD CONSTRAINT `fk_customer_users` FOREIGN KEY (`users_id`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; | |||
-- | |||
-- Constraints for table `customer_address` | |||
-- | |||
ALTER TABLE `customer_address` | |||
ADD CONSTRAINT `fk_customer_address_customer1` FOREIGN KEY (`customer_id`) REFERENCES `customer` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; | |||
-- | |||
-- Constraints for table `cust_shopper_wish` | |||
-- | |||
ALTER TABLE `cust_shopper_wish` | |||
ADD CONSTRAINT `fk_cust_shopper_wish_currency1` FOREIGN KEY (`curr_id`) REFERENCES `currency` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, | |||
ADD CONSTRAINT `fk_cust_shopper_wish_customer1` FOREIGN KEY (`cust_id`) REFERENCES `customer` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, | |||
ADD CONSTRAINT `fk_cust_shopper_wish_shopper1` FOREIGN KEY (`shopper_id`) REFERENCES `shopper` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, | |||
ADD CONSTRAINT `fk_cust_shopper_wish_wish2` FOREIGN KEY (`wish_id`) REFERENCES `wish` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; | |||
-- | |||
-- Constraints for table `favourite` | |||
-- | |||
ALTER TABLE `favourite` | |||
ADD CONSTRAINT `fk_favourite_customer1` FOREIGN KEY (`cust_id`) REFERENCES `customer` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, | |||
ADD CONSTRAINT `fk_favourite_products1` FOREIGN KEY (`prod_id`) REFERENCES `products` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; | |||
-- | |||
-- Constraints for table `notification` | |||
-- | |||
ALTER TABLE `notification` | |||
ADD CONSTRAINT `fk_notification_customer1` FOREIGN KEY (`cust_id`) REFERENCES `customer` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; | |||
-- | |||
-- Constraints for table `order_address` | |||
-- | |||
ALTER TABLE `order_address` | |||
ADD CONSTRAINT `fk_order_address_booking1` FOREIGN KEY (`booking_id`) REFERENCES `booking` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; | |||
-- | |||
-- Constraints for table `products` | |||
-- | |||
ALTER TABLE `products` | |||
ADD CONSTRAINT `fk_products_brand1` FOREIGN KEY (`brand_id`) REFERENCES `brand` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, | |||
ADD CONSTRAINT `fk_products_category1` FOREIGN KEY (`cat_id`) REFERENCES `category` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, | |||
ADD CONSTRAINT `fk_products_currency1` FOREIGN KEY (`curr_id`) REFERENCES `currency` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, | |||
ADD CONSTRAINT `fk_products_sub_category1` FOREIGN KEY (`sub_cat_id`) REFERENCES `sub_category` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; | |||
-- | |||
-- Constraints for table `prod_galley` | |||
-- | |||
ALTER TABLE `prod_galley` | |||
ADD CONSTRAINT `fk_prod_galley_products1` FOREIGN KEY (`prod_id`) REFERENCES `products` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; | |||
-- | |||
-- Constraints for table `recent` | |||
-- | |||
ALTER TABLE `recent` | |||
ADD CONSTRAINT `fk_recent_customer1` FOREIGN KEY (`cust_id`) REFERENCES `customer` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, | |||
ADD CONSTRAINT `fk_recent_products1` FOREIGN KEY (`prod_id`) REFERENCES `products` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; | |||
-- | |||
-- Constraints for table `shopper` | |||
-- | |||
ALTER TABLE `shopper` | |||
ADD CONSTRAINT `fk_shopper_users1` FOREIGN KEY (`users_id`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; | |||
-- | |||
-- Constraints for table `sub_category` | |||
-- | |||
ALTER TABLE `sub_category` | |||
ADD CONSTRAINT `fk_sub_category_category1` FOREIGN KEY (`cat_id`) REFERENCES `category` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; | |||
-- | |||
-- Constraints for table `transaction` | |||
-- | |||
ALTER TABLE `transaction` | |||
ADD CONSTRAINT `fk_transaction_booking1` FOREIGN KEY (`booking_id`) REFERENCES `booking` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; | |||
-- | |||
-- Constraints for table `wish` | |||
-- | |||
ALTER TABLE `wish` | |||
ADD CONSTRAINT `fk_wish_category1` FOREIGN KEY (`cat_id`) REFERENCES `category` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, | |||
ADD CONSTRAINT `fk_wish_customer1` FOREIGN KEY (`cust_id`) REFERENCES `customer` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, | |||
ADD CONSTRAINT `fk_wish_sub_category1` FOREIGN KEY (`sub_cat_id`) REFERENCES `sub_category` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; | |||
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 */; |
uploads/brand/1554715931black5.jpg
0 → 100644
901 KB
uploads/brand/1554716686black5.jpg
0 → 100644
901 KB
uploads/brand/1554716795blue2.jpg
0 → 100644
44.8 KB
uploads/brand/1554720626brown6.jpg
0 → 100644
27.4 KB
uploads/brand/1554720705green4.png
0 → 100644
4.65 KB
uploads/brand/1554787730black5.jpg
0 → 100644
901 KB
uploads/brand/1554787787red1.jpeg
0 → 100644
68.8 KB
uploads/category/1554448642brown6.jpg
0 → 100644
27.4 KB
uploads/category/1554448677blue2.jpg
0 → 100644
44.8 KB
uploads/category/1554448703brown6.jpg
0 → 100644
27.4 KB
uploads/category/1554449751green4.png
0 → 100644
4.65 KB
uploads/category/1554449790blue2.jpg
0 → 100644
44.8 KB
uploads/category/1554452377benzz.jpg
0 → 100644
2.73 KB
uploads/category/1554462336blue2.jpg
0 → 100644
44.8 KB
uploads/category/1554720577brown6.jpg
0 → 100644
27.4 KB
uploads/category/1554803388blue2.jpg
0 → 100644
44.8 KB
uploads/category/1554803483blue2.jpg
0 → 100644
44.8 KB
uploads/category/1554803570blue2.jpg
0 → 100644
44.8 KB
uploads/category/blue2.jpg
0 → 100644
44.8 KB
uploads/category/blue21.jpg
0 → 100644
44.8 KB
uploads/category/blue22.jpg
0 → 100644
44.8 KB
uploads/category/blue23.jpg
0 → 100644
44.8 KB
uploads/category/red1.jpeg
0 → 100644
68.8 KB
uploads/services/1554873852_black5.jpg
0 → 100644
901 KB
uploads/services/1554873852_brown6.jpg
0 → 100644
27.4 KB
uploads/services/1554873867_black5.jpg
0 → 100644
901 KB
uploads/services/1554873867_brown6.jpg
0 → 100644
27.4 KB
uploads/subcategory/1554805898black5.jpg
0 → 100644
901 KB
uploads/subcategory/1554805969black5.jpg
0 → 100644
901 KB
uploads/subcategory/1554807364black5.jpg
0 → 100644
901 KB
uploads/subcategory/1554811412usADWQ.jpg
0 → 100644
780 KB
uploads/subcategory/1554811443usADWQ.jpg
0 → 100644
780 KB
uploads/subcategory/1554811530green4.png
0 → 100644
4.65 KB