DROP TABLE IF EXISTS `ps_customer_jxheaderaccount`; CREATE TABLE `ps_customer_jxheaderaccount` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `id_customer` int(10) unsigned NOT NULL, `id_shop` int(11) NOT NULL DEFAULT '1', `social_id` varchar(100) NOT NULL, `social_type` varchar(50) NOT NULL, `avatar_url` varchar(128) NOT NULL, PRIMARY KEY (`id`,`id_shop`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;