--
-- Host: localhost    Database: sirgrout_store
-- ------------------------------------------------------


--
-- Current Database: `sirgrout_store`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `sirgrout_store` /*!40100 DEFAULT CHARACTER SET latin1 */;

USE `sirgrout_store`;

--
-- Table structure for table `SS_categories`
--

CREATE TABLE `SS_categories` (
  `categoryID` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `parent` int(11) DEFAULT NULL,
  `products_count` int(11) DEFAULT NULL,
  `description` text,
  `picture` varchar(30) DEFAULT NULL,
  `products_count_admin` int(11) DEFAULT NULL,
  PRIMARY KEY (`categoryID`)
) ENGINE=MyISAM AUTO_INCREMENT=83 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `SS_categories`
--

INSERT INTO `SS_categories` VALUES (80,'Solutions',0,1,'Liquid solutions','',0),(81,'Cloths & Brushes',0,0,'Cloths and brushes','',0),(82,'ColorSeal',80,1,'','',1),(79,'Accessories',0,0,'Accessories for your equipment','',0),(78,'Equipment',0,0,'Sir Grout Equipment','',0);

--
-- Table structure for table `SS_ordered_carts`
--

CREATE TABLE `SS_ordered_carts` (
  `productID` int(11) NOT NULL,
  `orderID` int(11) NOT NULL,
  `name` char(255) DEFAULT NULL,
  `Price` float DEFAULT NULL,
  `Quantity` int(11) DEFAULT NULL,
  PRIMARY KEY (`productID`,`orderID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `SS_ordered_carts`
--


--
-- Table structure for table `SS_orders`
--

CREATE TABLE `SS_orders` (
  `orderID` int(11) NOT NULL AUTO_INCREMENT,
  `order_time` datetime DEFAULT NULL,
  `cust_firstname` varchar(30) DEFAULT NULL,
  `cust_lastname` varchar(30) DEFAULT NULL,
  `cust_email` varchar(30) DEFAULT NULL,
  `cust_country` varchar(30) DEFAULT NULL,
  `cust_zip` varchar(30) DEFAULT NULL,
  `cust_state` varchar(30) DEFAULT NULL,
  `cust_city` varchar(30) DEFAULT NULL,
  `cust_address` varchar(30) DEFAULT NULL,
  `cust_phone` varchar(30) DEFAULT NULL,
  PRIMARY KEY (`orderID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `SS_orders`
--


--
-- Table structure for table `SS_products`
--

CREATE TABLE `SS_products` (
  `productID` int(11) NOT NULL AUTO_INCREMENT,
  `categoryID` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `description` text,
  `customers_rating` float NOT NULL,
  `Price` float DEFAULT NULL,
  `picture` varchar(30) DEFAULT NULL,
  `in_stock` int(11) DEFAULT NULL,
  `thumbnail` varchar(30) DEFAULT NULL,
  `customer_votes` int(11) NOT NULL,
  `items_sold` int(11) NOT NULL,
  `big_picture` varchar(30) DEFAULT NULL,
  `enabled` int(11) NOT NULL,
  `brief_description` text,
  `list_price` float DEFAULT NULL,
  `product_code` char(25) DEFAULT NULL,
  PRIMARY KEY (`productID`)
) ENGINE=MyISAM AUTO_INCREMENT=116 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `SS_products`
--

INSERT INTO `SS_products` VALUES (115,82,'Sales Sample Kit','',0,77,'labeled_sample_bottles_lg.jpg',1,'labeled_sample_bottles.jpg',0,0,'',1,'Sales Sample Kit (20 2-oz bottles - secondary or custom colors not included)<br /><br />\r\nFor use in demonstration to prospective customers',77,'SG065');

--
-- Table structure for table `SS_special_offers`
--

CREATE TABLE `SS_special_offers` (
  `offerID` int(11) NOT NULL AUTO_INCREMENT,
  `productID` int(11) DEFAULT NULL,
  `sort_order` int(11) DEFAULT NULL,
  PRIMARY KEY (`offerID`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `SS_special_offers`
--

INSERT INTO `SS_special_offers` VALUES (5,64,4),(3,81,1),(4,72,2),(1,101,3);

--
-- Table structure for table `fws_basket`
--

CREATE TABLE `fws_basket` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `CUSTOMERID` int(11) NOT NULL DEFAULT '0',
  `PRODUCTID` varchar(60) NOT NULL DEFAULT '0',
  `PRICE` double NOT NULL DEFAULT '0',
  `ORDERID` int(11) NOT NULL DEFAULT '0',
  `LINEADDDATE` varchar(20) NOT NULL DEFAULT '',
  `QTY` int(11) NOT NULL DEFAULT '1',
  `FEATURES` longtext,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `fws_basket`
--


--
-- Table structure for table `fws_category`
--

CREATE TABLE `fws_category` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `DESC` varchar(40) NOT NULL DEFAULT '',
  `GROUPID` varchar(11) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `fws_category`
--

INSERT INTO `fws_category` VALUES (1,'Test category','1');

--
-- Table structure for table `fws_discount`
--

CREATE TABLE `fws_discount` (
  `code` varchar(15) NOT NULL DEFAULT '',
  `orderid` int(11) NOT NULL DEFAULT '0',
  `amount` double NOT NULL DEFAULT '0',
  `percentage` tinyint(1) NOT NULL DEFAULT '0',
  `createdate` varchar(20) NOT NULL DEFAULT ''
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `fws_discount`
--


--
-- Table structure for table `fws_errorlog`
--

CREATE TABLE `fws_errorlog` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `severity` varchar(10) DEFAULT NULL,
  `message` longtext,
  `filename` varchar(50) DEFAULT NULL,
  `linenum` int(5) DEFAULT NULL,
  `time` varchar(30) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `fws_errorlog`
--

INSERT INTO `fws_errorlog` VALUES (1,'2','mysql_fetch_row(): supplied argument is not a valid MySQL result resource','login.php',149,'March 26, 2010, 1:33 pm'),(2,'2','fsockopen() [<a href=\'function.fsockopen\'>function.fsockopen</a>]: unable to connect to sirgrout.com.:25 (Connection refused)','email.php',253,'March 26, 2010, 1:33 pm');

--
-- Table structure for table `fws_group`
--

CREATE TABLE `fws_group` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `NAME` varchar(30) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `fws_group`
--

INSERT INTO `fws_group` VALUES (1,'Test group');

--
-- Table structure for table `fws_order`
--

CREATE TABLE `fws_order` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `DATE` varchar(20) NOT NULL DEFAULT '',
  `STATUS` tinyint(1) NOT NULL DEFAULT '0',
  `SHIPPING` int(11) NOT NULL DEFAULT '0',
  `PAYMENT` int(11) NOT NULL DEFAULT '0',
  `CUSTOMERID` int(11) NOT NULL DEFAULT '0',
  `TOPAY` double NOT NULL DEFAULT '0',
  `WEBID` varchar(25) NOT NULL DEFAULT '',
  `NOTES` longtext NOT NULL,
  `WEIGHT` int(11) NOT NULL DEFAULT '0',
  `PDF` varchar(30) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `fws_order`
--


--
-- Table structure for table `fws_payment`
--

CREATE TABLE `fws_payment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `description` varchar(150) DEFAULT NULL,
  `code` longtext,
  `system` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `fws_payment`
--

INSERT INTO `fws_payment` VALUES (1,'Bank','',1),(2,'Contant / Cash','',1),(3,'PayPal','<form name=\"autosubmit\" target=\"_new\" action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\"><input type=\"hidden\" name=\"cmd\" value=\"_xclick\"><input type=\"hidden\" name=\"business\" value=\"paypal@your+domain.com\">\r\n<input type=\"hidden\" name=\"item_name\" value=\"%webid%\">\r\n<input type=\"hidden\" name=\"currency_code\" value=\"EUR\">\r\n<input type=\"hidden\" name=\"amount\" value=\"%total%\">\r\n<input type=\"hidden\" name=\"invoice\" value=\"%webid%\">\r\n<input type=\"image\" src=\"http://www.paypal.com/en_US/i/btn/x-click-but01.gif\" name=\"submit\" alt=\"PayPal\">\r\n</form>',NULL);

--
-- Table structure for table `fws_product`
--

CREATE TABLE `fws_product` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `PRODUCTID` varchar(60) NOT NULL DEFAULT '0',
  `CATID` int(11) NOT NULL DEFAULT '0',
  `DESCRIPTION` longtext NOT NULL,
  `PRICE` double NOT NULL DEFAULT '0',
  `STOCK` int(1) DEFAULT NULL,
  `FRONTPAGE` tinyint(1) NOT NULL DEFAULT '0',
  `NEW` tinyint(1) NOT NULL DEFAULT '0',
  `FEATURES` longtext,
  `WEIGHT` double NOT NULL DEFAULT '0',
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `fws_product`
--

INSERT INTO `fws_product` VALUES (1,'TestID',1,'This is a test product.<br />Enjoy using <strong><big>FreeWebshop.org</big></strong>',1234.56,10,0,1,'Color:Red+-10.00,White+20.00,Blue+30.50|Text',0);

--
-- Table structure for table `fws_settings`
--

CREATE TABLE `fws_settings` (
  `use_captcha` tinyint(1) DEFAULT NULL,
  `send_default_country` varchar(50) DEFAULT NULL,
  `stock_warning_level` int(11) DEFAULT NULL,
  `use_stock_warning` tinyint(1) DEFAULT NULL,
  `weight_metric` varchar(10) DEFAULT NULL,
  `currency` varchar(10) DEFAULT NULL,
  `currency_symbol` varchar(10) DEFAULT NULL,
  `paymentdays` tinyint(4) DEFAULT NULL,
  `vat` double DEFAULT NULL,
  `show_vat` varchar(10) DEFAULT NULL,
  `db_prices_including_vat` tinyint(1) DEFAULT NULL,
  `sales_mail` varchar(500) DEFAULT NULL,
  `shopname` varchar(100) DEFAULT NULL,
  `shopurl` varchar(100) DEFAULT NULL,
  `default_lang` char(2) DEFAULT NULL,
  `order_prefix` varchar(10) DEFAULT NULL,
  `order_suffix` varchar(10) DEFAULT NULL,
  `stock_enabled` tinyint(1) DEFAULT NULL,
  `ordering_enabled` tinyint(1) DEFAULT NULL,
  `shop_disabled` tinyint(1) DEFAULT NULL,
  `shop_disabled_title` varchar(50) DEFAULT NULL,
  `shop_disabled_reason` varchar(100) DEFAULT NULL,
  `webmaster_mail` varchar(255) DEFAULT NULL,
  `shoptel` varchar(50) DEFAULT NULL,
  `shopfax` varchar(50) DEFAULT NULL,
  `bankaccount` varchar(50) DEFAULT NULL,
  `bankaccountowner` varchar(50) DEFAULT NULL,
  `bankcity` varchar(50) DEFAULT NULL,
  `bankcountry` varchar(50) DEFAULT NULL,
  `bankname` varchar(50) DEFAULT NULL,
  `bankiban` varchar(50) DEFAULT NULL,
  `bankbic` varchar(50) DEFAULT NULL,
  `start_year` int(4) DEFAULT NULL,
  `shop_logo` varchar(50) DEFAULT NULL,
  `pricelist_orderby` tinyint(1) DEFAULT NULL,
  `slogan` varchar(200) DEFAULT NULL,
  `page_title` varchar(200) DEFAULT NULL,
  `page_footer` varchar(100) DEFAULT NULL,
  `autosubmit` tinyint(1) DEFAULT NULL,
  `create_pdf` tinyint(1) DEFAULT NULL,
  `use_phpmail` tinyint(1) DEFAULT NULL,
  `number_format` varchar(8) DEFAULT NULL,
  `max_description` tinyint(2) DEFAULT NULL,
  `no_vat` tinyint(1) DEFAULT NULL,
  `pricelist_format` tinyint(1) DEFAULT NULL,
  `date_format` varchar(15) DEFAULT NULL,
  `search_prodgfx` tinyint(1) DEFAULT NULL,
  `use_prodgfx` tinyint(1) DEFAULT NULL,
  `template` varchar(50) DEFAULT NULL,
  `order_from_pricelist` tinyint(1) DEFAULT NULL,
  `use_datefix` tinyint(1) DEFAULT NULL,
  `pay_onreceive` tinyint(1) DEFAULT NULL,
  `hide_outofstock` tinyint(1) DEFAULT NULL,
  `show_stock` varchar(100) DEFAULT NULL,
  `paypal_currency` char(3) DEFAULT NULL,
  `thumbs_in_pricelist` tinyint(1) DEFAULT NULL,
  `keywords` varchar(200) DEFAULT NULL,
  `charset` varchar(50) DEFAULT NULL,
  `conditions_page` tinyint(1) DEFAULT NULL,
  `guarantee_page` tinyint(1) DEFAULT NULL,
  `shipping_page` tinyint(1) DEFAULT NULL,
  `pictureid` tinyint(1) DEFAULT NULL,
  `aboutus_page` tinyint(1) DEFAULT NULL,
  `live_news` tinyint(1) DEFAULT NULL,
  `pricelist_thumb_width` int(3) DEFAULT NULL,
  `pricelist_thumb_height` int(3) DEFAULT NULL,
  `category_thumb_width` int(3) DEFAULT NULL,
  `category_thumb_height` int(3) DEFAULT NULL,
  `product_max_width` int(5) DEFAULT NULL,
  `product_max_height` int(5) DEFAULT NULL,
  `new_page` tinyint(1) DEFAULT NULL,
  `use_wysiwyg` tinyint(1) DEFAULT NULL,
  `make_thumbs` tinyint(1) DEFAULT NULL,
  `description` longtext,
  `products_per_page` int(4) DEFAULT NULL,
  `use_imagepopup` tinyint(1) DEFAULT NULL,
  `currency_pos` tinyint(1) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `fws_settings`
--

INSERT INTO `fws_settings` VALUES (1,'United States',10,0,'lb','USD','$',1,0,'0%',1,'greg.parsons@sirgrout.com','SirGrout Franchise Store','http://www.sirgrout.com/store_new/','uk','WEB-','-10',0,1,0,'Closed','Dear visitor, the demo shop is temporarely down.','greg.parsons@sirgrout.com','866-476-8863','012-3456788','12345678','YourName','BankCity','BankCountry','TestBank','BankIBAN','BankBIC/Swiftcode',2008,'logo.gif',1,'SirGrout.com Franchise Store','SirGrout.com | Franchise Store','',1,1,0,'1,234.56',12,1,2,'m-d-Y @ G:i',1,1,'rounded',1,0,1,0,'0','EUR',1,'sir grout, tile cleaning, grout cleaning, slip and fall','ISO-8859-1',1,0,1,1,1,1,130,130,50,50,450,350,1,1,1,'SirGrout.com Franchisee Web Store',15,1,1);

--
-- Table structure for table `fws_shipping`
--

CREATE TABLE `fws_shipping` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `description` varchar(150) DEFAULT NULL,
  `country` tinyint(1) DEFAULT '0',
  `system` tinyint(1) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `fws_shipping`
--

INSERT INTO `fws_shipping` VALUES (1,'Pakketdienst / Postal service',0,1),(2,'Zelf ophalen / Pickup at store',1,1),(3,'Verzenden onder rembours / Pay at arrival',1,1);

--
-- Table structure for table `fws_shipping_payment`
--

CREATE TABLE `fws_shipping_payment` (
  `shippingid` int(11) DEFAULT NULL,
  `paymentid` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `fws_shipping_payment`
--

INSERT INTO `fws_shipping_payment` VALUES (1,1),(1,3),(1,4),(1,5),(1,6),(2,2),(3,2);

--
-- Table structure for table `fws_shipping_weight`
--

CREATE TABLE `fws_shipping_weight` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `SHIPPINGID` int(11) NOT NULL DEFAULT '0',
  `FROM` double NOT NULL DEFAULT '0',
  `TO` double NOT NULL DEFAULT '0',
  `PRICE` double NOT NULL DEFAULT '0',
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `fws_shipping_weight`
--

INSERT INTO `fws_shipping_weight` VALUES (1,1,0,99999,15),(2,2,0,99999,0);


