<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                **文章管理表** ``` CREATE TABLE `eb_article` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文章管理ID', `cid` varchar(255) NOT NULL DEFAULT '' COMMENT '分類id', `title` varchar(255) NOT NULL COMMENT '文章標題', `author` varchar(255) DEFAULT '' COMMENT '文章作者', `image_input` varchar(255) NOT NULL COMMENT '文章圖片', `synopsis` varchar(255) DEFAULT '' COMMENT '文章簡介', `share_title` varchar(255) DEFAULT '' COMMENT '文章分享標題', `share_synopsis` varchar(255) DEFAULT '' COMMENT '文章分享簡介', `visit` varchar(255) DEFAULT '' COMMENT '瀏覽次數', `sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序', `url` varchar(255) DEFAULT '' COMMENT '原文鏈接', `media_id` varchar(100) DEFAULT NULL COMMENT '微信素材id', `status` tinyint(1) unsigned NOT NULL DEFAULT '0' 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 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 '是否輪播圖(小程序)', `content` text NOT NULL COMMENT '文章內容', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8 COMMENT='文章管理表'; ``` **分類表** ``` CREATE TABLE `eb_category` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `pid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '父級ID', `path` varchar(255) NOT NULL DEFAULT '/0/' COMMENT '路徑', `name` varchar(50) NOT NULL COMMENT '分類名稱', `type` smallint(2) DEFAULT '1' COMMENT '類型,1 產品分類,2 附件分類,3 文章分類, 4 設置分類, 5 菜單分類', `url` varchar(255) DEFAULT '' COMMENT '地址', `extra` text COMMENT '擴展字段 Jsos格式', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '狀態, 1正常,0失效', `sort` int(5) NOT NULL DEFAULT '99999' COMMENT '排序', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) USING BTREE, KEY `status+pid` (`pid`,`status`), KEY `id+status+url` (`path`) ) ENGINE=InnoDB AUTO_INCREMENT=305 DEFAULT CHARSET=utf8 COMMENT='分類表'; ``` **快遞公司表** ``` CREATE TABLE `eb_express` ( `id` mediumint(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '快遞公司id', `code` varchar(50) NOT NULL DEFAULT '' COMMENT '快遞公司簡稱', `name` varchar(50) NOT NULL DEFAULT '' COMMENT '快遞公司全稱', `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序', `is_show` 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=426 DEFAULT CHARSET=utf8 COMMENT='快遞公司表'; ``` **運費模板** ``` CREATE TABLE `eb_shipping_templates` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '編號', `name` varchar(255) NOT NULL COMMENT '模板名稱', `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '計費方式', `appoint` tinyint(1) NOT NULL DEFAULT '0' COMMENT '指定包郵', `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='運費模板'; ``` **運費模板包郵** ``` CREATE TABLE `eb_shipping_templates_free` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '編號', `temp_id` int(11) NOT NULL DEFAULT '0' COMMENT '模板ID', `city_id` int(11) NOT NULL DEFAULT '0' COMMENT '城市ID', `title` text COMMENT '描述', `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 '計費方式', `uniqid` varchar(32) NOT NULL DEFAULT '' COMMENT '分組唯一值', `status` tinyint(1) DEFAULT '0' COMMENT '是否無效', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='運費模板包郵'; ``` **運費模板指定區域費用** ``` CREATE TABLE `eb_shipping_templates_region` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '編號', `temp_id` int(11) NOT NULL DEFAULT '0' COMMENT '模板ID', `city_id` int(11) NOT NULL DEFAULT '0' COMMENT '城市ID', `title` text COMMENT '描述', `first` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '首件', `first_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '首件運費', `renewal` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '續件', `renewal_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '續件運費', `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '計費方式', `uniqid` varchar(32) NOT NULL DEFAULT '' COMMENT '分組唯一值', `status` tinyint(1) DEFAULT '0' COMMENT '是否無效', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='運費模板指定區域費用'; ``` **短信發送記錄表** ``` CREATE TABLE `eb_sms_record` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '短信發送記錄編號', `uid` varchar(255) NOT NULL COMMENT '短信平臺賬號', `phone` char(11) NOT NULL COMMENT '接受短信的手機號', `content` text NOT NULL COMMENT '短信內容', `add_ip` varchar(30) DEFAULT NULL COMMENT '添加記錄ip', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `template` varchar(255) NOT NULL COMMENT '短信模板ID', `resultcode` int(6) unsigned NOT NULL COMMENT '狀態碼 100=成功,130=失敗,131=空號,132=停機,133=關機,134=無狀態', `record_id` int(11) unsigned NOT NULL COMMENT '發送記錄id', `memo` text COMMENT '短信平臺返回信息', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='短信發送記錄表'; ``` **購物車表** ``` CREATE TABLE `eb_store_cart` ( `id` bigint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '購物車表ID', `uid` int(10) unsigned NOT NULL COMMENT '用戶ID', `type` varchar(32) NOT NULL COMMENT '類型', `product_id` int(10) unsigned NOT NULL COMMENT '商品ID', `product_attr_unique` varchar(16) NOT NULL DEFAULT '' COMMENT '商品屬性', `cart_num` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '商品數量', `is_new` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否為立即購買', `combination_id` int(11) unsigned 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', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加時間', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', `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`) USING BTREE, KEY `uid_2` (`uid`) USING BTREE, KEY `uid_3` (`uid`,`is_new`) USING BTREE, KEY `type` (`type`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='購物車表'; ``` **優惠券表** ``` CREATE TABLE `eb_store_coupon` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '優惠券表ID', `name` varchar(64) NOT NULL DEFAULT '' COMMENT '優惠券名稱', `money` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '兌換的優惠券面值', `is_limited` tinyint(1) DEFAULT '0' COMMENT '是否限量, 默認0 不限量, 1限量', `total` int(11) NOT NULL DEFAULT '0' COMMENT '發放總數', `last_total` int(11) DEFAULT '0' COMMENT '剩余數量', `use_type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '使用類型 1 全場通用, 2 商品券, 3 品類券', `primary_key` varchar(255) NOT NULL DEFAULT '' COMMENT '所屬商品id / 分類id', `min_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '最低消費,0代表不限制', `receive_start_time` timestamp NOT NULL COMMENT '可領取開始時間', `receive_end_time` timestamp NULL DEFAULT NULL COMMENT '可領取結束時間', `is_fixed_time` tinyint(1) DEFAULT '0' COMMENT '是否固定使用時間, 默認0 否, 1是', `use_start_time` timestamp NULL DEFAULT NULL COMMENT '可使用時間范圍 開始時間', `use_end_time` timestamp NULL DEFAULT NULL COMMENT '可使用時間范圍 結束時間', `day` int(4) DEFAULT '0' COMMENT '天數', `type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '優惠券類型 1 手動領取, 2 新人券, 3 贈送券', `sort` int(11) unsigned NOT NULL DEFAULT '1' COMMENT '排序', `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '狀態(0:關閉,1:開啟)', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否刪除 狀態(0:否,1:是)', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) USING BTREE, KEY `state` (`status`) USING BTREE, KEY `is_del` (`is_del`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='優惠券表'; ``` **優惠券記錄表** ``` CREATE TABLE `eb_store_coupon_user` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', `coupon_id` int(10) NOT NULL COMMENT '優惠券發布id', `cid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '兌換的項目id', `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '領取人id', `name` varchar(32) NOT NULL DEFAULT '' COMMENT '優惠券名稱', `money` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '優惠券的面值', `min_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '最低消費多少金額可用優惠券', `type` varchar(32) NOT NULL DEFAULT 'send' COMMENT '獲取方式,send后臺發放, 用戶領取 get', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '狀態(0:未使用,1:已使用, 2:已失效)', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', `start_time` timestamp NULL DEFAULT NULL COMMENT '開始使用時間', `end_time` timestamp NULL DEFAULT NULL COMMENT '過期時間', `use_time` timestamp NULL DEFAULT NULL COMMENT '使用時間', `use_type` tinyint(1) DEFAULT '1' COMMENT '使用類型 1 全場通用, 2 商品券, 3 品類券', `primary_key` varchar(255) DEFAULT NULL COMMENT '所屬商品id / 分類id', PRIMARY KEY (`id`) USING BTREE, KEY `cid` (`cid`) USING BTREE, KEY `uid` (`uid`) USING BTREE, KEY `end_time` (`end_time`) USING BTREE, KEY `status` (`status`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='優惠券記錄表'; ``` **訂單表** ``` CREATE TABLE `eb_store_order` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '訂單ID', `order_id` varchar(32) NOT NULL COMMENT '訂單號', `uid` int(11) unsigned NOT NULL COMMENT '用戶id', `real_name` varchar(32) NOT NULL COMMENT '用戶姓名', `user_phone` varchar(18) NOT NULL COMMENT '用戶電話', `user_address` varchar(100) NOT NULL COMMENT '詳細地址', `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` timestamp NULL DEFAULT NULL COMMENT '支付時間', `pay_type` varchar(32) NOT NULL COMMENT '支付方式', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '訂單狀態(-1 : 申請退款 -2 : 退貨成功 0:待發貨;1:待收貨;2:已收貨,待評價;3:已完成;)', `refund_status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0 未退款 1 申請中 2 已退款', `refund_reason_wap_img` varchar(255) DEFAULT NULL COMMENT '退款圖片', `refund_reason_wap_explain` varchar(255) DEFAULT NULL COMMENT '退款用戶說明', `refund_reason_wap` varchar(255) DEFAULT NULL COMMENT '前臺退款原因', `refund_reason` varchar(255) DEFAULT NULL COMMENT '不退款的理由', `refund_reason_time` timestamp NULL DEFAULT NULL COMMENT '退款時間', `refund_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '退款金額', `delivery_name` varchar(64) DEFAULT NULL COMMENT '快遞名稱/送貨人姓名', `delivery_type` varchar(32) DEFAULT NULL COMMENT '發貨類型', `delivery_id` varchar(64) DEFAULT NULL COMMENT '快遞單號/手機號', `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 DEFAULT NULL COMMENT '給用戶退了多少積分', `mark` varchar(512) NOT NULL COMMENT '備注', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否刪除', `unique` char(32) NOT NULL COMMENT '唯一id(md5加密)類似id', `remark` varchar(512) DEFAULT NULL 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 DEFAULT '0' COMMENT '拼團商品id0一般商品', `pink_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '拼團id 0沒有拼團', `cost` decimal(8,2) unsigned NOT NULL COMMENT '成本價', `seckill_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '秒殺商品ID', `bargain_id` int(11) unsigned DEFAULT '0' COMMENT '砍價id', `verify_code` varchar(12) NOT NULL DEFAULT '' COMMENT '核銷碼', `store_id` int(11) 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 DEFAULT '0' COMMENT '支付渠道(0微信公眾號1微信小程序)', `is_remind` tinyint(1) unsigned DEFAULT '0' COMMENT '消息提醒', `is_system_del` tinyint(1) DEFAULT '0' COMMENT '后臺是否刪除', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `order_id_2` (`order_id`,`uid`) USING BTREE, UNIQUE KEY `unique` (`unique`) USING BTREE, KEY `uid` (`uid`) USING BTREE, KEY `add_time` (`create_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='訂單表'; ``` **訂單購物詳情表** ``` CREATE TABLE `eb_store_order_info` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主鍵', `order_id` int(11) unsigned NOT NULL COMMENT '訂單id', `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品ID', `info` text NOT NULL COMMENT '購買東西的詳細信息', `unique` char(32) NOT NULL COMMENT '唯一id', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`), UNIQUE KEY `oid` (`order_id`,`unique`) USING BTREE, KEY `product_id` (`product_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='訂單購物詳情表'; ``` **訂單操作記錄表** ``` CREATE TABLE `eb_store_order_status` ( `oid` int(10) unsigned NOT NULL COMMENT '訂單id', `change_type` varchar(32) NOT NULL COMMENT '操作類型', `change_message` varchar(256) NOT NULL COMMENT '操作備注', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '操作時間', KEY `oid` (`oid`) USING BTREE, KEY `change_type` (`change_type`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='訂單操作記錄表'; ``` **商品表** ``` 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 COMMENT '商品圖片', `slider_image` varchar(2000) NOT NULL COMMENT '輪播圖', `store_name` varchar(128) NOT NULL COMMENT '商品名稱', `store_info` varchar(256) NOT NULL COMMENT '商品簡介', `keyword` varchar(256) NOT NULL COMMENT '關鍵字', `bar_code` varchar(15) NOT NULL DEFAULT '' COMMENT '商品條碼(一維碼)', `cate_id` varchar(64) NOT NULL 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 '郵費', `unit_name` varchar(32) NOT NULL 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 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 DEFAULT NULL COMMENT '砍價狀態 0未開啟 1開啟', `is_good` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否優品推薦', `is_sub` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否單獨分傭', `ficti` mediumint(11) DEFAULT '100' COMMENT '虛擬銷量', `browse` int(11) DEFAULT '0' COMMENT '瀏覽量', `code_path` varchar(64) NOT NULL DEFAULT '' COMMENT '商品二維碼地址(用戶小程序海報)', `soure_link` varchar(255) DEFAULT '' COMMENT '淘寶京東1688類型', `video_link` varchar(200) 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=拼團', 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 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='商品表'; ``` ***商品屬性表* ``` CREATE TABLE `eb_store_product_attr` ( `id` mediumint(11) NOT NULL AUTO_INCREMENT COMMENT '主鍵', `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品ID', `attr_name` varchar(32) NOT NULL COMMENT '屬性名', `attr_values` varchar(256) NOT NULL COMMENT '屬性值', `type` tinyint(1) DEFAULT '0' COMMENT '活動類型 0=商品,1=秒殺,2=砍價,3=拼團', PRIMARY KEY (`id`), KEY `store_id` (`product_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='商品屬性表'; ``` **商品屬性詳情表** ``` CREATE TABLE `eb_store_product_attr_result` ( `id` int(10) NOT NULL AUTO_INCREMENT COMMENT '主鍵', `product_id` int(10) unsigned NOT NULL COMMENT '商品ID', `result` text NOT NULL COMMENT '商品屬性參數', `change_time` int(10) unsigned NOT NULL COMMENT '上次修改時間', `type` tinyint(1) DEFAULT '0' COMMENT '活動類型 0=商品,1=秒殺,2=砍價,3=拼團', PRIMARY KEY (`id`), KEY `product_id` (`product_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='商品屬性詳情表'; ``` **商品屬性值表** ``` CREATE TABLE `eb_store_product_attr_value` ( `id` mediumint(11) NOT NULL AUTO_INCREMENT COMMENT '主鍵', `product_id` int(10) unsigned NOT NULL COMMENT '商品ID', `suk` varchar(128) NOT NULL COMMENT '商品屬性索引值 (attr_value|attr_value[|....])', `stock` int(10) unsigned NOT NULL COMMENT '屬性對應的庫存', `sales` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '銷量', `price` decimal(8,2) unsigned NOT NULL COMMENT '屬性金額', `image` varchar(1000) DEFAULT NULL 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 '原價', `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) DEFAULT '0' COMMENT '活動類型 0=商品,1=秒殺,2=砍價,3=拼團', `quota` int(11) DEFAULT NULL COMMENT '活動限購數量', `quota_show` int(11) DEFAULT NULL COMMENT '活動限購數量顯示', `attr_value` text COMMENT 'attr_values 創建更新時的屬性對應', PRIMARY KEY (`id`), KEY `unique` (`unique`,`suk`) USING BTREE, KEY `store_id` (`product_id`,`suk`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品屬性值表'; ``` **商品分類輔助表** ``` 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 '添加時間', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='商品分類輔助表'; ``` **產品優惠券** ``` 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 '添加時間', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='產品優惠券'; ``` **產品詳情** ``` 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`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='產品詳情'; ``` **商品點贊和收藏表** ``` CREATE TABLE `eb_store_product_relation` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id', `uid` int(10) unsigned NOT NULL COMMENT '用戶ID', `product_id` int(10) unsigned NOT NULL COMMENT '商品ID', `type` varchar(32) NOT NULL COMMENT '類型(收藏(collect)、點贊(like))', `category` varchar(32) NOT NULL COMMENT '某種類型的商品(普通商品、秒殺商品)', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`), 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='商品點贊和收藏表'; ``` **評論表** ``` 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', `unique` varchar(32) NOT NULL COMMENT '商品唯一id', `product_id` int(11) NOT NULL COMMENT '商品id', `reply_type` varchar(32) NOT NULL DEFAULT 'product' COMMENT '某種商品類型(普通商品、秒殺商品)', `product_score` tinyint(1) NOT NULL COMMENT '商品分數', `service_score` tinyint(1) NOT NULL COMMENT '服務分數', `comment` varchar(512) NOT NULL COMMENT '評論內容', `pics` text NOT NULL COMMENT '評論圖片', `merchant_reply_content` varchar(300) DEFAULT NULL COMMENT '管理員回復內容', `merchant_reply_time` int(11) DEFAULT NULL 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 COMMENT '用戶名稱', `avatar` varchar(255) NOT NULL COMMENT '用戶頭像', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) 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, KEY `uid+oid` (`uid`,`oid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='評論表'; ``` **商品規則值(規格)表** ``` CREATE TABLE `eb_store_product_rule` ( `id` int(10) NOT NULL AUTO_INCREMENT, `rule_name` varchar(32) NOT NULL COMMENT '規格名稱', `rule_value` text NOT NULL COMMENT '規格值', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='商品規則值(規格)表'; ``` **后臺管理員表** ``` CREATE TABLE `eb_system_admin` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT '后臺管理員表ID', `account` varchar(32) NOT NULL COMMENT '后臺管理員賬號', `pwd` char(32) NOT NULL COMMENT '后臺管理員密碼', `real_name` varchar(16) NOT NULL COMMENT '后臺管理員姓名', `roles` varchar(128) NOT NULL COMMENT '后臺管理員權限(menus_id)', `last_ip` varchar(16) DEFAULT NULL COMMENT '后臺管理員最后一次登錄ip', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP 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='后臺管理員表'; ``` **附件管理表** ``` CREATE TABLE `eb_system_attachment` ( `att_id` int(10) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL DEFAULT '' COMMENT '附件名稱', `att_dir` varchar(200) NOT NULL DEFAULT '' COMMENT '附件路徑', `satt_dir` varchar(200) DEFAULT NULL 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組合數據圖, 7前臺用戶', `image_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '圖片上傳類型 1本地 2七牛云 3OSS 4COS ', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`att_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='附件管理表'; ``` **城市表** ``` 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 '是否展示', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=3971 DEFAULT CHARSET=utf8 COMMENT='城市表'; ``` **配置表** ``` CREATE TABLE `eb_system_config` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '配置id', `name` varchar(500) NOT NULL DEFAULT '' COMMENT '字段名稱', `title` varchar(255) NOT NULL DEFAULT '' COMMENT '字段提示文字', `form_id` int(10) DEFAULT '0' COMMENT '表單id', `value` varchar(5000) DEFAULT '' COMMENT '值', `status` tinyint(1) DEFAULT '0' COMMENT '是否隱藏', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) USING BTREE, KEY `status+name` (`name`), KEY `name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=1635 DEFAULT CHARSET=utf8 COMMENT='配置表'; ``` **表單模板** ``` CREATE TABLE `eb_system_form_temp` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '表單模板id', `name` varchar(500) NOT NULL DEFAULT '' COMMENT '表單名稱', `info` varchar(500) NOT NULL DEFAULT '' COMMENT '表單簡介', `content` text NOT NULL COMMENT '表單內容', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=119 DEFAULT CHARSET=utf8 COMMENT='表單模板'; ``` **組合數據表** ``` CREATE TABLE `eb_system_group` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '組合數據ID', `name` varchar(50) NOT NULL DEFAULT '' COMMENT '數據組名稱', `info` varchar(256) NOT NULL DEFAULT '' COMMENT '簡介', `form_id` int(11) NOT NULL DEFAULT '0' COMMENT 'form 表單 id', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) USING BTREE, KEY `name` (`name`), KEY `form_id` (`form_id`) ) ENGINE=InnoDB AUTO_INCREMENT=73 DEFAULT CHARSET=utf8 COMMENT='組合數據表'; ``` **組合數據詳情表** ``` 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數據)', `sort` int(11) NOT NULL DEFAULT '0' COMMENT '數據排序', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '狀態(1:開啟;2:關閉;)', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) USING BTREE, KEY `gid` (`gid`) ) ENGINE=InnoDB AUTO_INCREMENT=121 DEFAULT CHARSET=utf8 COMMENT='組合數據詳情表'; ``` **身份管理表** ``` CREATE TABLE `eb_system_role` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '身份管理id', `role_name` varchar(32) NOT NULL 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 '狀態', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) USING BTREE, KEY `status` (`status`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COMMENT='身份管理表'; ``` **門店自提** ``` 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 '省市區', `detailed_address` varchar(255) NOT NULL DEFAULT '' COMMENT '詳細地址', `image` varchar(255) NOT NULL DEFAULT '' COMMENT '門店logo', `latitude` char(25) NOT NULL DEFAULT '' COMMENT '緯度', `longitude` char(25) NOT NULL DEFAULT '' COMMENT '經度', `valid_time` varchar(100) NOT NULL DEFAULT '' COMMENT '核銷有效日期', `day_time` varchar(100) NOT NULL DEFAULT '' COMMENT '每日營業開關時間', `is_show` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否顯示', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加時間', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) USING BTREE, KEY `phone` (`phone`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='門店自提'; ``` **門店店員表** ``` CREATE TABLE `eb_system_store_staff` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `uid` int(10) unsigned NOT NULL COMMENT '微信用戶id', `avatar` varchar(255) NOT NULL DEFAULT '' COMMENT '店員頭像', `store_id` int(11) NOT NULL COMMENT '門店id', `staff_name` varchar(64) DEFAULT '' COMMENT '店員名稱', `phone` char(15) DEFAULT NULL COMMENT '手機號碼', `verify_status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '核銷開關', `status` tinyint(2) DEFAULT '1' COMMENT '狀態', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加時間', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='門店店員表'; ``` **普通會員等級** ``` CREATE TABLE `eb_system_user_level` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '' COMMENT '會員名稱', `experience` int(11) NOT NULL DEFAULT '0' COMMENT '達到多少升級經驗', `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 '會員圖標', `memo` text COMMENT '說明', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否刪除.1=刪除,0=未刪除', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='普通會員等級'; ``` **微信模板** ``` 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=微信模板消息', `temp_key` char(50) NOT NULL DEFAULT '' COMMENT '模板編號', `name` char(100) NOT NULL COMMENT '模板名', `content` varchar(1000) NOT NULL COMMENT '回復內容', `temp_id` char(100) DEFAULT NULL COMMENT '模板ID', `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '狀態', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加時間', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='微信模板'; ``` **用戶表** ``` CREATE TABLE `eb_user` ( `uid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用戶id', `account` varchar(32) NOT NULL DEFAULT '' COMMENT '用戶賬號', `pwd` varchar(32) DEFAULT '' COMMENT '用戶密碼', `real_name` varchar(25) DEFAULT '' COMMENT '真實姓名', `birthday` varchar(32) DEFAULT '' COMMENT '生日', `card_id` varchar(20) DEFAULT '' COMMENT '身份證號碼', `mark` varchar(255) DEFAULT '' COMMENT '用戶備注', `partner_id` int(11) DEFAULT '0' COMMENT '合伙人id', `group_id` varchar(255) DEFAULT '' COMMENT '用戶分組id', `tag_id` varchar(255) DEFAULT '' COMMENT '標簽id', `nickname` varchar(16) DEFAULT '' COMMENT '用戶昵稱', `avatar` varchar(256) DEFAULT '' COMMENT '用戶頭像', `phone` char(15) DEFAULT NULL COMMENT '手機號碼', `add_ip` varchar(16) DEFAULT '' COMMENT '添加ip', `last_ip` varchar(16) DEFAULT '' COMMENT '最后一次登錄ip', `now_money` decimal(8,2) unsigned DEFAULT '0.00' COMMENT '用戶余額', `brokerage_price` decimal(8,2) DEFAULT '0.00' COMMENT '傭金金額', `integral` decimal(8,2) unsigned DEFAULT '0.00' COMMENT '用戶剩余積分', `experience` int(11) unsigned DEFAULT '0' COMMENT '用戶剩余經驗', `sign_num` int(11) DEFAULT '0' COMMENT '連續簽到天數', `status` tinyint(1) DEFAULT '1' COMMENT '1為正常,0為禁止', `level` tinyint(2) unsigned DEFAULT '0' COMMENT '等級', `spread_uid` int(10) unsigned DEFAULT '0' COMMENT '推廣元id', `spread_time` timestamp NULL DEFAULT NULL COMMENT '推廣員關聯時間', `user_type` varchar(32) NOT NULL DEFAULT '' COMMENT '用戶類型', `is_promoter` tinyint(1) unsigned DEFAULT '0' COMMENT '是否為推廣員', `pay_count` int(11) unsigned DEFAULT '0' COMMENT '用戶購買次數', `spread_count` int(11) DEFAULT '0' COMMENT '下級人數', `addres` varchar(255) DEFAULT '' COMMENT '詳細地址', `adminid` int(11) unsigned DEFAULT '0' COMMENT '管理員編號 ', `login_type` varchar(36) NOT NULL DEFAULT '' COMMENT '用戶登陸類型,h5,wechat,routine', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', `last_login_time` timestamp NULL DEFAULT NULL COMMENT '最后一次登錄時間', `clean_time` timestamp NULL DEFAULT NULL COMMENT '清除時間', `path` varchar(255) NOT NULL DEFAULT '/0/' COMMENT '推廣等級記錄', `subscribe` tinyint(3) DEFAULT '0' COMMENT '是否關注公眾號', `subscribe_time` timestamp NULL DEFAULT NULL COMMENT '關注公眾號時間', PRIMARY KEY (`uid`) USING BTREE, UNIQUE KEY `account` (`account`), 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='用戶表'; ``` **用戶地址表** ``` CREATE TABLE `eb_user_address` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '用戶地址id', `uid` int(10) unsigned NOT NULL 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 '收貨人所在市', `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) 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 '是否刪除', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP 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='用戶地址表'; ``` **用戶賬單表** ``` 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 '備注', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 = 帶確定 1 = 有效 -1 = 無效', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加時間', `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) USING BTREE, KEY `openid` (`uid`) USING BTREE, KEY `status` (`status`) USING BTREE, KEY `add_time` (`create_time`) USING BTREE, KEY `pm` (`pm`) USING BTREE, KEY `type` (`category`,`type`,`link_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶賬單表'; ``` **用戶提現表** ``` CREATE TABLE `eb_user_extract` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `uid` int(10) unsigned DEFAULT NULL, `real_name` varchar(64) DEFAULT NULL COMMENT '名稱', `extract_type` varchar(32) DEFAULT 'bank' COMMENT 'bank = 銀行卡 alipay = 支付寶wx=微信', `bank_code` varchar(32) DEFAULT '0' COMMENT '銀行卡', `bank_address` varchar(256) DEFAULT '' COMMENT '開戶地址', `alipay_code` varchar(64) DEFAULT '' COMMENT '支付寶賬號', `extract_price` decimal(8,2) unsigned DEFAULT '0.00' COMMENT '提現金額', `mark` varchar(512) DEFAULT NULL, `balance` decimal(8,2) unsigned DEFAULT '0.00', `fail_msg` varchar(128) DEFAULT NULL COMMENT '無效原因', `status` tinyint(2) DEFAULT '0' COMMENT '-1 未通過 0 審核中 1 已提現', `wechat` varchar(15) DEFAULT NULL COMMENT '微信號', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', `fail_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '失敗時間', PRIMARY KEY (`id`) USING BTREE, KEY `extract_type` (`extract_type`) USING BTREE, KEY `status` (`status`) USING BTREE, KEY `openid` (`uid`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶提現表'; ``` **用戶分組表** ``` CREATE TABLE `eb_user_group` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `group_name` varchar(64) DEFAULT NULL COMMENT '用戶分組名稱', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶分組表'; ``` **用戶等級記錄表** ``` 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 '會員等級', `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=刪除', `discount` int(11) NOT NULL DEFAULT '0' COMMENT '享受折扣', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', `expired_time` timestamp NULL DEFAULT NULL COMMENT '過期時間', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `id` (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用戶等級記錄表'; ``` **用戶充值表** ``` CREATE TABLE `eb_user_recharge` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `uid` int(10) NOT NULL COMMENT '充值用戶UID', `order_id` varchar(32) NOT NULL DEFAULT '' COMMENT '訂單號', `price` decimal(8,2) NOT NULL COMMENT '充值金額', `give_price` decimal(8,2) DEFAULT '0.00' COMMENT '購買贈送金額', `recharge_type` varchar(32) NOT NULL DEFAULT '' COMMENT '充值類型', `paid` tinyint(1) DEFAULT '0' COMMENT '是否充值', `pay_time` timestamp NULL DEFAULT NULL COMMENT '充值支付時間', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '充值時間', `refund_price` decimal(10,2) DEFAULT '0.00' 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='用戶充值表'; ``` **簽到記錄表** ``` 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 '剩余', `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '類型,1積分,2經驗', `create_day` date NOT NULL COMMENT '簽到日期', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加時間', PRIMARY KEY (`id`) USING BTREE, KEY `uid` (`uid`,`type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='簽到記錄表'; ``` **標簽管理** ``` CREATE TABLE `eb_user_tag` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) DEFAULT NULL COMMENT '標簽名稱', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='標簽管理'; ``` **第三方用戶登錄token** ``` CREATE TABLE `eb_user_token` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uid` int(10) unsigned NOT NULL COMMENT '用戶 id', `token` varchar(500) NOT NULL COMMENT 'token', `type` tinyint(1) DEFAULT '1' COMMENT '類型,1 公眾號, 2 小程序, 3 unionid', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `expires_time` datetime DEFAULT NULL COMMENT '到期時間', `login_ip` varchar(32) DEFAULT NULL COMMENT '登錄ip', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `type+token` (`type`,`token`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='第三方用戶登錄token'; ``` **微信關鍵字回復表** ``` CREATE TABLE `eb_wechat_reply` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '微信關鍵字回復id', `keywords` varchar(64) NOT NULL DEFAULT '' COMMENT '關鍵字', `type` varchar(32) NOT NULL DEFAULT '' COMMENT '回復類型', `data` text NOT NULL COMMENT '回復數據', `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '回復狀態 0=不可用 1 =可用', `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創建時間', `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新時間', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `key` (`keywords`) USING BTREE, KEY `type` (`type`) USING BTREE, KEY `status` (`status`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COMMENT='微信關鍵字回復表'; ```
                  <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>

                              哎呀哎呀视频在线观看