<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ```[sql] SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for eb_agent_level -- ---------------------------- DROP TABLE IF EXISTS `eb_agent_level`; CREATE TABLE `eb_agent_level` ( `id` int(10) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '' COMMENT '等級名稱', `image` varchar(255) NOT NULL DEFAULT '' COMMENT '背景圖', `one_brokerage` smallint(5) NOT NULL DEFAULT '0' COMMENT '一級分擁比例', `two_brokerage` smallint(5) NOT NULL DEFAULT '0' COMMENT '二級分擁比例', `grade` smallint(5) NOT NULL DEFAULT '0' COMMENT '等級', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '狀態', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='分銷員等級表'; -- ---------------------------- -- Table structure for eb_agent_level_task -- ---------------------------- DROP TABLE IF EXISTS `eb_agent_level_task`; CREATE TABLE `eb_agent_level_task` ( `id` int(10) NOT NULL AUTO_INCREMENT, `level_id` int(10) NOT NULL DEFAULT '0' COMMENT '分銷等級id', `name` varchar(50) NOT NULL DEFAULT '' COMMENT '任務名稱', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '任務類型', `number` int(10) NOT NULL DEFAULT '0' COMMENT '任務限定數', `desc` varchar(255) NOT NULL DEFAULT '' COMMENT '任務描述', `is_must` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否必須達成0:其一1:所有', `sort` smallint(5) NOT NULL DEFAULT '0' COMMENT '排序', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '狀態', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='分銷員等級任務表'; -- ---------------------------- -- Table structure for eb_agent_level_task_record -- ---------------------------- DROP TABLE IF EXISTS `eb_agent_level_task_record`; CREATE TABLE `eb_agent_level_task_record` ( `id` int(10) NOT NULL AUTO_INCREMENT, `uid` int(10) NOT NULL DEFAULT '0' COMMENT '用戶uid', `level_id` int(10) NOT NULL DEFAULT '0' COMMENT '等級id', `task_id` int(10) NOT NULL DEFAULT '0' COMMENT '任務id', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '狀態', `add_time` int(10) NOT NULL DEFAULT '10' COMMENT '添加時間', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='分銷員完成等級任務表記錄表'; -- ---------------------------- -- Table structure for eb_agreement -- ---------------------------- DROP TABLE IF EXISTS `eb_agreement`; CREATE TABLE `eb_agreement` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '協議類型 1:會員協議', `title` varchar(200) NOT NULL DEFAULT '' COMMENT '協議名稱', `content` text NOT NULL COMMENT '協議內容', `sort` int(10) NOT NULL DEFAULT '0' COMMENT '排序倒序', `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '1:顯示:0:不顯示', `add_time` int(50) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `type` (`type`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='會員協議'; -- ---------------------------- -- Table structure for eb_article -- ---------------------------- DROP TABLE IF EXISTS `eb_article`; CREATE TABLE `eb_article` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文章管理ID', `cid` varchar(255) NOT NULL DEFAULT '1' COMMENT '分類id', `title` varchar(255) NOT NULL DEFAULT '' COMMENT '文章標題', `author` varchar(255) NOT NULL DEFAULT '' COMMENT '文章作者', `image_input` varchar(255) NOT NULL DEFAULT '' COMMENT '文章圖片', `synopsis` varchar(255) NOT NULL DEFAULT '' COMMENT '文章簡介', `share_title` varchar(255) NOT NULL DEFAULT '' COMMENT '文章分享標題', `share_synopsis` varchar(255) NOT NULL DEFAULT '' COMMENT '文章分享簡介', `visit` varchar(255) NOT NULL DEFAULT '0' COMMENT '瀏覽次數', `sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序', `url` varchar(255) NOT NULL DEFAULT '' COMMENT '原文鏈接', `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '狀態', `add_time` varchar(255) NOT NULL DEFAULT '' COMMENT '添加時間', `hide` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否隱藏', `admin_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '管理員id', `mer_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商戶id', `product_id` int(10) NOT NULL DEFAULT '0' COMMENT '商品關聯id', `is_hot` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否熱門(小程序)', `is_banner` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否輪播圖(小程序)', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文章管理表'; -- ---------------------------- -- Table structure for eb_article_category -- ---------------------------- DROP TABLE IF EXISTS `eb_article_category`; CREATE TABLE `eb_article_category` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文章分類id', `pid` int(11) NOT NULL DEFAULT '0' COMMENT '父級ID', `title` varchar(255) NOT NULL DEFAULT '' COMMENT '文章分類標題', `intr` varchar(255) NOT NULL DEFAULT '' COMMENT '文章分類簡介', `image` varchar(255) NOT NULL DEFAULT '' COMMENT '文章分類圖片', `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '狀態', `sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1刪除0未刪除', `add_time` varchar(255) NOT NULL COMMENT '添加時間', `hidden` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否隱藏', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='文章分類表'; -- ---------------------------- -- Table structure for eb_article_content -- ---------------------------- DROP TABLE IF EXISTS `eb_article_content`; CREATE TABLE `eb_article_content` ( `nid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '文章id', `content` text NOT NULL COMMENT '文章內容', UNIQUE KEY `nid` (`nid`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文章內容表'; -- ---------------------------- -- Table structure for eb_auxiliary -- ---------------------------- DROP TABLE IF EXISTS `eb_auxiliary`; CREATE TABLE `eb_auxiliary` ( `id` int(10) NOT NULL AUTO_INCREMENT, `binding_id` int(10) NOT NULL DEFAULT '0' COMMENT '綁定id', `relation_id` int(10) NOT NULL DEFAULT '0' COMMENT '關聯id', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '類型0=客服轉接輔助,1=商品和分類輔助,2=優惠券和商品輔助', `other` varchar(2048) NOT NULL DEFAULT '' COMMENT '其他數據為json', `status` int(1) unsigned NOT NULL DEFAULT '0' COMMENT '數據狀態 0:未執行,1:成功, 2:失敗, 3:刪除', `update_time` int(10) NOT NULL DEFAULT '0' COMMENT '更新時間', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='輔助表'; -- ---------------------------- -- Table structure for eb_cache -- ---------------------------- DROP TABLE IF EXISTS `eb_cache`; CREATE TABLE `eb_cache` ( `key` varchar(32) NOT NULL DEFAULT '', `result` longtext COMMENT '緩存數據', `expire_time` int(11) NOT NULL DEFAULT '0' COMMENT '失效時間0=永久', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '緩存時間', PRIMARY KEY (`key`) USING BTREE, KEY `key` (`key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='微信緩存表'; -- ---------------------------- -- Table structure for eb_category -- ---------------------------- DROP TABLE IF EXISTS `eb_category`; CREATE TABLE `eb_category` ( `id` int(10) NOT NULL AUTO_INCREMENT, `pid` int(10) NOT NULL DEFAULT '0' COMMENT '上級id', `type` tinyint(1) DEFAULT '1' COMMENT '類型:1平臺2:門店', `store_id` int(10) NOT NULL DEFAULT '0' COMMENT '門店id', `owner_id` int(10) NOT NULL DEFAULT '0' COMMENT '所屬人,為全部', `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '分類名稱', `sort` int(10) NOT NULL DEFAULT '0' COMMENT '排序', `group` tinyint(1) NOT NULL DEFAULT '0' COMMENT '分類類型0=標簽分類,1=快捷短語分類', `other` text COLLATE utf8_unicode_ci COMMENT '其他參數', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`), KEY `pid` (`pid`), KEY `name` (`name`), KEY `is_be` (`owner_id`,`type`,`id`), KEY `cate` (`owner_id`,`type`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='標簽分類'; -- ---------------------------- -- Table structure for eb_city_area -- ---------------------------- DROP TABLE IF EXISTS `eb_city_area`; CREATE TABLE `eb_city_area` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `path` varchar(128) NOT NULL DEFAULT '/' COMMENT '省市級別', `parent_id` int(11) NOT NULL DEFAULT '0' COMMENT '父級id', `type` varchar(32) NOT NULL COMMENT '類型', `level` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '級別', `snum` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '子級個數', `name` varchar(100) NOT NULL DEFAULT '' COMMENT '名稱', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) USING BTREE, KEY `parent_id` (`parent_id`) USING BTREE, KEY `path` (`path`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=59046 DEFAULT CHARSET=utf8; -- ---------------------------- -- Table structure for eb_delivery_service -- ---------------------------- DROP TABLE IF EXISTS `eb_delivery_service`; CREATE TABLE `eb_delivery_service` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', `uid` int(11) NOT NULL DEFAULT '0' COMMENT '配送員uid', `type` tinyint(1) DEFAULT '1' COMMENT '類型:1平臺2:門店', `store_id` int(10) NOT NULL DEFAULT '0' COMMENT '門店id', `avatar` varchar(250) NOT NULL DEFAULT '' COMMENT '配送員頭像', `nickname` varchar(50) NOT NULL DEFAULT '' COMMENT '配送員名稱', `phone` varchar(20) NOT NULL DEFAULT '0' COMMENT '手機號碼', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加時間', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除', `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '0隱藏1顯示', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='配送員表'; -- ---------------------------- -- Table structure for eb_diy -- ---------------------------- DROP TABLE IF EXISTS `eb_diy`; CREATE TABLE `eb_diy` ( `id` int(11) NOT NULL AUTO_INCREMENT, `version` varchar(255) NOT NULL DEFAULT '' COMMENT '版本號', `name` varchar(255) NOT NULL DEFAULT '' COMMENT '頁面名稱', `title` varchar(100) NOT NULL DEFAULT '' COMMENT '網站標題', `cover_image` varchar(255) NOT NULL DEFAULT '' COMMENT '封面圖', `template_name` varchar(255) NOT NULL DEFAULT '' COMMENT '模板名稱', `value` longtext COMMENT '頁面數據', `default_value` longtext COMMENT '默認數據', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加時間', `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新時間', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否使用', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '頁面類型', `is_show` tinyint(1) NOT NULL DEFAULT '0' COMMENT '顯示首頁', `is_bg_color` tinyint(1) NOT NULL DEFAULT '0' COMMENT '顏色是否選中', `is_bg_pic` tinyint(1) NOT NULL DEFAULT '0' COMMENT '背景圖是否選中', `is_diy` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否是diy數據', `color_picker` varchar(50) NOT NULL DEFAULT '' COMMENT '背景顏色', `bg_pic` varchar(256) NOT NULL DEFAULT '' COMMENT '背景圖', `bg_tab_val` tinyint(1) NOT NULL DEFAULT '0' COMMENT '背景圖圖片樣式', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除', `order_status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '個人中心訂單樣式', `my_banner_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '個人中心banner是否顯示', `menu_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '個人中心菜單樣式', `service_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '商家樣式', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='DIY數據表'; -- ---------------------------- -- Table structure for eb_express -- ---------------------------- DROP TABLE IF EXISTS `eb_express`; CREATE TABLE `eb_express` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '快遞公司id', `code` varchar(50) NOT NULL DEFAULT '' COMMENT '快遞公司簡稱', `name` varchar(50) NOT NULL DEFAULT '' COMMENT '快遞公司全稱', `partner_id` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否需要月結賬號', `partner_key` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否需要月結密碼', `net` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否需要取件網店', `account` varchar(100) NOT NULL DEFAULT '' COMMENT '賬號', `key` varchar(100) NOT NULL DEFAULT '' COMMENT '密碼', `net_name` varchar(100) NOT NULL DEFAULT '' COMMENT '網點名稱', `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序', `is_show` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否顯示', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否可用', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `code` (`code`) USING BTREE, KEY `is_show` (`is_show`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=566 DEFAULT CHARSET=utf8 COMMENT='快遞公司表'; -- ---------------------------- -- Table structure for eb_live_anchor -- ---------------------------- DROP TABLE IF EXISTS `eb_live_anchor`; CREATE TABLE `eb_live_anchor` ( `id` int(10) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '' COMMENT '主播名稱', `cover_img` varchar(255) NOT NULL DEFAULT '' COMMENT '主播圖像', `wechat` varchar(50) NOT NULL DEFAULT '' COMMENT '主播微信號', `phone` varchar(32) NOT NULL DEFAULT '' COMMENT '手機號', `is_show` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否顯示', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除', `add_time` int(10) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='直播主播表'; -- ---------------------------- -- Table structure for eb_live_goods -- ---------------------------- DROP TABLE IF EXISTS `eb_live_goods`; CREATE TABLE `eb_live_goods` ( `id` int(10) NOT NULL AUTO_INCREMENT, `goods_id` int(10) NOT NULL DEFAULT '0' COMMENT '微信商品ID', `audit_id` int(10) NOT NULL DEFAULT '0' COMMENT '審核ID', `product_id` int(10) NOT NULL DEFAULT '0' COMMENT '商品id', `name` varchar(30) NOT NULL DEFAULT '' COMMENT '商品名稱', `cover_img` varchar(255) NOT NULL DEFAULT '' COMMENT '商品圖片鏈接', `url` varchar(255) NOT NULL DEFAULT '' COMMENT '商品小程序鏈接', `price_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '價格類型(1:一口價,此時讀price字段; 2:價格區間,此時price字段為左邊界,price2字段為右邊界; 3:折扣價,此時price字段為原價,price2字段為現價;)', `cost_price` decimal(10,2) NOT NULL DEFAULT '0.00', `price` decimal(10,2) NOT NULL DEFAULT '0.00', `price2` decimal(10,2) NOT NULL DEFAULT '0.00', `audit_status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '審核狀態(0:未審核,1:審核中,2:審核通過,3審核失敗)', `third_part_tag` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1、2:表示是為 API 添加商品,否則是直播控制臺添加的商品', `sort` smallint(5) NOT NULL DEFAULT '0', `is_show` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否顯示', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='直播商品表'; -- ---------------------------- -- Table structure for eb_live_room -- ---------------------------- DROP TABLE IF EXISTS `eb_live_room`; CREATE TABLE `eb_live_room` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `room_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '直播間 id', `name` varchar(32) NOT NULL DEFAULT '' COMMENT '直播間名字', `cover_img` varchar(255) NOT NULL DEFAULT '' COMMENT '背景圖', `share_img` varchar(255) NOT NULL DEFAULT '' COMMENT '分享圖', `start_time` int(10) NOT NULL DEFAULT '0' COMMENT '直播計劃開始時間', `end_time` int(10) NOT NULL DEFAULT '0' COMMENT '直播計劃結束時間', `anchor_name` varchar(50) NOT NULL DEFAULT '' COMMENT '主播昵稱', `anchor_wechat` varchar(50) NOT NULL DEFAULT '' COMMENT '主播微信號', `phone` varchar(32) NOT NULL DEFAULT '' COMMENT '主播手機號', `type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '直播間類型 【1: 推流,0:手機直播】', `screen_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '橫屏、豎屏 【1:橫屏,0:豎屏】', `close_like` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否關閉點贊', `close_goods` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否關閉貨架', `close_comment` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否關閉評論', `error_msg` varchar(255) NOT NULL DEFAULT '' COMMENT '未通過原因', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '審核狀態0=未審核1=微信審核2=審核通過-1=審核未通過', `live_status` smallint(5) unsigned NOT NULL DEFAULT '102' COMMENT '直播狀態101:直播中,102:未開始,103已結束,104禁播,105:暫停,106:異常,107:已過期', `mark` varchar(512) NOT NULL DEFAULT '' COMMENT '備注', `replay_status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '回放狀態', `sort` smallint(5) NOT NULL DEFAULT '0', `is_show` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否顯示', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否刪除', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`,`phone`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='直播間表'; -- ---------------------------- -- Table structure for eb_live_room_goods -- ---------------------------- DROP TABLE IF EXISTS `eb_live_room_goods`; CREATE TABLE `eb_live_room_goods` ( `live_room_id` int(10) unsigned NOT NULL DEFAULT '0', `live_goods_id` int(10) unsigned NOT NULL DEFAULT '0', KEY `broadcast_room_id` (`live_room_id`,`live_goods_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='直播間導入商品表'; -- ---------------------------- -- Table structure for eb_luck_lottery -- ---------------------------- DROP TABLE IF EXISTS `eb_luck_lottery`; CREATE TABLE `eb_luck_lottery` ( `id` int(10) NOT NULL AUTO_INCREMENT, `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '抽獎類型1:九宮格2:大轉盤3:九宮格升級版 4:幸運翻牌', `name` varchar(255) NOT NULL DEFAULT '' COMMENT '抽獎活動名稱', `desc` varchar(255) NOT NULL DEFAULT '' COMMENT '活動描述', `image` varchar(255) NOT NULL DEFAULT '' COMMENT '活動背景圖', `factor` tinyint(1) NOT NULL DEFAULT '1' COMMENT '抽獎消耗:1:積分2:余額3:下單支付成功4:關注5:訂單評價', `factor_num` smallint(5) NOT NULL DEFAULT '10' COMMENT '獲取一次抽獎的條件數量', `attends_user` tinyint(1) NOT NULL DEFAULT '1' COMMENT '參與用戶1:所有2:部分', `user_level` text COMMENT '參與用戶等級', `user_label` text COMMENT '參與用戶標簽', `is_svip` tinyint(1) NOT NULL DEFAULT '1' COMMENT '參與用戶是否付費會員', `prize_num` smallint(5) NOT NULL DEFAULT '0' COMMENT '獎品數量', `start_time` int(11) NOT NULL DEFAULT '0' COMMENT '開始時間', `end_time` int(11) NOT NULL DEFAULT '0' COMMENT '結束時間', `lottery_num_term` tinyint(1) NOT NULL DEFAULT '1' COMMENT '抽獎次數限制:1:每天2:每人', `lottery_num` smallint(5) NOT NULL DEFAULT '1' COMMENT '抽獎次數', `spread_num` smallint(5) NOT NULL DEFAULT '1' COMMENT '關注推廣獲取抽獎次數', `is_all_record` tinyint(1) NOT NULL DEFAULT '1' COMMENT '中獎紀錄展示', `is_personal_record` tinyint(1) NOT NULL DEFAULT '1' COMMENT '個人中獎紀錄展示', `is_content` tinyint(1) NOT NULL DEFAULT '1' COMMENT '活動規格是否展示', `content` longtext COMMENT '活動文案抽獎協議之類', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '狀態', `sort` smallint(5) NOT NULL DEFAULT '0' COMMENT '排序', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`), KEY `type` (`type`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='抽獎活動表'; -- ---------------------------- -- Table structure for eb_luck_lottery_record -- ---------------------------- DROP TABLE IF EXISTS `eb_luck_lottery_record`; CREATE TABLE `eb_luck_lottery_record` ( `id` int(10) NOT NULL AUTO_INCREMENT, `uid` int(10) NOT NULL DEFAULT '0' COMMENT '用戶uid', `lottery_id` int(10) NOT NULL DEFAULT '0' COMMENT '活動id', `prize_id` int(10) NOT NULL DEFAULT '0' COMMENT '獎品id', `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '獎品類型1:未中獎2:積分3:余額4:紅包5:優惠券6:站內商品7:等級經驗8:用戶等級 9:svip天數', `is_receive` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否領取', `receive_time` int(11) NOT NULL DEFAULT '0' COMMENT '領取時間', `receive_info` text COMMENT '收獲地址、備注等', `is_deliver` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否發貨', `deliver_time` int(11) NOT NULL DEFAULT '0' COMMENT '發貨處理時間', `deliver_info` text COMMENT '發貨單號、備注等', `add_time` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `uid` (`uid`), KEY `prize_id` (`prize_id`), KEY `lottery_id` (`lottery_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='抽獎記錄表'; -- ---------------------------- -- Table structure for eb_luck_prize -- ---------------------------- DROP TABLE IF EXISTS `eb_luck_prize`; CREATE TABLE `eb_luck_prize` ( `id` int(10) NOT NULL AUTO_INCREMENT COMMENT '獎品主鍵id', `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '獎品類型1:未中獎2:積分3:余額4:紅包5:優惠券6:站內商品7:等級經驗8:用戶等級 9:svip天數', `lottery_id` int(10) NOT NULL DEFAULT '0' COMMENT '抽獎活動id', `name` varchar(255) NOT NULL DEFAULT '' COMMENT '獎品名稱', `prompt` varchar(255) NOT NULL DEFAULT '' COMMENT '中獎提示語', `image` varchar(255) NOT NULL DEFAULT '' COMMENT '獎品圖片', `chance` smallint(5) NOT NULL DEFAULT '10' COMMENT '中獎基數', `total` smallint(5) NOT NULL DEFAULT '1' COMMENT '獎品數量', `coupon_id` int(10) NOT NULL DEFAULT '0' COMMENT '關聯優惠券id', `product_id` int(10) NOT NULL DEFAULT '0' COMMENT '關聯商品id', `unique` varchar(20) NOT NULL DEFAULT '' COMMENT '關聯商品規格唯一值', `num` int(8) NOT NULL DEFAULT '0' COMMENT '積分 經驗 會員天數', `sort` smallint(5) NOT NULL DEFAULT '0' COMMENT '排序', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '狀態', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除', `add_time` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `lottery_id` (`lottery_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='抽獎活動獎品表'; -- ---------------------------- -- Table structure for eb_member_card -- ---------------------------- DROP TABLE IF EXISTS `eb_member_card`; CREATE TABLE `eb_member_card` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `card_batch_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '卡批次id', `card_number` varchar(20) CHARACTER SET utf8mb4 NOT NULL DEFAULT '' COMMENT '卡號', `card_password` char(12) CHARACTER SET utf8mb4 NOT NULL DEFAULT '' COMMENT '密碼', `use_uid` int(11) NOT NULL DEFAULT '0' COMMENT '使用用戶', `use_time` int(10) NOT NULL DEFAULT '0' COMMENT '使用時間', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '卡狀態:0:凍結;1:激活', `add_time` int(10) NOT NULL DEFAULT '0', `update_time` int(10) NOT NULL DEFAULT '0', PRIMARY KEY (`id`,`card_batch_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='會員卡表'; -- ---------------------------- -- Table structure for eb_member_card_batch -- ---------------------------- DROP TABLE IF EXISTS `eb_member_card_batch`; CREATE TABLE `eb_member_card_batch` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(100) NOT NULL DEFAULT '0' COMMENT '批次名稱', `total_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '生成卡數量', `use_start_time` int(10) unsigned NOT NULL DEFAULT '7' COMMENT '體驗開始時間', `use_end_time` int(10) NOT NULL DEFAULT '0' COMMENT '體驗結束時間', `use_day` int(10) NOT NULL DEFAULT '0' COMMENT '體驗天數', `use_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '使用', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否生效,控制此批次所有卡0:不生效;1:生效', `sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序', `qrcode` varchar(255) NOT NULL DEFAULT '' COMMENT '二維碼圖路徑', `remark` varchar(512) CHARACTER SET utf8mb4 NOT NULL DEFAULT '' COMMENT '備注', `add_time` int(10) NOT NULL DEFAULT '0', `update_time` int(10) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='會員卡批次表'; -- ---------------------------- -- Table structure for eb_member_right -- ---------------------------- DROP TABLE IF EXISTS `eb_member_right`; CREATE TABLE `eb_member_right` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `right_type` varchar(100) NOT NULL DEFAULT '' COMMENT '權益類別', `title` varchar(200) NOT NULL DEFAULT '' COMMENT ' 權益名稱', `show_title` varchar(255) NOT NULL DEFAULT '' COMMENT '顯示權益名稱', `image` varchar(200) CHARACTER SET utf8mb4 NOT NULL DEFAULT '' COMMENT '權益圖標', `explain` varchar(1024) CHARACTER SET utf8mb4 NOT NULL DEFAULT '' COMMENT '權益介紹', `number` int(2) NOT NULL DEFAULT '1' COMMENT '規則數字', `sort` int(10) NOT NULL DEFAULT '0' COMMENT '排序倒序', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0:禁用,1:啟用', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`,`right_type`) USING BTREE, KEY `type` (`right_type`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='會員權益'; -- ---------------------------- -- Table structure for eb_member_ship -- ---------------------------- DROP TABLE IF EXISTS `eb_member_ship`; CREATE TABLE `eb_member_ship` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `type` varchar(20) NOT NULL DEFAULT 'month' COMMENT '會員類別month:月卡會員;quarter:季卡;year:年卡;ever:永久;free:免費', `title` varchar(200) NOT NULL DEFAULT '' COMMENT '會員名稱', `vip_day` int(10) NOT NULL DEFAULT '0' COMMENT '會員時間(天)', `price` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '原價', `pre_price` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '優惠后價格', `sort` int(10) NOT NULL DEFAULT '0' COMMENT '排序倒序', `is_del` int(2) NOT NULL DEFAULT '0' COMMENT '刪除', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`) USING BTREE, KEY `type` (`type`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='會員類型'; -- ---------------------------- -- Table structure for eb_message_system -- ---------------------------- DROP TABLE IF EXISTS `eb_message_system`; CREATE TABLE `eb_message_system` ( `id` int(10) NOT NULL AUTO_INCREMENT, `mark` varchar(50) NOT NULL DEFAULT '' COMMENT '標識', `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用戶ID', `title` varchar(256) NOT NULL DEFAULT '' COMMENT '通知標題', `content` varchar(512) NOT NULL DEFAULT '' COMMENT '通知內容', `look` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否查看', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1:普通用戶,2:管理員', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '通知時間', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='系統通知'; -- ---------------------------- -- Table structure for eb_other_order -- ---------------------------- DROP TABLE IF EXISTS `eb_other_order`; CREATE TABLE `eb_other_order` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `store_id` int(10) NOT NULL DEFAULT '0' COMMENT '門店id', `staff_id` int(10) NOT NULL DEFAULT '0' COMMENT '店員ID', `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用戶uid', `type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '區別 \r\n0:免費領取\r\n1:購買會員卡 \r\n2:卡密領取會員卡', `order_id` varchar(32) CHARACTER SET utf8mb4 NOT NULL DEFAULT '' COMMENT '訂單號', `member_type` varchar(10) CHARACTER SET utf8mb4 NOT NULL DEFAULT '' COMMENT '會員類型 \r\n月卡:month\r\n季卡:quarter\r\n年卡:year\r\n永久:ever\r\n免費:free', `code` varchar(20) NOT NULL DEFAULT '' COMMENT '卡號', `pay_type` varchar(32) CHARACTER SET utf8mb4 NOT NULL DEFAULT '' COMMENT '支付方式', `paid` tinyint(1) NOT NULL DEFAULT '0' COMMENT '支付狀態 0: 未支付 1:已支付', `pay_price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '支付金額', `member_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '會員卡價格', `pay_time` int(50) unsigned NOT NULL DEFAULT '0' COMMENT '會員購買時間', `trade_no` varchar(50) CHARACTER SET utf8mb4 NOT NULL DEFAULT '' COMMENT '支付寶支付,支付寶交易訂單號', `channel_type` varchar(10) NOT NULL DEFAULT '' COMMENT '支付渠道(微信公眾號 h5 小程序)', `is_free` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否免費', `is_permanent` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否永久', `overdue_time` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '會員過期時間', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '刪除', `vip_day` int(10) NOT NULL DEFAULT '0' COMMENT '會員有效天數', `add_time` int(50) unsigned NOT NULL DEFAULT '0' COMMENT '添加時間', `money` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '原價格', `remarks` varchar(255) NOT NULL DEFAULT '' COMMENT '備注', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='會員購買記錄表'; -- ---------------------------- -- Table structure for eb_other_order_status -- ---------------------------- DROP TABLE IF EXISTS `eb_other_order_status`; CREATE TABLE `eb_other_order_status` ( `oid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '訂單id', `change_type` varchar(32) NOT NULL DEFAULT '' COMMENT '操作類型', `change_message` varchar(256) NOT NULL DEFAULT '' COMMENT '操作備注', `shop_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '訂單類型 1:會員卡', `change_time` int(10) NOT NULL DEFAULT '0', KEY `oid` (`oid`) USING BTREE, KEY `change_type` (`change_type`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='訂單操作記錄表'; -- ---------------------------- -- Table structure for eb_out_account -- ---------------------------- DROP TABLE IF EXISTS `eb_out_account`; CREATE TABLE `eb_out_account` ( `id` int(11) NOT NULL AUTO_INCREMENT, `appid` varchar(50) NOT NULL DEFAULT '' COMMENT '賬號', `appsecret` varchar(100) NOT NULL DEFAULT '' COMMENT '密鑰', `title` varchar(200) NOT NULL DEFAULT '' COMMENT '描述', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '狀態', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加時間', `last_time` int(11) NOT NULL DEFAULT '0' COMMENT '最后一次登錄時間', `ip` varchar(30) NOT NULL DEFAULT '' COMMENT 'IP', `is_del` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='對外接口賬號'; -- ---------------------------- -- Table structure for eb_page_categroy -- ---------------------------- DROP TABLE IF EXISTS `eb_page_categroy`; CREATE TABLE `eb_page_categroy` ( `id` int(10) NOT NULL AUTO_INCREMENT, `pid` int(10) NOT NULL DEFAULT '0' COMMENT '父類id', `type` varchar(50) NOT NULL DEFAULT 'link' COMMENT '類型:link、special、product、product_category、custom', `name` varchar(50) NOT NULL DEFAULT '' COMMENT '分類名稱', `sort` smallint(5) NOT NULL DEFAULT '0' COMMENT '排序', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '狀態', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='頁面鏈接分類'; -- ---------------------------- -- Table structure for eb_page_link -- ---------------------------- DROP TABLE IF EXISTS `eb_page_link`; CREATE TABLE `eb_page_link` ( `id` int(10) NOT NULL AUTO_INCREMENT, `cate_id` int(10) NOT NULL DEFAULT '0' COMMENT '分類id', `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '分組1:基礎2:分銷3:個人中心', `name` varchar(50) NOT NULL DEFAULT '' COMMENT '頁面名稱', `url` varchar(255) NOT NULL DEFAULT '' COMMENT '頁面鏈接', `param` varchar(255) NOT NULL DEFAULT '' COMMENT '參數', `example` varchar(255) NOT NULL DEFAULT '' COMMENT '事例', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '狀態', `sort` smallint(5) NOT NULL DEFAULT '0' COMMENT '排序', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=utf8 COMMENT='頁面鏈接'; -- ---------------------------- -- Table structure for eb_qrcode -- ---------------------------- DROP TABLE IF EXISTS `eb_qrcode`; CREATE TABLE `eb_qrcode` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '微信二維碼ID', `third_type` varchar(32) NOT NULL DEFAULT '' COMMENT '二維碼類型', `third_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用戶id', `ticket` varchar(255) NOT NULL DEFAULT '' COMMENT '二維碼參數', `expire_seconds` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '二維碼有效時間', `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '狀態', `add_time` varchar(255) NOT NULL DEFAULT '0' COMMENT '添加時間', `url` varchar(255) NOT NULL DEFAULT '' COMMENT '微信訪問url', `qrcode_url` varchar(255) NOT NULL DEFAULT '' COMMENT '微信二維碼url', `scan` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '被掃的次數', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '二維碼所屬平臺1=小程序,2=公眾號,3=H5', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `third_type` (`third_type`,`third_id`) USING BTREE, KEY `ticket` (`ticket`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='微信二維碼管理表'; -- ---------------------------- -- Table structure for eb_queue_list -- ---------------------------- DROP TABLE IF EXISTS `eb_queue_list`; CREATE TABLE `eb_queue_list` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '隊列類型 1:批量發放用戶優惠券 2 : 批量設置用戶分組, 3:批量設置用戶標簽, 4:批量下架商品, 5:批量刪除商品規格, 6:批量刪除訂單, 7:批量手動發貨, 8:批量打印電子面單, 9:批量配送, 10:批量虛擬發貨', `source` varchar(5) NOT NULL DEFAULT 'admin' COMMENT '來源 前端:home ,后端:admin', `execute_key` varchar(512) CHARACTER SET utf8mb4 NOT NULL DEFAULT '' COMMENT '隊列執行數據緩存key', `title` varchar(200) CHARACTER SET utf8mb4 NOT NULL DEFAULT '' COMMENT ' 隊列名稱', `queue_in_value` text NOT NULL COMMENT '隊列參數', `sort` int(10) NOT NULL DEFAULT '0' COMMENT '排序倒序', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 :尚未執行,1:正在執行,2:執行成功, 3:執行失敗,4: 刪除的異常隊列', `first_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '首次執行時間', `again_time` int(11) unsigned NOT NULL COMMENT '再次執行時間', `finish_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '完成時間', `surplus_num` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '剩余未執行數量', `total_num` int(10) unsigned NOT NULL COMMENT ' 總數量', `is_del` tinyint(1) NOT NULL DEFAULT '0', `add_time` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`,`type`,`status`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='任務列表'; -- ---------------------------- -- Table structure for eb_shipping_templates -- ---------------------------- DROP TABLE IF EXISTS `eb_shipping_templates`; CREATE TABLE `eb_shipping_templates` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '編號', `name` varchar(255) NOT NULL DEFAULT '' COMMENT '模板名稱', `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '計費方式', `appoint` tinyint(1) NOT NULL DEFAULT '0' COMMENT '指定包郵', `no_delivery` tinyint(1) NOT NULL DEFAULT '0' COMMENT '指定不送達', `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='運費模板表'; -- ---------------------------- -- Table structure for eb_shipping_templates_free -- ---------------------------- DROP TABLE IF EXISTS `eb_shipping_templates_free`; CREATE TABLE `eb_shipping_templates_free` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '編號', `province_id` int(11) NOT NULL DEFAULT '0' COMMENT '省ID', `temp_id` int(11) NOT NULL DEFAULT '0' COMMENT '模板ID', `city_id` int(11) NOT NULL DEFAULT '0' COMMENT '城市ID', `number` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '包郵件數', `price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '包郵金額', `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '計費方式', `value` varchar(200) NOT NULL DEFAULT '', `uniqid` varchar(32) NOT NULL DEFAULT '' COMMENT '分組唯一值', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='運費模板指定包郵關聯表'; -- ---------------------------- -- Table structure for eb_shipping_templates_no_delivery -- ---------------------------- DROP TABLE IF EXISTS `eb_shipping_templates_no_delivery`; CREATE TABLE `eb_shipping_templates_no_delivery` ( `id` int(10) NOT NULL AUTO_INCREMENT, `province_id` int(10) NOT NULL DEFAULT '0' COMMENT '省ID', `temp_id` int(10) NOT NULL DEFAULT '0' COMMENT '模板ID', `city_id` int(10) NOT NULL DEFAULT '0' COMMENT '城市ID', `value` varchar(200) NOT NULL DEFAULT '', `uniqid` varchar(32) NOT NULL DEFAULT '' COMMENT '分組唯一值', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='運費模板指定不送達表'; -- ---------------------------- -- Table structure for eb_shipping_templates_region -- ---------------------------- DROP TABLE IF EXISTS `eb_shipping_templates_region`; CREATE TABLE `eb_shipping_templates_region` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '編號', `province_id` int(11) NOT NULL DEFAULT '0' COMMENT '省ID', `temp_id` int(11) NOT NULL DEFAULT '0' COMMENT '模板ID', `city_id` int(11) NOT NULL DEFAULT '0' COMMENT '城市ID', `first` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '首件', `first_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '首件運費', `continue` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '續件', `continue_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '續件運費', `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '計費方式', `value` varchar(200) NOT NULL DEFAULT '', `uniqid` varchar(32) NOT NULL DEFAULT '' COMMENT '分組唯一值', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='運費模板指定城市運費表'; -- ---------------------------- -- Table structure for eb_sms_record -- ---------------------------- DROP TABLE IF EXISTS `eb_sms_record`; CREATE TABLE `eb_sms_record` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '短信發送記錄編號', `uid` varchar(255) NOT NULL DEFAULT '' COMMENT '短信平臺賬號', `phone` char(11) NOT NULL DEFAULT '' COMMENT '接受短信的手機號', `content` text NOT NULL COMMENT '短信內容', `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '發送短信時間', `add_ip` varchar(16) NOT NULL DEFAULT '' COMMENT '添加記錄ip', `template` varchar(255) NOT NULL DEFAULT '' COMMENT '短信模板ID', `resultcode` int(6) unsigned NOT NULL DEFAULT '0' COMMENT '狀態碼 100=成功,130=失敗,131=空號,132=停機,133=關機,134=無狀態', `record_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '發送記錄id', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='短信發送記錄表'; -- ---------------------------- -- Table structure for eb_store_bargain -- ---------------------------- DROP TABLE IF EXISTS `eb_store_bargain`; CREATE TABLE `eb_store_bargain` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '砍價商品ID', `product_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '關聯商品ID', `title` varchar(255) NOT NULL DEFAULT '' COMMENT '砍價活動名稱', `image` varchar(150) NOT NULL DEFAULT '' COMMENT '砍價活動圖片', `unit_name` varchar(16) NOT NULL DEFAULT '' COMMENT '單位名稱', `stock` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '庫存', `sales` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '銷量', `images` varchar(2000) NOT NULL DEFAULT '' COMMENT '砍價商品輪播圖', `start_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '砍價開啟時間', `stop_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '砍價結束時間', `store_name` varchar(255) NOT NULL DEFAULT '' COMMENT '砍價商品名稱', `price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '砍價金額', `min_price` decimal(8,2) unsigned DEFAULT '0.00' COMMENT '砍價商品最低價', `num` int(11) unsigned NOT NULL DEFAULT '1' COMMENT '可購買砍價商品數量', `bargain_max_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '用戶每次砍價的最大金額', `bargain_min_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '用戶每次砍價的最小金額', `bargain_num` int(11) unsigned NOT NULL DEFAULT '1' COMMENT '用戶幫砍的次數', `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '砍價狀態 0(到砍價時間不自動開啟) 1(到砍價時間自動開啟時間)', `give_integral` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '反多少積分', `info` varchar(255) NOT NULL DEFAULT '' COMMENT '砍價活動簡介', `cost` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '成本價', `sort` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '排序', `is_hot` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否推薦0不推薦1推薦', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否刪除 0未刪除 1刪除', `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加時間', `is_postage` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否包郵 0不包郵 1包郵', `postage` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '郵費', `rule` text COMMENT '砍價規則', `look` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '砍價商品瀏覽量', `share` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '砍價商品分享量', `temp_id` int(11) NOT NULL DEFAULT '0' COMMENT '運費模板ID', `weight` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '重量', `volume` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '體積', `quota` int(10) NOT NULL DEFAULT '0' COMMENT '限購總數', `quota_show` int(10) NOT NULL DEFAULT '0' COMMENT '限量總數顯示', `people_num` int(11) NOT NULL DEFAULT '1' COMMENT '用戶幫砍的次數', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='砍價表'; -- ---------------------------- -- Table structure for eb_store_bargain_user -- ---------------------------- DROP TABLE IF EXISTS `eb_store_bargain_user`; CREATE TABLE `eb_store_bargain_user` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '用戶參與砍價表ID', `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用戶ID', `bargain_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '砍價商品id', `bargain_price_min` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '砍價的最低價', `bargain_price` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '砍價金額', `price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '砍掉的價格', `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '狀態 1參與中 2 活動結束參與失敗 3活動結束參與成功', `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '參與時間', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否取消', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶參與砍價表'; -- ---------------------------- -- Table structure for eb_store_bargain_user_help -- ---------------------------- DROP TABLE IF EXISTS `eb_store_bargain_user_help`; CREATE TABLE `eb_store_bargain_user_help` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '砍價用戶幫助表ID', `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '幫助的用戶id', `bargain_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '砍價商品ID', `bargain_user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用戶參與砍價表id', `price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '幫助砍價多少金額', `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加時間', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否自己砍價', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='砍價用戶幫助表'; -- ---------------------------- -- Table structure for eb_store_branch_product -- ---------------------------- DROP TABLE IF EXISTS `eb_store_branch_product`; CREATE TABLE `eb_store_branch_product` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id', `product_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id', `image` varchar(255) NOT NULL DEFAULT '' COMMENT '商品圖片', `store_name` varchar(128) NOT NULL DEFAULT '' COMMENT '商品名稱', `store_info` varchar(255) NOT NULL DEFAULT '' COMMENT '商品簡介', `keyword` varchar(255) NOT NULL DEFAULT '' COMMENT '關鍵字', `bar_code` varchar(15) NOT NULL DEFAULT '' COMMENT '商品條碼(一維碼)', `cate_id` varchar(64) NOT NULL DEFAULT '' COMMENT '分類id', `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '門店id', `sales` int(11) NOT NULL DEFAULT '0' COMMENT '銷量', `stock` int(11) NOT NULL DEFAULT '0' COMMENT '庫存', `sort` int(10) NOT NULL DEFAULT '0', `label_id` varchar(50) NOT NULL DEFAULT '' COMMENT '標簽id', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加時間', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='門店商品輔助表'; -- ---------------------------- -- Table structure for eb_store_branch_product_attr_value -- ---------------------------- DROP TABLE IF EXISTS `eb_store_branch_product_attr_value`; CREATE TABLE `eb_store_branch_product_attr_value` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id', `product_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id', `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '門店id', `unique` char(8) NOT NULL DEFAULT '' COMMENT '唯一值', `sales` int(10) NOT NULL DEFAULT '0' COMMENT '銷量', `stock` int(10) NOT NULL DEFAULT '0' COMMENT '庫存', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '類型', `bar_code` varchar(50) NOT NULL DEFAULT '' COMMENT '條形碼', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='門店商品屬性值輔助表'; -- ---------------------------- -- Table structure for eb_store_cart -- ---------------------------- DROP TABLE IF EXISTS `eb_store_cart`; CREATE TABLE `eb_store_cart` ( `id` bigint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '購物車表ID', `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用戶ID', `type` varchar(32) NOT NULL DEFAULT '' COMMENT '類型', `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品ID', `store_id` int(10) NOT NULL DEFAULT '0' COMMENT '門店id', `staff_id` int(10) NOT NULL DEFAULT '0' COMMENT '店員id', `product_attr_unique` varchar(16) NOT NULL DEFAULT '' COMMENT '商品屬性', `cart_num` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '商品數量', `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加時間', `is_pay` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 = 未購買 1 = 已購買', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除', `is_new` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否為立即購買', `combination_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '拼團id', `seckill_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '秒殺商品ID', `bargain_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '砍價id', `discount_id` int(10) NOT NULL DEFAULT '0' COMMENT '優惠套餐id', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '購物車商品狀態', PRIMARY KEY (`id`) USING BTREE, KEY `user_id` (`uid`) USING BTREE, KEY `goods_id` (`product_id`) USING BTREE, KEY `uid` (`uid`,`is_pay`) USING BTREE, KEY `uid_2` (`uid`,`is_del`) USING BTREE, KEY `uid_3` (`uid`,`is_new`) USING BTREE, KEY `type` (`type`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='購物車表'; -- ---------------------------- -- Table structure for eb_store_category -- ---------------------------- DROP TABLE IF EXISTS `eb_store_category`; CREATE TABLE `eb_store_category` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '商品分類表ID', `pid` int(11) NOT NULL DEFAULT '0' COMMENT '父id', `cate_name` varchar(100) NOT NULL DEFAULT '' COMMENT '分類名稱', `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序', `pic` varchar(128) NOT NULL DEFAULT '' COMMENT '圖標', `is_show` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否推薦', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加時間', `big_pic` varchar(255) NOT NULL DEFAULT '' COMMENT '分類大圖', PRIMARY KEY (`id`) USING BTREE, KEY `pid` (`pid`) USING BTREE, KEY `is_base` (`is_show`) USING BTREE, KEY `sort` (`sort`) USING BTREE, KEY `add_time` (`add_time`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=180 DEFAULT CHARSET=utf8 COMMENT='商品分類表'; -- ---------------------------- -- Table structure for eb_store_combination -- ---------------------------- DROP TABLE IF EXISTS `eb_store_combination`; CREATE TABLE `eb_store_combination` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品id', `mer_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商戶id', `image` varchar(255) NOT NULL DEFAULT '' COMMENT '推薦圖', `images` varchar(2000) NOT NULL DEFAULT '' COMMENT '輪播圖', `title` varchar(255) NOT NULL DEFAULT '' COMMENT '活動標題', `attr` varchar(255) NOT NULL DEFAULT '' COMMENT '活動屬性', `people` int(2) unsigned NOT NULL DEFAULT '0' COMMENT '參團人數', `info` varchar(255) NOT NULL DEFAULT '' COMMENT '簡介', `price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '價格', `sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序', `sales` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '銷量', `stock` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '庫存', `add_time` varchar(128) NOT NULL DEFAULT '0' COMMENT '添加時間', `is_host` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '推薦', `is_show` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '商品狀態', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0', `combination` tinyint(1) unsigned NOT NULL DEFAULT '1', `mer_use` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '商戶是否可用1可用0不可用', `is_postage` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否包郵1是0否', `postage` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '郵費', `start_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '拼團開始時間', `stop_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '拼團結束時間', `effective_time` int(11) NOT NULL DEFAULT '0' COMMENT '拼團訂單有效時間', `cost` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '拼圖商品成本', `browse` int(11) NOT NULL DEFAULT '0' COMMENT '瀏覽量', `unit_name` varchar(32) NOT NULL DEFAULT '' COMMENT '單位名', `temp_id` int(11) NOT NULL DEFAULT '0' COMMENT '運費模板ID', `weight` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '重量', `volume` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '體積', `num` int(11) NOT NULL DEFAULT '0' COMMENT '單次購買數量', `once_num` int(11) NOT NULL DEFAULT '0' COMMENT '每個訂單可購買數量', `quota` int(10) NOT NULL DEFAULT '0' COMMENT '限購總數', `quota_show` int(10) NOT NULL DEFAULT '0' COMMENT '限量總數顯示', `virtual` int(11) NOT NULL DEFAULT '100' COMMENT '虛擬成團百分比', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='拼團商品表'; -- ---------------------------- -- Table structure for eb_store_config -- ---------------------------- DROP TABLE IF EXISTS `eb_store_config`; CREATE TABLE `eb_store_config` ( `id` int(11) NOT NULL AUTO_INCREMENT, `key_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '配置key', `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '門店id', `value` varchar(2000) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '值', `add_time` int(11) NOT NULL COMMENT '添加時間', PRIMARY KEY (`id`), UNIQUE KEY `key` (`key_name`,`store_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Table structure for eb_store_coupon_issue -- ---------------------------- DROP TABLE IF EXISTS `eb_store_coupon_issue`; CREATE TABLE `eb_store_coupon_issue` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `cid` int(10) NOT NULL DEFAULT '0' COMMENT '優惠券ID', `coupon_title` varchar(255) NOT NULL DEFAULT '' COMMENT '優惠券名稱', `start_time` int(10) NOT NULL DEFAULT '0' COMMENT '優惠券領取開啟時間', `end_time` int(10) NOT NULL DEFAULT '0' COMMENT '優惠券領取結束時間', `total_count` int(10) NOT NULL DEFAULT '0' COMMENT '優惠券領取數量', `remain_count` int(10) NOT NULL DEFAULT '0' COMMENT '優惠券剩余領取數量', `is_permanent` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否無限張數', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1 正常 0 未開啟 -1 已無效', `is_give_subscribe` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否首次關注贈送 0-否(默認) 1-是', `is_full_give` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否滿贈0-否(默認) 1-是', `full_reduction` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '消費滿多少贈送優惠券', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '優惠券添加時間', `title` varchar(64) NOT NULL DEFAULT '' COMMENT '優惠券名稱', `integral` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '兌換消耗積分值', `coupon_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '兌換的優惠券面值', `use_min_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '最低消費多少金額可用優惠券', `coupon_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '優惠券有效期限(單位:天)', `product_id` text COMMENT '所屬商品id', `category_id` int(11) NOT NULL DEFAULT '0' COMMENT '分類id', `type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '優惠券類型 0-通用 1-品類券 2-商品券', `receive_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1 手動領取,2 新人券,3贈送券,4會員券', `start_use_time` int(11) NOT NULL DEFAULT '0' COMMENT '優惠券使用開始時間', `end_use_time` int(11) NOT NULL DEFAULT '0' COMMENT '優惠券使用結束時間', `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序', PRIMARY KEY (`id`) USING BTREE, KEY `cid` (`cid`) USING BTREE, KEY `start_time` (`start_time`,`end_time`) USING BTREE, KEY `remain_count` (`remain_count`) USING BTREE, KEY `status` (`status`) USING BTREE, KEY `coupon_time` (`coupon_time`) USING BTREE, KEY `is_del` (`is_del`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='優惠券前臺領取表'; -- ---------------------------- -- Table structure for eb_store_coupon_issue_user -- ---------------------------- DROP TABLE IF EXISTS `eb_store_coupon_issue_user`; CREATE TABLE `eb_store_coupon_issue_user` ( `uid` int(10) DEFAULT '0' COMMENT '領取優惠券用戶ID', `issue_coupon_id` int(10) NOT NULL DEFAULT '0' COMMENT '優惠券前臺領取ID', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '領取時間', UNIQUE KEY `uid` (`uid`,`issue_coupon_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='優惠券前臺用戶領取記錄表'; -- ---------------------------- -- Table structure for eb_store_coupon_product -- ---------------------------- DROP TABLE IF EXISTS `eb_store_coupon_product`; CREATE TABLE `eb_store_coupon_product` ( `coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '優惠卷模板id', `product_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id', KEY `coupon_id` (`coupon_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='優惠卷模板關聯列表'; -- ---------------------------- -- Table structure for eb_store_coupon_user -- ---------------------------- DROP TABLE IF EXISTS `eb_store_coupon_user`; CREATE TABLE `eb_store_coupon_user` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '優惠券發放記錄id', `cid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '兌換的項目id', `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '優惠券所屬用戶', `coupon_title` varchar(32) NOT NULL DEFAULT '' COMMENT '優惠券名稱', `coupon_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '優惠券的面值', `use_min_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '最低消費多少金額可用優惠券', `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '優惠券創建時間', `start_time` int(11) NOT NULL DEFAULT '0', `end_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '優惠券結束時間', `use_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '使用時間', `type` varchar(32) NOT NULL DEFAULT 'send' COMMENT '獲取方式', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '狀態(0:未使用,1:已使用, 2:已過期)', `is_fail` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否有效', PRIMARY KEY (`id`) USING BTREE, KEY `cid` (`cid`) USING BTREE, KEY `uid` (`uid`) USING BTREE, KEY `add_time` (`add_time`) USING BTREE, KEY `end_time` (`end_time`) USING BTREE, KEY `status` (`status`) USING BTREE, KEY `is_fail` (`is_fail`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='優惠券發放記錄表'; -- ---------------------------- -- Table structure for eb_store_discounts -- ---------------------------- DROP TABLE IF EXISTS `eb_store_discounts`; CREATE TABLE `eb_store_discounts` ( `id` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增ID', `title` varchar(255) NOT NULL DEFAULT '' COMMENT '套餐名稱', `image` varchar(500) NOT NULL DEFAULT '' COMMENT '組合套餐主圖', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '套餐類型0固定1搭配', `is_limit` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否限量0不限量1限量', `limit_num` int(10) NOT NULL DEFAULT '0' COMMENT '限量個數', `link_ids` varchar(255) NOT NULL DEFAULT '' COMMENT '關聯標簽', `product_ids` varchar(255) NOT NULL DEFAULT '' COMMENT '商品IDS', `is_time` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否限時0不限時1限時', `start_time` int(11) NOT NULL DEFAULT '0' COMMENT '開始時間', `stop_time` int(11) NOT NULL DEFAULT '0' COMMENT '結束時間', `sort` int(10) NOT NULL DEFAULT '0' COMMENT '排序', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加時間', `free_shipping` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否包郵0不包郵1包郵', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否上架0不上架1上架', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除0未刪除1已刪除', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='組合套餐表'; -- ---------------------------- -- Table structure for eb_store_discounts_products -- ---------------------------- DROP TABLE IF EXISTS `eb_store_discounts_products`; CREATE TABLE `eb_store_discounts_products` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID', `discount_id` int(11) NOT NULL DEFAULT '0' COMMENT '優惠套餐ID', `product_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID', `title` varchar(255) NOT NULL DEFAULT '0' COMMENT '商品名稱', `image` varchar(500) NOT NULL DEFAULT '' COMMENT '商品圖', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否搭配0不是1是', `temp_id` int(11) NOT NULL DEFAULT '0' COMMENT '運費模版Id', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='組合套餐商品表'; -- ---------------------------- -- Table structure for eb_store_extract -- ---------------------------- DROP TABLE IF EXISTS `eb_store_extract`; CREATE TABLE `eb_store_extract` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `store_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '門店ID', `store_staff_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '門店店員ID', `extract_type` varchar(32) NOT NULL DEFAULT 'bank' COMMENT 'bank = 銀行卡 alipay = 支付寶wx=微信', `bank_code` varchar(32) NOT NULL DEFAULT '0' COMMENT '銀行卡', `bank_address` varchar(256) NOT NULL DEFAULT '' COMMENT '開戶地址', `alipay_account` varchar(64) NOT NULL DEFAULT '' COMMENT '支付寶賬號', `wechat` varchar(15) NOT NULL DEFAULT '' COMMENT '微信號', `qrcode_url` varchar(255) NOT NULL DEFAULT '' COMMENT '二維碼地址', `extract_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '提現金額', `mark` varchar(512) NOT NULL DEFAULT '', `balance` decimal(8,2) unsigned NOT NULL DEFAULT '0.00', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '-1 未通過 0 審核中 1 已提現', `pay_status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 未轉賬 1 已轉賬', `store_mark` varchar(255) NOT NULL DEFAULT '' COMMENT '門店備注', `admin_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '管理員ID', `fail_msg` varchar(128) NOT NULL DEFAULT '' COMMENT '無效原因', `fail_time` int(10) unsigned NOT NULL DEFAULT '0', `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`) USING BTREE, KEY `store_id` (`store_id`) USING BTREE, KEY `extract_type` (`extract_type`) USING BTREE, KEY `status` (`status`) USING BTREE, KEY `add_time` (`add_time`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='門店提現表'; -- ---------------------------- -- Table structure for eb_store_finance_flow -- ---------------------------- DROP TABLE IF EXISTS `eb_store_finance_flow`; CREATE TABLE `eb_store_finance_flow` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '門店id', `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用戶id', `staff_id` int(11) NOT NULL DEFAULT '0' COMMENT '店員id', `order_id` varchar(20) NOT NULL DEFAULT '' COMMENT '交易單號', `link_id` varchar(50) NOT NULL DEFAULT '' COMMENT '關聯訂單', `pm` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 = 支出 1 = 獲得', `number` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '明細', `type` varchar(50) NOT NULL DEFAULT '' COMMENT '交易類型(1:支付訂單,2,門店訂單,3,訂單手續費,4:退款訂單,5:充值返點,6:付費會員返點,7:充值訂單,8:付費訂單,9:收銀訂單\r\n)', `pay_type` varchar(20) NOT NULL DEFAULT '' COMMENT '支付方式', `trade_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1:流水,2:交易', `remark` varchar(512) NOT NULL DEFAULT '' COMMENT '備注', `mark` varchar(255) NOT NULL DEFAULT '' COMMENT '門店備注', `trade_time` int(11) NOT NULL DEFAULT '0' COMMENT '交易時間', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加時間', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='門店資金流水表'; -- ---------------------------- -- Table structure for eb_store_integral -- ---------------------------- DROP TABLE IF EXISTS `eb_store_integral`; CREATE TABLE `eb_store_integral` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '積分商品ID', `image` varchar(256) NOT NULL DEFAULT '' COMMENT '商品圖片', `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品id', `images` varchar(2000) NOT NULL DEFAULT '' COMMENT '輪播圖', `title` varchar(255) NOT NULL DEFAULT '' COMMENT '活動標題', `price` int(10) NOT NULL DEFAULT '0' COMMENT '兌換積分', `sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序', `sales` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '銷量', `unit_name` varchar(16) NOT NULL DEFAULT '' COMMENT '單位名', `stock` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '庫存', `add_time` varchar(128) NOT NULL DEFAULT '0' COMMENT '添加時間', `is_host` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '推薦', `is_show` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '商品狀態', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '刪除', `num` int(11) NOT NULL DEFAULT '0' COMMENT '最多積分幾個', `quota` int(10) NOT NULL DEFAULT '0' COMMENT '限購總數', `once_num` int(11) NOT NULL DEFAULT '0' COMMENT '單次購買個數', `quota_show` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='積分商品表'; -- ---------------------------- -- Table structure for eb_store_integral_order -- ---------------------------- DROP TABLE IF EXISTS `eb_store_integral_order`; CREATE TABLE `eb_store_integral_order` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '訂單ID', `order_id` varchar(32) NOT NULL DEFAULT '0' COMMENT '訂單號', `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用戶id', `real_name` varchar(32) NOT NULL DEFAULT '' COMMENT '用戶姓名', `user_phone` varchar(18) NOT NULL DEFAULT '' COMMENT '用戶電話', `user_address` varchar(100) NOT NULL DEFAULT '' COMMENT '詳細地址', `product_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id', `image` varchar(256) NOT NULL DEFAULT '' COMMENT '商品圖片', `store_name` varchar(128) NOT NULL DEFAULT '' COMMENT '商品名稱', `suk` varchar(128) NOT NULL DEFAULT '' COMMENT '規格', `total_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '訂單商品總數', `price` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '單價', `total_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '總積分', `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '創建時間', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1:待發貨;2:待收貨;3:已完成;', `delivery_name` varchar(64) NOT NULL DEFAULT '' COMMENT '快遞名稱/送貨人姓名', `delivery_code` varchar(50) NOT NULL DEFAULT '' COMMENT '快遞公司編碼', `delivery_type` varchar(32) NOT NULL DEFAULT '' COMMENT '發貨類型', `delivery_id` varchar(64) NOT NULL DEFAULT '' COMMENT '快遞單號/手機號', `fictitious_content` varchar(500) NOT NULL DEFAULT '' COMMENT '虛擬發貨內容', `delivery_uid` int(11) NOT NULL DEFAULT '0' COMMENT '配送員id', `mark` varchar(512) NOT NULL DEFAULT '' COMMENT '備注', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否刪除', `remark` varchar(512) NOT NULL DEFAULT '' COMMENT '管理員備注', `mer_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商戶ID', `is_mer_check` tinyint(3) unsigned NOT NULL DEFAULT '0', `is_remind` tinyint(1) unsigned DEFAULT '0' COMMENT '消息提醒', `is_system_del` tinyint(1) DEFAULT '0' COMMENT '后臺是否刪除', `channel_type` varchar(255) NOT NULL DEFAULT '' COMMENT '用戶訪問端標識', `province` varchar(255) NOT NULL DEFAULT '' COMMENT '用戶省份', `express_dump` varchar(502) NOT NULL DEFAULT '' COMMENT '訂單面單打印信息', `verify_code` varchar(125) NOT NULL DEFAULT '' COMMENT '核銷碼', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `order_id_2` (`order_id`,`uid`) USING BTREE, KEY `uid` (`uid`) USING BTREE, KEY `add_time` (`add_time`) USING BTREE, KEY `status` (`status`) USING BTREE, KEY `is_del` (`is_del`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='積分訂單表'; -- ---------------------------- -- Table structure for eb_store_integral_order_status -- ---------------------------- DROP TABLE IF EXISTS `eb_store_integral_order_status`; CREATE TABLE `eb_store_integral_order_status` ( `oid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '訂單id', `change_type` varchar(32) NOT NULL DEFAULT '' COMMENT '操作類型', `change_message` varchar(256) NOT NULL DEFAULT '' COMMENT '操作備注', `change_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '操作時間', KEY `oid` (`oid`) USING BTREE, KEY `change_type` (`change_type`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='積分訂單操作記錄表'; -- ---------------------------- -- Table structure for eb_store_order -- ---------------------------- DROP TABLE IF EXISTS `eb_store_order`; CREATE TABLE `eb_store_order` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '訂單ID', `pid` int(10) NOT NULL DEFAULT '0' COMMENT '父類訂單id', `order_id` varchar(32) NOT NULL DEFAULT '0' COMMENT '訂單號', `trade_no` varchar(100) NOT NULL DEFAULT '' COMMENT '支付寶訂單號', `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用戶id', `real_name` varchar(32) NOT NULL DEFAULT '' COMMENT '用戶姓名', `user_phone` varchar(18) NOT NULL DEFAULT '' COMMENT '用戶電話', `user_address` varchar(100) NOT NULL DEFAULT '' COMMENT '詳細地址', `user_location` varchar(30) NOT NULL DEFAULT '' COMMENT '用戶地址定位', `cart_id` text COMMENT '購物車ids', `freight_price` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '運費金額', `total_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '訂單商品總數', `total_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '訂單總價', `total_postage` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '郵費', `pay_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '實際支付金額', `pay_postage` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '支付郵費', `deduction_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '抵扣金額', `coupon_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '優惠券id', `coupon_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '優惠券金額', `paid` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '支付狀態', `pay_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '支付時間', `pay_type` varchar(32) NOT NULL COMMENT '支付方式', `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '創建時間', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '訂單狀態(-1 : 申請退款 -2 : 退貨成功 0:待發貨;1:待收貨;2:已收貨;3:待評價;-1:已退款)', `refund_status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0 未退款 1 申請中 2 已退款', `refund_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '退款申請類型', `refund_express` varchar(255) NOT NULL DEFAULT '' COMMENT '退貨快遞單號', `refund_reason_wap_img` text COMMENT '退款圖片', `refund_reason_wap_explain` varchar(255) NOT NULL DEFAULT '' COMMENT '退款用戶說明', `refund_reason_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '退款時間', `refund_reason_wap` varchar(255) NOT NULL DEFAULT '' COMMENT '前臺退款原因', `refund_reason` varchar(255) NOT NULL DEFAULT '' COMMENT '不退款的理由', `refund_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '退款金額', `delivery_name` varchar(64) NOT NULL DEFAULT '' COMMENT '快遞名稱/送貨人姓名', `delivery_code` varchar(50) NOT NULL DEFAULT '' COMMENT '快遞公司編碼', `delivery_type` varchar(32) NOT NULL DEFAULT '' COMMENT '發貨類型', `delivery_id` varchar(64) NOT NULL DEFAULT '' COMMENT '快遞單號/手機號', `fictitious_content` varchar(500) NOT NULL DEFAULT '' COMMENT '虛擬發貨內容', `delivery_uid` int(11) NOT NULL DEFAULT '0' COMMENT '配送員id', `gain_integral` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '消費賺取積分', `use_integral` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '使用積分', `back_integral` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '給用戶退了多少積分', `spread_uid` int(10) NOT NULL DEFAULT '0' COMMENT '上級推廣人uid', `spread_two_uid` int(10) NOT NULL DEFAULT '0' COMMENT '上上級推廣人uid', `one_brokerage` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '一級返傭金額', `two_brokerage` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '二級返傭金額', `mark` varchar(512) NOT NULL DEFAULT '' COMMENT '備注', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否刪除', `unique` char(32) NOT NULL DEFAULT '' COMMENT '唯一id(md5加密)類似id', `remark` varchar(512) NOT NULL DEFAULT '' COMMENT '管理員備注', `mer_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商戶ID', `is_mer_check` tinyint(3) unsigned NOT NULL DEFAULT '0', `combination_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '拼團商品id0一般商品', `pink_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '拼團id 0沒有拼團', `cost` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '成本價', `seckill_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '秒殺商品ID', `bargain_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '砍價id', `discount_id` int(10) NOT NULL DEFAULT '0' COMMENT '優惠套餐id', `verify_code` varchar(12) NOT NULL DEFAULT '' COMMENT '核銷碼', `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '門店id', `staff_id` int(10) NOT NULL DEFAULT '0' COMMENT '店員ID', `shipping_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '配送方式 1=快遞 ,2=門店自提', `clerk_id` int(11) NOT NULL DEFAULT '0' COMMENT '店員id', `is_channel` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '支付渠道(0微信公眾號1微信小程序)', `is_remind` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '消息提醒', `is_system_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '后臺是否刪除', `channel_type` varchar(255) NOT NULL DEFAULT '' COMMENT '用戶訪問端標識', `province` varchar(255) NOT NULL DEFAULT '' COMMENT '用戶省份', `express_dump` varchar(502) NOT NULL DEFAULT '' COMMENT '訂單面單打印信息', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `order_id_2` (`order_id`,`uid`) USING BTREE, UNIQUE KEY `unique` (`unique`) USING BTREE, KEY `pid` (`pid`) USING BTREE, KEY `uid` (`uid`) USING BTREE, KEY `add_time` (`add_time`) USING BTREE, KEY `pay_price` (`pay_price`) USING BTREE, KEY `paid` (`paid`) USING BTREE, KEY `pay_time` (`pay_time`) USING BTREE, KEY `pay_type` (`pay_type`) USING BTREE, KEY `status` (`status`) USING BTREE, KEY `is_del` (`is_del`) USING BTREE, KEY `coupon_id` (`coupon_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='訂單表'; -- ---------------------------- -- Table structure for eb_store_order_cart_info -- ---------------------------- DROP TABLE IF EXISTS `eb_store_order_cart_info`; CREATE TABLE `eb_store_order_cart_info` ( `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'ID', `oid` int(11) unsigned NOT NULL COMMENT '訂單id', `cart_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '購物車id', `staff_id` int(10) NOT NULL DEFAULT '0' COMMENT '店員ID', `delivery_id` int(10) NOT NULL DEFAULT '0' COMMENT '配送員ID', `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品ID', `old_cart_id` varchar(50) NOT NULL DEFAULT '' COMMENT '拆單前cart_id', `cart_num` int(10) NOT NULL DEFAULT '0' COMMENT '數量 ', `surplus_num` int(10) NOT NULL DEFAULT '0' COMMENT '拆分后剩余數量 ', `split_status` int(1) NOT NULL DEFAULT '0' COMMENT '0:未拆分1:還可以拆分2:拆分完成', `is_writeoff` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否核銷', `writeoff_time` int(10) NOT NULL DEFAULT '0' COMMENT '核銷時間', `cart_info` text NOT NULL COMMENT '購買東西的詳細信息', `unique` char(32) NOT NULL DEFAULT '' COMMENT '唯一id', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `oid` (`oid`,`unique`) USING BTREE, KEY `cart_id` (`cart_id`) USING BTREE, KEY `old_cart_id` (`old_cart_id`) USING BTREE, KEY `split_status` (`split_status`) USING BTREE, KEY `product_id` (`product_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='訂單購物詳情表'; -- ---------------------------- -- Table structure for eb_store_order_economize -- ---------------------------- DROP TABLE IF EXISTS `eb_store_order_economize`; CREATE TABLE `eb_store_order_economize` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '訂單ID', `order_id` varchar(32) NOT NULL DEFAULT '' COMMENT '訂單號', `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用戶id', `order_type` tinyint(1) unsigned zerofill NOT NULL DEFAULT '1' COMMENT '配送方式 1=商品訂單 ,2=線下訂單', `pay_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '實際支付金額', `postage_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '郵費優惠金額', `member_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '會員優惠金額', `offline_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '線下優惠金額', `coupon_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '優惠券優惠金額', `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '創建時間', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '狀態', PRIMARY KEY (`id`,`order_id`,`uid`) USING BTREE, UNIQUE KEY `order_id_2` (`order_id`,`uid`) USING BTREE, KEY `uid` (`uid`) USING BTREE, KEY `add_time` (`add_time`) USING BTREE, KEY `pay_price` (`pay_price`) USING BTREE, KEY `status` (`status`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶資金節省表'; -- ---------------------------- -- Table structure for eb_store_order_invoice -- ---------------------------- DROP TABLE IF EXISTS `eb_store_order_invoice`; CREATE TABLE `eb_store_order_invoice` ( `id` int(10) NOT NULL AUTO_INCREMENT, `uid` int(10) NOT NULL DEFAULT '0' COMMENT '用戶uid', `category` varchar(10) NOT NULL DEFAULT 'order' COMMENT '開票分類 order:訂單', `order_id` int(10) NOT NULL DEFAULT '0' COMMENT '訂單id', `invoice_id` int(10) NOT NULL DEFAULT '0' COMMENT '發票id', `header_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '抬頭類型', `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '發票類型', `name` varchar(100) NOT NULL DEFAULT '' COMMENT '名稱(發票抬頭)', `duty_number` varchar(50) NOT NULL DEFAULT '' COMMENT '稅號', `drawer_phone` varchar(30) NOT NULL DEFAULT '' COMMENT '開票人手機號', `email` varchar(100) NOT NULL DEFAULT '' COMMENT '開票人郵箱', `tell` varchar(30) NOT NULL DEFAULT '' COMMENT '注冊電話', `address` varchar(255) NOT NULL DEFAULT '' COMMENT '注冊地址', `bank` varchar(50) NOT NULL DEFAULT '' COMMENT '開戶行', `card_number` varchar(50) NOT NULL DEFAULT '' COMMENT '銀行卡號', `is_pay` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否支付', `is_refund` tinyint(1) NOT NULL DEFAULT '0' COMMENT '訂單是否退款', `is_invoice` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否開票', `invoice_number` varchar(50) NOT NULL DEFAULT '' COMMENT '開票票號', `remark` varchar(255) NOT NULL DEFAULT '' COMMENT '備注', `invoice_time` int(10) NOT NULL DEFAULT '0' COMMENT '開票時間', `add_time` int(10) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶開票表'; -- ---------------------------- -- Table structure for eb_store_order_status -- ---------------------------- DROP TABLE IF EXISTS `eb_store_order_status`; CREATE TABLE `eb_store_order_status` ( `oid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '訂單id', `change_type` varchar(32) NOT NULL DEFAULT '' COMMENT '操作類型', `change_message` varchar(256) NOT NULL DEFAULT '' COMMENT '操作備注', `change_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '操作時間', KEY `oid` (`oid`) USING BTREE, KEY `change_type` (`change_type`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='訂單操作記錄表'; -- ---------------------------- -- Table structure for eb_store_pink -- ---------------------------- DROP TABLE IF EXISTS `eb_store_pink`; CREATE TABLE `eb_store_pink` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用戶id', `nickname` varchar(64) NOT NULL DEFAULT '' COMMENT '用戶昵稱', `avatar` varchar(256) NOT NULL DEFAULT '' COMMENT '用戶頭像', `order_id` varchar(32) NOT NULL DEFAULT '' COMMENT '訂單id 生成', `order_id_key` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '訂單id 數據庫', `total_num` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '購買商品個數', `total_price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '購買總金額', `cid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '拼團商品id', `pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品id', `people` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '拼圖總人數', `price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '拼團商品單價', `add_time` varchar(24) NOT NULL DEFAULT '0' COMMENT '開始時間', `stop_time` varchar(24) NOT NULL DEFAULT '0', `k_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '團長id 0為團長', `is_tpl` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否發送模板消息0未發送1已發送', `is_refund` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否退款 0未退款 1已退款', `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '狀態1進行中2已完成3未完成', `is_virtual` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否虛擬拼團', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='拼團表'; -- ---------------------------- -- Table structure for eb_store_product -- ---------------------------- DROP TABLE IF EXISTS `eb_store_product`; CREATE TABLE `eb_store_product` ( `id` mediumint(11) NOT NULL AUTO_INCREMENT COMMENT '商品id', `mer_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商戶Id(0為總后臺管理員創建,不為0的時候是商戶后臺創建)', `image` varchar(256) NOT NULL DEFAULT '' COMMENT '商品圖片', `recommend_image` varchar(256) NOT NULL DEFAULT '' COMMENT '推薦圖', `slider_image` varchar(2000) NOT NULL DEFAULT '' COMMENT '輪播圖', `store_name` varchar(128) NOT NULL DEFAULT '' COMMENT '商品名稱', `store_info` varchar(256) NOT NULL DEFAULT '' COMMENT '商品簡介', `keyword` varchar(256) NOT NULL DEFAULT '' COMMENT '關鍵字', `bar_code` varchar(15) NOT NULL DEFAULT '' COMMENT '商品條碼(一維碼)', `cate_id` varchar(64) NOT NULL DEFAULT '' COMMENT '分類id', `price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '商品價格', `vip_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '會員價格', `ot_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '市場價', `postage` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '郵費', `delivery_type` varchar(255) NOT NULL DEFAULT '' COMMENT '商品配送方式(1、快遞,2、到店自提,3、門店配送)', `unit_name` varchar(32) NOT NULL DEFAULT '' COMMENT '單位名', `sort` smallint(11) NOT NULL DEFAULT '0' COMMENT '排序', `sales` mediumint(11) unsigned NOT NULL DEFAULT '0' COMMENT '銷量', `stock` mediumint(11) unsigned NOT NULL DEFAULT '0' COMMENT '庫存', `is_show` tinyint(1) NOT NULL DEFAULT '1' COMMENT '狀態(0:未上架,1:上架)', `is_hot` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否熱賣', `is_benefit` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否優惠', `is_best` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否精品', `is_new` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否新品', `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加時間', `is_postage` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否包郵', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否刪除', `mer_use` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '商戶是否代理 0不可代理1可代理', `give_integral` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '獲得積分', `cost` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '成本價', `is_seckill` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '秒殺狀態 0 未開啟 1已開啟', `is_bargain` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '砍價狀態 0未開啟 1開啟', `is_good` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否優品推薦', `is_sub` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否單獨分傭', `is_vip` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否開啟會員價格', `ficti` mediumint(11) DEFAULT '100' COMMENT '虛擬銷量', `browse` int(11) NOT NULL DEFAULT '0' COMMENT '瀏覽量', `code_path` varchar(64) NOT NULL DEFAULT '' COMMENT '商品二維碼地址(用戶小程序海報)', `soure_link` varchar(255) NOT NULL DEFAULT '' COMMENT '淘寶京東1688類型', `video_link` varchar(500) NOT NULL DEFAULT '' COMMENT '主圖視頻鏈接', `temp_id` int(11) NOT NULL DEFAULT '1' COMMENT '運費模板ID', `spec_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '規格 0單 1多', `activity` varchar(255) NOT NULL DEFAULT '' COMMENT '活動顯示排序1=秒殺,2=砍價,3=拼團', `spu` char(13) NOT NULL DEFAULT '' COMMENT '商品SPU', `label_id` varchar(64) NOT NULL DEFAULT '' COMMENT '標簽ID', `command_word` varchar(255) NOT NULL DEFAULT '' COMMENT '復制口令', PRIMARY KEY (`id`) USING BTREE, KEY `cate_id` (`cate_id`) USING BTREE, KEY `is_hot` (`is_hot`) USING BTREE, KEY `is_benefit` (`is_benefit`) USING BTREE, KEY `is_best` (`is_best`) USING BTREE, KEY `is_new` (`is_new`) USING BTREE, KEY `toggle_on_sale, is_del` (`is_del`) USING BTREE, KEY `price` (`price`) USING BTREE, KEY `is_show` (`is_show`) USING BTREE, KEY `sort` (`sort`) USING BTREE, KEY `sales` (`sales`) USING BTREE, KEY `add_time` (`add_time`) USING BTREE, KEY `is_postage` (`is_postage`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='商品表'; -- ---------------------------- -- Table structure for eb_store_product_attr -- ---------------------------- DROP TABLE IF EXISTS `eb_store_product_attr`; CREATE TABLE `eb_store_product_attr` ( `id` int(10) NOT NULL AUTO_INCREMENT, `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品ID', `attr_name` varchar(32) NOT NULL DEFAULT '' COMMENT '屬性名', `attr_values` longtext NOT NULL COMMENT '屬性值', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '活動類型 0=商品,1=秒殺,2=砍價,3=拼團', PRIMARY KEY (`id`), KEY `store_id` (`product_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8 COMMENT='商品屬性表'; -- ---------------------------- -- Table structure for eb_store_product_attr_result -- ---------------------------- DROP TABLE IF EXISTS `eb_store_product_attr_result`; CREATE TABLE `eb_store_product_attr_result` ( `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品ID', `result` longtext NOT NULL COMMENT '商品屬性參數', `change_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '上次修改時間', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '活動類型 0=商品,1=秒殺,2=砍價,3=拼團', KEY `product_id` (`product_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品屬性詳情表'; -- ---------------------------- -- Table structure for eb_store_product_attr_value -- ---------------------------- DROP TABLE IF EXISTS `eb_store_product_attr_value`; CREATE TABLE `eb_store_product_attr_value` ( `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品ID', `suk` varchar(128) NOT NULL DEFAULT '' COMMENT '商品屬性索引值 (attr_value|attr_value[|....])', `stock` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '屬性對應的庫存', `sum_stock` int(11) NOT NULL DEFAULT '0' COMMENT '平臺庫存+門店庫存總和', `sales` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '銷量', `price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '屬性金額', `image` varchar(128) NOT NULL DEFAULT '' COMMENT '圖片', `unique` char(8) NOT NULL DEFAULT '' COMMENT '唯一值', `cost` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '成本價', `bar_code` varchar(50) NOT NULL DEFAULT '' COMMENT '商品條碼', `ot_price` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '原價', `vip_price` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '會員專享價', `weight` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '重量', `volume` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '體積', `brokerage` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '一級返傭', `brokerage_two` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '二級返傭', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '活動類型 0=商品,1=秒殺,2=砍價,3=拼團', `quota` int(11) NOT NULL DEFAULT '0' COMMENT '活動限購數量', `quota_show` int(11) NOT NULL DEFAULT '0' COMMENT '活動限購數量顯示', KEY `unique` (`unique`,`suk`) USING BTREE, KEY `store_id` (`product_id`,`suk`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品屬性值表'; -- ---------------------------- -- Table structure for eb_store_product_cate -- ---------------------------- DROP TABLE IF EXISTS `eb_store_product_cate`; CREATE TABLE `eb_store_product_cate` ( `id` int(11) NOT NULL AUTO_INCREMENT, `product_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id', `cate_id` int(11) NOT NULL DEFAULT '0' COMMENT '分類id', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加時間', `cate_pid` int(11) NOT NULL DEFAULT '0' COMMENT '一級分類id', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '商品狀態', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=115 DEFAULT CHARSET=utf8 COMMENT='商品分類輔助表'; -- ---------------------------- -- Table structure for eb_store_product_coupon -- ---------------------------- DROP TABLE IF EXISTS `eb_store_product_coupon`; CREATE TABLE `eb_store_product_coupon` ( `id` int(10) NOT NULL AUTO_INCREMENT, `product_id` int(10) NOT NULL DEFAULT '0' COMMENT '商品id', `issue_coupon_id` int(10) NOT NULL DEFAULT '0' COMMENT '優惠劵id', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', `title` varchar(255) NOT NULL DEFAULT '' COMMENT '優惠券名稱', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Table structure for eb_store_product_description -- ---------------------------- DROP TABLE IF EXISTS `eb_store_product_description`; CREATE TABLE `eb_store_product_description` ( `product_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID', `description` text NOT NULL COMMENT '商品詳情', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '商品類型', KEY `product_id` (`product_id`,`type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品詳情表'; -- ---------------------------- -- Table structure for eb_store_product_log -- ---------------------------- DROP TABLE IF EXISTS `eb_store_product_log`; CREATE TABLE `eb_store_product_log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` enum('visit','cart','order','pay','collect','refund') NOT NULL COMMENT '類型', `product_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID', `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用戶ID', `visit_num` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否瀏覽', `cart_num` int(11) NOT NULL DEFAULT '0' COMMENT '加入購物車數量', `order_num` int(11) NOT NULL DEFAULT '0' COMMENT '下單數量', `pay_num` int(11) NOT NULL DEFAULT '0' COMMENT '支付數量', `pay_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '支付金額', `cost_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '商品成本價', `pay_uid` int(11) NOT NULL DEFAULT '0' COMMENT '支付用戶ID', `refund_num` int(11) NOT NULL DEFAULT '0' COMMENT '退款數量', `refund_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '退款金額', `collect_num` tinyint(1) NOT NULL DEFAULT '0' COMMENT '收藏', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品統計'; -- ---------------------------- -- Table structure for eb_store_product_relation -- ---------------------------- DROP TABLE IF EXISTS `eb_store_product_relation`; CREATE TABLE `eb_store_product_relation` ( `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用戶ID', `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品ID', `type` varchar(32) NOT NULL DEFAULT '' COMMENT '類型(收藏(collect)、點贊(like))', `category` varchar(32) NOT NULL DEFAULT '' COMMENT '某種類型的商品(普通商品、秒殺商品)', `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加時間', UNIQUE KEY `uid` (`uid`,`product_id`,`type`,`category`) USING BTREE, KEY `type` (`type`) USING BTREE, KEY `category` (`category`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品點贊和收藏表'; -- ---------------------------- -- Table structure for eb_store_product_reply -- ---------------------------- DROP TABLE IF EXISTS `eb_store_product_reply`; CREATE TABLE `eb_store_product_reply` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '評論ID', `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用戶ID', `oid` int(11) NOT NULL DEFAULT '0' COMMENT '訂單ID', `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '類型:1平臺2:門店', `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '門店id', `unique` char(32) NOT NULL DEFAULT '' COMMENT '唯一id', `product_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id', `reply_type` varchar(32) NOT NULL DEFAULT 'product' COMMENT '某種商品類型(普通商品、秒殺商品)', `product_score` tinyint(1) NOT NULL DEFAULT '0' COMMENT '商品分數', `service_score` tinyint(1) NOT NULL DEFAULT '0' COMMENT '服務分數', `comment` varchar(512) NOT NULL DEFAULT '' COMMENT '評論內容', `pics` text NOT NULL COMMENT '評論圖片', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '評論時間', `merchant_reply_content` varchar(300) NOT NULL DEFAULT '' COMMENT '管理員回復內容', `merchant_reply_time` int(11) NOT NULL DEFAULT '0' COMMENT '管理員回復時間', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0未刪除1已刪除', `is_reply` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0未回復1已回復', `nickname` varchar(64) NOT NULL DEFAULT '' COMMENT '用戶名稱', `avatar` varchar(255) NOT NULL DEFAULT '' COMMENT '用戶頭像', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `order_id_2` (`oid`,`unique`) USING BTREE, KEY `add_time` (`add_time`) USING BTREE, KEY `parent_id` (`reply_type`) USING BTREE, KEY `is_del` (`is_del`) USING BTREE, KEY `product_score` (`product_score`) USING BTREE, KEY `service_score` (`service_score`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='評論表'; -- ---------------------------- -- Table structure for eb_store_product_rule -- ---------------------------- DROP TABLE IF EXISTS `eb_store_product_rule`; CREATE TABLE `eb_store_product_rule` ( `id` int(10) NOT NULL AUTO_INCREMENT, `rule_name` varchar(32) NOT NULL DEFAULT '' COMMENT '規格名稱', `rule_value` text NOT NULL COMMENT '規格值', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='商品規則值(規格)表'; -- ---------------------------- -- Table structure for eb_store_seckill -- ---------------------------- DROP TABLE IF EXISTS `eb_store_seckill`; CREATE TABLE `eb_store_seckill` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '商品秒殺商品表id', `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品id', `image` varchar(255) NOT NULL DEFAULT '' COMMENT '推薦圖', `images` varchar(2000) NOT NULL DEFAULT '' COMMENT '輪播圖', `title` varchar(255) NOT NULL DEFAULT '' COMMENT '活動標題', `info` varchar(255) NOT NULL DEFAULT '' COMMENT '簡介', `price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '價格', `cost` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '成本', `ot_price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '原價', `give_integral` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '返多少積分', `sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序', `stock` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '庫存', `sales` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '銷量', `unit_name` varchar(16) NOT NULL DEFAULT '' COMMENT '單位名', `postage` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '郵費', `description` text COMMENT '內容', `start_time` varchar(128) NOT NULL DEFAULT '' COMMENT '開始時間', `stop_time` varchar(128) NOT NULL DEFAULT '' COMMENT '結束時間', `add_time` varchar(128) NOT NULL DEFAULT '' COMMENT '添加時間', `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '商品狀態', `is_postage` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否包郵', `is_hot` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '熱門推薦', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '刪除 0未刪除1已刪除', `num` int(11) unsigned NOT NULL DEFAULT '1' COMMENT '最多秒殺幾個', `is_show` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '顯示', `time_id` int(11) NOT NULL DEFAULT '0' COMMENT '時間段ID', `temp_id` int(11) NOT NULL DEFAULT '0' COMMENT '運費模板ID', `weight` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '商品重量', `volume` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '商品體積', `quota` int(10) NOT NULL DEFAULT '0' COMMENT '限購總數', `quota_show` int(10) NOT NULL DEFAULT '0' COMMENT '限購總數顯示', `once_num` int(11) NOT NULL DEFAULT '0' COMMENT '單次購買個數', PRIMARY KEY (`id`) USING BTREE, KEY `product_id` (`product_id`) USING BTREE, KEY `start_time` (`start_time`,`stop_time`) USING BTREE, KEY `is_del` (`is_del`) USING BTREE, KEY `is_hot` (`is_hot`) USING BTREE, KEY `is_show` (`status`) USING BTREE, KEY `add_time` (`add_time`) USING BTREE, KEY `sort` (`sort`) USING BTREE, KEY `is_postage` (`is_postage`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品秒殺商品表'; -- ---------------------------- -- Table structure for eb_store_seckill_time -- ---------------------------- DROP TABLE IF EXISTS `eb_store_seckill_time`; CREATE TABLE `eb_store_seckill_time` ( `seckill_id` int(10) NOT NULL DEFAULT '0' COMMENT '秒殺活動ID', `time_id` int(10) NOT NULL DEFAULT '0' COMMENT '秒殺時間段ID' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='秒殺時段表'; -- ---------------------------- -- Table structure for eb_store_service -- ---------------------------- DROP TABLE IF EXISTS `eb_store_service`; CREATE TABLE `eb_store_service` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '客服id', `mer_id` int(11) NOT NULL DEFAULT '0' COMMENT '商戶id', `uid` int(11) NOT NULL DEFAULT '0' COMMENT '客服uid', `online` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否在線', `account` varchar(255) NOT NULL DEFAULT '' COMMENT '賬號', `password` varchar(255) NOT NULL DEFAULT '' COMMENT '密碼', `avatar` varchar(250) NOT NULL DEFAULT '' COMMENT '客服頭像', `nickname` varchar(50) NOT NULL DEFAULT '' COMMENT '代理名稱', `phone` varchar(20) NOT NULL DEFAULT '' COMMENT '客服電話', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加時間', `account_status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '賬號狀態,0隱藏1顯示', `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '客服狀態,0隱藏1顯示', `notify` int(2) NOT NULL DEFAULT '0' COMMENT '訂單通知1開啟0關閉', `customer` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否展示統計管理', `uniqid` varchar(35) NOT NULL DEFAULT '', PRIMARY KEY (`id`) USING BTREE, KEY `uid` (`uid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='客服表'; -- ---------------------------- -- Table structure for eb_store_service_feedback -- ---------------------------- DROP TABLE IF EXISTS `eb_store_service_feedback`; CREATE TABLE `eb_store_service_feedback` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uid` int(10) NOT NULL DEFAULT '0' COMMENT '用戶UID', `rela_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '姓名', `phone` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '電話', `content` varchar(500) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '反饋內容', `make` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '備注', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '狀態0=未查看,1=已查看', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`), KEY `uid` (`uid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='客服反饋表'; -- ---------------------------- -- Table structure for eb_store_service_log -- ---------------------------- DROP TABLE IF EXISTS `eb_store_service_log`; CREATE TABLE `eb_store_service_log` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '客服用戶對話記錄表ID', `mer_id` int(11) NOT NULL DEFAULT '0' COMMENT '商戶id', `msn` text NOT NULL COMMENT '消息內容', `uid` int(11) NOT NULL DEFAULT '1' COMMENT '發送人uid', `to_uid` int(11) NOT NULL DEFAULT '1' COMMENT '接收人uid', `is_tourist` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1=游客模式,0=非游客', `time_node` tinyint(1) NOT NULL DEFAULT '0' COMMENT '時間節點', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '發送時間', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否已讀(0:否;1:是;)', `remind` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否提醒過', `msn_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '消息類型 1=文字 2=表情 3=圖片 4=語音', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='客服用戶對話記錄表'; -- ---------------------------- -- Table structure for eb_store_service_record -- ---------------------------- DROP TABLE IF EXISTS `eb_store_service_record`; CREATE TABLE `eb_store_service_record` ( `id` int(10) NOT NULL AUTO_INCREMENT, `user_id` int(10) NOT NULL DEFAULT '0' COMMENT '發送人的uid', `to_uid` int(10) NOT NULL DEFAULT '0' COMMENT '送達人的uid', `nickname` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '用戶昵稱', `avatar` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '用戶頭像', `is_tourist` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否是游客', `online` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否在線', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 = pc,1=微信,2=小程序,3=H5', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', `update_time` int(10) NOT NULL DEFAULT '0' COMMENT '更新時間', `mssage_num` int(10) NOT NULL DEFAULT '0' COMMENT '消息條數', `message` text COLLATE utf8_unicode_ci NOT NULL COMMENT '內容', `message_type` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `to_uid` (`to_uid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='客服聊天用戶記錄表'; -- ---------------------------- -- Table structure for eb_store_service_speechcraft -- ---------------------------- DROP TABLE IF EXISTS `eb_store_service_speechcraft`; CREATE TABLE `eb_store_service_speechcraft` ( `id` int(11) NOT NULL AUTO_INCREMENT, `kefu_id` int(10) NOT NULL DEFAULT '0' COMMENT '0為全局話術', `cate_id` int(10) NOT NULL DEFAULT '0' COMMENT '0為不分類全局話術', `title` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '話術標題', `message` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '話術內容', `sort` int(10) NOT NULL DEFAULT '0' COMMENT '排序', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`), KEY `kefu_id` (`kefu_id`), KEY `cate_id` (`cate_id`) ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='客服話術'; -- ---------------------------- -- Table structure for eb_store_user -- ---------------------------- DROP TABLE IF EXISTS `eb_store_user`; CREATE TABLE `eb_store_user` ( `id` int(10) NOT NULL, `store_id` int(10) NOT NULL DEFAULT '0' COMMENT '門店id', `uid` int(10) NOT NULL DEFAULT '0' COMMENT '平臺關聯用戶uid', `label_id` text NOT NULL COMMENT '用戶標簽', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '狀態', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', KEY `store_id` (`store_id`) USING BTREE, KEY `uid` (`uid`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Table structure for eb_store_visit -- ---------------------------- DROP TABLE IF EXISTS `eb_store_visit`; CREATE TABLE `eb_store_visit` ( `id` int(10) NOT NULL AUTO_INCREMENT, `product_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID', `product_type` varchar(32) NOT NULL DEFAULT '' COMMENT '商品類型', `cate_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品分類ID', `type` char(50) NOT NULL DEFAULT '' COMMENT '商品類型', `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用戶ID', `count` int(11) NOT NULL DEFAULT '0' COMMENT '訪問次數', `content` varchar(255) NOT NULL DEFAULT '' COMMENT '備注描述', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`) USING BTREE, KEY `product_id` (`product_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品瀏覽分析表'; -- ---------------------------- -- Table structure for eb_system_admin -- ---------------------------- DROP TABLE IF EXISTS `eb_system_admin`; CREATE TABLE `eb_system_admin` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT '后臺管理員表ID', `account` varchar(32) NOT NULL DEFAULT '' COMMENT '后臺管理員賬號', `head_pic` varchar(255) NOT NULL DEFAULT '', `pwd` varchar(100) NOT NULL DEFAULT '' COMMENT '后臺管理員密碼', `real_name` varchar(16) NOT NULL DEFAULT '' COMMENT '后臺管理員姓名', `roles` varchar(128) NOT NULL DEFAULT '' COMMENT '后臺管理員權限(menus_id)', `last_ip` varchar(16) NOT NULL DEFAULT '' COMMENT '后臺管理員最后一次登錄ip', `last_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '后臺管理員最后一次登錄時間', `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '后臺管理員添加時間', `login_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '登錄次數', `level` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '后臺管理員級別', `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '后臺管理員狀態 1有效0無效', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`) USING BTREE, KEY `account` (`account`) USING BTREE, KEY `status` (`status`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='后臺管理員表'; -- ---------------------------- -- Table structure for eb_system_attachment -- ---------------------------- DROP TABLE IF EXISTS `eb_system_attachment`; CREATE TABLE `eb_system_attachment` ( `att_id` int(10) NOT NULL AUTO_INCREMENT, `type` tinyint(1) DEFAULT '1' COMMENT '類型:1平臺2:門店', `store_id` int(10) NOT NULL DEFAULT '0' COMMENT '門店id', `name` varchar(100) NOT NULL DEFAULT '' COMMENT '附件名稱', `att_dir` varchar(200) NOT NULL DEFAULT '' COMMENT '附件路徑', `satt_dir` varchar(200) NOT NULL DEFAULT '' COMMENT '壓縮圖片路徑', `att_size` char(30) NOT NULL DEFAULT '' COMMENT '附件大小', `att_type` char(30) NOT NULL DEFAULT '' COMMENT '附件類型', `pid` int(10) NOT NULL DEFAULT '0' COMMENT '分類ID0編輯器,1商品圖片,2拼團圖片,3砍價圖片,4秒殺圖片,5文章圖片,6組合數據圖', `time` int(11) NOT NULL DEFAULT '0' COMMENT '上傳時間', `image_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '圖片上傳類型 1本地 2七牛云 3OSS 4COS ', `module_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '圖片上傳模塊類型 1 后臺上傳 2 用戶生成', `real_name` varchar(255) NOT NULL DEFAULT '' COMMENT '原始文件名', PRIMARY KEY (`att_id`) USING BTREE, KEY `time` (`time`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8 COMMENT='附件管理表'; -- ---------------------------- -- Table structure for eb_system_attachment_category -- ---------------------------- DROP TABLE IF EXISTS `eb_system_attachment_category`; CREATE TABLE `eb_system_attachment_category` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` tinyint(1) DEFAULT '1' COMMENT '類型:1平臺2:門店', `store_id` int(10) NOT NULL DEFAULT '0' COMMENT '門店id', `pid` int(11) NOT NULL DEFAULT '0' COMMENT '父級ID', `name` varchar(50) NOT NULL DEFAULT '' COMMENT '分類名稱', `enname` varchar(50) NOT NULL DEFAULT '' COMMENT '分類目錄', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `id` (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='附件分類表'; -- ---------------------------- -- Table structure for eb_system_city -- ---------------------------- DROP TABLE IF EXISTS `eb_system_city`; CREATE TABLE `eb_system_city` ( `id` int(11) NOT NULL AUTO_INCREMENT, `city_id` int(11) NOT NULL DEFAULT '0' COMMENT '城市id', `level` int(11) NOT NULL DEFAULT '0' COMMENT '省市級別', `parent_id` int(11) NOT NULL DEFAULT '0' COMMENT '父級id', `area_code` varchar(30) NOT NULL DEFAULT '' COMMENT '區號', `name` varchar(100) NOT NULL DEFAULT '' COMMENT '名稱', `merger_name` varchar(255) NOT NULL DEFAULT '' COMMENT '合并名稱', `lng` varchar(50) NOT NULL DEFAULT '' COMMENT '經度', `lat` varchar(50) NOT NULL DEFAULT '' COMMENT '緯度', `is_show` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否展示', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=3971 DEFAULT CHARSET=utf8 COMMENT='城市表'; -- ---------------------------- -- Table structure for eb_system_config -- ---------------------------- DROP TABLE IF EXISTS `eb_system_config`; CREATE TABLE `eb_system_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '配置id', `is_store` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=總后臺,1=門店', `menu_name` varchar(255) NOT NULL DEFAULT '' COMMENT '字段名稱', `type` varchar(255) NOT NULL DEFAULT '' COMMENT '類型(文本框,單選按鈕...)', `input_type` varchar(20) NOT NULL DEFAULT 'input' COMMENT '表單類型', `config_tab_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '配置分類id', `parameter` varchar(255) NOT NULL DEFAULT '' COMMENT '規則 單選框和多選框', `upload_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '上傳文件格式1單圖2多圖3文件', `required` varchar(255) NOT NULL DEFAULT '' COMMENT '規則', `width` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '多行文本框的寬度', `high` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '多行文框的高度', `value` varchar(5000) NOT NULL DEFAULT '' COMMENT '默認值', `info` varchar(255) NOT NULL DEFAULT '' COMMENT '配置名稱', `desc` varchar(255) NOT NULL DEFAULT '' COMMENT '配置簡介', `sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序', `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否隱藏', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=397 DEFAULT CHARSET=utf8 COMMENT='配置表'; -- ---------------------------- -- Table structure for eb_system_config_tab -- ---------------------------- DROP TABLE IF EXISTS `eb_system_config_tab`; CREATE TABLE `eb_system_config_tab` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '配置分類id', `is_store` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=總后臺,1=門店', `pid` int(11) NOT NULL DEFAULT '0' COMMENT '上級分類id', `title` varchar(255) NOT NULL DEFAULT '' COMMENT '配置分類名稱', `eng_title` varchar(255) NOT NULL DEFAULT '' COMMENT '配置分類英文名稱', `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '配置分類狀態', `info` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '配置分類是否顯示', `icon` varchar(30) DEFAULT '' COMMENT '圖標', `type` int(2) NOT NULL DEFAULT '0' COMMENT '配置類型', `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=84 DEFAULT CHARSET=utf8 COMMENT='配置分類表'; -- ---------------------------- -- Table structure for eb_system_file -- ---------------------------- DROP TABLE IF EXISTS `eb_system_file`; CREATE TABLE `eb_system_file` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文件對比ID', `cthash` char(32) NOT NULL DEFAULT '' COMMENT '文件內容', `filename` varchar(255) NOT NULL DEFAULT '' COMMENT '文價名稱', `atime` char(12) NOT NULL DEFAULT '' COMMENT '上次訪問時間', `mtime` char(12) NOT NULL DEFAULT '' COMMENT '上次修改時間', `ctime` char(12) NOT NULL DEFAULT '' COMMENT '上次改變時間', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文件對比表'; -- ---------------------------- -- Table structure for eb_system_group -- ---------------------------- DROP TABLE IF EXISTS `eb_system_group`; CREATE TABLE `eb_system_group` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '組合數據ID', `cate_id` int(11) NOT NULL DEFAULT '0' COMMENT '分類id', `name` varchar(50) NOT NULL DEFAULT '' COMMENT '數據組名稱', `info` varchar(256) NOT NULL DEFAULT '' COMMENT '數據提示', `config_name` varchar(50) NOT NULL DEFAULT '' COMMENT '數據字段', `fields` text COMMENT '數據組字段以及類型(json數據)', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `config_name` (`config_name`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=70 DEFAULT CHARSET=utf8 COMMENT='組合數據表'; -- ---------------------------- -- Table structure for eb_system_group_data -- ---------------------------- DROP TABLE IF EXISTS `eb_system_group_data`; CREATE TABLE `eb_system_group_data` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '組合數據詳情ID', `gid` int(11) NOT NULL DEFAULT '0' COMMENT '對應的數據組id', `value` text NOT NULL COMMENT '數據組對應的數據值(json數據)', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加數據時間', `sort` int(11) NOT NULL DEFAULT '0' COMMENT '數據排序', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '狀態(1:開啟;2:關閉;)', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=383 DEFAULT CHARSET=utf8 COMMENT='組合數據詳情表'; -- ---------------------------- -- Table structure for eb_system_log -- ---------------------------- DROP TABLE IF EXISTS `eb_system_log`; CREATE TABLE `eb_system_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '管理員操作記錄ID', `store_id` int(10) NOT NULL DEFAULT '0' COMMENT '門店id', `admin_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '管理員id', `admin_name` varchar(64) NOT NULL DEFAULT '' COMMENT '管理員姓名', `path` varchar(128) NOT NULL DEFAULT '' COMMENT '鏈接', `page` varchar(64) NOT NULL DEFAULT '' COMMENT '行為', `method` varchar(12) NOT NULL DEFAULT '' COMMENT '訪問類型', `ip` varchar(16) NOT NULL DEFAULT '' COMMENT '登錄IP', `type` varchar(32) NOT NULL DEFAULT '' COMMENT '類型', `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '操作時間', `merchant_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商戶id', PRIMARY KEY (`id`) USING BTREE, KEY `admin_id` (`admin_id`) USING BTREE, KEY `add_time` (`add_time`) USING BTREE, KEY `type` (`type`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=1420 DEFAULT CHARSET=utf8 COMMENT='管理員操作記錄表'; -- ---------------------------- -- Table structure for eb_system_menus -- ---------------------------- DROP TABLE IF EXISTS `eb_system_menus`; CREATE TABLE `eb_system_menus` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT '菜單ID', `pid` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '父級id', `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '菜單類型1:平臺2:門店', `icon` varchar(16) NOT NULL DEFAULT '' COMMENT '圖標', `menu_name` varchar(32) NOT NULL DEFAULT '' COMMENT '按鈕名', `module` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '模塊名', `controller` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '控制器', `action` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '方法名', `api_url` varchar(100) NOT NULL DEFAULT '' COMMENT 'api接口地址', `methods` varchar(10) NOT NULL DEFAULT '' COMMENT '提交方式POST GET PUT DELETE', `params` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '[]' COMMENT '參數', `sort` tinyint(3) NOT NULL DEFAULT '1' COMMENT '排序', `is_show` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否為隱藏菜單0=隱藏菜單,1=顯示菜單', `is_show_path` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否為隱藏菜單供前臺使用', `access` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '子管理員是否可用', `menu_path` varchar(128) NOT NULL DEFAULT '' COMMENT '路由名稱 前端使用', `path` varchar(255) NOT NULL DEFAULT '' COMMENT '路徑', `auth_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否為菜單 1菜單 2功能', `header` varchar(50) NOT NULL DEFAULT '' COMMENT '頂部菜單標示', `is_header` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否頂部菜單1是0否', `unique_auth` varchar(150) NOT NULL DEFAULT '' COMMENT '前臺唯一標識', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除', PRIMARY KEY (`id`) USING BTREE, KEY `pid` (`pid`) USING BTREE, KEY `is_show` (`is_show`) USING BTREE, KEY `access` (`access`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=1296 DEFAULT CHARSET=utf8 COMMENT='菜單表'; -- ---------------------------- -- Table structure for eb_system_notice -- ---------------------------- DROP TABLE IF EXISTS `eb_system_notice`; CREATE TABLE `eb_system_notice` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '通知模板id', `title` varchar(64) NOT NULL DEFAULT '' COMMENT '通知標題', `type` varchar(64) NOT NULL DEFAULT '' COMMENT '通知類型', `icon` varchar(16) NOT NULL DEFAULT '' COMMENT '圖標', `url` varchar(64) NOT NULL DEFAULT '' COMMENT '鏈接', `table_title` varchar(256) NOT NULL DEFAULT '' COMMENT '通知數據', `template` varchar(64) NOT NULL DEFAULT '' COMMENT '通知模板', `push_admin` varchar(128) NOT NULL DEFAULT '' COMMENT '通知管理員id', `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '狀態', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `type` (`type`) USING BTREE, KEY `status` (`status`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='通知模板表'; -- ---------------------------- -- Table structure for eb_system_notice_admin -- ---------------------------- DROP TABLE IF EXISTS `eb_system_notice_admin`; CREATE TABLE `eb_system_notice_admin` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '通知記錄ID', `notice_type` varchar(64) NOT NULL DEFAULT '' COMMENT '通知類型', `admin_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '通知的管理員', `link_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '關聯ID', `table_data` text NOT NULL COMMENT '通知的數據', `is_click` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '點擊次數', `is_visit` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '訪問次數', `visit_time` int(11) NOT NULL DEFAULT '0' COMMENT '訪問時間', `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '通知時間', PRIMARY KEY (`id`) USING BTREE, KEY `admin_id` (`admin_id`,`notice_type`) USING BTREE, KEY `add_time` (`add_time`) USING BTREE, KEY `is_visit` (`is_visit`) USING BTREE, KEY `is_click` (`is_click`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='通知記錄表'; -- ---------------------------- -- Table structure for eb_system_notification -- ---------------------------- DROP TABLE IF EXISTS `eb_system_notification`; CREATE TABLE `eb_system_notification` ( `id` int(10) NOT NULL AUTO_INCREMENT, `mark` varchar(50) NOT NULL DEFAULT '' COMMENT '標識', `name` varchar(50) NOT NULL DEFAULT '' COMMENT '通知類型', `title` varchar(100) NOT NULL DEFAULT '' COMMENT '通知場景說明', `is_system` tinyint(1) NOT NULL DEFAULT '0' COMMENT '站內信(0:不存在,1:開啟,2:關閉)', `is_app` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'APP推送(0:不存在,1:開啟,2:關閉)', `is_wechat` tinyint(1) NOT NULL DEFAULT '0' COMMENT '公眾號模板消息(0:不存在,1:開啟,2:關閉)', `is_routine` tinyint(1) NOT NULL DEFAULT '0' COMMENT '小程序訂閱消息(0:不存在,1:開啟,2:關閉)', `is_sms` tinyint(1) NOT NULL DEFAULT '0' COMMENT '發送短信(0:不存在,1:開啟,2:關閉)', `is_ent_wechat` tinyint(1) NOT NULL DEFAULT '0' COMMENT '企業微信群通知(0:不存在,1:開啟,2:關閉)', `system_title` varchar(256) NOT NULL DEFAULT '' COMMENT '站內信標題', `system_text` varchar(512) NOT NULL DEFAULT '' COMMENT '系統消息id', `app_id` int(11) NOT NULL DEFAULT '0' COMMENT 'app推送id', `wechat_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '模板消息id', `routine_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '訂閱消息id', `sms_id` int(11) NOT NULL DEFAULT '0' COMMENT '短信id', `ent_wechat_text` varchar(512) NOT NULL DEFAULT '' COMMENT '企業微信消息', `variable` varchar(256) NOT NULL DEFAULT '' COMMENT '變量', `url` varchar(512) NOT NULL DEFAULT '' COMMENT '群機器人鏈接', `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '類型(1:用戶,2:管理員)', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 COMMENT='通知設置'; -- ---------------------------- -- Table structure for eb_system_role -- ---------------------------- DROP TABLE IF EXISTS `eb_system_role`; CREATE TABLE `eb_system_role` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '身份管理id', `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '角色類型1:平臺2:門店', `store_id` int(10) NOT NULL DEFAULT '0' COMMENT '門店ID', `role_name` varchar(32) NOT NULL DEFAULT '' COMMENT '身份管理名稱', `rules` text NOT NULL COMMENT '身份管理權限(menus_id)', `level` tinyint(3) unsigned NOT NULL DEFAULT '0', `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '狀態', PRIMARY KEY (`id`) USING BTREE, KEY `status` (`status`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='身份管理表'; -- ---------------------------- -- Table structure for eb_system_store -- ---------------------------- DROP TABLE IF EXISTS `eb_system_store`; CREATE TABLE `eb_system_store` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL DEFAULT '' COMMENT '門店名稱', `introduction` varchar(1000) NOT NULL DEFAULT '' COMMENT '簡介', `phone` char(25) NOT NULL DEFAULT '' COMMENT '手機號碼', `address` varchar(255) NOT NULL DEFAULT '' COMMENT '省市區', `province` int(10) NOT NULL DEFAULT '0' COMMENT '省ID', `city` int(10) NOT NULL DEFAULT '0' COMMENT '市ID', `area` int(10) NOT NULL DEFAULT '0' COMMENT '區ID', `street` int(10) DEFAULT '0' COMMENT '街道ID', `detailed_address` varchar(255) NOT NULL DEFAULT '' COMMENT '詳細地址', `image` varchar(255) NOT NULL DEFAULT '' COMMENT '門店logo', `oblong_image` varchar(255) NOT NULL DEFAULT '' COMMENT '門店推薦圖', `latitude` char(25) NOT NULL DEFAULT '' COMMENT '緯度', `longitude` char(25) NOT NULL DEFAULT '' COMMENT '經度', `bank_code` varchar(32) NOT NULL DEFAULT '0' COMMENT '銀行卡', `bank_address` varchar(256) NOT NULL DEFAULT '' COMMENT '開戶地址', `alipay_account` varchar(64) NOT NULL DEFAULT '' COMMENT '支付寶賬號', `alipay_qrcode_url` varchar(255) NOT NULL DEFAULT '' COMMENT '支付寶二維碼地址', `wechat` varchar(15) NOT NULL DEFAULT '' COMMENT '微信號', `wechat_qrcode_url` varchar(255) NOT NULL DEFAULT '' COMMENT '微信二維碼地址', `valid_time` varchar(100) NOT NULL DEFAULT '' COMMENT '核銷有效日期', `valid_range` int(10) NOT NULL DEFAULT '0' COMMENT '有效距離', `day_time` varchar(100) NOT NULL DEFAULT '' COMMENT '每日營業開關時間', `day_start` varchar(20) DEFAULT '' COMMENT '每日營業開始時間', `day_end` varchar(20) NOT NULL DEFAULT '' COMMENT '每日營業結束時間', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加時間', `is_show` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否顯示', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除', `is_store` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否到店自提', PRIMARY KEY (`id`) USING BTREE, KEY `phone` (`phone`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='門店自提'; -- ---------------------------- -- Table structure for eb_system_store_staff -- ---------------------------- DROP TABLE IF EXISTS `eb_system_store_staff`; CREATE TABLE `eb_system_store_staff` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '門店id', `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '微信用戶id', `account` varchar(50) NOT NULL DEFAULT '' COMMENT '賬號', `pwd` varchar(100) NOT NULL DEFAULT '' COMMENT '密碼', `avatar` varchar(255) NOT NULL DEFAULT '' COMMENT '店員頭像', `staff_name` varchar(64) NOT NULL DEFAULT '' COMMENT '店員名稱', `phone` char(15) NOT NULL DEFAULT '' COMMENT '手機號碼', `roles` varchar(255) DEFAULT '' COMMENT '管理權限', `last_ip` varchar(16) NOT NULL DEFAULT '' COMMENT '最后一次登錄ip', `last_time` int(10) NOT NULL DEFAULT '0' COMMENT '最后一次登錄時間', `login_count` int(10) NOT NULL DEFAULT '0' COMMENT '登錄次數', `level` tinyint(3) NOT NULL DEFAULT '1' COMMENT '級別', `verify_status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '核銷開關', `order_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '訂單管理', `is_admin` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否是管理員', `is_manager` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否是店長', `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '狀態', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='門店店員表'; -- ---------------------------- -- Table structure for eb_system_user_level -- ---------------------------- DROP TABLE IF EXISTS `eb_system_user_level`; CREATE TABLE `eb_system_user_level` ( `id` int(11) NOT NULL AUTO_INCREMENT, `mer_id` int(11) NOT NULL DEFAULT '0' COMMENT '商戶id', `name` varchar(255) NOT NULL DEFAULT '' COMMENT '會員名稱', `money` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '購買金額', `valid_date` int(11) NOT NULL DEFAULT '0' COMMENT '有效時間', `is_forever` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否為永久會員', `is_pay` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否購買,1=購買,0=不購買', `is_show` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否顯示 1=顯示,0=隱藏', `grade` int(11) NOT NULL DEFAULT '0' COMMENT '會員等級', `discount` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '享受折扣', `image` varchar(255) NOT NULL DEFAULT '' COMMENT '會員卡背景', `icon` varchar(255) NOT NULL DEFAULT '' COMMENT '會員圖標', `explain` text NOT NULL COMMENT '說明', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加時間', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除.1=刪除,0=未刪除', `exp_num` int(10) NOT NULL DEFAULT '0' COMMENT '升級經驗', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COMMENT='設置用戶等級表'; -- ---------------------------- -- Table structure for eb_template_message -- ---------------------------- DROP TABLE IF EXISTS `eb_template_message`; CREATE TABLE `eb_template_message` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '模板id', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=訂閱消息,1=微信模板消息', `tempkey` char(50) NOT NULL DEFAULT '' COMMENT '模板編號', `name` char(100) NOT NULL DEFAULT '' COMMENT '模板名', `kid` varchar(255) NOT NULL DEFAULT '', `content` varchar(1000) NOT NULL DEFAULT '' COMMENT '回復內容', `tempid` char(100) NOT NULL DEFAULT '' COMMENT '模板ID', `add_time` varchar(15) NOT NULL DEFAULT '' COMMENT '添加時間', `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '狀態', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='微信模板'; -- ---------------------------- -- Table structure for eb_user -- ---------------------------- DROP TABLE IF EXISTS `eb_user`; CREATE TABLE `eb_user` ( `uid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用戶id', `account` varchar(32) NOT NULL DEFAULT '' COMMENT '用戶賬號', `pwd` varchar(32) NOT NULL DEFAULT '' COMMENT '用戶密碼', `real_name` varchar(25) NOT NULL DEFAULT '' COMMENT '真實姓名', `birthday` int(11) NOT NULL DEFAULT '0' COMMENT '生日', `card_id` varchar(20) NOT NULL DEFAULT '' COMMENT '身份證號碼', `mark` varchar(255) NOT NULL DEFAULT '' COMMENT '用戶備注', `partner_id` int(11) NOT NULL DEFAULT '0' COMMENT '合伙人id', `group_id` int(11) NOT NULL DEFAULT '0' COMMENT '用戶分組id', `nickname` varchar(60) NOT NULL DEFAULT '' COMMENT '用戶昵稱', `avatar` varchar(256) NOT NULL DEFAULT '' COMMENT '用戶頭像', `phone` char(15) NOT NULL DEFAULT '' COMMENT '手機號碼', `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加時間', `add_ip` varchar(16) NOT NULL DEFAULT '' COMMENT '添加ip', `last_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '最后一次登錄時間', `last_ip` varchar(16) NOT NULL DEFAULT '' COMMENT '最后一次登錄ip', `now_money` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '用戶余額', `brokerage_price` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '傭金金額', `integral` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用戶剩余積分', `exp` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '會員經驗', `sign_num` int(11) NOT NULL DEFAULT '0' COMMENT '連續簽到天數', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1為正常,0為禁止', `level` int(11) NOT NULL DEFAULT '0' COMMENT '等級', `agent_level` int(10) NOT NULL DEFAULT '0' COMMENT '分銷等級', `spread_open` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否有推廣資格', `spread_uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '推廣元id', `spread_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '推廣員關聯時間', `spread_lottery` int(10) NOT NULL DEFAULT '1' COMMENT '推廣獲取抽獎次數', `user_type` varchar(32) NOT NULL DEFAULT '' COMMENT '用戶類型', `is_promoter` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否為推廣員', `pay_count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用戶購買次數', `spread_count` int(11) NOT NULL DEFAULT '0' COMMENT '下級人數', `clean_time` int(11) NOT NULL DEFAULT '0' COMMENT '清理會員時間', `addres` varchar(255) NOT NULL DEFAULT '' COMMENT '詳細地址', `adminid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '管理員編號 ', `login_type` varchar(36) NOT NULL DEFAULT '' COMMENT '用戶登陸類型,h5,wechat,routine', `record_phone` varchar(11) NOT NULL DEFAULT '' COMMENT '記錄臨時電話', `is_money_level` tinyint(1) NOT NULL DEFAULT '0' COMMENT '會員來源 0: 購買商品升級 1:花錢購買的會員2: 會員卡領取', `is_ever_level` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否永久性會員 0: 非永久會員 1:永久會員', `overdue_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '會員到期時間', `uniqid` varchar(32) NOT NULL DEFAULT '', `bar_code` varchar(32) NOT NULL DEFAULT '' COMMENT '條形碼值', `rand_code` int(6) NOT NULL DEFAULT '0' COMMENT '隨機code,用于確認余額支付', PRIMARY KEY (`uid`) USING BTREE, KEY `account` (`account`) USING BTREE, KEY `spreaduid` (`spread_uid`) USING BTREE, KEY `level` (`level`) USING BTREE, KEY `status` (`status`) USING BTREE, KEY `is_promoter` (`is_promoter`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶表'; -- ---------------------------- -- Table structure for eb_user_address -- ---------------------------- DROP TABLE IF EXISTS `eb_user_address`; CREATE TABLE `eb_user_address` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '用戶地址id', `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用戶id', `real_name` varchar(32) NOT NULL DEFAULT '' COMMENT '收貨人姓名', `phone` varchar(16) NOT NULL DEFAULT '' COMMENT '收貨人電話', `province` varchar(64) NOT NULL DEFAULT '' COMMENT '收貨人所在省', `city` varchar(64) NOT NULL DEFAULT '' COMMENT '收貨人所在市', `street` varchar(100) NOT NULL DEFAULT '' COMMENT '所在鎮/街道', `city_id` int(11) NOT NULL DEFAULT '0' COMMENT '城市id', `district` varchar(64) NOT NULL DEFAULT '' COMMENT '收貨人所在區', `detail` varchar(256) NOT NULL DEFAULT '' COMMENT '收貨人詳細地址', `post_code` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '郵編', `longitude` varchar(16) NOT NULL DEFAULT '0' COMMENT '經度', `latitude` varchar(16) NOT NULL DEFAULT '0' COMMENT '緯度', `is_default` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否默認', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否刪除', `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`) USING BTREE, KEY `uid` (`uid`) USING BTREE, KEY `is_default` (`is_default`) USING BTREE, KEY `is_del` (`is_del`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶地址表'; -- ---------------------------- -- Table structure for eb_user_bill -- ---------------------------- DROP TABLE IF EXISTS `eb_user_bill`; CREATE TABLE `eb_user_bill` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用戶賬單id', `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用戶uid', `link_id` varchar(32) NOT NULL DEFAULT '0' COMMENT '關聯id', `pm` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0 = 支出 1 = 獲得', `title` varchar(64) NOT NULL DEFAULT '' COMMENT '賬單標題', `category` varchar(64) NOT NULL DEFAULT '' COMMENT '明細種類', `type` varchar(64) NOT NULL DEFAULT '' COMMENT '明細類型', `number` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '明細數字', `balance` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '剩余', `mark` varchar(512) NOT NULL DEFAULT '' COMMENT '備注', `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加時間', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 = 帶確定 1 = 有效 -1 = 無效', `take` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 = 未收貨 1 = 已收貨', PRIMARY KEY (`id`) USING BTREE, KEY `openid` (`uid`) USING BTREE, KEY `status` (`status`) USING BTREE, KEY `add_time` (`add_time`) USING BTREE, KEY `pm` (`pm`) USING BTREE, KEY `type` (`category`,`type`,`link_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶賬單表'; -- ---------------------------- -- Table structure for eb_user_brokerage_frozen -- ---------------------------- DROP TABLE IF EXISTS `eb_user_brokerage_frozen`; CREATE TABLE `eb_user_brokerage_frozen` ( `id` int(10) NOT NULL AUTO_INCREMENT, `uid` int(10) NOT NULL DEFAULT '0' COMMENT '用戶uid', `price` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '金額', `uill_id` int(10) NOT NULL DEFAULT '0' COMMENT '關聯id', `frozen_time` int(10) NOT NULL DEFAULT '0' COMMENT '凍結到期時間', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否有效', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', `order_id` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '訂單id', PRIMARY KEY (`id`), KEY `uid` (`uid`,`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='用戶傭金凍結記錄表'; -- ---------------------------- -- Table structure for eb_user_card -- ---------------------------- DROP TABLE IF EXISTS `eb_user_card`; CREATE TABLE `eb_user_card` ( `id` int(10) NOT NULL AUTO_INCREMENT, `uid` int(10) NOT NULL DEFAULT '0' COMMENT 'UID', `spread_uid` int(10) NOT NULL DEFAULT '0' COMMENT '推廣用戶uid', `wechat_card_id` int(10) NOT NULL DEFAULT '0' COMMENT 'wechat_card表主鍵', `card_id` varchar(50) NOT NULL DEFAULT '' COMMENT 'card_id', `code` varchar(50) NOT NULL DEFAULT '' COMMENT '會員卡號', `store_id` int(10) NOT NULL DEFAULT '0' COMMENT '門店ID', `staff_id` int(10) NOT NULL DEFAULT '0' COMMENT '店員ID', `openid` varchar(100) NOT NULL DEFAULT '' COMMENT '微信openid', `is_submit` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否激活', `submit_time` int(10) NOT NULL DEFAULT '0' COMMENT '激活時間', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除', `del_time` int(10) NOT NULL DEFAULT '0' COMMENT '刪除時間', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶領取卡券'; -- ---------------------------- -- Table structure for eb_user_enter -- ---------------------------- DROP TABLE IF EXISTS `eb_user_enter`; CREATE TABLE `eb_user_enter` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '商戶申請ID', `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用戶ID', `province` varchar(32) NOT NULL DEFAULT '' COMMENT '商戶所在省', `city` varchar(32) NOT NULL DEFAULT '' COMMENT '商戶所在市', `district` varchar(32) NOT NULL DEFAULT '' COMMENT '商戶所在區', `address` varchar(256) NOT NULL DEFAULT '' COMMENT '商戶詳細地址', `merchant_name` varchar(256) NOT NULL DEFAULT '' COMMENT '商戶名稱', `link_user` varchar(32) NOT NULL DEFAULT '', `link_tel` varchar(16) NOT NULL DEFAULT '' COMMENT '商戶電話', `charter` varchar(512) NOT NULL DEFAULT '' COMMENT '商戶證書', `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加時間', `apply_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '審核時間', `success_time` int(11) NOT NULL DEFAULT '0' COMMENT '通過時間', `fail_message` varchar(256) NOT NULL DEFAULT '' COMMENT '未通過原因', `fail_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '未通過時間', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '-1 審核未通過 0未審核 1審核通過', `is_lock` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0 = 開啟 1= 關閉', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否刪除', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `uid` (`uid`) USING BTREE, KEY `province` (`province`,`city`,`district`) USING BTREE, KEY `is_lock` (`is_lock`) USING BTREE, KEY `is_del` (`is_del`) USING BTREE, KEY `status` (`status`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商戶申請表'; -- ---------------------------- -- Table structure for eb_user_extract -- ---------------------------- DROP TABLE IF EXISTS `eb_user_extract`; CREATE TABLE `eb_user_extract` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `uid` int(10) unsigned NOT NULL DEFAULT '0', `real_name` varchar(64) NOT NULL DEFAULT '' COMMENT '名稱', `extract_type` varchar(32) NOT NULL DEFAULT 'bank' COMMENT 'bank = 銀行卡 alipay = 支付寶wx=微信', `bank_code` varchar(32) NOT NULL DEFAULT '0' COMMENT '銀行卡', `bank_address` varchar(256) NOT NULL DEFAULT '' COMMENT '開戶地址', `alipay_code` varchar(64) NOT NULL DEFAULT '' COMMENT '支付寶賬號', `extract_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '提現金額', `mark` varchar(512) NOT NULL DEFAULT '', `balance` decimal(8,2) unsigned NOT NULL DEFAULT '0.00', `fail_msg` varchar(128) NOT NULL DEFAULT '' COMMENT '無效原因', `fail_time` int(10) unsigned NOT NULL DEFAULT '0', `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加時間', `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '-1 未通過 0 審核中 1 已提現', `wechat` varchar(15) NOT NULL DEFAULT '' COMMENT '微信號', `qrcode_url` varchar(255) NOT NULL DEFAULT '' COMMENT '二維碼地址', PRIMARY KEY (`id`) USING BTREE, KEY `extract_type` (`extract_type`) USING BTREE, KEY `status` (`status`) USING BTREE, KEY `add_time` (`add_time`) USING BTREE, KEY `openid` (`uid`) USING BTREE, KEY `fail_time` (`fail_time`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶提現表'; -- ---------------------------- -- Table structure for eb_user_friends -- ---------------------------- DROP TABLE IF EXISTS `eb_user_friends`; CREATE TABLE `eb_user_friends` ( `id` int(10) NOT NULL AUTO_INCREMENT, `uid` int(10) NOT NULL DEFAULT '0' COMMENT '用戶uid', `friends_uid` int(10) NOT NULL DEFAULT '0' COMMENT '好友uid', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`), KEY `uid` (`uid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='用戶好友關系'; -- ---------------------------- -- Table structure for eb_user_group -- ---------------------------- DROP TABLE IF EXISTS `eb_user_group`; CREATE TABLE `eb_user_group` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `group_name` varchar(64) NOT NULL DEFAULT '' COMMENT '用戶分組名稱', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶分組表'; -- ---------------------------- -- Table structure for eb_user_invoice -- ---------------------------- DROP TABLE IF EXISTS `eb_user_invoice`; CREATE TABLE `eb_user_invoice` ( `id` int(10) NOT NULL AUTO_INCREMENT, `uid` int(10) NOT NULL DEFAULT '0', `header_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '抬頭類型1:個人2:企業', `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '發票類型1:普通2:專用', `name` varchar(100) NOT NULL DEFAULT '' COMMENT '名稱(發票抬頭)', `duty_number` varchar(50) NOT NULL DEFAULT '' COMMENT '稅號', `drawer_phone` varchar(30) NOT NULL DEFAULT '' COMMENT '開票人手機號', `email` varchar(100) NOT NULL DEFAULT '' COMMENT '開票人郵箱', `tell` varchar(30) NOT NULL DEFAULT '' COMMENT '注冊電話', `address` varchar(255) NOT NULL DEFAULT '' COMMENT '注冊地址', `bank` varchar(50) NOT NULL DEFAULT '' COMMENT '注冊開戶銀行', `card_number` varchar(50) NOT NULL DEFAULT '' COMMENT '銀行卡號', `is_default` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否默認', `is_del` tinyint(1) NOT NULL DEFAULT '0', `add_time` int(10) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用戶發票管理表'; -- ---------------------------- -- Table structure for eb_user_label -- ---------------------------- DROP TABLE IF EXISTS `eb_user_label`; CREATE TABLE `eb_user_label` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` tinyint(1) DEFAULT '1' COMMENT '類型:1平臺2:門店', `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '門店ID', `label_cate` int(10) NOT NULL DEFAULT '0' COMMENT '標簽分類', `label_name` varchar(255) NOT NULL DEFAULT '' COMMENT '標簽名稱', PRIMARY KEY (`id`), KEY `label_cate` (`label_cate`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='用戶標簽表'; -- ---------------------------- -- Table structure for eb_user_label_relation -- ---------------------------- DROP TABLE IF EXISTS `eb_user_label_relation`; CREATE TABLE `eb_user_label_relation` ( `id` int(10) NOT NULL AUTO_INCREMENT, `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用戶ID', `store_id` int(10) NOT NULL DEFAULT '0' COMMENT '門店ID', `label_id` int(11) NOT NULL DEFAULT '0' COMMENT '標簽ID', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶標簽關聯表'; -- ---------------------------- -- Table structure for eb_user_level -- ---------------------------- DROP TABLE IF EXISTS `eb_user_level`; CREATE TABLE `eb_user_level` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用戶uid', `level_id` int(11) NOT NULL DEFAULT '0' COMMENT '等級vip', `grade` int(11) NOT NULL DEFAULT '0' COMMENT '會員等級', `valid_time` int(11) NOT NULL DEFAULT '0' COMMENT '過期時間', `is_forever` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否永久', `mer_id` int(11) NOT NULL DEFAULT '0' COMMENT '商戶id', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0:禁止,1:正常', `mark` varchar(255) NOT NULL DEFAULT '' COMMENT '備注', `remind` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否已通知', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除,0=未刪除,1=刪除', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加時間', `discount` int(11) NOT NULL DEFAULT '0' COMMENT '享受折扣', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `id` (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶等級記錄表'; -- ---------------------------- -- Table structure for eb_user_notice -- ---------------------------- DROP TABLE IF EXISTS `eb_user_notice`; CREATE TABLE `eb_user_notice` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uid` text NOT NULL COMMENT '接收消息的用戶id(類型:json數據)', `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '消息通知類型(1:系統消息;2:用戶通知)', `user` varchar(20) NOT NULL DEFAULT '' COMMENT '發送人', `title` varchar(20) NOT NULL DEFAULT '' COMMENT '通知消息的標題信息', `content` varchar(500) NOT NULL DEFAULT '' COMMENT '通知消息的內容', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '通知消息發送的時間', `is_send` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否發送(0:未發送;1:已發送)', `send_time` int(11) NOT NULL DEFAULT '0' COMMENT '發送時間', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶通知表'; -- ---------------------------- -- Table structure for eb_user_notice_see -- ---------------------------- DROP TABLE IF EXISTS `eb_user_notice_see`; CREATE TABLE `eb_user_notice_see` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nid` int(11) NOT NULL DEFAULT '0' COMMENT '查看的通知id', `uid` int(11) NOT NULL DEFAULT '0' COMMENT '查看通知的用戶id', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '查看通知的時間', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶通知發送記錄表'; -- ---------------------------- -- Table structure for eb_user_recharge -- ---------------------------- DROP TABLE IF EXISTS `eb_user_recharge`; CREATE TABLE `eb_user_recharge` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `store_id` int(10) NOT NULL DEFAULT '0' COMMENT '門店id', `uid` int(10) NOT NULL DEFAULT '0' COMMENT '充值用戶UID', `staff_id` int(10) NOT NULL DEFAULT '0' COMMENT '店員ID', `order_id` varchar(32) NOT NULL DEFAULT '' COMMENT '訂單號', `price` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '充值金額', `give_price` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '購買贈送金額', `recharge_type` varchar(32) NOT NULL DEFAULT '' COMMENT '充值類型', `paid` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否充值', `pay_time` int(10) NOT NULL DEFAULT '0' COMMENT '充值支付時間', `add_time` int(12) NOT NULL DEFAULT '0' COMMENT '充值時間', `refund_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '退款金額', `channel_type` varchar(255) NOT NULL DEFAULT '' COMMENT '用戶訪問端標識', `remarks` varchar(255) NOT NULL DEFAULT '' COMMENT '備注', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `order_id` (`order_id`) USING BTREE, KEY `uid` (`uid`) USING BTREE, KEY `recharge_type` (`recharge_type`) USING BTREE, KEY `paid` (`paid`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶充值表'; -- ---------------------------- -- Table structure for eb_user_search -- ---------------------------- DROP TABLE IF EXISTS `eb_user_search`; CREATE TABLE `eb_user_search` ( `id` int(10) NOT NULL AUTO_INCREMENT, `uid` int(10) NOT NULL DEFAULT '0' COMMENT '用戶uid', `keyword` varchar(255) NOT NULL DEFAULT '' COMMENT '搜索關鍵詞', `vicword` varchar(1000) NOT NULL DEFAULT '' COMMENT '關鍵詞分詞', `num` int(8) NOT NULL DEFAULT '1' COMMENT '搜索次數', `result` text COMMENT '搜索結果', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '刪除', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '時間', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶搜索記錄表'; -- ---------------------------- -- Table structure for eb_user_sign -- ---------------------------- DROP TABLE IF EXISTS `eb_user_sign`; CREATE TABLE `eb_user_sign` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用戶uid', `title` varchar(255) NOT NULL DEFAULT '' COMMENT '簽到說明', `number` int(11) NOT NULL DEFAULT '0' COMMENT '獲得積分', `balance` int(11) NOT NULL DEFAULT '0' COMMENT '剩余積分', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`) USING BTREE, KEY `uid` (`uid`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=362 DEFAULT CHARSET=utf8 COMMENT='簽到記錄表'; -- ---------------------------- -- Table structure for eb_user_spread -- ---------------------------- DROP TABLE IF EXISTS `eb_user_spread`; CREATE TABLE `eb_user_spread` ( `id` int(10) NOT NULL AUTO_INCREMENT, `store_id` int(10) NOT NULL DEFAULT '0' COMMENT '門店id', `uid` int(10) NOT NULL DEFAULT '0' COMMENT '用戶uid', `staff_id` int(10) NOT NULL DEFAULT '0' COMMENT '店員ID', `spread_uid` int(10) NOT NULL DEFAULT '0' COMMENT '推廣人uid', `spread_time` int(10) NOT NULL DEFAULT '0' COMMENT '推廣時間', PRIMARY KEY (`id`), KEY `uid` (`uid`) USING BTREE, KEY `spread_uid` (`spread_uid`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶推廣關系表'; -- ---------------------------- -- Table structure for eb_user_visit -- ---------------------------- DROP TABLE IF EXISTS `eb_user_visit`; CREATE TABLE `eb_user_visit` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用戶uid', `url` varchar(255) NOT NULL DEFAULT '' COMMENT '訪問路徑', `ip` varchar(255) NOT NULL DEFAULT '' COMMENT '用戶ip', `stay_time` int(11) NOT NULL DEFAULT '0' COMMENT '頁面停留時間(秒)', `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '訪問時間', `channel_type` varchar(255) NOT NULL DEFAULT '' COMMENT '用戶訪問端標識', `province` varchar(255) NOT NULL DEFAULT '' COMMENT '用戶省份', PRIMARY KEY (`id`), KEY `time` (`channel_type`,`add_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶訪問表'; -- ---------------------------- -- Table structure for eb_wechat_card -- ---------------------------- DROP TABLE IF EXISTS `eb_wechat_card`; CREATE TABLE `eb_wechat_card` ( `id` int(10) NOT NULL AUTO_INCREMENT, `card_id` varchar(50) NOT NULL DEFAULT '' COMMENT '卡券ID(微信返回)', `card_type` varchar(20) NOT NULL DEFAULT 'member_card' COMMENT '卡券類型:默認會員卡', `code_type` varchar(20) NOT NULL DEFAULT '' COMMENT '碼類型', `brand_name` varchar(50) NOT NULL DEFAULT '' COMMENT '商戶名稱', `title` varchar(50) NOT NULL DEFAULT '' COMMENT '卡券名稱', `color` varchar(15) NOT NULL DEFAULT '' COMMENT '顏色', `notice` varchar(20) NOT NULL DEFAULT '' COMMENT '卡券使用提醒', `description` varchar(255) NOT NULL DEFAULT '' COMMENT '描述', `center_title` varchar(255) NOT NULL DEFAULT '' COMMENT '卡券中部居中的按鈕,僅在卡券激活后且可用狀態 時顯示', `center_sub_title` varchar(255) NOT NULL DEFAULT '' COMMENT '顯示在入口下方的提示語 , 僅在卡券激活后且可用狀態時顯示', `center_url` varchar(255) NOT NULL DEFAULT '' COMMENT '頂部居中的url ,僅在卡券激活后且可用狀態時顯示', `service_phone` varchar(30) NOT NULL DEFAULT '' COMMENT '聯系方式', `logo_url` varchar(255) NOT NULL DEFAULT '' COMMENT 'logo URL', `background_pic_url` varchar(255) NOT NULL DEFAULT '' COMMENT '背景圖', `prerogative` text NOT NULL COMMENT '特權說明', `especial` longtext NOT NULL COMMENT '特別追加參數', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '狀態', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除', `add_time` int(10) NOT NULL COMMENT '添加時間', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='微信卡券表'; -- ---------------------------- -- Table structure for eb_wechat_key -- ---------------------------- DROP TABLE IF EXISTS `eb_wechat_key`; CREATE TABLE `eb_wechat_key` ( `id` mediumint(8) NOT NULL AUTO_INCREMENT, `reply_id` mediumint(8) NOT NULL DEFAULT '0' COMMENT '回復內容id', `keys` varchar(64) NOT NULL DEFAULT '' COMMENT '關鍵詞', PRIMARY KEY (`id`) USING BTREE ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='微信回復關鍵詞輔助表'; -- ---------------------------- -- Table structure for eb_wechat_media -- ---------------------------- DROP TABLE IF EXISTS `eb_wechat_media`; CREATE TABLE `eb_wechat_media` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '微信視頻音頻id', `type` varchar(16) NOT NULL DEFAULT '' COMMENT '回復類型', `path` varchar(128) NOT NULL DEFAULT '' COMMENT '文件路徑', `media_id` varchar(64) NOT NULL DEFAULT '' COMMENT '微信服務器返回的id', `url` varchar(256) NOT NULL DEFAULT '' COMMENT '地址', `temporary` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否永久或者臨時 0永久1臨時', `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加時間', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `type` (`type`,`media_id`) USING BTREE, KEY `type_2` (`type`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='微信回復表'; -- ---------------------------- -- Table structure for eb_wechat_message -- ---------------------------- DROP TABLE IF EXISTS `eb_wechat_message`; CREATE TABLE `eb_wechat_message` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用戶行為記錄id', `openid` varchar(32) NOT NULL DEFAULT '' COMMENT '用戶openid', `type` varchar(32) NOT NULL DEFAULT '' COMMENT '操作類型', `result` varchar(512) NOT NULL DEFAULT '' COMMENT '操作詳細記錄', `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '操作時間', PRIMARY KEY (`id`) USING BTREE, KEY `openid` (`openid`) USING BTREE, KEY `type` (`type`) USING BTREE, KEY `add_time` (`add_time`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶行為記錄表'; -- ---------------------------- -- Table structure for eb_wechat_news_category -- ---------------------------- DROP TABLE IF EXISTS `eb_wechat_news_category`; CREATE TABLE `eb_wechat_news_category` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '圖文消息管理ID', `cate_name` varchar(255) NOT NULL DEFAULT '' COMMENT '圖文名稱', `sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序', `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '狀態', `new_id` varchar(255) NOT NULL DEFAULT '' COMMENT '文章id', `add_time` varchar(255) NOT NULL DEFAULT '' COMMENT '添加時間', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='圖文消息管理表'; -- ---------------------------- -- Table structure for eb_wechat_reply -- ---------------------------- DROP TABLE IF EXISTS `eb_wechat_reply`; CREATE TABLE `eb_wechat_reply` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '微信關鍵字回復id', `type` varchar(32) NOT NULL DEFAULT '' COMMENT '回復類型', `data` text NOT NULL COMMENT '回復數據', `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '0=不可用 1 =可用', `hide` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否隱藏', PRIMARY KEY (`id`) USING BTREE, KEY `type` (`type`) USING BTREE, KEY `status` (`status`) USING BTREE, KEY `hide` (`hide`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='微信關鍵字回復表'; -- ---------------------------- -- Table structure for eb_wechat_user -- ---------------------------- DROP TABLE IF EXISTS `eb_wechat_user`; CREATE TABLE `eb_wechat_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '微信用戶id', `unionid` varchar(30) NOT NULL DEFAULT '' COMMENT '只有在用戶將公眾號綁定到微信開放平臺帳號后,才會出現該字段', `openid` varchar(100) NOT NULL DEFAULT '' COMMENT '用戶的標識,對當前公眾號唯一', `nickname` varchar(64) NOT NULL DEFAULT '' COMMENT '用戶的昵稱', `headimgurl` varchar(256) NOT NULL DEFAULT '' COMMENT '用戶頭像', `sex` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '用戶的性別,值為1時是男性,值為2時是女性,值為0時是未知', `city` varchar(64) NOT NULL DEFAULT '' COMMENT '用戶所在城市', `language` varchar(64) NOT NULL DEFAULT '' COMMENT '用戶的語言,簡體中文為zh_CN', `province` varchar(64) NOT NULL DEFAULT '' COMMENT '用戶所在省份', `country` varchar(64) NOT NULL DEFAULT '' COMMENT '用戶所在國家', `remark` varchar(256) NOT NULL DEFAULT '' COMMENT '公眾號運營者對粉絲的備注,公眾號運營者可在微信公眾平臺用戶管理界面對粉絲添加備注', `groupid` smallint(5) unsigned DEFAULT '0' COMMENT '用戶所在的分組ID(兼容舊的用戶分組接口)', `tagid_list` varchar(256) NOT NULL DEFAULT '' COMMENT '用戶被打上的標簽ID列表', `subscribe` tinyint(3) unsigned DEFAULT '1' COMMENT '用戶是否訂閱該公眾號標識', `subscribe_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '關注公眾號時間', `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加時間', `second` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '二級推薦人', `user_type` varchar(32) NOT NULL DEFAULT 'wechat' COMMENT '用戶類型', `is_complete` tinyint(1) NOT NULL DEFAULT '0' COMMENT '授權信息是否完整', PRIMARY KEY (`id`), UNIQUE KEY `openid` (`openid`) USING BTREE, KEY `groupid` (`groupid`) USING BTREE, KEY `subscribe_time` (`subscribe_time`) USING BTREE, KEY `add_time` (`add_time`) USING BTREE, KEY `subscribe` (`subscribe`) USING BTREE, KEY `unionid` (`unionid`) USING BTREE, KEY `uid` (`uid`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='微信用戶表'; SET FOREIGN_KEY_CHECKS = 1; ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看