Advertisement
Guest User

Untitled

a guest
Jun 1st, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. CREATE TABLE `ps_product` (
  2. `id_product` int(10) unsigned NOT NULL AUTO_INCREMENT,
  3. `id_supplier` int(10) unsigned DEFAULT NULL,
  4. `id_manufacturer` int(10) unsigned DEFAULT NULL,
  5. `id_tax_rules_group` int(10) unsigned NOT NULL,
  6. `id_category_default` int(10) unsigned DEFAULT NULL,
  7. `id_color_default` int(10) unsigned DEFAULT NULL,
  8. `on_sale` tinyint(1) unsigned NOT NULL DEFAULT '0',
  9. `online_only` tinyint(1) NOT NULL DEFAULT '0',
  10. `ean13` varchar(13) DEFAULT NULL,
  11. `upc` varchar(12) DEFAULT NULL,
  12. `ecotax` decimal(17,6) NOT NULL DEFAULT '0.000000',
  13. `quantity` int(10) NOT NULL DEFAULT '0',
  14. `minimal_quantity` int(11) NOT NULL DEFAULT '1',
  15. `price` decimal(20,2) NOT NULL DEFAULT '0.00',
  16. `wholesale_price` decimal(20,2) NOT NULL DEFAULT '0.00',
  17. `unit_price_ratio` decimal(20,6) NOT NULL DEFAULT '0.000000',
  18. `additional_shipping_cost` decimal(20,2) NOT NULL DEFAULT '0.00',
  19. `unity` varchar(10) NOT NULL DEFAULT '0.000000',
  20. `reference` varchar(32) DEFAULT NULL,
  21. `supplier_reference` varchar(32) DEFAULT NULL,
  22. `location` varchar(64) DEFAULT NULL,
  23. `width` float NOT NULL,
  24. `height` float NOT NULL,
  25. `depth` float NOT NULL,
  26. `weight` float NOT NULL DEFAULT '0',
  27. `out_of_stock` int(10) unsigned NOT NULL DEFAULT '2',
  28. `quantity_discount` tinyint(1) DEFAULT '0',
  29. `customizable` tinyint(2) NOT NULL DEFAULT '0',
  30. `uploadable_files` tinyint(4) NOT NULL DEFAULT '0',
  31. `text_fields` tinyint(4) NOT NULL DEFAULT '0',
  32. `active` tinyint(1) unsigned NOT NULL DEFAULT '0',
  33. `available_for_order` tinyint(1) NOT NULL DEFAULT '1',
  34. `condition` enum('new','used','refurbished') NOT NULL DEFAULT 'new',
  35. `show_price` tinyint(1) NOT NULL DEFAULT '1',
  36. `indexed` tinyint(1) NOT NULL DEFAULT '0',
  37. `cache_is_pack` tinyint(1) NOT NULL DEFAULT '0',
  38. `cache_has_attachments` tinyint(1) NOT NULL DEFAULT '0',
  39. `cache_default_attribute` int(10) unsigned DEFAULT NULL,
  40. `date_add` datetime NOT NULL,
  41. `date_upd` datetime NOT NULL,
  42. PRIMARY KEY (`id_product`),
  43. KEY `product_supplier` (`id_supplier`),
  44. KEY `product_manufacturer` (`id_manufacturer`),
  45. KEY `date_add` (`date_add`),
  46. KEY `id_category_default` (`id_category_default`),
  47. KEY `id_color_default` (`id_color_default`)
  48. ) ENGINE=InnoDB AUTO_INCREMENT=3427 DEFAULT CHARSET=utf8 COMMENT='Таблица товаров'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement