diff --git a/public/install/data/install_struct.sql b/public/install/data/install_struct.sql index c8f8270d..452e78a8 100644 --- a/public/install/data/install_struct.sql +++ b/public/install/data/install_struct.sql @@ -1709,3 +1709,33 @@ ADD COLUMN `module_key` varchar(100) NOT NULL DEFAULT '' COMMENT '功能模块k ALTER TABLE `yoshop_store_menu` MODIFY COLUMN `type` tinyint UNSIGNED NOT NULL DEFAULT 10 COMMENT '菜单类型(10页面 20操作)' AFTER `menu_id`, ADD COLUMN `is_page` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否为页面(1是 0否)' AFTER `path`; + +DROP TABLE IF EXISTS `yoshop_merchant`; +CREATE TABLE `yoshop_merchant` ( + `merchant_id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID', + `shop_name` varchar(100) NOT NULL DEFAULT '' COMMENT '名称', + `shop_label` varchar(100) NOT NULL DEFAULT '' COMMENT '标签', +`logo_image_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '门店logo图片ID', +`sort` int(11) NOT NULL DEFAULT '0' COMMENT '门店排序(数字越小越靠前)', + `is_delete` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除', + `store_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '商城ID', + `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间', + `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', + PRIMARY KEY (`merchant_id`), + KEY `store_id` (`store_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商户表'; + +DROP TABLE IF EXISTS `yoshop_squarelike`; +CREATE TABLE `yoshop_squarelike` ( + `squarelike_id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID', + `store_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '商城ID', + `square_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '动态ID', + `merchant_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '商户ID、商店ID 隔离商城里面的商户', + `user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '买家用户ID', + `is_delete` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除', + `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间', + `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', + PRIMARY KEY (`squarelike_id`), + KEY `store_id` (`store_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='点赞表'; +