-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- 主机: web-mysql
-- 生成日期: 2022-01-08 12:23:01
-- 服务器版本: 10.1.32-MariaDB
-- PHP 版本: 7.3.22
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- 数据库: `churen`
--
CREATE DATABASE IF NOT EXISTS `churen` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
USE `churen`;
-- --------------------------------------------------------
--
-- 表的结构 `churen_act_info`
--
DROP TABLE IF EXISTS `churen_act_info`;
CREATE TABLE `churen_act_info` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(80) DEFAULT NULL COMMENT '标题-活动标题,同时也用于分享标题',
`desc` varchar(500) DEFAULT NULL COMMENT '摘要-活动摘要,同时也用于分享内容',
`cover` varchar(150) DEFAULT NULL COMMENT '封面图',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '活动类型',
`content` text COMMENT '内容',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
`color` varchar(10) NOT NULL COMMENT '按钮颜色-请填写颜色代码,选填项',
`bgcolor` varchar(10) NOT NULL COMMENT '背景颜色-请填写颜色代码,选填项',
`back` varchar(150) NOT NULL COMMENT '背景图'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_area_city`
--
DROP TABLE IF EXISTS `churen_area_city`;
CREATE TABLE `churen_area_city` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(150) DEFAULT NULL COMMENT '城市名称',
`pinyin` varchar(300) DEFAULT NULL COMMENT '拼音',
`pinyin_first` varchar(30) DEFAULT NULL COMMENT '拼音首字母',
`province_id` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_area_county`
--
DROP TABLE IF EXISTS `churen_area_county`;
CREATE TABLE `churen_area_county` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(150) DEFAULT NULL COMMENT '县区名称',
`pinyin` varchar(300) DEFAULT NULL COMMENT '拼音',
`pinyin_first` varchar(30) DEFAULT NULL COMMENT '拼音首字母',
`city_id` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_area_province`
--
DROP TABLE IF EXISTS `churen_area_province`;
CREATE TABLE `churen_area_province` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(150) DEFAULT NULL COMMENT '省份名称',
`pinyin` varchar(300) DEFAULT NULL COMMENT '拼音',
`pinyin_first` varchar(30) DEFAULT NULL COMMENT '拼音首字母',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_area_town`
--
DROP TABLE IF EXISTS `churen_area_town`;
CREATE TABLE `churen_area_town` (
`id` bigint(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(150) DEFAULT NULL COMMENT '街道名称',
`pinyin` varchar(300) DEFAULT NULL COMMENT '拼音',
`pinyin_first` varchar(30) DEFAULT NULL COMMENT '拼音首字母',
`county_id` int(11) NOT NULL DEFAULT '0' COMMENT '县区',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_area_village`
--
DROP TABLE IF EXISTS `churen_area_village`;
CREATE TABLE `churen_area_village` (
`id` bigint(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(150) DEFAULT NULL COMMENT '社区名称',
`pinyin` varchar(300) DEFAULT NULL COMMENT '拼音',
`pinyin_first` varchar(30) DEFAULT NULL COMMENT '拼音首字母',
`code` int(11) NOT NULL DEFAULT '0' COMMENT '城乡分类代码',
`town_id` int(11) NOT NULL DEFAULT '0' COMMENT '街道',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_attr_cate`
--
DROP TABLE IF EXISTS `churen_attr_cate`;
CREATE TABLE `churen_attr_cate` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(150) DEFAULT NULL COMMENT '类别名称',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_attr_info`
--
DROP TABLE IF EXISTS `churen_attr_info`;
CREATE TABLE `churen_attr_info` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(150) DEFAULT NULL COMMENT '名称',
`cate_id` int(11) NOT NULL DEFAULT '1' COMMENT '属性类别',
`is_must` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否必填',
`is_sell` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否销售属性',
`type` tinyint(11) NOT NULL DEFAULT '1' COMMENT '属性类型',
`data_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据类型-选择类型之后会自动验证数据有效性',
`match` varchar(600) DEFAULT NULL COMMENT '正则匹配规则-直接输入正则表达式即可',
`list_reorder` int(11) NOT NULL DEFAULT '1' COMMENT '列表页排序-设置该属性在列表页中的排序,数字越大越靠前,如果为负数或者0,则不加入到列表页中。',
`search_reorder` int(11) NOT NULL DEFAULT '1' COMMENT '搜索条件排序-设置搜索条件中的排序,数字越大越靠前,如果为负数或者0,则不加入到搜索条件中。',
`view_reorder` int(11) NOT NULL DEFAULT '1' COMMENT '详情页排序-设置该属性在详情页中的排序,数字越大越靠前,如果为负数或者0,则不加入到详情页中。',
`unit` varchar(150) DEFAULT NULL COMMENT '单位-填写属性单位,选填项',
`ename` varchar(150) DEFAULT NULL COMMENT '英文标识-该标识一般为前端样式名称,选填项',
`icon` varchar(150) DEFAULT NULL COMMENT '图标',
`color` varchar(10) DEFAULT NULL COMMENT '字体颜色-请填写颜色代码',
`bgcolor` varchar(10) DEFAULT NULL COMMENT '背景颜色-请填写颜色代码',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
`sell_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '销售属性类型-组合类型将会生成不同的SKU组合价格,根据不同的SKU组合生成总价和库存;单选类型将生成单独的属性价格,将影响总价,可单独设置库存;输入类型一般为输入尺寸,需要单独设置影响总价的方式;具体价格都需要在商品中设置',
`sell_compute` tinyint(1) NOT NULL DEFAULT '1' COMMENT '计算方式-如输入类型设置了宽度和高度,总价需要平米来计算,这里选择相乘即可',
`sell_value` varchar(50) NOT NULL DEFAULT '0' COMMENT '价格起始值-同样是平米为例,这里输入10的话,就是大于10平米时开始加价,具体加价多少需要在商品中设置'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_attr_search`
--
DROP TABLE IF EXISTS `churen_attr_search`;
CREATE TABLE `churen_attr_search` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`info_id` int(11) NOT NULL DEFAULT '1' COMMENT '属性ID',
`name` varchar(1000) DEFAULT NULL COMMENT '搜索名称-如设置为100万以下',
`value` varchar(1000) DEFAULT NULL COMMENT '搜索值-可以设置为{V}<=100,{V}为当前值,如果是区间输入框,则{S}为区间最小值,{E}为区间最大值',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_attr_value`
--
DROP TABLE IF EXISTS `churen_attr_value`;
CREATE TABLE `churen_attr_value` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`info_id` int(11) NOT NULL DEFAULT '1' COMMENT '属性ID',
`name` varchar(1000) DEFAULT NULL COMMENT '属性值名称-如绿色',
`value` varchar(1000) DEFAULT NULL COMMENT '属性值-如#000000,可以为空',
`icon` varchar(150) DEFAULT NULL COMMENT '图标',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_card_add`
--
DROP TABLE IF EXISTS `churen_card_add`;
CREATE TABLE `churen_card_add` (
`id` int(11) UNSIGNED NOT NULL COMMENT '系统ID',
`card_id` int(11) NOT NULL DEFAULT '0' COMMENT '礼品卡',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '生成方式',
`num` varchar(32) DEFAULT NULL COMMENT '生成数量',
`content` text COMMENT '填写卡号-多个换行隔开,如卡号重复将不会录入到库中',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_card_code`
--
DROP TABLE IF EXISTS `churen_card_code`;
CREATE TABLE `churen_card_code` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`card_id` int(11) NOT NULL DEFAULT '0' COMMENT '礼品卡',
`card` varchar(32) DEFAULT NULL COMMENT '卡号',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '使用状态',
`total_cash` float NOT NULL DEFAULT '0' COMMENT '总面值',
`use_cash` float NOT NULL DEFAULT '0' COMMENT '已用面值',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '下单用户',
`dh_uid` int(11) NOT NULL DEFAULT '0' COMMENT '兑换用户',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '下单门店',
`order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
`order_card_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
`bdate` int(11) NOT NULL DEFAULT '0' COMMENT '绑定时间',
`ddate` int(11) NOT NULL DEFAULT '0' COMMENT '兑换时间',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间',
`city` int(11) NOT NULL COMMENT '城市'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_card_info`
--
DROP TABLE IF EXISTS `churen_card_info`;
CREATE TABLE `churen_card_info` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(80) DEFAULT NULL COMMENT '礼品卡名称',
`type_id` int(11) NOT NULL DEFAULT '1' COMMENT '礼品卡类型',
`value` int(11) NOT NULL DEFAULT '100' COMMENT '面值',
`price` varchar(80) DEFAULT NULL COMMENT '售价',
`card_type` int(11) NOT NULL DEFAULT '3' COMMENT '卡号生成规则',
`card_prefix` varchar(80) DEFAULT NULL COMMENT '卡号前缀-前缀不占用卡号长度的位数,如卡号长度填写14,卡号前缀为Q,则生成卡号前缀+14位随机数',
`card_len` int(11) NOT NULL DEFAULT '14' COMMENT '卡号长度',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_card_order`
--
DROP TABLE IF EXISTS `churen_card_order`;
CREATE TABLE `churen_card_order` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '购买人名称',
`mobile` varchar(300) DEFAULT NULL COMMENT '下单手机号',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '兑换门店',
`address_id` int(11) NOT NULL DEFAULT '0' COMMENT '送货地址',
`order_num` varchar(100) DEFAULT NULL COMMENT '订单号',
`oprice` varchar(50) DEFAULT NULL COMMENT '原价',
`price` varchar(50) DEFAULT NULL COMMENT '支付金额',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
`fdate` int(11) NOT NULL DEFAULT '0' COMMENT '完成时间',
`operdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_card_order_card`
--
DROP TABLE IF EXISTS `churen_card_order_card`;
CREATE TABLE `churen_card_order_card` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '购买人名称',
`card_id` int(11) NOT NULL DEFAULT '0' COMMENT '礼品卡名称',
`city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
`price` varchar(50) DEFAULT NULL COMMENT '单价',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
`cards` varchar(2000) DEFAULT NULL COMMENT '卡号',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_card_order_ps`
--
DROP TABLE IF EXISTS `churen_card_order_ps`;
CREATE TABLE `churen_card_order_ps` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
`service_id` int(11) NOT NULL DEFAULT '-1' COMMENT '配送服务商',
`order_num` varchar(800) DEFAULT NULL COMMENT '快递单号-多个用换行隔开',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '包裹数量',
`price` varchar(50) DEFAULT NULL COMMENT '快递费用',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
`qu_date` int(11) NOT NULL DEFAULT '0' COMMENT '取件时间',
`qs_date` int(11) NOT NULL DEFAULT '0' COMMENT '签收时间',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_card_type`
--
DROP TABLE IF EXISTS `churen_card_type`;
CREATE TABLE `churen_card_type` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(200) DEFAULT NULL COMMENT '类型名称',
`desc` varchar(800) DEFAULT NULL COMMENT '类型描述',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '购买方式',
`shop_type` varchar(200) DEFAULT NULL COMMENT '可用门店类型',
`city_type` int(11) NOT NULL DEFAULT '1' COMMENT '可用范围',
`city` varchar(2000) DEFAULT NULL COMMENT '选择城市',
`cover` varchar(150) DEFAULT NULL COMMENT '封面图',
`content` text COMMENT '购买使用须知',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`icon` varchar(150) NOT NULL COMMENT '图标',
`bgpic` varchar(150) NOT NULL COMMENT '背景图'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_cash_factory`
--
DROP TABLE IF EXISTS `churen_cash_factory`;
CREATE TABLE `churen_cash_factory` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '对账单类型',
`day` int(11) NOT NULL DEFAULT '0' COMMENT '对账单时间',
`factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '对账工厂',
`start` int(11) NOT NULL DEFAULT '0' COMMENT '对账单开始时间',
`end` int(11) NOT NULL DEFAULT '0' COMMENT '对账单结束时间',
`cash` varchar(100) DEFAULT NULL COMMENT '对账金额',
`num` varchar(100) DEFAULT NULL COMMENT '对账数量',
`factory_status` int(11) NOT NULL DEFAULT '1' COMMENT '工厂对账状态',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '平台对账状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_cash_order`
--
DROP TABLE IF EXISTS `churen_cash_order`;
CREATE TABLE `churen_cash_order` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`order_num` varchar(100) DEFAULT NULL COMMENT '结算单号',
`type` int(11) NOT NULL DEFAULT '0' COMMENT '采购人类型',
`type_id` int(11) NOT NULL DEFAULT '0' COMMENT '结算门店',
`source_type` int(11) NOT NULL DEFAULT '0' COMMENT '供货商类型',
`source_id` int(11) NOT NULL DEFAULT '0' COMMENT '结算门店',
`source_order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订货单ID',
`source_order_num` varchar(100) DEFAULT NULL COMMENT '订货单编号',
`refund_id` int(11) NOT NULL DEFAULT '-1' COMMENT '退款ID',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '数量',
`cash` varchar(50) DEFAULT NULL COMMENT '结算金额',
`p_cash` varchar(50) DEFAULT NULL COMMENT '结算金额',
`jstype` tinyint(1) NOT NULL DEFAULT '1' COMMENT '结算类型',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '入账状态',
`audit` tinyint(1) NOT NULL DEFAULT '1' COMMENT '审核状态',
`audit_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '审核类型',
`fdate` int(11) NOT NULL DEFAULT '0' COMMENT '完成时间',
`operdate` int(11) NOT NULL DEFAULT '0' COMMENT '结算时间',
`desc` varchar(500) DEFAULT NULL COMMENT '未通过原因',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_cash_shop`
--
DROP TABLE IF EXISTS `churen_cash_shop`;
CREATE TABLE `churen_cash_shop` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '对账单类型',
`day` int(11) NOT NULL DEFAULT '0' COMMENT '对账单时间',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '对账门店',
`start` int(11) NOT NULL DEFAULT '0' COMMENT '对账单开始时间',
`end` int(11) NOT NULL DEFAULT '0' COMMENT '对账单结束时间',
`cash` varchar(100) DEFAULT NULL COMMENT '对账金额',
`num` varchar(100) DEFAULT NULL COMMENT '对账数量',
`shop_status` int(11) NOT NULL DEFAULT '1' COMMENT '门店对账状态',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '平台对账状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_cash_store`
--
DROP TABLE IF EXISTS `churen_cash_store`;
CREATE TABLE `churen_cash_store` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '对账单类型',
`day` int(11) NOT NULL DEFAULT '0' COMMENT '对账单时间',
`store_id` int(11) NOT NULL DEFAULT '0' COMMENT '对账仓库',
`start` int(11) NOT NULL DEFAULT '0' COMMENT '对账单开始时间',
`end` int(11) NOT NULL DEFAULT '0' COMMENT '对账单结束时间',
`cash` varchar(100) DEFAULT NULL COMMENT '对账金额',
`num` varchar(100) DEFAULT NULL COMMENT '对账数量',
`store_status` int(11) NOT NULL DEFAULT '1' COMMENT '仓库对账状态',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '平台对账状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_category_attr`
--
DROP TABLE IF EXISTS `churen_category_attr`;
CREATE TABLE `churen_category_attr` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`category` varchar(500) DEFAULT NULL COMMENT '分类',
`attr` varchar(800) DEFAULT NULL COMMENT '属性设置',
`attr_input` text COMMENT '属性值设置',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_category_info`
--
DROP TABLE IF EXISTS `churen_category_info`;
CREATE TABLE `churen_category_info` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(150) DEFAULT NULL COMMENT '分类名称',
`key` varchar(150) DEFAULT NULL COMMENT '分类标识-请输入英文,分类标识为唯一项,用来区分前端展示,选填项',
`info` varchar(800) DEFAULT NULL COMMENT '上级分类',
`project_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
`icon` varchar(150) DEFAULT NULL COMMENT '图标',
`color` varchar(10) DEFAULT NULL COMMENT '字体颜色-请填写颜色代码',
`bgcolor` varchar(10) DEFAULT NULL COMMENT '背景颜色-请填写颜色代码',
`info_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级分类',
`top_id` int(11) NOT NULL DEFAULT '-1' COMMENT '顶级分类',
`level` int(11) NOT NULL DEFAULT '1' COMMENT '分类级别-1为顶级分类、2为2级分类,-1为最后一级分类',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否启用',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_category_project`
--
DROP TABLE IF EXISTS `churen_category_project`;
CREATE TABLE `churen_category_project` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(150) DEFAULT NULL COMMENT '项目名称',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_content_feature`
--
DROP TABLE IF EXISTS `churen_content_feature`;
CREATE TABLE `churen_content_feature` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(80) DEFAULT NULL COMMENT '标题-专题标题,同时也用于分享标题',
`desc` varchar(500) DEFAULT NULL COMMENT '摘要-专题摘要,同时也用于分享内容',
`cover` varchar(150) DEFAULT NULL COMMENT '封面图',
`content` text COMMENT '内容',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_content_news`
--
DROP TABLE IF EXISTS `churen_content_news`;
CREATE TABLE `churen_content_news` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(80) DEFAULT NULL COMMENT '标题-文章标题,同时也用于分享标题',
`desc` varchar(500) DEFAULT NULL COMMENT '摘要-文章摘要,同时也用于分享内容',
`cover` varchar(150) DEFAULT NULL COMMENT '封面图',
`content` text COMMENT '内容',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_factory_goods`
--
DROP TABLE IF EXISTS `churen_factory_goods`;
CREATE TABLE `churen_factory_goods` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属工厂',
`goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
`category_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类ID',
`p_price` varchar(100) NOT NULL DEFAULT '0' COMMENT '出厂价',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`price_type` int(11) NOT NULL DEFAULT '0' COMMENT '价格类型',
`sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量',
`status` tinyint(1) NOT NULL DEFAULT '2' COMMENT '状态'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_factory_goods_sku`
--
DROP TABLE IF EXISTS `churen_factory_goods_sku`;
CREATE TABLE `churen_factory_goods_sku` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属工厂',
`goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
`sku_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品SKU',
`p_price` varchar(100) NOT NULL DEFAULT '0' COMMENT '出厂价',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '发布时间',
`sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_factory_info`
--
DROP TABLE IF EXISTS `churen_factory_info`;
CREATE TABLE `churen_factory_info` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
`name` varchar(32) DEFAULT NULL COMMENT '工厂名称',
`truename` varchar(100) DEFAULT NULL COMMENT '联系人姓名',
`mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '联系人电话',
`area` varchar(500) DEFAULT NULL COMMENT '所在城市',
`province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
`city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
`map` varchar(300) DEFAULT NULL COMMENT '地理位置',
`lng` varchar(100) DEFAULT NULL COMMENT '经度',
`lat` varchar(100) DEFAULT NULL COMMENT '纬度',
`address` varchar(1000) DEFAULT NULL COMMENT '工厂地址',
`goods` text COMMENT '请先选择分类-选择分类,之后选择分类下的商品,点击商品名称可以设置出厂价',
`license` varchar(150) DEFAULT NULL COMMENT '营业执照',
`license_number` varchar(200) DEFAULT NULL COMMENT '营业执照号码',
`company_name` varchar(200) DEFAULT NULL COMMENT '公司名称',
`idcard_front` varchar(150) DEFAULT NULL COMMENT '身份证正面',
`idcard_back` varchar(150) DEFAULT NULL COMMENT '身份证背面',
`kh_license` varchar(150) DEFAULT NULL COMMENT '开户许可证',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '认证状态',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
`stat_type` int(11) NOT NULL DEFAULT '1' COMMENT '对账周期-可以选择按月还是按周生成对账单',
`stat_day` int(11) NOT NULL DEFAULT '10' COMMENT '对账单生成日期-这里直接填写对账周期内的第几天即可,如按月对账,这里填写10,就是本月10号生成上一个月的对账单,如按周对账,这里填写2,就是本周二生成上一周的对账单'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_factory_member`
--
DROP TABLE IF EXISTS `churen_factory_member`;
CREATE TABLE `churen_factory_member` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
`factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属工厂',
`role_id` varchar(60) DEFAULT NULL COMMENT '角色',
`name` varchar(32) DEFAULT NULL COMMENT '员工姓名',
`mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '员工手机号',
`avatar` varchar(150) DEFAULT NULL COMMENT '头像',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_factory_order`
--
DROP TABLE IF EXISTS `churen_factory_order`;
CREATE TABLE `churen_factory_order` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属工厂',
`store_id` int(11) NOT NULL DEFAULT '-1' COMMENT '所属仓库',
`store_order_id` int(11) NOT NULL DEFAULT '0' COMMENT '仓库订单ID',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`shop_order_id` int(11) NOT NULL DEFAULT '0' COMMENT '门店订单ID',
`name` varchar(80) DEFAULT NULL COMMENT '订单名称',
`order_num` varchar(100) DEFAULT NULL COMMENT '订单编号',
`price` varchar(50) DEFAULT NULL COMMENT '购买价格',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
`pay_id` varchar(100) DEFAULT NULL COMMENT '支付订单ID',
`pay_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '支付状态',
`pay_price` varchar(50) DEFAULT NULL COMMENT '付款金额',
`info` varchar(300) DEFAULT NULL COMMENT '订单备注',
`note` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否发送状态提醒-1未发送,2已发送',
`notice` int(11) NOT NULL DEFAULT '0' COMMENT '模板消息提醒次数',
`tk_pic` varchar(150) DEFAULT NULL COMMENT '退款截图',
`tk_time` int(11) NOT NULL DEFAULT '0' COMMENT '退款时间',
`tk_admin` int(11) NOT NULL DEFAULT '1' COMMENT '退款审核人',
`tk_desc` varchar(300) DEFAULT NULL COMMENT '退款备注',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '下单时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_goods_add_card`
--
DROP TABLE IF EXISTS `churen_goods_add_card`;
CREATE TABLE `churen_goods_add_card` (
`id` int(11) UNSIGNED NOT NULL COMMENT '系统ID',
`card_id` int(11) NOT NULL DEFAULT '0' COMMENT '礼品卡',
`num` varchar(32) DEFAULT NULL COMMENT '兑换码数量',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_goods_card`
--
DROP TABLE IF EXISTS `churen_goods_card`;
CREATE TABLE `churen_goods_card` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(80) DEFAULT NULL COMMENT '礼品卡名称',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '礼品卡类型',
`day` int(11) NOT NULL DEFAULT '7' COMMENT '有效天数',
`method` int(11) NOT NULL DEFAULT '3' COMMENT '领取方式',
`goods` text COMMENT '商品配置',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
`card_type` int(11) NOT NULL DEFAULT '3' COMMENT '卡号生成规则',
`card_prefix` varchar(80) NOT NULL COMMENT '卡号前缀-前缀不占用卡号长度的位数,如卡号长度填写14,卡号前缀为Q,则生成卡号前缀+14位随机数',
`card_len` int(11) NOT NULL DEFAULT '14' COMMENT '卡号长度',
`pwd_type` int(11) NOT NULL DEFAULT '3' COMMENT '密码生成规则',
`pwd_prefix` varchar(80) NOT NULL COMMENT '密码前缀',
`pwd_len` int(11) NOT NULL DEFAULT '8' COMMENT '密码长度'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_goods_card_code`
--
DROP TABLE IF EXISTS `churen_goods_card_code`;
CREATE TABLE `churen_goods_card_code` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`card_id` int(11) NOT NULL DEFAULT '0' COMMENT '礼品卡',
`card` varchar(32) DEFAULT NULL COMMENT '卡号',
`pwd` varchar(32) DEFAULT NULL COMMENT '密码',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '使用状态',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户信息',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '兑换门店',
`order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
`ddate` int(11) NOT NULL DEFAULT '0' COMMENT '兑换时间',
`edate` int(11) NOT NULL DEFAULT '0' COMMENT '失效时间',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_goods_column`
--
DROP TABLE IF EXISTS `churen_goods_column`;
CREATE TABLE `churen_goods_column` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(150) DEFAULT NULL COMMENT '栏目名称',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_goods_coupon`
--
DROP TABLE IF EXISTS `churen_goods_coupon`;
CREATE TABLE `churen_goods_coupon` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(80) DEFAULT NULL COMMENT '优惠券名称',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '优惠券类型',
`method` int(11) NOT NULL DEFAULT '1' COMMENT '优惠券属性',
`total_cash` varchar(100) DEFAULT NULL COMMENT '满减金额-如满100减50,这里填写100',
`cash` varchar(100) DEFAULT NULL COMMENT '抵扣金额',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
`content` text COMMENT '使用规则',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_goods_info`
--
DROP TABLE IF EXISTS `churen_goods_info`;
CREATE TABLE `churen_goods_info` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(800) DEFAULT NULL COMMENT '商品名称',
`category` varchar(500) DEFAULT NULL COMMENT '分类',
`top_category_id` int(11) NOT NULL DEFAULT '-1' COMMENT '顶级分类ID-顶级分类,用于分类查询',
`second_category_id` int(11) NOT NULL DEFAULT '-1' COMMENT '二级分类ID-二级分类,用于分类查询',
`category_id` int(11) NOT NULL DEFAULT '-1' COMMENT '子分类ID-最后一个级别的分类,用于分类查询',
`area` int(11) NOT NULL DEFAULT '0' COMMENT '所在地区',
`mode` int(11) NOT NULL DEFAULT '1' COMMENT '取货形式',
`price_type` int(11) NOT NULL DEFAULT '1' COMMENT '价格类型',
`price` varchar(100) NOT NULL DEFAULT '0' COMMENT '销售价',
`s_price` varchar(100) NOT NULL DEFAULT '0' COMMENT '市场价',
`f_price` varchar(100) NOT NULL DEFAULT '0' COMMENT '采购价',
`cover` varchar(150) DEFAULT NULL COMMENT '封面图-图片尺寸300*300PX或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式,用户上传图片之后会自动进行居中裁剪',
`video` varchar(800) DEFAULT NULL COMMENT '视频-视频格式MP4,上传大小不能超过4G',
`pic` text COMMENT '多张图片-图片尺寸750*422PX或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式,用户上传图片之后会自动进行居中裁剪',
`top` int(11) NOT NULL DEFAULT '2' COMMENT '是否人气推荐',
`youhui` int(11) NOT NULL DEFAULT '2' COMMENT '是否每日优惠',
`content` text COMMENT '内容介绍',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
`udate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '发布时间',
`column_id` varchar(8000) NOT NULL COMMENT '栏目',
`hot` int(11) NOT NULL DEFAULT '2' COMMENT '是否热门商品',
`goods` text NOT NULL COMMENT '套餐商品配置-套餐商品只可以选择普通商品',
`sku_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'SKU_ID',
`tag_id` varchar(800) NOT NULL COMMENT '标签',
`sell_type` int(11) NOT NULL DEFAULT '1' COMMENT '售卖类型',
`min` int(11) NOT NULL DEFAULT '1' COMMENT '起购数',
`code` varchar(100) NOT NULL COMMENT '商品条码号'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_goods_info_category`
--
DROP TABLE IF EXISTS `churen_goods_info_category`;
CREATE TABLE `churen_goods_info_category` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`info_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
`category_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类ID',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_goods_info_column`
--
DROP TABLE IF EXISTS `churen_goods_info_column`;
CREATE TABLE `churen_goods_info_column` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`info_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
`column_id` int(11) NOT NULL DEFAULT '0' COMMENT '栏目ID',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_goods_info_sku`
--
DROP TABLE IF EXISTS `churen_goods_info_sku`;
CREATE TABLE `churen_goods_info_sku` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`info_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
`key` varchar(100) DEFAULT NULL COMMENT '属性标识',
`attr` text COMMENT '属性组合规则',
`price` varchar(100) NOT NULL DEFAULT '0' COMMENT '销售价',
`s_price` varchar(100) NOT NULL DEFAULT '0' COMMENT '市场价',
`f_price` varchar(100) NOT NULL DEFAULT '0' COMMENT '采购价',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '库存',
`sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '发布时间',
`type` tinyint(1) NOT NULL DEFAULT '2' COMMENT '属性类型',
`min` int(11) NOT NULL DEFAULT '1' COMMENT '起购数',
`code` varchar(100) NOT NULL COMMENT '商品条码号'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_goods_info_tag`
--
DROP TABLE IF EXISTS `churen_goods_info_tag`;
CREATE TABLE `churen_goods_info_tag` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`info_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
`tag_id` int(11) NOT NULL DEFAULT '0' COMMENT '标签ID',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_goods_tag`
--
DROP TABLE IF EXISTS `churen_goods_tag`;
CREATE TABLE `churen_goods_tag` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(150) DEFAULT NULL COMMENT '标签名称',
`color` varchar(10) DEFAULT NULL COMMENT '颜色-请填写颜色代码',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_main_cate`
--
DROP TABLE IF EXISTS `churen_main_cate`;
CREATE TABLE `churen_main_cate` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(32) DEFAULT NULL COMMENT '分类名称',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_main_config`
--
DROP TABLE IF EXISTS `churen_main_config`;
CREATE TABLE `churen_main_config` (
`id` int(11) UNSIGNED NOT NULL COMMENT '平台ID',
`name` varchar(32) DEFAULT NULL COMMENT '网站名称',
`logo` varchar(150) DEFAULT NULL COMMENT '网站LOGO',
`seo_keyword` varchar(1000) DEFAULT NULL COMMENT 'SEO关键词',
`seo_desc` varchar(1000) DEFAULT NULL COMMENT 'SEO描述',
`phone` varchar(100) DEFAULT NULL COMMENT '客服电话',
`worktime` varchar(100) DEFAULT NULL COMMENT '工作时间',
`wechat` varchar(150) DEFAULT NULL COMMENT '公众号',
`foot` text COMMENT '底部信息',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
`site` varchar(200) NOT NULL COMMENT '网站地址',
`citys` varchar(1000) NOT NULL COMMENT '开通城市-直接填写城市名称,多个用换行隔开',
`video_name` varchar(32) NOT NULL COMMENT '视频名称',
`video_desc` varchar(800) NOT NULL COMMENT '视频介绍',
`video` varchar(800) NOT NULL COMMENT '上传视频-视频格式MP4,上传大小不能超过4G',
`video_pic` varchar(150) NOT NULL COMMENT '封面图-封面图自动生成,也可以直接上传,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
`news_name` varchar(100) NOT NULL COMMENT '企业动态标题',
`news_desc` varchar(500) NOT NULL COMMENT '企业动态介绍',
`news_pic` varchar(150) NOT NULL COMMENT '企业动态图片',
`contact_desc` varchar(800) NOT NULL COMMENT '联系我们介绍',
`contact` text NOT NULL COMMENT '联系我们配置',
`contact_address` varchar(500) NOT NULL COMMENT '公司地址',
`contact_address_map` varchar(800) NOT NULL COMMENT '地址地图链接',
`douyin` varchar(150) NOT NULL COMMENT '抖音',
`weibo` varchar(150) NOT NULL COMMENT '微博'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_main_factory_config`
--
DROP TABLE IF EXISTS `churen_main_factory_config`;
CREATE TABLE `churen_main_factory_config` (
`id` int(11) UNSIGNED NOT NULL COMMENT '平台ID',
`name` varchar(32) DEFAULT NULL COMMENT '供应链名称',
`info` varchar(1000) DEFAULT NULL COMMENT '供应链业务描述',
`phone` varchar(100) DEFAULT NULL COMMENT '客服电话',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
`kf_name` varchar(100) NOT NULL COMMENT '客服姓名',
`foot` text NOT NULL COMMENT '底部信息',
`dz_phone` varchar(100) NOT NULL COMMENT '对账专员电话'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_main_group`
--
DROP TABLE IF EXISTS `churen_main_group`;
CREATE TABLE `churen_main_group` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(32) DEFAULT NULL COMMENT '部门名称',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_main_help`
--
DROP TABLE IF EXISTS `churen_main_help`;
CREATE TABLE `churen_main_help` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(80) DEFAULT NULL COMMENT '标题',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '帮助类型',
`content` text COMMENT '内容',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
`desc` varchar(500) NOT NULL COMMENT '描述'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_main_info`
--
DROP TABLE IF EXISTS `churen_main_info`;
CREATE TABLE `churen_main_info` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(80) DEFAULT NULL COMMENT '标题-文章标题,同时也用于分享标题',
`desc` varchar(500) DEFAULT NULL COMMENT '摘要-文章摘要,同时也用于分享内容',
`cate_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属分类',
`source_id` int(11) NOT NULL DEFAULT '1' COMMENT '来源',
`pic_cover` text COMMENT '封面图-可以上传多张,也可以不传,不传则自动从内容中获取',
`num_add_view` int(11) NOT NULL DEFAULT '0' COMMENT '浏览量基数',
`num_view` int(11) NOT NULL DEFAULT '0' COMMENT '浏览量',
`pdate` int(11) NOT NULL DEFAULT '0' COMMENT '发布时间',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`udate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
`content` text COMMENT '内容',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '发布状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_main_manage_config`
--
DROP TABLE IF EXISTS `churen_main_manage_config`;
CREATE TABLE `churen_main_manage_config` (
`id` int(11) UNSIGNED NOT NULL COMMENT '平台ID',
`name` varchar(32) DEFAULT NULL COMMENT '小程序名称',
`info` varchar(1000) DEFAULT NULL COMMENT '小程序业务描述',
`logo` varchar(150) DEFAULT NULL COMMENT '小程序LOGO',
`applet` varchar(150) DEFAULT NULL COMMENT '小程序二维码',
`phone` varchar(100) DEFAULT NULL COMMENT '客服电话',
`km` varchar(32) DEFAULT NULL COMMENT '推荐门店公里数-单位是公里,如5公里,填写5即可',
`video` varchar(800) DEFAULT NULL COMMENT '视频宣传片-视频格式MP4,上传大小不能超过4G',
`file` varchar(150) DEFAULT NULL COMMENT '宣传文件',
`rule` text COMMENT '门店合作规则',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
`video_cover` varchar(150) NOT NULL COMMENT '视频封面图-封面图自动生成,也可以更改,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
`dz_phone` varchar(100) NOT NULL COMMENT '对账专员电话'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_main_page`
--
DROP TABLE IF EXISTS `churen_main_page`;
CREATE TABLE `churen_main_page` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(80) DEFAULT NULL COMMENT '标题',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '类型',
`key` varchar(80) DEFAULT NULL COMMENT '标识',
`content` text COMMENT '内容',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_main_sell_config`
--
DROP TABLE IF EXISTS `churen_main_sell_config`;
CREATE TABLE `churen_main_sell_config` (
`id` int(11) UNSIGNED NOT NULL COMMENT '平台ID',
`name` varchar(32) DEFAULT NULL COMMENT '小程序名称',
`info` varchar(1000) DEFAULT NULL COMMENT '小程序业务描述',
`logo` varchar(150) DEFAULT NULL COMMENT '小程序LOGO',
`applet` varchar(150) DEFAULT NULL COMMENT '小程序二维码',
`phone` varchar(100) DEFAULT NULL COMMENT '客服电话',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
`dz_phone` varchar(100) NOT NULL COMMENT '对账专员电话',
`card` varchar(150) NOT NULL COMMENT '礼品卡封面',
`per` int(11) NOT NULL DEFAULT '1' COMMENT '平台佣金比例-输入1就是百分之1,分账时,平台自动从支付的金额里抽取1%的手续费',
`card_name` varchar(150) NOT NULL DEFAULT '厨人E卡' COMMENT '礼品卡名称'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_main_source`
--
DROP TABLE IF EXISTS `churen_main_source`;
CREATE TABLE `churen_main_source` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(32) DEFAULT NULL COMMENT '来源名称-长度不能超过16个汉字',
`link` varchar(500) DEFAULT NULL COMMENT '来源链接',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_main_zhaopin`
--
DROP TABLE IF EXISTS `churen_main_zhaopin`;
CREATE TABLE `churen_main_zhaopin` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(80) DEFAULT NULL COMMENT '职位名称',
`group_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属部门',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '职位类型',
`area` varchar(80) DEFAULT NULL COMMENT '所在地区',
`desc` text COMMENT '岗位描述',
`content` text COMMENT '任职要求',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_manage_admin`
--
DROP TABLE IF EXISTS `churen_manage_admin`;
CREATE TABLE `churen_manage_admin` (
`id` int(11) UNSIGNED NOT NULL COMMENT '管理员ID',
`username` varchar(24) DEFAULT NULL COMMENT '管理员名',
`email` varchar(150) DEFAULT NULL COMMENT '邮箱-可用于登录,请准确填写,不允许重复',
`mobile` varchar(32) DEFAULT NULL COMMENT '手机号',
`password` varchar(64) DEFAULT NULL COMMENT '管理员密码',
`config` int(11) NOT NULL DEFAULT '1' COMMENT '后台配置',
`role` varchar(100) DEFAULT NULL COMMENT '角色',
`group` int(11) NOT NULL DEFAULT '1' COMMENT '分组',
`top` text COMMENT '头部菜单-这里的头部菜单如果设置,则会覆盖角色中的头部菜单',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_manage_admin_role`
--
DROP TABLE IF EXISTS `churen_manage_admin_role`;
CREATE TABLE `churen_manage_admin_role` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '管理员ID',
`role_id` int(11) NOT NULL DEFAULT '0' COMMENT '角色ID',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_manage_api`
--
DROP TABLE IF EXISTS `churen_manage_api`;
CREATE TABLE `churen_manage_api` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(30) DEFAULT NULL COMMENT '接口名称',
`type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '接口类型',
`project` varchar(30) DEFAULT NULL COMMENT '所属项目',
`site` varchar(500) DEFAULT NULL COMMENT '接口地址',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_manage_api_request`
--
DROP TABLE IF EXISTS `churen_manage_api_request`;
CREATE TABLE `churen_manage_api_request` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`api_id` int(11) NOT NULL DEFAULT '0' COMMENT '接口ID',
`parent_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级ID',
`name` varchar(50) DEFAULT NULL COMMENT '字段',
`type` varchar(50) DEFAULT NULL COMMENT '类型',
`desc` text COMMENT '描述',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_manage_api_response`
--
DROP TABLE IF EXISTS `churen_manage_api_response`;
CREATE TABLE `churen_manage_api_response` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`api_id` int(11) NOT NULL DEFAULT '0' COMMENT '接口ID',
`parent_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级ID',
`name` varchar(50) DEFAULT NULL COMMENT '字段',
`type` varchar(50) DEFAULT NULL COMMENT '类型',
`desc` text COMMENT '描述',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_manage_auth`
--
DROP TABLE IF EXISTS `churen_manage_auth`;
CREATE TABLE `churen_manage_auth` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`project` varchar(50) DEFAULT NULL COMMENT '项目KEY',
`project_name` varchar(50) DEFAULT NULL COMMENT '项目名',
`name` varchar(50) DEFAULT NULL COMMENT '权限名',
`auth_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级权限',
`key` varchar(100) DEFAULT NULL COMMENT '权限KEY',
`value` varchar(30) DEFAULT NULL COMMENT '对应的值',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_manage_config`
--
DROP TABLE IF EXISTS `churen_manage_config`;
CREATE TABLE `churen_manage_config` (
`id` int(11) UNSIGNED NOT NULL COMMENT '配置ID',
`name` varchar(32) DEFAULT NULL COMMENT '配置名',
`template` int(1) NOT NULL DEFAULT '1' COMMENT '后台模板',
`title` varchar(32) DEFAULT NULL COMMENT '后台TITLE',
`info` varchar(40) DEFAULT NULL COMMENT '控制台欢迎标题',
`content` text COMMENT '控制台欢迎内容',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
`help_title` varchar(32) NOT NULL DEFAULT '帮助标题' COMMENT '帮助标题',
`help_info` varchar(800) NOT NULL DEFAULT '默认帮助介绍' COMMENT '帮助介绍'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_manage_cron`
--
DROP TABLE IF EXISTS `churen_manage_cron`;
CREATE TABLE `churen_manage_cron` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(32) DEFAULT NULL COMMENT '任务名',
`project` varchar(30) DEFAULT NULL COMMENT '项目',
`interface` varchar(100) DEFAULT NULL COMMENT '接口(命令行)',
`ldate` int(11) NOT NULL DEFAULT '0' COMMENT '执行时间',
`time` int(11) NOT NULL DEFAULT '0' COMMENT '时间间隔(为0则执行一次)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_manage_group`
--
DROP TABLE IF EXISTS `churen_manage_group`;
CREATE TABLE `churen_manage_group` (
`id` int(11) UNSIGNED NOT NULL COMMENT '组ID',
`name` varchar(50) DEFAULT NULL COMMENT '组名称',
`area` varchar(255) DEFAULT NULL COMMENT '区域',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_manage_help`
--
DROP TABLE IF EXISTS `churen_manage_help`;
CREATE TABLE `churen_manage_help` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(32) DEFAULT NULL COMMENT '帮助标题',
`config` int(11) NOT NULL DEFAULT '1' COMMENT '后台配置',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`video` varchar(800) DEFAULT NULL COMMENT '帮助视频-视频格式MP4,上传大小不能超过4G',
`content` text COMMENT '内容',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_manage_log`
--
DROP TABLE IF EXISTS `churen_manage_log`;
CREATE TABLE `churen_manage_log` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`project` varchar(32) DEFAULT NULL COMMENT '项目名',
`table` varchar(32) DEFAULT NULL COMMENT '项目下的表名',
`info` longtext COMMENT '日志记录',
`admin` int(11) NOT NULL DEFAULT '0' COMMENT '操作人',
`tid` int(11) NOT NULL DEFAULT '0' COMMENT '来源表ID',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_manage_menu`
--
DROP TABLE IF EXISTS `churen_manage_menu`;
CREATE TABLE `churen_manage_menu` (
`id` int(11) UNSIGNED NOT NULL COMMENT '菜单ID',
`name` varchar(50) DEFAULT NULL COMMENT '菜单名称',
`group_id` int(11) NOT NULL DEFAULT '1' COMMENT '选择分组',
`menu_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级菜单',
`menu` varchar(800) DEFAULT NULL COMMENT '上级菜单',
`key` varchar(100) DEFAULT NULL COMMENT '菜单标识-选填,可以为空,用来标识菜单的唯一性',
`link` varchar(150) DEFAULT NULL COMMENT '链接(或路径)-选填,可以为空',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序',
`type` tinyint(1) NOT NULL DEFAULT '2' COMMENT '开启子菜单',
`icon` varchar(100) DEFAULT NULL COMMENT '图标代码-请点此查看图标代码',
`fast` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否快捷菜单',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_manage_menu_group`
--
DROP TABLE IF EXISTS `churen_manage_menu_group`;
CREATE TABLE `churen_manage_menu_group` (
`id` int(11) UNSIGNED NOT NULL COMMENT '分组ID',
`name` varchar(50) DEFAULT NULL COMMENT '分组名称',
`icon` varchar(100) DEFAULT NULL COMMENT '图标代码-请点此查看图标代码',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_manage_notice`
--
DROP TABLE IF EXISTS `churen_manage_notice`;
CREATE TABLE `churen_manage_notice` (
`id` int(11) UNSIGNED NOT NULL COMMENT '公告ID',
`name` varchar(32) DEFAULT NULL COMMENT '公告标题',
`config` int(11) NOT NULL DEFAULT '1' COMMENT '后台配置',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`content` text COMMENT '内容',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_manage_opt`
--
DROP TABLE IF EXISTS `churen_manage_opt`;
CREATE TABLE `churen_manage_opt` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`project` varchar(30) DEFAULT NULL COMMENT '项目',
`table` varchar(30) DEFAULT NULL COMMENT '数据表-请输入表的英文名',
`method` varchar(32) DEFAULT NULL COMMENT '所属方法名',
`col` varchar(500) DEFAULT NULL COMMENT '使用的字段',
`col_index` varchar(500) DEFAULT NULL COMMENT '建立索引的字段',
`version` int(11) NOT NULL DEFAULT '0' COMMENT '版本号',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '执行次数',
`time` varchar(30) DEFAULT NULL COMMENT '执行时间',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否建立索引',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据是否存在',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_manage_role`
--
DROP TABLE IF EXISTS `churen_manage_role`;
CREATE TABLE `churen_manage_role` (
`id` int(11) UNSIGNED NOT NULL COMMENT '角色ID',
`name` varchar(24) DEFAULT NULL COMMENT '角色名',
`role_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级角色',
`self` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否只能管理自己发布的内容-请在需要此项权限的表中增加[数据查询时影响的字段]',
`col_select` varchar(30) DEFAULT NULL COMMENT '数据查询时影响的字段-该项影响数据查询,如果在表中增加该字段,则后台在查询数据时自动查询当前管理员的ID下的数据,多个用逗号隔开,与[是否只能管理自己发布的内容]相关',
`col_insert` varchar(30) DEFAULT NULL COMMENT '数据插入时影响的字段-该项影响数据插入,如果在表中增加该字段,则后台操作时自动为该字段赋值为当前管理员的ID,多个用逗号隔开',
`col_update` varchar(30) DEFAULT NULL COMMENT '数据更新时影响的字段-该项影响数据更新,如果在表中增加该字段,则后台操作时自动为该字段赋值为当前管理员的ID,多个用逗号隔开',
`oper` varchar(24) DEFAULT NULL COMMENT '操作权限',
`auth` text COMMENT '左侧菜单',
`top` text COMMENT '头部菜单',
`auth_data` text COMMENT '数据权限',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_manage_top`
--
DROP TABLE IF EXISTS `churen_manage_top`;
CREATE TABLE `churen_manage_top` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(50) DEFAULT NULL COMMENT '权限名',
`top_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级权限',
`key` varchar(100) DEFAULT NULL COMMENT '权限KEY',
`value` varchar(30) DEFAULT NULL COMMENT '对应的值',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_message_inbox`
--
DROP TABLE IF EXISTS `churen_message_inbox`;
CREATE TABLE `churen_message_inbox` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`oid` int(11) NOT NULL DEFAULT '0' COMMENT '收件ID',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '收件人',
`from_uid` int(11) NOT NULL DEFAULT '0' COMMENT '发件人',
`name` varchar(30) DEFAULT NULL COMMENT '发件标题',
`content` text COMMENT '发件内容',
`project_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '消息类型',
`scope` tinyint(1) NOT NULL DEFAULT '1' COMMENT '消息范围',
`param` varchar(800) DEFAULT NULL COMMENT '传入参数-一般为JSON格式数据',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '已读状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
`link` varchar(30) NOT NULL COMMENT '链接-选填,如有链接,则点击消息跳转至该链接'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_message_outbox`
--
DROP TABLE IF EXISTS `churen_message_outbox`;
CREATE TABLE `churen_message_outbox` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`uid` int(11) NOT NULL DEFAULT '-1' COMMENT '发件人',
`name` varchar(30) DEFAULT NULL COMMENT '发件标题',
`content` text COMMENT '发件内容',
`project_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '消息类型',
`scope` tinyint(1) NOT NULL DEFAULT '1' COMMENT '消息范围',
`param` varchar(800) DEFAULT NULL COMMENT '传入参数-一般为JSON格式数据',
`to_uid` text COMMENT '收件人-直接填写UID,多个用换行隔开,后期升级',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
`link` varchar(30) NOT NULL COMMENT '链接-选填,如有链接,则点击消息跳转至该链接'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_message_project`
--
DROP TABLE IF EXISTS `churen_message_project`;
CREATE TABLE `churen_message_project` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(30) DEFAULT NULL COMMENT '项目名称',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_message_push`
--
DROP TABLE IF EXISTS `churen_message_push`;
CREATE TABLE `churen_message_push` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(30) DEFAULT NULL COMMENT '推送名称',
`type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '推送类型',
`android_appid` varchar(100) DEFAULT NULL COMMENT '安卓推送APPID',
`android_appsecret` varchar(200) DEFAULT NULL COMMENT '安卓推送APPSECRET',
`ios_appid` varchar(100) DEFAULT NULL COMMENT '苹果推送APPID',
`ios_appsecret` varchar(200) DEFAULT NULL COMMENT '苹果推送APPSECRET',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_message_type`
--
DROP TABLE IF EXISTS `churen_message_type`;
CREATE TABLE `churen_message_type` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(30) DEFAULT NULL COMMENT '类型名称-类型ID值为10以下则为系统消息',
`scope` tinyint(1) NOT NULL DEFAULT '1' COMMENT '消息范围',
`type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '同步推送',
`push` int(11) NOT NULL DEFAULT '1' COMMENT '推送方式',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_passport_address`
--
DROP TABLE IF EXISTS `churen_passport_address`;
CREATE TABLE `churen_passport_address` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
`type` tinyint(1) NOT NULL DEFAULT '2' COMMENT '类型',
`contact` varchar(100) DEFAULT NULL COMMENT '联系人',
`sex` tinyint(1) NOT NULL DEFAULT '3' COMMENT '性别',
`mobile` varchar(100) DEFAULT NULL COMMENT '联系电话',
`country` varchar(100) DEFAULT NULL COMMENT '国家',
`province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
`city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
`county` int(11) NOT NULL DEFAULT '0' COMMENT '县区',
`area` varchar(800) DEFAULT NULL COMMENT '地区',
`address` varchar(1000) DEFAULT NULL COMMENT '详细地址',
`house_number` varchar(500) DEFAULT NULL COMMENT '门牌号',
`tag` tinyint(1) NOT NULL DEFAULT '1' COMMENT '标签',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_passport_avatar`
--
DROP TABLE IF EXISTS `churen_passport_avatar`;
CREATE TABLE `churen_passport_avatar` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`sex` tinyint(1) NOT NULL DEFAULT '4' COMMENT '头像性别',
`avatar` varchar(150) DEFAULT NULL COMMENT '头像',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '注册时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_passport_code`
--
DROP TABLE IF EXISTS `churen_passport_code`;
CREATE TABLE `churen_passport_code` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`mobile` varchar(32) DEFAULT NULL COMMENT '手机号',
`code` varchar(32) DEFAULT NULL COMMENT '验证码',
`day` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_passport_invoice`
--
DROP TABLE IF EXISTS `churen_passport_invoice`;
CREATE TABLE `churen_passport_invoice` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
`type` tinyint(1) NOT NULL DEFAULT '2' COMMENT '类型',
`title_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '抬头类型',
`title` varchar(100) DEFAULT NULL COMMENT '抬头名称',
`email` varchar(100) DEFAULT NULL COMMENT '邮箱',
`mobile` varchar(100) DEFAULT NULL COMMENT '手机号',
`number` varchar(100) DEFAULT NULL COMMENT '公司税号',
`phone` varchar(100) DEFAULT NULL COMMENT '公司电话',
`address` varchar(1000) DEFAULT NULL COMMENT '注册地址',
`bank` varchar(100) DEFAULT NULL COMMENT '开户银行',
`bank_number` varchar(100) DEFAULT NULL COMMENT '银行账号',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_passport_profession`
--
DROP TABLE IF EXISTS `churen_passport_profession`;
CREATE TABLE `churen_passport_profession` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(32) DEFAULT NULL COMMENT '职业名称',
`system_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_passport_stat`
--
DROP TABLE IF EXISTS `churen_passport_stat`;
CREATE TABLE `churen_passport_stat` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`day` int(11) NOT NULL DEFAULT '0' COMMENT '日期',
`user` int(11) NOT NULL DEFAULT '0' COMMENT '新增用户量',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_passport_system`
--
DROP TABLE IF EXISTS `churen_passport_system`;
CREATE TABLE `churen_passport_system` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(32) DEFAULT NULL COMMENT '项目名称',
`appid` varchar(150) DEFAULT NULL COMMENT '微信小程序APPID',
`secret` varchar(150) DEFAULT NULL COMMENT '微信小程序SECRET',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_passport_user`
--
DROP TABLE IF EXISTS `churen_passport_user`;
CREATE TABLE `churen_passport_user` (
`id` int(11) UNSIGNED NOT NULL COMMENT '用户ID',
`username` varchar(50) DEFAULT NULL COMMENT '用户名',
`truename` varchar(50) DEFAULT NULL COMMENT '姓名',
`title` varchar(800) DEFAULT NULL COMMENT '头衔',
`mobile` varchar(32) DEFAULT NULL COMMENT '手机号',
`system_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
`profession` int(11) NOT NULL DEFAULT '1' COMMENT '职业',
`wechat` varchar(100) DEFAULT NULL COMMENT '微信号',
`source_type` varchar(100) DEFAULT NULL COMMENT '用户来源-废弃,用SYSTEM_SOURCE替代,暂时保留',
`system_source` tinyint(1) NOT NULL DEFAULT '1' COMMENT '所属平台',
`email` varchar(150) DEFAULT NULL COMMENT '邮箱',
`password` varchar(50) DEFAULT NULL COMMENT '密码',
`avatar_id` int(11) NOT NULL DEFAULT '1' COMMENT '默认头像',
`avatar` varchar(150) DEFAULT NULL COMMENT '头像',
`address_contact` varchar(100) DEFAULT NULL COMMENT '联系人',
`address_mobile` varchar(100) DEFAULT NULL COMMENT '联系电话',
`country` varchar(100) DEFAULT NULL COMMENT '国家-来自微信',
`province` varchar(100) DEFAULT NULL COMMENT '省份-来自微信',
`city` varchar(100) DEFAULT NULL COMMENT '城市-来自微信',
`county` varchar(100) DEFAULT NULL COMMENT '区县-来自微信',
`area` varchar(800) DEFAULT NULL COMMENT '地区-来自微信',
`area_id` varchar(500) DEFAULT NULL COMMENT '地区-用户自己选择',
`address` varchar(1000) DEFAULT NULL COMMENT '详细地址-不带省市区的地址',
`info` varchar(255) DEFAULT NULL COMMENT '介绍-选填,如果想清空该介绍,请输入NULL。',
`score` varchar(50) DEFAULT NULL COMMENT '积分',
`sex` tinyint(1) NOT NULL DEFAULT '3' COMMENT '用户性别',
`level` int(11) NOT NULL DEFAULT '1' COMMENT '用户等级',
`temp` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否临时用户',
`birthday` int(11) NOT NULL DEFAULT '0' COMMENT '生日',
`login_date` int(11) NOT NULL DEFAULT '0' COMMENT '最近登录',
`bind` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否绑定手机',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '注册时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_passport_user_system`
--
DROP TABLE IF EXISTS `churen_passport_user_system`;
CREATE TABLE `churen_passport_user_system` (
`id` int(11) UNSIGNED NOT NULL COMMENT '用户ID',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
`system_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_passport_wechat`
--
DROP TABLE IF EXISTS `churen_passport_wechat`;
CREATE TABLE `churen_passport_wechat` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`system_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
`account_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属账户',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户',
`type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '类型-废弃,用SYSTEM_SOURCE替代,暂时保留',
`system_source` tinyint(1) NOT NULL DEFAULT '1' COMMENT '所属平台',
`openid` varchar(50) DEFAULT NULL COMMENT 'OPENID-微信的唯一用户ID',
`unionid` varchar(50) DEFAULT NULL COMMENT 'UNIONID-微信的唯一用户ID',
`session_key` varchar(50) DEFAULT NULL COMMENT 'SESSION_KEY',
`access_token` varchar(200) DEFAULT NULL COMMENT 'ACCESS_TOKEN',
`refresh_token` varchar(200) DEFAULT NULL COMMENT 'REFRESH_TOKEN',
`expires_in` varchar(100) DEFAULT NULL COMMENT 'EXPIRES_IN',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_pay_account`
--
DROP TABLE IF EXISTS `churen_pay_account`;
CREATE TABLE `churen_pay_account` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(60) DEFAULT NULL COMMENT '账户名称',
`type` varchar(30) DEFAULT NULL COMMENT '支付类型',
`box` int(11) NOT NULL DEFAULT '1' COMMENT '支付环境-沙箱模式为支付时第三方平台不实际收费,测试环境为不拉取第三方支付',
`system_source` tinyint(1) NOT NULL DEFAULT '1' COMMENT '支付平台',
`channel_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属渠道',
`mchid` varchar(150) DEFAULT NULL COMMENT '商户号',
`key` varchar(150) DEFAULT NULL COMMENT '密匙KEY',
`appid` varchar(150) DEFAULT NULL COMMENT 'APPID',
`appsecret` varchar(300) DEFAULT NULL COMMENT 'APPSECRET',
`account` varchar(150) DEFAULT NULL COMMENT '支付账号',
`private_key` text COMMENT '商户私钥-HTTPS://DOC.OPEN.ALIPAY.COM/DOC2/DETAIL.HTM?SPM=A219A.7629140.0.0.NBDXFY&TREEID=58&ARTICLEID=103242&DOCTYPE=1',
`m_public_key` varchar(1000) DEFAULT NULL COMMENT '商户公钥-HTTPS://B.ALIPAY.COM/ORDER/PIDANDKEY.HTM',
`public_key` varchar(1000) DEFAULT NULL COMMENT '支付宝公钥-HTTPS://B.ALIPAY.COM/ORDER/PIDANDKEY.HTM',
`appCertPath` varchar(150) DEFAULT NULL COMMENT '支付宝APPCERTPATH',
`alipayCertPath` varchar(150) DEFAULT NULL COMMENT '支付宝ALIPAYCERTPATH',
`rootCertPath` varchar(150) DEFAULT NULL COMMENT '支付宝ROOTCERTPATH',
`file_cert` varchar(150) DEFAULT NULL COMMENT '证书CERT文件-微信支付需要退款时使用',
`file_key` varchar(150) DEFAULT NULL COMMENT '证书KEY文件-微信支付需要退款时使用',
`timeout` int(11) NOT NULL DEFAULT '600' COMMENT '支付有效期-秒',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_pay_channel`
--
DROP TABLE IF EXISTS `churen_pay_channel`;
CREATE TABLE `churen_pay_channel` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(60) DEFAULT NULL COMMENT '渠道名称',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_pay_order`
--
DROP TABLE IF EXISTS `churen_pay_order`;
CREATE TABLE `churen_pay_order` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`uid` int(11) NOT NULL DEFAULT '1' COMMENT '用户',
`username` varchar(200) DEFAULT NULL COMMENT '用户名称',
`name` varchar(200) DEFAULT NULL COMMENT '订单名称',
`order_id` varchar(200) DEFAULT NULL COMMENT '订单ID',
`type` varchar(30) DEFAULT NULL COMMENT '支付类型',
`product_id` varchar(800) DEFAULT NULL COMMENT '产品ID-可能为多个',
`account_id` int(11) NOT NULL DEFAULT '1' COMMENT '支付账户',
`project_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属项目',
`cash` varchar(11) DEFAULT NULL COMMENT '金额',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '支付状态',
`status_desc` varchar(300) DEFAULT NULL COMMENT '支付状态说明',
`tk_pic` varchar(150) DEFAULT NULL COMMENT '退款截图',
`tk_time` int(11) NOT NULL DEFAULT '0' COMMENT '退款时间',
`tk_admin` int(11) NOT NULL DEFAULT '1' COMMENT '退款审核人',
`tk_desc` varchar(300) DEFAULT NULL COMMENT '退款备注',
`param` text COMMENT '支付信息-用于二次支付',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`pay_time` int(11) NOT NULL DEFAULT '0' COMMENT '付款时间',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间',
`refund_cash` varchar(11) NOT NULL COMMENT '退款金额'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_pay_project`
--
DROP TABLE IF EXISTS `churen_pay_project`;
CREATE TABLE `churen_pay_project` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(60) DEFAULT NULL COMMENT '项目名称',
`key` varchar(150) DEFAULT NULL COMMENT '密匙KEY',
`notify` varchar(500) DEFAULT NULL COMMENT '支付完成回调接口',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_poster_template`
--
DROP TABLE IF EXISTS `churen_poster_template`;
CREATE TABLE `churen_poster_template` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(32) DEFAULT NULL COMMENT '模板名称',
`key` varchar(32) DEFAULT NULL COMMENT '模板标识-调用模板时,使用该标识来获取模板信息,相同的模板标识,将随机抽取一条',
`type` varchar(32) DEFAULT NULL COMMENT '使用的图形库',
`update` tinyint(1) NOT NULL DEFAULT '2' COMMENT '生成规则',
`create` int(11) NOT NULL DEFAULT '2' COMMENT '模板背景图',
`width` varchar(11) DEFAULT NULL COMMENT '背景图宽度',
`height` varchar(11) DEFAULT NULL COMMENT '背景图高度',
`background` varchar(150) DEFAULT NULL COMMENT '模板背景图',
`pic` varchar(150) DEFAULT NULL COMMENT '样例图',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_push_col`
--
DROP TABLE IF EXISTS `churen_push_col`;
CREATE TABLE `churen_push_col` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(32) DEFAULT NULL COMMENT '字段名称',
`ename` varchar(32) DEFAULT NULL COMMENT '字段英文名称-用于前台使用',
`desc` varchar(200) DEFAULT NULL COMMENT '字段描述',
`type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '类型',
`pic` varchar(20) DEFAULT NULL COMMENT '图片尺寸提醒-请直接输入尺寸,如100*100',
`option` varchar(1000) DEFAULT NULL COMMENT '可选项-每行一个选项,多个直接换行',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_push_data`
--
DROP TABLE IF EXISTS `churen_push_data`;
CREATE TABLE `churen_push_data` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`info_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属推送位',
`type` int(11) NOT NULL DEFAULT '-1' COMMENT '功能类型',
`type_id` int(11) NOT NULL DEFAULT '0' COMMENT '关联数据',
`data` text COMMENT '自定义数据项',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_push_func`
--
DROP TABLE IF EXISTS `churen_push_func`;
CREATE TABLE `churen_push_func` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(32) DEFAULT NULL COMMENT '功能名称',
`api` varchar(200) DEFAULT NULL COMMENT '功能接口-可以直接输入HTTP接口地址,也可以使用DEVER接口,如果接口返回一条数据,就为单条,如果是多条,就是列表',
`col` text COMMENT '关联字段',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
`type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '功能类型'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_push_info`
--
DROP TABLE IF EXISTS `churen_push_info`;
CREATE TABLE `churen_push_info` (
`id` int(11) UNSIGNED NOT NULL COMMENT '推送位ID',
`name` varchar(60) DEFAULT NULL COMMENT '推送位标题',
`key` varchar(60) DEFAULT NULL COMMENT '推送位标识',
`num` int(11) NOT NULL DEFAULT '10' COMMENT '数据显示条数-为空或小于0则取默认值10,只对前台有效,当有分页时,则为每页显示的条数',
`func` varchar(300) DEFAULT NULL COMMENT '功能类型',
`col` varchar(300) DEFAULT NULL COMMENT '启用的字段',
`col_pic` varchar(500) DEFAULT NULL COMMENT '图片尺寸提醒-请直接输入提醒的文字即可,如100*100,如果有多个图片字段,请用换行隔开',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_score_action`
--
DROP TABLE IF EXISTS `churen_score_action`;
CREATE TABLE `churen_score_action` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(80) DEFAULT NULL COMMENT '行为名称',
`key` varchar(80) DEFAULT NULL COMMENT '行为标识-用于程序中统计积分总数',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_score_action_log`
--
DROP TABLE IF EXISTS `churen_score_action_log`;
CREATE TABLE `churen_score_action_log` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
`parent_uid` int(11) NOT NULL DEFAULT '0' COMMENT '上级用户',
`action_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属行为',
`type` varchar(32) DEFAULT NULL COMMENT '所属数据源',
`type_id` int(11) NOT NULL DEFAULT '0' COMMENT '数据源ID',
`score_type` int(11) NOT NULL DEFAULT '1' COMMENT '是否增加积分',
`cron_type` int(11) NOT NULL DEFAULT '3' COMMENT '状态',
`score` varchar(30) DEFAULT NULL COMMENT '增加积分数',
`num` varchar(30) DEFAULT NULL COMMENT '增加的积分将乘以该数量',
`mscore` varchar(30) DEFAULT NULL COMMENT '手动增加积分数',
`callback` varchar(800) DEFAULT NULL COMMENT '行为回调方法',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_score_action_log_finish`
--
DROP TABLE IF EXISTS `churen_score_action_log_finish`;
CREATE TABLE `churen_score_action_log_finish` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`log_id` int(11) NOT NULL DEFAULT '0' COMMENT 'ID',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
`parent_uid` int(11) NOT NULL DEFAULT '0' COMMENT '上级用户',
`action_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属行为',
`type` varchar(32) DEFAULT NULL COMMENT '所属数据源',
`type_id` int(11) NOT NULL DEFAULT '0' COMMENT '数据源ID',
`score_type` int(11) NOT NULL DEFAULT '1' COMMENT '是否增加积分',
`cron_type` int(11) NOT NULL DEFAULT '3' COMMENT '状态',
`score` varchar(30) DEFAULT NULL COMMENT '增加积分数',
`num` varchar(30) DEFAULT NULL COMMENT '增加的积分将乘以该数量',
`mscore` varchar(30) DEFAULT NULL COMMENT '手动增加积分数',
`callback` varchar(800) DEFAULT NULL COMMENT '行为回调方法',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_score_config`
--
DROP TABLE IF EXISTS `churen_score_config`;
CREATE TABLE `churen_score_config` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(32) DEFAULT NULL COMMENT '积分名称',
`type` int(11) NOT NULL DEFAULT '2' COMMENT '是否主积分-只能有一个主积分,主积分将作为用户主要积分显示在用户信息中',
`callback_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '回调类型',
`callback_value` varchar(800) DEFAULT NULL COMMENT '回调地址-积分增减成功后,将自动调取回调,会把USER_LOG表的数据传过去,如果代码中设置了回调,该回调将失效',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_score_level`
--
DROP TABLE IF EXISTS `churen_score_level`;
CREATE TABLE `churen_score_level` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(32) DEFAULT NULL COMMENT '等级名称',
`level_type_id` int(11) NOT NULL DEFAULT '1' COMMENT '等级类别',
`score` text COMMENT '积分设置',
`level` int(11) NOT NULL DEFAULT '1' COMMENT '等级数字-请直接输入等级数字,每次升级按照该数字进行匹配,如果设置为1,则为LV1,不允许重复',
`total_type` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否限制当前级别的总数-如果限制,请填写限制的总数,升级的用户数不能超过该数量',
`total` int(11) NOT NULL DEFAULT '0' COMMENT '限制总数',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_score_level_type`
--
DROP TABLE IF EXISTS `churen_score_level_type`;
CREATE TABLE `churen_score_level_type` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(32) DEFAULT NULL COMMENT '类别名称',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '升级方式',
`score` int(11) NOT NULL DEFAULT '1' COMMENT '是否清空积分-选择清空将清空等级里设置的积分',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,排在前面的类别将优先显示,如设置了VIP等级和普通用户等级,VIP等级的排序比普通用户等级大,VIP等级将优先显示',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_score_rule`
--
DROP TABLE IF EXISTS `churen_score_rule`;
CREATE TABLE `churen_score_rule` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`config_id` int(11) NOT NULL DEFAULT '1' COMMENT '积分名称',
`action_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属行为',
`num` varchar(80) DEFAULT NULL COMMENT '增加积分数-如果为负数,则是减少积分',
`upper` int(11) NOT NULL DEFAULT '1' COMMENT '是否有上限限制',
`upper_type` int(11) NOT NULL DEFAULT '1' COMMENT '上限限制类型',
`upper_time` int(11) NOT NULL DEFAULT '12' COMMENT '间隔小时数',
`upper_limit` int(11) NOT NULL DEFAULT '2' COMMENT '上限限制次数-小于1则不限制',
`rebate_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '返利设置',
`rebate_config_id` int(11) NOT NULL DEFAULT '-1' COMMENT '返利积分名称',
`rebate_value` varchar(500) DEFAULT NULL COMMENT '返利积分数-如果是百分比类型,这里如果填的是10,那就是当前获得积分数的10%。直接填写数字就是当前用户的上级(1级)返利,支持多层层级设置,1:20,2:30 就是1级202级30,同时也支持0级',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_score_user`
--
DROP TABLE IF EXISTS `churen_score_user`;
CREATE TABLE `churen_score_user` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
`config_id` int(11) NOT NULL DEFAULT '1' COMMENT '积分名称',
`score` varchar(80) DEFAULT NULL COMMENT '可用数量',
`no_score` varchar(80) DEFAULT NULL COMMENT '冻结数量',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_apply`
--
DROP TABLE IF EXISTS `churen_shop_apply`;
CREATE TABLE `churen_shop_apply` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(100) DEFAULT NULL COMMENT '申请人姓名',
`mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '申请人电话',
`area` varchar(500) DEFAULT NULL COMMENT '所在城市',
`province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
`city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
`lng` varchar(100) DEFAULT NULL COMMENT '经度',
`lat` varchar(100) DEFAULT NULL COMMENT '纬度',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '申请状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_buy_order`
--
DROP TABLE IF EXISTS `churen_shop_buy_order`;
CREATE TABLE `churen_shop_buy_order` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`type` int(11) NOT NULL DEFAULT '0' COMMENT '采购人类型',
`type_id` int(11) NOT NULL DEFAULT '0' COMMENT '采购人',
`source_type` int(11) NOT NULL DEFAULT '0' COMMENT '供货商类型',
`source_id` int(11) NOT NULL DEFAULT '0' COMMENT '供货商',
`name` varchar(800) DEFAULT NULL COMMENT '订单名称',
`parent_order_id` varchar(100) DEFAULT NULL COMMENT '原订单编号',
`order_num` varchar(100) DEFAULT NULL COMMENT '订单编号',
`price` varchar(50) DEFAULT NULL COMMENT '购买价格-销售价',
`p_price` varchar(50) DEFAULT NULL COMMENT '购买价格-出厂价,给厂家看的',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
`refund_cash` varchar(50) DEFAULT NULL COMMENT '退款合计金额-采购价格',
`refund_p_cash` varchar(50) DEFAULT NULL COMMENT '退款合计金额-出厂价格',
`refund_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '申请退款类型',
`info` varchar(300) DEFAULT NULL COMMENT '订单备注',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`fdate` int(11) NOT NULL DEFAULT '0' COMMENT '完成时间',
`operdate` int(11) NOT NULL DEFAULT '0' COMMENT '审核时间',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '下单时间',
`audit` tinyint(1) NOT NULL DEFAULT '2' COMMENT '审核状态',
`audit_desc` varchar(500) NOT NULL COMMENT '未通过原因'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_buy_order_goods`
--
DROP TABLE IF EXISTS `churen_shop_buy_order_goods`;
CREATE TABLE `churen_shop_buy_order_goods` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
`goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
`sku_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'SKU_ID',
`extend` text COMMENT '扩展信息',
`price` varchar(50) DEFAULT NULL COMMENT '单价',
`p_price` varchar(50) DEFAULT NULL COMMENT '单价',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_buy_order_ps`
--
DROP TABLE IF EXISTS `churen_shop_buy_order_ps`;
CREATE TABLE `churen_shop_buy_order_ps` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
`service_id` int(11) NOT NULL DEFAULT '-1' COMMENT '配送服务商',
`order_num` varchar(800) DEFAULT NULL COMMENT '快递单号-多个用换行隔开',
`phy` varchar(200) DEFAULT NULL COMMENT '配货员',
`dby` varchar(200) DEFAULT NULL COMMENT '打包员',
`zl` varchar(200) DEFAULT NULL COMMENT '包裹重量-单位:克',
`tj` varchar(200) DEFAULT NULL COMMENT '包裹体积-单位:立方厘米',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '包裹数量',
`price` varchar(50) DEFAULT NULL COMMENT '快递费用',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
`ydate` int(11) NOT NULL DEFAULT '0' COMMENT '签收时间',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '发货时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_buy_order_refund`
--
DROP TABLE IF EXISTS `churen_shop_buy_order_refund`;
CREATE TABLE `churen_shop_buy_order_refund` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
`order_goods_id` varchar(100) NOT NULL DEFAULT '-1' COMMENT '订单商品表ID',
`cash` varchar(300) DEFAULT NULL COMMENT '退款金额-采购价',
`p_cash` varchar(300) DEFAULT NULL COMMENT '退款金额-出厂价',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '退款数量',
`desc` varchar(300) DEFAULT NULL COMMENT '退款描述',
`pic` varchar(8000) DEFAULT NULL COMMENT '退款图片',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '类型',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
`process` int(11) NOT NULL DEFAULT '1' COMMENT '审核进度',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_buy_stat`
--
DROP TABLE IF EXISTS `churen_shop_buy_stat`;
CREATE TABLE `churen_shop_buy_stat` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`day` int(11) NOT NULL DEFAULT '0' COMMENT '日期',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`area` varchar(500) DEFAULT NULL COMMENT '选择地区',
`province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
`city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
`county` int(11) NOT NULL DEFAULT '0' COMMENT '县区',
`town` int(11) NOT NULL DEFAULT '0' COMMENT '街道',
`order` varchar(100) DEFAULT NULL COMMENT '订货单数',
`goods` varchar(100) DEFAULT NULL COMMENT '商品数量',
`cash` varchar(100) DEFAULT NULL COMMENT '采购金额',
`p_cash` varchar(100) DEFAULT NULL COMMENT '出厂价',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_buy_stat_month`
--
DROP TABLE IF EXISTS `churen_shop_buy_stat_month`;
CREATE TABLE `churen_shop_buy_stat_month` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`month` int(11) NOT NULL DEFAULT '0' COMMENT '账单时间',
`order` varchar(100) DEFAULT NULL COMMENT '订单量',
`goods` varchar(100) DEFAULT NULL COMMENT '商品数',
`cash` varchar(100) DEFAULT NULL COMMENT '销售额',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '是否已对账',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_cart`
--
DROP TABLE IF EXISTS `churen_shop_cart`;
CREATE TABLE `churen_shop_cart` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
`sku_id` int(11) NOT NULL DEFAULT '0' COMMENT 'SKU',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_coupon`
--
DROP TABLE IF EXISTS `churen_shop_coupon`;
CREATE TABLE `churen_shop_coupon` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`coupon` varchar(500) DEFAULT NULL COMMENT '优惠券',
`method` int(11) NOT NULL DEFAULT '0' COMMENT '优惠券属性',
`coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '优惠券',
`city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
`day` int(11) NOT NULL DEFAULT '7' COMMENT '有效期-请选择天数',
`num` int(11) NOT NULL DEFAULT '10' COMMENT '发放数量-数量为0则不限量',
`act_num` int(11) NOT NULL DEFAULT '0' COMMENT '已用数量',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_coupon_act`
--
DROP TABLE IF EXISTS `churen_shop_coupon_act`;
CREATE TABLE `churen_shop_coupon_act` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`act_id` int(11) NOT NULL DEFAULT '0' COMMENT '活动名称',
`shop_coupon_id` varchar(500) DEFAULT NULL COMMENT '勾选参与活动可发放的优惠券',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_coupon_act_1`
--
DROP TABLE IF EXISTS `churen_shop_coupon_act_1`;
CREATE TABLE `churen_shop_coupon_act_1` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`shop_coupon_id` varchar(500) DEFAULT NULL COMMENT '勾选参与活动可发放的优惠券',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_factory`
--
DROP TABLE IF EXISTS `churen_shop_factory`;
CREATE TABLE `churen_shop_factory` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属工厂',
`city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_factory_stat_month`
--
DROP TABLE IF EXISTS `churen_shop_factory_stat_month`;
CREATE TABLE `churen_shop_factory_stat_month` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属工厂',
`month` int(11) NOT NULL DEFAULT '0' COMMENT '账单时间',
`order` varchar(100) DEFAULT NULL COMMENT '订单量',
`goods` varchar(100) DEFAULT NULL COMMENT '商品数',
`cash` varchar(100) DEFAULT NULL COMMENT '销售额',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '是否已对账',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_feedback`
--
DROP TABLE IF EXISTS `churen_shop_feedback`;
CREATE TABLE `churen_shop_feedback` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`mobile` varchar(300) DEFAULT NULL COMMENT '下单手机号',
`truename` varchar(300) DEFAULT NULL COMMENT '联系人姓名',
`content` varchar(800) DEFAULT NULL COMMENT '反馈内容',
`type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否回复',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_focus`
--
DROP TABLE IF EXISTS `churen_shop_focus`;
CREATE TABLE `churen_shop_focus` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(32) DEFAULT NULL COMMENT '名称',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '类型',
`link` varchar(400) DEFAULT NULL COMMENT '链接',
`location` int(11) NOT NULL DEFAULT '1' COMMENT '显示位置',
`pic` varchar(150) DEFAULT NULL COMMENT '图片',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_goods`
--
DROP TABLE IF EXISTS `churen_shop_goods`;
CREATE TABLE `churen_shop_goods` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
`category_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类ID',
`price_type` int(11) NOT NULL DEFAULT '1' COMMENT '价格类型',
`add_num` int(11) NOT NULL DEFAULT '0' COMMENT '新增库存-输入小于0的数字,则为减少库存',
`total_num` int(11) NOT NULL DEFAULT '0' COMMENT '总库存',
`sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`status` tinyint(1) NOT NULL DEFAULT '2' COMMENT '状态'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_goods_sku`
--
DROP TABLE IF EXISTS `churen_shop_goods_sku`;
CREATE TABLE `churen_shop_goods_sku` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
`sku_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'SKU_ID',
`add_num` int(11) NOT NULL DEFAULT '0' COMMENT '新增库存-输入小于0的数字,则为减少库存',
`total_num` int(11) NOT NULL DEFAULT '0' COMMENT '总库存',
`sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '发布时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_info`
--
DROP TABLE IF EXISTS `churen_shop_info`;
CREATE TABLE `churen_shop_info` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
`name` varchar(32) DEFAULT NULL COMMENT '门店名称',
`desc` varchar(800) DEFAULT NULL COMMENT '门店介绍',
`truename` varchar(100) DEFAULT NULL COMMENT '联系人姓名',
`mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '联系人电话',
`area` varchar(500) DEFAULT NULL COMMENT '所在城市',
`province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
`city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
`map` varchar(300) DEFAULT NULL COMMENT '地理位置',
`lng` varchar(100) DEFAULT NULL COMMENT '经度',
`lat` varchar(100) DEFAULT NULL COMMENT '纬度',
`address` varchar(1000) DEFAULT NULL COMMENT '门店地址',
`goods` text COMMENT '请先选择分类-选择分类,之后选择分类下的商品,点击商品名称可以设置库存',
`factory` text COMMENT '分配工厂-请先选择地区,再选择工厂',
`store` text COMMENT '分配仓库-请先选择地区,再选择仓库',
`open` int(11) NOT NULL DEFAULT '1' COMMENT '营业状态',
`method` int(11) NOT NULL DEFAULT '3' COMMENT '门店能力',
`worktime` varchar(100) DEFAULT NULL COMMENT '营业时间-如10:00~22:00,24小时制',
`gotime` varchar(100) DEFAULT NULL COMMENT '外送时间-如10:00~22:00,24小时制',
`license` varchar(150) DEFAULT NULL COMMENT '营业执照',
`license_number` varchar(200) DEFAULT NULL COMMENT '营业执照号码',
`company_name` varchar(200) DEFAULT NULL COMMENT '公司名称',
`idcard_front` varchar(150) DEFAULT NULL COMMENT '身份证正面',
`idcard_back` varchar(150) DEFAULT NULL COMMENT '身份证背面',
`jy_license` varchar(150) DEFAULT NULL COMMENT '经营许可证',
`food_license` varchar(150) DEFAULT NULL COMMENT '食品许可证',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '门店类型-自营为平台店,当没有找到加盟店时,将自动获取平台店',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '合作状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
`county` int(11) NOT NULL COMMENT '县区',
`town` int(11) NOT NULL COMMENT '街道',
`coupon_city` int(11) NOT NULL DEFAULT '2' COMMENT '优惠券是否同城可用',
`act` varchar(500) NOT NULL COMMENT '参与活动',
`pdesc` text NOT NULL COMMENT '配送与自提说明',
`coord_address` varchar(1000) NOT NULL COMMENT '门店坐标地址',
`stat_type` int(11) NOT NULL DEFAULT '1' COMMENT '对账周期-可以选择按月还是按周生成对账单',
`stat_day` int(11) NOT NULL DEFAULT '10' COMMENT '对账单生成日期-这里直接填写对账周期内的第几天即可,如按月对账,这里填写10,就是本月10号生成上一个月的对账单,如按周对账,这里填写2,就是本周二生成上一周的对账单',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`ps_cash` varchar(50) NOT NULL DEFAULT '0' COMMENT '配送费',
`invoice` int(11) NOT NULL DEFAULT '1' COMMENT '是否可以开发票',
`sid` int(11) NOT NULL COMMENT '店铺编号-一般为5位数字,不能重复',
`mid` varchar(50) NOT NULL COMMENT '分账商户号'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_member`
--
DROP TABLE IF EXISTS `churen_shop_member`;
CREATE TABLE `churen_shop_member` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`role_id` varchar(60) DEFAULT NULL COMMENT '角色',
`name` varchar(32) DEFAULT NULL COMMENT '员工姓名',
`mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '员工手机号',
`avatar` varchar(150) DEFAULT NULL COMMENT '头像',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_out_order`
--
DROP TABLE IF EXISTS `churen_shop_out_order`;
CREATE TABLE `churen_shop_out_order` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`type` int(11) NOT NULL DEFAULT '0' COMMENT '拥有人类型',
`type_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`name` varchar(800) DEFAULT NULL COMMENT '订单名称',
`order_num` varchar(100) DEFAULT NULL COMMENT '订单编号',
`price` varchar(50) DEFAULT NULL COMMENT '价格',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '数量',
`info` varchar(300) DEFAULT NULL COMMENT '订单备注',
`member_id` int(11) NOT NULL DEFAULT '0' COMMENT '操作人',
`out_type` int(11) NOT NULL DEFAULT '1' COMMENT '出库类型',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '出库时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_out_order_goods`
--
DROP TABLE IF EXISTS `churen_shop_out_order_goods`;
CREATE TABLE `churen_shop_out_order_goods` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
`goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
`sku_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'SKU_ID',
`price` varchar(50) DEFAULT NULL COMMENT '单价',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_out_type`
--
DROP TABLE IF EXISTS `churen_shop_out_type`;
CREATE TABLE `churen_shop_out_type` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(200) DEFAULT NULL COMMENT '出库类型名称',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '类型',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_print`
--
DROP TABLE IF EXISTS `churen_shop_print`;
CREATE TABLE `churen_shop_print` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`name` varchar(200) DEFAULT NULL COMMENT '设备名称',
`number` varchar(100) DEFAULT NULL COMMENT '打印机编号',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '打印机状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '购买时间',
`key` varchar(100) NOT NULL COMMENT '打印机识别码',
`phonenum` varchar(100) NOT NULL COMMENT '流量卡号码'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_sell_order`
--
DROP TABLE IF EXISTS `churen_shop_sell_order`;
CREATE TABLE `churen_shop_sell_order` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '购买人名称',
`mobile` varchar(300) DEFAULT NULL COMMENT '下单手机号',
`address_id` int(11) NOT NULL DEFAULT '0' COMMENT '送货地址',
`invoice_id` int(11) NOT NULL DEFAULT '0' COMMENT '发票信息',
`name` varchar(800) DEFAULT NULL COMMENT '订单名称',
`order_num` varchar(100) DEFAULT NULL COMMENT '订单号',
`price` varchar(50) DEFAULT NULL COMMENT '支付金额',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
`refund_cash` varchar(50) DEFAULT NULL COMMENT '退款合计金额',
`refund_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '申请退款类型',
`kou_cash` varchar(50) DEFAULT NULL COMMENT '抹零金额',
`card_code_id` int(11) NOT NULL DEFAULT '0' COMMENT '礼品卡ID',
`coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '门店的优惠券ID',
`user_coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户的优惠券ID',
`coupon_cash` varchar(300) DEFAULT NULL COMMENT '优惠金额',
`method` int(11) NOT NULL DEFAULT '1' COMMENT '配送类型',
`code` varchar(100) DEFAULT NULL COMMENT '自提码或者核销码',
`pay_method` int(11) NOT NULL DEFAULT '1' COMMENT '支付类型',
`pay_type` int(11) NOT NULL DEFAULT '1' COMMENT '支付方式',
`info` varchar(300) DEFAULT NULL COMMENT '订单备注',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`fdate` int(11) NOT NULL DEFAULT '0' COMMENT '完成时间',
`operdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '下单时间',
`ps_cash` varchar(50) NOT NULL DEFAULT '0' COMMENT '配送费',
`notice` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否发送通知',
`oprice` varchar(50) NOT NULL DEFAULT '0' COMMENT '原价',
`withdraw` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否提现',
`card_code_card` varchar(800) NOT NULL COMMENT '礼品卡卡号',
`card_code_cash` varchar(50) NOT NULL DEFAULT '0' COMMENT '礼品卡抵扣金额',
`wallet_cash` varchar(50) NOT NULL DEFAULT '0' COMMENT '钱包抵扣金额'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_sell_order_goods`
--
DROP TABLE IF EXISTS `churen_shop_sell_order_goods`;
CREATE TABLE `churen_shop_sell_order_goods` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
`goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
`sku_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'SKU_ID',
`price` varchar(50) DEFAULT NULL COMMENT '单价',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
`coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '门店的优惠券ID',
`user_coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户的优惠券ID',
`coupon_cash` varchar(300) DEFAULT NULL COMMENT '优惠金额',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_sell_order_ps`
--
DROP TABLE IF EXISTS `churen_shop_sell_order_ps`;
CREATE TABLE `churen_shop_sell_order_ps` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
`service_id` int(11) NOT NULL DEFAULT '-1' COMMENT '配送服务商',
`order_num` varchar(800) DEFAULT NULL COMMENT '快递单号-多个用换行隔开',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '包裹数量',
`price` varchar(50) DEFAULT NULL COMMENT '快递费用',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
`qu_date` int(11) NOT NULL DEFAULT '0' COMMENT '取件时间',
`qs_date` int(11) NOT NULL DEFAULT '0' COMMENT '签收时间',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_sell_order_refund`
--
DROP TABLE IF EXISTS `churen_shop_sell_order_refund`;
CREATE TABLE `churen_shop_sell_order_refund` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
`order_goods_id` varchar(300) DEFAULT NULL COMMENT '订单商品表ID',
`cash` varchar(300) DEFAULT NULL COMMENT '退款金额',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '退款数量',
`desc` varchar(300) DEFAULT NULL COMMENT '退款描述',
`pic` varchar(8000) DEFAULT NULL COMMENT '退款图片',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '类型',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
`process` int(11) NOT NULL DEFAULT '1' COMMENT '审核进度',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_sell_stat`
--
DROP TABLE IF EXISTS `churen_shop_sell_stat`;
CREATE TABLE `churen_shop_sell_stat` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`day` int(11) NOT NULL DEFAULT '0' COMMENT '日期',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`area` varchar(500) DEFAULT NULL COMMENT '选择地区',
`province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
`city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
`county` int(11) NOT NULL DEFAULT '0' COMMENT '县区',
`town` int(11) NOT NULL DEFAULT '0' COMMENT '街道',
`order` varchar(100) DEFAULT NULL COMMENT '订单量',
`goods` varchar(100) DEFAULT NULL COMMENT '商品数量',
`cash` varchar(100) DEFAULT NULL COMMENT '营业额',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_sell_stat_month`
--
DROP TABLE IF EXISTS `churen_shop_sell_stat_month`;
CREATE TABLE `churen_shop_sell_stat_month` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`month` int(11) NOT NULL DEFAULT '0' COMMENT '账单时间',
`order` varchar(100) DEFAULT NULL COMMENT '订单量',
`goods` varchar(100) DEFAULT NULL COMMENT '商品数',
`cash` varchar(100) DEFAULT NULL COMMENT '销售额',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '是否已对账',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_service`
--
DROP TABLE IF EXISTS `churen_shop_service`;
CREATE TABLE `churen_shop_service` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(200) DEFAULT NULL COMMENT '配送服务商名称',
`number` varchar(100) DEFAULT NULL COMMENT '服务商代号-用来根据接口获取物流信息',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '服务商类型',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_shop_cart`
--
DROP TABLE IF EXISTS `churen_shop_shop_cart`;
CREATE TABLE `churen_shop_shop_cart` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
`sku_id` int(11) NOT NULL DEFAULT '0' COMMENT 'SKU',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_store`
--
DROP TABLE IF EXISTS `churen_shop_store`;
CREATE TABLE `churen_shop_store` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`store_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属仓库',
`city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_store_stat_month`
--
DROP TABLE IF EXISTS `churen_shop_store_stat_month`;
CREATE TABLE `churen_shop_store_stat_month` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`store_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属仓库',
`month` int(11) NOT NULL DEFAULT '0' COMMENT '账单时间',
`order` varchar(100) DEFAULT NULL COMMENT '订单量',
`goods` varchar(100) DEFAULT NULL COMMENT '商品数',
`cash` varchar(100) DEFAULT NULL COMMENT '销售额',
`type` int(11) NOT NULL DEFAULT '1' COMMENT '是否已对账',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_user_coupon`
--
DROP TABLE IF EXISTS `churen_shop_user_coupon`;
CREATE TABLE `churen_shop_user_coupon` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '优惠券ID',
`shop_coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '优惠券ID',
`city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
`cash` varchar(100) DEFAULT NULL COMMENT '抵扣金额',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '可用状态',
`edate` int(11) NOT NULL DEFAULT '0' COMMENT '失效时间',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '领取时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_shop_user_share`
--
DROP TABLE IF EXISTS `churen_shop_user_share`;
CREATE TABLE `churen_shop_user_share` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`act_id` int(11) NOT NULL DEFAULT '0' COMMENT '活动ID',
`path` varchar(100) DEFAULT NULL COMMENT '分享路径',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '分享状态',
`edate` int(11) NOT NULL DEFAULT '0' COMMENT '失效时间',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '领取时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_sms_code`
--
DROP TABLE IF EXISTS `churen_sms_code`;
CREATE TABLE `churen_sms_code` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`mobile` varchar(32) DEFAULT NULL COMMENT '手机号',
`code` varchar(32) DEFAULT NULL COMMENT '验证码',
`day` int(11) NOT NULL DEFAULT '0' COMMENT '申请天',
`result` text COMMENT '返回记录',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_sms_config`
--
DROP TABLE IF EXISTS `churen_sms_config`;
CREATE TABLE `churen_sms_config` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(32) DEFAULT NULL COMMENT '配置名称',
`key` varchar(32) DEFAULT NULL COMMENT '短信标识-发送短信时,使用该标识来读取短信基本配置',
`sign` varchar(60) DEFAULT NULL COMMENT '短信签名',
`sdk` varchar(32) DEFAULT NULL COMMENT '是否调取SDK',
`appid` varchar(50) DEFAULT NULL COMMENT 'APPID',
`appsecret` varchar(80) DEFAULT NULL COMMENT 'APPSECRET',
`url` varchar(300) DEFAULT NULL COMMENT '接口地址',
`method` varchar(32) DEFAULT NULL COMMENT '请求方式',
`json` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否进行JSON编码',
`header` varchar(500) DEFAULT NULL COMMENT 'HEADER信息-如AUTHORIZATION:APPCODE E7183E44BA8E4CCAA3D690510923D3FA',
`body` varchar(500) DEFAULT NULL COMMENT 'BODY信息-如PARAM={CODE}&PHONE={MOBILE}&SIGN={SIGN}&SKIN={SKIN}',
`code_timeout` int(11) NOT NULL DEFAULT '600' COMMENT '验证码有效期-以秒为单位',
`code_length` int(11) NOT NULL DEFAULT '4' COMMENT '验证码长度',
`code_type` int(11) NOT NULL DEFAULT '4' COMMENT '验证码类型',
`code_total` int(11) NOT NULL DEFAULT '10' COMMENT '一天之内的最大发送次数',
`code_time` int(11) NOT NULL DEFAULT '60' COMMENT '不允许多久之内重复发送-以秒为单位',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_sms_info`
--
DROP TABLE IF EXISTS `churen_sms_info`;
CREATE TABLE `churen_sms_info` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`mobile` varchar(32) DEFAULT NULL COMMENT '手机号',
`param` text COMMENT '请求记录',
`result` text COMMENT '发送记录',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_sms_skin`
--
DROP TABLE IF EXISTS `churen_sms_skin`;
CREATE TABLE `churen_sms_skin` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`config_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属配置',
`name` varchar(32) DEFAULT NULL COMMENT '模板名称',
`key` varchar(32) DEFAULT NULL COMMENT '模板标识',
`content` varchar(800) DEFAULT NULL COMMENT '模板内容-如果短信接口已提供模板,请在此输入模板ID',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_store_goods`
--
DROP TABLE IF EXISTS `churen_store_goods`;
CREATE TABLE `churen_store_goods` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`store_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属仓库',
`goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
`category_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类ID',
`price_type` int(11) NOT NULL DEFAULT '1' COMMENT '价格类型',
`add_num` int(11) NOT NULL DEFAULT '0' COMMENT '新增库存-输入小于0的数字,则为减少库存',
`total_num` int(11) NOT NULL DEFAULT '0' COMMENT '总库存',
`sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`status` tinyint(1) NOT NULL DEFAULT '2' COMMENT '状态'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_store_goods_sku`
--
DROP TABLE IF EXISTS `churen_store_goods_sku`;
CREATE TABLE `churen_store_goods_sku` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`store_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属仓库',
`goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
`sku_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'SKU_ID',
`add_num` int(11) NOT NULL DEFAULT '0' COMMENT '新增库存-输入小于0的数字,则为减少库存',
`total_num` int(11) NOT NULL DEFAULT '0' COMMENT '总库存',
`sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '发布时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_store_info`
--
DROP TABLE IF EXISTS `churen_store_info`;
CREATE TABLE `churen_store_info` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
`name` varchar(32) DEFAULT NULL COMMENT '仓库名称',
`truename` varchar(100) DEFAULT NULL COMMENT '联系人姓名',
`mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '联系人电话',
`area` varchar(500) DEFAULT NULL COMMENT '所在城市',
`province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
`city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
`map` varchar(300) DEFAULT NULL COMMENT '地理位置',
`lng` varchar(100) DEFAULT NULL COMMENT '经度',
`lat` varchar(100) DEFAULT NULL COMMENT '纬度',
`address` varchar(1000) DEFAULT NULL COMMENT '仓库地址',
`goods` text COMMENT '请先选择分类-选择分类,之后选择分类下的商品,点击商品名称可以设置库存',
`license` varchar(150) DEFAULT NULL COMMENT '营业执照',
`license_number` varchar(200) DEFAULT NULL COMMENT '营业执照号码',
`company_name` varchar(200) DEFAULT NULL COMMENT '公司名称',
`idcard_front` varchar(150) DEFAULT NULL COMMENT '身份证正面',
`idcard_back` varchar(150) DEFAULT NULL COMMENT '身份证背面',
`kh_license` varchar(150) DEFAULT NULL COMMENT '开户许可证',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '认证状态',
`reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
`stat_type` int(11) NOT NULL DEFAULT '1' COMMENT '对账周期-可以选择按月还是按周生成对账单',
`stat_day` int(11) NOT NULL DEFAULT '10' COMMENT '对账单生成日期-这里直接填写对账周期内的第几天即可,如按月对账,这里填写10,就是本月10号生成上一个月的对账单,如按周对账,这里填写2,就是本周二生成上一周的对账单'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_store_member`
--
DROP TABLE IF EXISTS `churen_store_member`;
CREATE TABLE `churen_store_member` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
`store_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属仓库',
`role_id` varchar(60) DEFAULT NULL COMMENT '角色',
`name` varchar(32) DEFAULT NULL COMMENT '员工姓名',
`mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '员工手机号',
`avatar` varchar(150) DEFAULT NULL COMMENT '头像',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_store_order`
--
DROP TABLE IF EXISTS `churen_store_order`;
CREATE TABLE `churen_store_order` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`store_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属仓库',
`shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
`shop_order_id` int(11) NOT NULL DEFAULT '0' COMMENT '门店订单ID',
`name` varchar(80) DEFAULT NULL COMMENT '订单名称',
`order_num` varchar(100) DEFAULT NULL COMMENT '订单编号',
`price` varchar(50) DEFAULT NULL COMMENT '购买价格',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
`pay_id` varchar(100) DEFAULT NULL COMMENT '支付订单ID',
`pay_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '支付状态',
`pay_price` varchar(50) DEFAULT NULL COMMENT '付款金额',
`info` varchar(300) DEFAULT NULL COMMENT '订单备注',
`note` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否发送状态提醒-1未发送,2已发送',
`notice` int(11) NOT NULL DEFAULT '0' COMMENT '模板消息提醒次数',
`tk_pic` varchar(150) DEFAULT NULL COMMENT '退款截图',
`tk_time` int(11) NOT NULL DEFAULT '0' COMMENT '退款时间',
`tk_admin` int(11) NOT NULL DEFAULT '1' COMMENT '退款审核人',
`tk_desc` varchar(300) DEFAULT NULL COMMENT '退款备注',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '下单时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_token_log`
--
DROP TABLE IF EXISTS `churen_token_log`;
CREATE TABLE `churen_token_log` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(100) DEFAULT NULL COMMENT '请求名称',
`url` varchar(255) DEFAULT NULL COMMENT '请求地址',
`param` text COMMENT '请求信息',
`result` longtext COMMENT '微信返回信息',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_token_project`
--
DROP TABLE IF EXISTS `churen_token_project`;
CREATE TABLE `churen_token_project` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(60) DEFAULT NULL COMMENT '项目名称',
`type` tinyint(11) NOT NULL DEFAULT '1' COMMENT '项目类型',
`appid` varchar(150) DEFAULT NULL COMMENT 'APPID-一般为微信APPID、阿里的APPKEY',
`secret` varchar(150) DEFAULT NULL COMMENT 'SECRET',
`token` varchar(150) DEFAULT NULL COMMENT '通信TOKEN(注意不是ACCESS_TOKEN)',
`key` varchar(150) DEFAULT NULL COMMENT '消息加解密密钥',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_token_token`
--
DROP TABLE IF EXISTS `churen_token_token`;
CREATE TABLE `churen_token_token` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目',
`value` varchar(255) DEFAULT NULL COMMENT 'TOKEN标识',
`expires` int(11) NOT NULL DEFAULT '0' COMMENT '过期时间',
`mdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_upload_cate`
--
DROP TABLE IF EXISTS `churen_upload_cate`;
CREATE TABLE `churen_upload_cate` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(300) DEFAULT NULL COMMENT '分类名称',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_upload_file`
--
DROP TABLE IF EXISTS `churen_upload_file`;
CREATE TABLE `churen_upload_file` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`name` varchar(32) DEFAULT NULL COMMENT '文件名',
`source_name` varchar(200) DEFAULT NULL COMMENT '原文件名',
`upload` int(11) NOT NULL DEFAULT '1' COMMENT '所属资源配置',
`cate` int(11) NOT NULL DEFAULT '1' COMMENT '所属分类',
`key` varchar(32) DEFAULT NULL COMMENT 'KEY',
`search` varchar(100) DEFAULT NULL COMMENT 'SEARCH',
`value` varchar(800) DEFAULT NULL COMMENT '附加值',
`ext` varchar(24) DEFAULT NULL COMMENT '后缀名',
`file` varchar(150) DEFAULT NULL COMMENT '访问路径',
`yunfile` varchar(150) DEFAULT NULL COMMENT '云端访问路径',
`pic` varchar(150) DEFAULT NULL COMMENT '封面图-一般为视频截图',
`pic_num` int(11) NOT NULL DEFAULT '0' COMMENT '视频截图的秒数',
`width` int(11) NOT NULL DEFAULT '0' COMMENT '宽度',
`height` int(11) NOT NULL DEFAULT '0' COMMENT '高度',
`size` varchar(100) NOT NULL COMMENT '文件大小',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '上传时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_upload_pic_water`
--
DROP TABLE IF EXISTS `churen_upload_pic_water`;
CREATE TABLE `churen_upload_pic_water` (
`id` int(11) UNSIGNED NOT NULL COMMENT '配置ID',
`name` varchar(24) DEFAULT NULL COMMENT '配置名',
`water` varchar(150) DEFAULT NULL COMMENT '水印图',
`water_position` int(1) NOT NULL DEFAULT '1' COMMENT '水印图位置',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
`type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '水印类型'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_upload_upload`
--
DROP TABLE IF EXISTS `churen_upload_upload`;
CREATE TABLE `churen_upload_upload` (
`id` int(11) UNSIGNED NOT NULL COMMENT '配置ID',
`name` varchar(24) DEFAULT NULL COMMENT '配置名',
`width` int(11) NOT NULL DEFAULT '0' COMMENT '限制宽度-仅限图片类资源',
`height` int(11) NOT NULL DEFAULT '0' COMMENT '限制高度-仅限图片类资源',
`size` int(11) NOT NULL DEFAULT '2' COMMENT '限制大小(单位:M)',
`type` varchar(800) DEFAULT NULL COMMENT '限制文件后缀类型-多个用逗号隔开',
`alter` varchar(255) DEFAULT NULL COMMENT '默认的后续操作-T=1&C=1&W=1,其中T代表缩略图,1代表对应的ID,C代表裁剪图,W代表水印图,仅限图片类资源',
`cover` int(1) NOT NULL DEFAULT '1' COMMENT '是否覆盖-将根据上传时的文件名进行文件覆盖操作',
`save_type` int(1) NOT NULL DEFAULT '1' COMMENT '存储位置',
`yun` int(1) NOT NULL DEFAULT '1' COMMENT '选择云端',
`bucket` varchar(800) DEFAULT NULL COMMENT 'BUCKET名称',
`vod_convert` int(1) NOT NULL DEFAULT '1' COMMENT '是否进行视频转码',
`pipeline` varchar(800) DEFAULT NULL COMMENT '队列名称-多个用逗号隔开,将随机使用队列',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
`setwh` int(1) NOT NULL DEFAULT '1' COMMENT '宽高限制-仅限图片类资源'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_upload_yun`
--
DROP TABLE IF EXISTS `churen_upload_yun`;
CREATE TABLE `churen_upload_yun` (
`id` int(11) UNSIGNED NOT NULL COMMENT '配置ID',
`name` varchar(24) DEFAULT NULL COMMENT '配置名',
`type` int(1) NOT NULL DEFAULT '2' COMMENT '存储类别-OSS建议申请STS保证安全性,参考HTTPS://HELP.ALIYUN.COM/DOCUMENT_DETAIL/100624.HTML',
`host` varchar(800) DEFAULT NULL COMMENT '域名',
`appkey` varchar(100) DEFAULT NULL COMMENT 'APPKEY',
`appsecret` varchar(200) DEFAULT NULL COMMENT 'APPSECRET',
`region_id` varchar(200) DEFAULT NULL COMMENT '区域ID-OSS直接填REGIONID即可,如BEIJING,七牛可填写Z1',
`role_arn` varchar(200) DEFAULT NULL COMMENT '权限策略ARN-OSS需要填写,如未填写,系统默认使用非STS形式上传至OSS,不能保证安全性',
`token` varchar(800) DEFAULT NULL COMMENT 'TOKEN',
`token_endtime` int(11) NOT NULL DEFAULT '0' COMMENT 'TOKEN失效时间',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_wechat_applet_msg`
--
DROP TABLE IF EXISTS `churen_wechat_applet_msg`;
CREATE TABLE `churen_wechat_applet_msg` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目ID',
`name` varchar(120) DEFAULT NULL COMMENT '模板标题',
`key` varchar(20) DEFAULT NULL COMMENT '模板消息KEY-通过KEY值搜索数据',
`template_id` varchar(120) DEFAULT NULL COMMENT '模板ID',
`content` varchar(600) DEFAULT NULL COMMENT '模板内容',
`example` varchar(600) DEFAULT NULL COMMENT '模板样例',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_wechat_applet_msg_log`
--
DROP TABLE IF EXISTS `churen_wechat_applet_msg_log`;
CREATE TABLE `churen_wechat_applet_msg_log` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目',
`msg_id` int(11) NOT NULL DEFAULT '0' COMMENT '消息ID',
`touser` varchar(120) DEFAULT NULL COMMENT '接收者',
`path` varchar(200) DEFAULT NULL COMMENT '跳转页面',
`data` text COMMENT '模板内容',
`form_id` varchar(300) DEFAULT NULL COMMENT '表单或者支付ID',
`emphasis_keyword` varchar(200) DEFAULT NULL COMMENT '模板需要放大的关键词',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '发送次数',
`result` text COMMENT '微信返回信息',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_wechat_applet_msg_send`
--
DROP TABLE IF EXISTS `churen_wechat_applet_msg_send`;
CREATE TABLE `churen_wechat_applet_msg_send` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`project_id` varchar(300) DEFAULT NULL COMMENT '选择项目',
`key` varchar(20) DEFAULT NULL COMMENT '模板消息KEY',
`page` varchar(200) DEFAULT NULL COMMENT '页面路径',
`content` text COMMENT '模板内容',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_wechat_applet_subscribe`
--
DROP TABLE IF EXISTS `churen_wechat_applet_subscribe`;
CREATE TABLE `churen_wechat_applet_subscribe` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目ID',
`name` varchar(120) DEFAULT NULL COMMENT '模板标题',
`type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '订阅类型',
`key` varchar(20) DEFAULT NULL COMMENT '模板消息KEY-通过KEY值搜索数据',
`template_id` varchar(120) DEFAULT NULL COMMENT '模板ID',
`content` varchar(600) DEFAULT NULL COMMENT '模板内容',
`example` varchar(600) DEFAULT NULL COMMENT '模板样例',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_wechat_applet_subscribe_log`
--
DROP TABLE IF EXISTS `churen_wechat_applet_subscribe_log`;
CREATE TABLE `churen_wechat_applet_subscribe_log` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目',
`subscribe_id` int(11) NOT NULL DEFAULT '0' COMMENT '消息ID',
`touser` varchar(120) DEFAULT NULL COMMENT '接收者',
`path` varchar(200) DEFAULT NULL COMMENT '跳转页面',
`data` text COMMENT '模板内容',
`miniprogram_state` varchar(300) DEFAULT NULL COMMENT '跳转小程序类型',
`num` int(11) NOT NULL DEFAULT '0' COMMENT '发送次数',
`result` text COMMENT '微信返回信息',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_wechat_applet_subscribe_send`
--
DROP TABLE IF EXISTS `churen_wechat_applet_subscribe_send`;
CREATE TABLE `churen_wechat_applet_subscribe_send` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`project_id` varchar(300) DEFAULT NULL COMMENT '选择项目',
`key` varchar(20) DEFAULT NULL COMMENT '消息KEY',
`page` varchar(200) DEFAULT NULL COMMENT '页面路径',
`miniprogram_state` varchar(300) DEFAULT NULL COMMENT '跳转小程序类型',
`content` text COMMENT '消息内容',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `churen_wechat_applet_total_base`
--
DROP TABLE IF EXISTS `churen_wechat_applet_total_base`;
CREATE TABLE `churen_wechat_applet_total_base` (
`id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
`project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目',
`day` varchar(60) DEFAULT NULL COMMENT '统计日期',
`daynum` int(11) NOT NULL DEFAULT '0' COMMENT '统计日期',
`session_cnt` int(11) NOT NULL DEFAULT '0' COMMENT '打开次数',
`visit_pv` int(11) NOT NULL DEFAULT '0' COMMENT '访问次数',
`visit_uv` int(11) NOT NULL DEFAULT '0' COMMENT '访问人数',
`visit_uv_new` int(11) NOT NULL DEFAULT '0' COMMENT '新用户数',
`stay_time_uv` varchar(30) DEFAULT NULL COMMENT '人均停留时长',
`stay_time_session` varchar(30) DEFAULT NULL COMMENT '次均停留时长',
`visit_depth` varchar(30) DEFAULT NULL COMMENT '平均访问深度',
`visit_total` int(11) NOT NULL DEFAULT '0' COMMENT '累计用户数',
`share_pv` int(11) NOT NULL DEFAULT '0' COMMENT '转发次数',
`share_uv` int(11) NOT NULL DEFAULT '0' COMMENT '转发人数',
`state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
`cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- 转储表的索引
--
--
-- 表的索引 `churen_act_info`
--
ALTER TABLE `churen_act_info`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_area_city`
--
ALTER TABLE `churen_area_city`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_area_county`
--
ALTER TABLE `churen_area_county`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_area_province`
--
ALTER TABLE `churen_area_province`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_area_town`
--
ALTER TABLE `churen_area_town`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_area_village`
--
ALTER TABLE `churen_area_village`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_attr_cate`
--
ALTER TABLE `churen_attr_cate`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_attr_info`
--
ALTER TABLE `churen_attr_info`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_attr_search`
--
ALTER TABLE `churen_attr_search`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_attr_value`
--
ALTER TABLE `churen_attr_value`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_card_add`
--
ALTER TABLE `churen_card_add`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_card_code`
--
ALTER TABLE `churen_card_code`
ADD PRIMARY KEY (`id`),
ADD KEY `card` (`card`),
ADD KEY `uid` (`uid`),
ADD KEY `dh_uid` (`dh_uid`);
--
-- 表的索引 `churen_card_info`
--
ALTER TABLE `churen_card_info`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_card_order`
--
ALTER TABLE `churen_card_order`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_card_order_card`
--
ALTER TABLE `churen_card_order_card`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_card_order_ps`
--
ALTER TABLE `churen_card_order_ps`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_card_type`
--
ALTER TABLE `churen_card_type`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_cash_factory`
--
ALTER TABLE `churen_cash_factory`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_cash_order`
--
ALTER TABLE `churen_cash_order`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_cash_shop`
--
ALTER TABLE `churen_cash_shop`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_cash_store`
--
ALTER TABLE `churen_cash_store`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_category_attr`
--
ALTER TABLE `churen_category_attr`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_category_info`
--
ALTER TABLE `churen_category_info`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_category_project`
--
ALTER TABLE `churen_category_project`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_content_feature`
--
ALTER TABLE `churen_content_feature`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_content_news`
--
ALTER TABLE `churen_content_news`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_factory_goods`
--
ALTER TABLE `churen_factory_goods`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_factory_goods_sku`
--
ALTER TABLE `churen_factory_goods_sku`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_factory_info`
--
ALTER TABLE `churen_factory_info`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_factory_member`
--
ALTER TABLE `churen_factory_member`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_factory_order`
--
ALTER TABLE `churen_factory_order`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_goods_add_card`
--
ALTER TABLE `churen_goods_add_card`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_goods_card`
--
ALTER TABLE `churen_goods_card`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_goods_card_code`
--
ALTER TABLE `churen_goods_card_code`
ADD PRIMARY KEY (`id`),
ADD KEY `card` (`card`,`pwd`);
--
-- 表的索引 `churen_goods_column`
--
ALTER TABLE `churen_goods_column`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_goods_coupon`
--
ALTER TABLE `churen_goods_coupon`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_goods_info`
--
ALTER TABLE `churen_goods_info`
ADD PRIMARY KEY (`id`),
ADD KEY `search` (`category`(191),`top_category_id`,`second_category_id`,`category_id`,`mode`,`area`);
--
-- 表的索引 `churen_goods_info_category`
--
ALTER TABLE `churen_goods_info_category`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_goods_info_column`
--
ALTER TABLE `churen_goods_info_column`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_goods_info_sku`
--
ALTER TABLE `churen_goods_info_sku`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_goods_info_tag`
--
ALTER TABLE `churen_goods_info_tag`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_goods_tag`
--
ALTER TABLE `churen_goods_tag`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_main_cate`
--
ALTER TABLE `churen_main_cate`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_main_config`
--
ALTER TABLE `churen_main_config`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_main_factory_config`
--
ALTER TABLE `churen_main_factory_config`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_main_group`
--
ALTER TABLE `churen_main_group`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_main_help`
--
ALTER TABLE `churen_main_help`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_main_info`
--
ALTER TABLE `churen_main_info`
ADD PRIMARY KEY (`id`),
ADD KEY `i1` (`cate_id`,`reorder`);
--
-- 表的索引 `churen_main_manage_config`
--
ALTER TABLE `churen_main_manage_config`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_main_page`
--
ALTER TABLE `churen_main_page`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_main_sell_config`
--
ALTER TABLE `churen_main_sell_config`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_main_source`
--
ALTER TABLE `churen_main_source`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_main_zhaopin`
--
ALTER TABLE `churen_main_zhaopin`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_manage_admin`
--
ALTER TABLE `churen_manage_admin`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_manage_admin_role`
--
ALTER TABLE `churen_manage_admin_role`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_manage_api`
--
ALTER TABLE `churen_manage_api`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_manage_api_request`
--
ALTER TABLE `churen_manage_api_request`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_manage_api_response`
--
ALTER TABLE `churen_manage_api_response`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_manage_auth`
--
ALTER TABLE `churen_manage_auth`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_manage_config`
--
ALTER TABLE `churen_manage_config`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_manage_cron`
--
ALTER TABLE `churen_manage_cron`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_manage_group`
--
ALTER TABLE `churen_manage_group`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_manage_help`
--
ALTER TABLE `churen_manage_help`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_manage_log`
--
ALTER TABLE `churen_manage_log`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_manage_menu`
--
ALTER TABLE `churen_manage_menu`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_manage_menu_group`
--
ALTER TABLE `churen_manage_menu_group`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_manage_notice`
--
ALTER TABLE `churen_manage_notice`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_manage_opt`
--
ALTER TABLE `churen_manage_opt`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_manage_role`
--
ALTER TABLE `churen_manage_role`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_manage_top`
--
ALTER TABLE `churen_manage_top`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_message_inbox`
--
ALTER TABLE `churen_message_inbox`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_message_outbox`
--
ALTER TABLE `churen_message_outbox`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_message_project`
--
ALTER TABLE `churen_message_project`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_message_push`
--
ALTER TABLE `churen_message_push`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_message_type`
--
ALTER TABLE `churen_message_type`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_passport_address`
--
ALTER TABLE `churen_passport_address`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_passport_avatar`
--
ALTER TABLE `churen_passport_avatar`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_passport_code`
--
ALTER TABLE `churen_passport_code`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_passport_invoice`
--
ALTER TABLE `churen_passport_invoice`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_passport_profession`
--
ALTER TABLE `churen_passport_profession`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_passport_stat`
--
ALTER TABLE `churen_passport_stat`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_passport_system`
--
ALTER TABLE `churen_passport_system`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_passport_user`
--
ALTER TABLE `churen_passport_user`
ADD PRIMARY KEY (`id`),
ADD KEY `mobile` (`mobile`);
--
-- 表的索引 `churen_passport_user_system`
--
ALTER TABLE `churen_passport_user_system`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_passport_wechat`
--
ALTER TABLE `churen_passport_wechat`
ADD PRIMARY KEY (`id`),
ADD KEY `openid` (`uid`,`openid`,`unionid`);
--
-- 表的索引 `churen_pay_account`
--
ALTER TABLE `churen_pay_account`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_pay_channel`
--
ALTER TABLE `churen_pay_channel`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_pay_order`
--
ALTER TABLE `churen_pay_order`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_pay_project`
--
ALTER TABLE `churen_pay_project`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_poster_template`
--
ALTER TABLE `churen_poster_template`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_push_col`
--
ALTER TABLE `churen_push_col`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_push_data`
--
ALTER TABLE `churen_push_data`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_push_func`
--
ALTER TABLE `churen_push_func`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_push_info`
--
ALTER TABLE `churen_push_info`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_score_action`
--
ALTER TABLE `churen_score_action`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_score_action_log`
--
ALTER TABLE `churen_score_action_log`
ADD PRIMARY KEY (`id`),
ADD KEY `search` (`uid`,`action_id`,`cron_type`);
--
-- 表的索引 `churen_score_action_log_finish`
--
ALTER TABLE `churen_score_action_log_finish`
ADD PRIMARY KEY (`id`),
ADD KEY `search` (`uid`,`action_id`,`cron_type`);
--
-- 表的索引 `churen_score_config`
--
ALTER TABLE `churen_score_config`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_score_level`
--
ALTER TABLE `churen_score_level`
ADD PRIMARY KEY (`id`),
ADD KEY `i1` (`level`);
--
-- 表的索引 `churen_score_level_type`
--
ALTER TABLE `churen_score_level_type`
ADD PRIMARY KEY (`id`),
ADD KEY `i1` (`reorder`);
--
-- 表的索引 `churen_score_rule`
--
ALTER TABLE `churen_score_rule`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_score_user`
--
ALTER TABLE `churen_score_user`
ADD PRIMARY KEY (`id`),
ADD KEY `search` (`uid`,`config_id`);
--
-- 表的索引 `churen_shop_apply`
--
ALTER TABLE `churen_shop_apply`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_buy_order`
--
ALTER TABLE `churen_shop_buy_order`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_buy_order_goods`
--
ALTER TABLE `churen_shop_buy_order_goods`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_buy_order_ps`
--
ALTER TABLE `churen_shop_buy_order_ps`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_buy_order_refund`
--
ALTER TABLE `churen_shop_buy_order_refund`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_buy_stat`
--
ALTER TABLE `churen_shop_buy_stat`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_buy_stat_month`
--
ALTER TABLE `churen_shop_buy_stat_month`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_cart`
--
ALTER TABLE `churen_shop_cart`
ADD PRIMARY KEY (`id`),
ADD KEY `i1` (`uid`,`shop_id`,`goods_id`);
--
-- 表的索引 `churen_shop_coupon`
--
ALTER TABLE `churen_shop_coupon`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_coupon_act`
--
ALTER TABLE `churen_shop_coupon_act`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_coupon_act_1`
--
ALTER TABLE `churen_shop_coupon_act_1`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_factory`
--
ALTER TABLE `churen_shop_factory`
ADD PRIMARY KEY (`id`),
ADD KEY `i1` (`shop_id`);
--
-- 表的索引 `churen_shop_factory_stat_month`
--
ALTER TABLE `churen_shop_factory_stat_month`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_feedback`
--
ALTER TABLE `churen_shop_feedback`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_focus`
--
ALTER TABLE `churen_shop_focus`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_goods`
--
ALTER TABLE `churen_shop_goods`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_goods_sku`
--
ALTER TABLE `churen_shop_goods_sku`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_info`
--
ALTER TABLE `churen_shop_info`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_member`
--
ALTER TABLE `churen_shop_member`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_out_order`
--
ALTER TABLE `churen_shop_out_order`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_out_order_goods`
--
ALTER TABLE `churen_shop_out_order_goods`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_out_type`
--
ALTER TABLE `churen_shop_out_type`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_print`
--
ALTER TABLE `churen_shop_print`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_sell_order`
--
ALTER TABLE `churen_shop_sell_order`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_sell_order_goods`
--
ALTER TABLE `churen_shop_sell_order_goods`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_sell_order_ps`
--
ALTER TABLE `churen_shop_sell_order_ps`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_sell_order_refund`
--
ALTER TABLE `churen_shop_sell_order_refund`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_sell_stat`
--
ALTER TABLE `churen_shop_sell_stat`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_sell_stat_month`
--
ALTER TABLE `churen_shop_sell_stat_month`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_service`
--
ALTER TABLE `churen_shop_service`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_shop_cart`
--
ALTER TABLE `churen_shop_shop_cart`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_store`
--
ALTER TABLE `churen_shop_store`
ADD PRIMARY KEY (`id`),
ADD KEY `i1` (`shop_id`);
--
-- 表的索引 `churen_shop_store_stat_month`
--
ALTER TABLE `churen_shop_store_stat_month`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_user_coupon`
--
ALTER TABLE `churen_shop_user_coupon`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_shop_user_share`
--
ALTER TABLE `churen_shop_user_share`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_sms_code`
--
ALTER TABLE `churen_sms_code`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_sms_config`
--
ALTER TABLE `churen_sms_config`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_sms_info`
--
ALTER TABLE `churen_sms_info`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_sms_skin`
--
ALTER TABLE `churen_sms_skin`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_store_goods`
--
ALTER TABLE `churen_store_goods`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_store_goods_sku`
--
ALTER TABLE `churen_store_goods_sku`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_store_info`
--
ALTER TABLE `churen_store_info`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_store_member`
--
ALTER TABLE `churen_store_member`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_store_order`
--
ALTER TABLE `churen_store_order`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_token_log`
--
ALTER TABLE `churen_token_log`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_token_project`
--
ALTER TABLE `churen_token_project`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_token_token`
--
ALTER TABLE `churen_token_token`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_upload_cate`
--
ALTER TABLE `churen_upload_cate`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_upload_file`
--
ALTER TABLE `churen_upload_file`
ADD PRIMARY KEY (`id`),
ADD KEY `search` (`key`,`cate`,`search`),
ADD KEY `name` (`name`,`upload`);
--
-- 表的索引 `churen_upload_pic_water`
--
ALTER TABLE `churen_upload_pic_water`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_upload_upload`
--
ALTER TABLE `churen_upload_upload`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_upload_yun`
--
ALTER TABLE `churen_upload_yun`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_wechat_applet_msg`
--
ALTER TABLE `churen_wechat_applet_msg`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_wechat_applet_msg_log`
--
ALTER TABLE `churen_wechat_applet_msg_log`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_wechat_applet_msg_send`
--
ALTER TABLE `churen_wechat_applet_msg_send`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_wechat_applet_subscribe`
--
ALTER TABLE `churen_wechat_applet_subscribe`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_wechat_applet_subscribe_log`
--
ALTER TABLE `churen_wechat_applet_subscribe_log`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_wechat_applet_subscribe_send`
--
ALTER TABLE `churen_wechat_applet_subscribe_send`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `churen_wechat_applet_total_base`
--
ALTER TABLE `churen_wechat_applet_total_base`
ADD PRIMARY KEY (`id`);
--
-- 在导出的表使用AUTO_INCREMENT
--
--
-- 使用表AUTO_INCREMENT `churen_act_info`
--
ALTER TABLE `churen_act_info`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_area_city`
--
ALTER TABLE `churen_area_city`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_area_county`
--
ALTER TABLE `churen_area_county`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_area_province`
--
ALTER TABLE `churen_area_province`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_area_town`
--
ALTER TABLE `churen_area_town`
MODIFY `id` bigint(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_area_village`
--
ALTER TABLE `churen_area_village`
MODIFY `id` bigint(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_attr_cate`
--
ALTER TABLE `churen_attr_cate`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_attr_info`
--
ALTER TABLE `churen_attr_info`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_attr_search`
--
ALTER TABLE `churen_attr_search`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_attr_value`
--
ALTER TABLE `churen_attr_value`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_card_add`
--
ALTER TABLE `churen_card_add`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '系统ID';
--
-- 使用表AUTO_INCREMENT `churen_card_code`
--
ALTER TABLE `churen_card_code`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_card_info`
--
ALTER TABLE `churen_card_info`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_card_order`
--
ALTER TABLE `churen_card_order`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_card_order_card`
--
ALTER TABLE `churen_card_order_card`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_card_order_ps`
--
ALTER TABLE `churen_card_order_ps`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_card_type`
--
ALTER TABLE `churen_card_type`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_cash_factory`
--
ALTER TABLE `churen_cash_factory`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_cash_order`
--
ALTER TABLE `churen_cash_order`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_cash_shop`
--
ALTER TABLE `churen_cash_shop`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_cash_store`
--
ALTER TABLE `churen_cash_store`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_category_attr`
--
ALTER TABLE `churen_category_attr`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_category_info`
--
ALTER TABLE `churen_category_info`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_category_project`
--
ALTER TABLE `churen_category_project`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_content_feature`
--
ALTER TABLE `churen_content_feature`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_content_news`
--
ALTER TABLE `churen_content_news`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_factory_goods`
--
ALTER TABLE `churen_factory_goods`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_factory_goods_sku`
--
ALTER TABLE `churen_factory_goods_sku`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_factory_info`
--
ALTER TABLE `churen_factory_info`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_factory_member`
--
ALTER TABLE `churen_factory_member`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_factory_order`
--
ALTER TABLE `churen_factory_order`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_goods_add_card`
--
ALTER TABLE `churen_goods_add_card`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '系统ID';
--
-- 使用表AUTO_INCREMENT `churen_goods_card`
--
ALTER TABLE `churen_goods_card`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_goods_card_code`
--
ALTER TABLE `churen_goods_card_code`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_goods_column`
--
ALTER TABLE `churen_goods_column`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_goods_coupon`
--
ALTER TABLE `churen_goods_coupon`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_goods_info`
--
ALTER TABLE `churen_goods_info`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_goods_info_category`
--
ALTER TABLE `churen_goods_info_category`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_goods_info_column`
--
ALTER TABLE `churen_goods_info_column`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_goods_info_sku`
--
ALTER TABLE `churen_goods_info_sku`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_goods_info_tag`
--
ALTER TABLE `churen_goods_info_tag`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_goods_tag`
--
ALTER TABLE `churen_goods_tag`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_main_cate`
--
ALTER TABLE `churen_main_cate`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_main_config`
--
ALTER TABLE `churen_main_config`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '平台ID';
--
-- 使用表AUTO_INCREMENT `churen_main_factory_config`
--
ALTER TABLE `churen_main_factory_config`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '平台ID';
--
-- 使用表AUTO_INCREMENT `churen_main_group`
--
ALTER TABLE `churen_main_group`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_main_help`
--
ALTER TABLE `churen_main_help`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_main_info`
--
ALTER TABLE `churen_main_info`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_main_manage_config`
--
ALTER TABLE `churen_main_manage_config`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '平台ID';
--
-- 使用表AUTO_INCREMENT `churen_main_page`
--
ALTER TABLE `churen_main_page`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_main_sell_config`
--
ALTER TABLE `churen_main_sell_config`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '平台ID';
--
-- 使用表AUTO_INCREMENT `churen_main_source`
--
ALTER TABLE `churen_main_source`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_main_zhaopin`
--
ALTER TABLE `churen_main_zhaopin`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_manage_admin`
--
ALTER TABLE `churen_manage_admin`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '管理员ID';
--
-- 使用表AUTO_INCREMENT `churen_manage_admin_role`
--
ALTER TABLE `churen_manage_admin_role`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_manage_api`
--
ALTER TABLE `churen_manage_api`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_manage_api_request`
--
ALTER TABLE `churen_manage_api_request`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_manage_api_response`
--
ALTER TABLE `churen_manage_api_response`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_manage_auth`
--
ALTER TABLE `churen_manage_auth`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_manage_config`
--
ALTER TABLE `churen_manage_config`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '配置ID';
--
-- 使用表AUTO_INCREMENT `churen_manage_cron`
--
ALTER TABLE `churen_manage_cron`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_manage_group`
--
ALTER TABLE `churen_manage_group`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '组ID';
--
-- 使用表AUTO_INCREMENT `churen_manage_help`
--
ALTER TABLE `churen_manage_help`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_manage_log`
--
ALTER TABLE `churen_manage_log`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_manage_menu`
--
ALTER TABLE `churen_manage_menu`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '菜单ID';
--
-- 使用表AUTO_INCREMENT `churen_manage_menu_group`
--
ALTER TABLE `churen_manage_menu_group`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '分组ID';
--
-- 使用表AUTO_INCREMENT `churen_manage_notice`
--
ALTER TABLE `churen_manage_notice`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '公告ID';
--
-- 使用表AUTO_INCREMENT `churen_manage_opt`
--
ALTER TABLE `churen_manage_opt`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_manage_role`
--
ALTER TABLE `churen_manage_role`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '角色ID';
--
-- 使用表AUTO_INCREMENT `churen_manage_top`
--
ALTER TABLE `churen_manage_top`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_message_inbox`
--
ALTER TABLE `churen_message_inbox`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_message_outbox`
--
ALTER TABLE `churen_message_outbox`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_message_project`
--
ALTER TABLE `churen_message_project`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_message_push`
--
ALTER TABLE `churen_message_push`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_message_type`
--
ALTER TABLE `churen_message_type`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_passport_address`
--
ALTER TABLE `churen_passport_address`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_passport_avatar`
--
ALTER TABLE `churen_passport_avatar`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_passport_code`
--
ALTER TABLE `churen_passport_code`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_passport_invoice`
--
ALTER TABLE `churen_passport_invoice`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_passport_profession`
--
ALTER TABLE `churen_passport_profession`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_passport_stat`
--
ALTER TABLE `churen_passport_stat`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_passport_system`
--
ALTER TABLE `churen_passport_system`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_passport_user`
--
ALTER TABLE `churen_passport_user`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '用户ID';
--
-- 使用表AUTO_INCREMENT `churen_passport_user_system`
--
ALTER TABLE `churen_passport_user_system`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '用户ID';
--
-- 使用表AUTO_INCREMENT `churen_passport_wechat`
--
ALTER TABLE `churen_passport_wechat`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_pay_account`
--
ALTER TABLE `churen_pay_account`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_pay_channel`
--
ALTER TABLE `churen_pay_channel`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_pay_order`
--
ALTER TABLE `churen_pay_order`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_pay_project`
--
ALTER TABLE `churen_pay_project`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_poster_template`
--
ALTER TABLE `churen_poster_template`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_push_col`
--
ALTER TABLE `churen_push_col`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_push_data`
--
ALTER TABLE `churen_push_data`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_push_func`
--
ALTER TABLE `churen_push_func`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_push_info`
--
ALTER TABLE `churen_push_info`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '推送位ID';
--
-- 使用表AUTO_INCREMENT `churen_score_action`
--
ALTER TABLE `churen_score_action`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_score_action_log`
--
ALTER TABLE `churen_score_action_log`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_score_action_log_finish`
--
ALTER TABLE `churen_score_action_log_finish`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_score_config`
--
ALTER TABLE `churen_score_config`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_score_level`
--
ALTER TABLE `churen_score_level`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_score_level_type`
--
ALTER TABLE `churen_score_level_type`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_score_rule`
--
ALTER TABLE `churen_score_rule`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_score_user`
--
ALTER TABLE `churen_score_user`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_apply`
--
ALTER TABLE `churen_shop_apply`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_buy_order`
--
ALTER TABLE `churen_shop_buy_order`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_buy_order_goods`
--
ALTER TABLE `churen_shop_buy_order_goods`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_buy_order_ps`
--
ALTER TABLE `churen_shop_buy_order_ps`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_buy_order_refund`
--
ALTER TABLE `churen_shop_buy_order_refund`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_buy_stat`
--
ALTER TABLE `churen_shop_buy_stat`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_buy_stat_month`
--
ALTER TABLE `churen_shop_buy_stat_month`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_cart`
--
ALTER TABLE `churen_shop_cart`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_coupon`
--
ALTER TABLE `churen_shop_coupon`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_coupon_act`
--
ALTER TABLE `churen_shop_coupon_act`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_coupon_act_1`
--
ALTER TABLE `churen_shop_coupon_act_1`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_factory`
--
ALTER TABLE `churen_shop_factory`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_factory_stat_month`
--
ALTER TABLE `churen_shop_factory_stat_month`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_feedback`
--
ALTER TABLE `churen_shop_feedback`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_focus`
--
ALTER TABLE `churen_shop_focus`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_goods`
--
ALTER TABLE `churen_shop_goods`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_goods_sku`
--
ALTER TABLE `churen_shop_goods_sku`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_info`
--
ALTER TABLE `churen_shop_info`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_member`
--
ALTER TABLE `churen_shop_member`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_out_order`
--
ALTER TABLE `churen_shop_out_order`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_out_order_goods`
--
ALTER TABLE `churen_shop_out_order_goods`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_out_type`
--
ALTER TABLE `churen_shop_out_type`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_print`
--
ALTER TABLE `churen_shop_print`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_sell_order`
--
ALTER TABLE `churen_shop_sell_order`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_sell_order_goods`
--
ALTER TABLE `churen_shop_sell_order_goods`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_sell_order_ps`
--
ALTER TABLE `churen_shop_sell_order_ps`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_sell_order_refund`
--
ALTER TABLE `churen_shop_sell_order_refund`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_sell_stat`
--
ALTER TABLE `churen_shop_sell_stat`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_sell_stat_month`
--
ALTER TABLE `churen_shop_sell_stat_month`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_service`
--
ALTER TABLE `churen_shop_service`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_shop_cart`
--
ALTER TABLE `churen_shop_shop_cart`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_store`
--
ALTER TABLE `churen_shop_store`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_store_stat_month`
--
ALTER TABLE `churen_shop_store_stat_month`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_user_coupon`
--
ALTER TABLE `churen_shop_user_coupon`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_shop_user_share`
--
ALTER TABLE `churen_shop_user_share`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_sms_code`
--
ALTER TABLE `churen_sms_code`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_sms_config`
--
ALTER TABLE `churen_sms_config`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_sms_info`
--
ALTER TABLE `churen_sms_info`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_sms_skin`
--
ALTER TABLE `churen_sms_skin`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_store_goods`
--
ALTER TABLE `churen_store_goods`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_store_goods_sku`
--
ALTER TABLE `churen_store_goods_sku`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_store_info`
--
ALTER TABLE `churen_store_info`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_store_member`
--
ALTER TABLE `churen_store_member`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_store_order`
--
ALTER TABLE `churen_store_order`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_token_log`
--
ALTER TABLE `churen_token_log`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_token_project`
--
ALTER TABLE `churen_token_project`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_token_token`
--
ALTER TABLE `churen_token_token`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_upload_cate`
--
ALTER TABLE `churen_upload_cate`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_upload_file`
--
ALTER TABLE `churen_upload_file`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_upload_pic_water`
--
ALTER TABLE `churen_upload_pic_water`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '配置ID';
--
-- 使用表AUTO_INCREMENT `churen_upload_upload`
--
ALTER TABLE `churen_upload_upload`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '配置ID';
--
-- 使用表AUTO_INCREMENT `churen_upload_yun`
--
ALTER TABLE `churen_upload_yun`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '配置ID';
--
-- 使用表AUTO_INCREMENT `churen_wechat_applet_msg`
--
ALTER TABLE `churen_wechat_applet_msg`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_wechat_applet_msg_log`
--
ALTER TABLE `churen_wechat_applet_msg_log`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_wechat_applet_msg_send`
--
ALTER TABLE `churen_wechat_applet_msg_send`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_wechat_applet_subscribe`
--
ALTER TABLE `churen_wechat_applet_subscribe`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_wechat_applet_subscribe_log`
--
ALTER TABLE `churen_wechat_applet_subscribe_log`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_wechat_applet_subscribe_send`
--
ALTER TABLE `churen_wechat_applet_subscribe_send`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
--
-- 使用表AUTO_INCREMENT `churen_wechat_applet_total_base`
--
ALTER TABLE `churen_wechat_applet_total_base`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;