Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TABLE IF NOT EXISTS `prefix_product` (
- `product_id` int(11) NOT NULL AUTO_INCREMENT,
- `model` varchar(64) NOT NULL,
- `sku` varchar(64) NOT NULL,
- `upc` varchar(12) NOT NULL,
- `ean` varchar(14) NOT NULL,
- `jan` varchar(13) NOT NULL,
- `isbn` varchar(13) NOT NULL,
- `mpn` varchar(64) NOT NULL,
- `location` varchar(128) NOT NULL,
- `quantity` int(4) NOT NULL DEFAULT '0',
- `stock_status_id` int(11) NOT NULL,
- `image` varchar(255) DEFAULT NULL,
- `manufacturer_id` int(11) NOT NULL,
- `shipping` tinyint(1) NOT NULL DEFAULT '1',
- `price` decimal(15,4) NOT NULL DEFAULT '0.0000',
- `cost` decimal(15,4) NOT NULL DEFAULT '0.0000',
- `cost_amount` decimal(15,4) NOT NULL DEFAULT '0.0000',
- `cost_percentage` decimal(15,2) NOT NULL DEFAULT '0.00',
- `cost_additional` decimal(15,4) NOT NULL DEFAULT '0.0000',
- `points` int(8) NOT NULL DEFAULT '0',
- `tax_class_id` int(11) NOT NULL,
- `date_available` date NOT NULL,
- `weight` decimal(15,8) NOT NULL DEFAULT '0.00000000',
- `weight_class_id` int(11) NOT NULL DEFAULT '0',
- `length` decimal(15,8) NOT NULL DEFAULT '0.00000000',
- `width` decimal(15,8) NOT NULL DEFAULT '0.00000000',
- `height` decimal(15,8) NOT NULL DEFAULT '0.00000000',
- `length_class_id` int(11) NOT NULL DEFAULT '0',
- `subtract` tinyint(1) NOT NULL DEFAULT '1',
- `minimum` int(11) NOT NULL DEFAULT '1',
- `sort_order` int(11) NOT NULL DEFAULT '0',
- `shipping_cost` decimal(15,4) NOT NULL DEFAULT '0.0000',
- `status` tinyint(1) NOT NULL DEFAULT '0',
- `date_added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `date_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `viewed` int(5) NOT NULL DEFAULT '0',
- `schemа` varchar(255) NOT NULL,
- `meta_robots` varchar(40) NOT NULL,
- PRIMARY KEY (`product_id`),
- UNIQUE KEY `product_id` (`product_id`),
- KEY `product_id_2` (`product_id`),
- KEY `product_id_3` (`product_id`),
- KEY `model` (`model`),
- KEY `stock_status_id` (`stock_status_id`),
- KEY `manufacturer_id` (`manufacturer_id`),
- KEY `tax_class_id` (`tax_class_id`),
- KEY `weight_class_id` (`weight_class_id`),
- KEY `length_class_id` (`length_class_id`),
- KEY `model_2` (`model`),
- KEY `sku` (`sku`),
- KEY `upc` (`upc`),
- KEY `manufacturer_id_2` (`manufacturer_id`),
- KEY `sort_order` (`sort_order`),
- KEY `status` (`status`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=11278 ;
- CREATE TABLE IF NOT EXISTS `prefix_product_to_category` (
- `product_id` int(11) NOT NULL,
- `category_id` int(11) NOT NULL,
- PRIMARY KEY (`product_id`,`category_id`),
- KEY `category_id` (`category_id`),
- KEY `category_id_2` (`category_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement