10445ad61d
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@5881 b9a71923-0436-4b27-9f14-aed3839534dd
34 lines
1.3 KiB
SQL
34 lines
1.3 KiB
SQL
CREATE TABLE IF NOT EXISTS `PREFIX_wishlist` (
|
|
`id_wishlist` int(10) unsigned NOT NULL auto_increment,
|
|
`id_customer` int(10) unsigned NOT NULL,
|
|
`token` varchar(64) character set utf8 NOT NULL,
|
|
`name` varchar(64) character set utf8 NOT NULL,
|
|
`counter` int(10) unsigned NULL,
|
|
`date_add` datetime NOT NULL,
|
|
`date_upd` datetime NOT NULL,
|
|
PRIMARY KEY (`id_wishlist`)
|
|
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|
|
|
|
CREATE TABLE IF NOT EXISTS `PREFIX_wishlist_email` (
|
|
`id_wishlist` int(10) unsigned NOT NULL,
|
|
`email` varchar(128) character set utf8 NOT NULL,
|
|
`date_add` datetime NOT NULL
|
|
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|
|
|
|
CREATE TABLE IF NOT EXISTS `PREFIX_wishlist_product` (
|
|
`id_wishlist_product` int(10) NOT NULL auto_increment,
|
|
`id_wishlist` int(10) unsigned NOT NULL,
|
|
`id_product` int(10) unsigned NOT NULL,
|
|
`id_product_attribute` int(10) unsigned NOT NULL,
|
|
`quantity` int(10) unsigned NOT NULL,
|
|
`priority` int(10) unsigned NOT NULL,
|
|
PRIMARY KEY (`id_wishlist_product`)
|
|
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|
|
|
|
CREATE TABLE IF NOT EXISTS `PREFIX_wishlist_product_cart` (
|
|
`id_wishlist_product` int(10) unsigned NOT NULL,
|
|
`id_cart` int(10) unsigned NOT NULL,
|
|
`quantity` int(10) unsigned NOT NULL,
|
|
`date_add` datetime NOT NULL
|
|
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|