最新公告
  • 欢迎您光临三优资源网,本站秉承服务宗旨 履行“站长”责任,销售只是起点 服务永无止境!立即加入我们
  • crmeb_java 数据字典

    文章管理表

    CREATE TABLE `eb_article` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文章管理ID',
      `cid` varchar(255) NOT NULL DEFAULT '' COMMENT '分类id',
      `title` varchar(255) NOT NULL COMMENT '文章标题',
      `author` varchar(255) DEFAULT '' COMMENT '文章作者',
      `image_input` varchar(255) NOT NULL COMMENT '文章图片',
      `synopsis` varchar(255) DEFAULT '' COMMENT '文章简介',
      `share_title` varchar(255) DEFAULT '' COMMENT '文章分享标题',
      `share_synopsis` varchar(255) DEFAULT '' COMMENT '文章分享简介',
      `visit` varchar(255) DEFAULT '' COMMENT '浏览次数',
      `sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序',
      `url` varchar(255) DEFAULT '' COMMENT '原文链接',
      `media_id` varchar(100) DEFAULT NULL COMMENT '微信素材id',
      `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
      `hide` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否隐藏',
      `admin_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '管理员id',
      `mer_id` int(10) unsigned DEFAULT '0' COMMENT '商户id',
      `product_id` int(10) NOT NULL DEFAULT '0' COMMENT '商品关联id',
      `is_hot` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否热门(小程序)',
      `is_banner` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否轮播图(小程序)',
      `content` text NOT NULL COMMENT '文章内容',
      `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`) USING BTREE
    ) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8 COMMENT='文章管理表';
    

    分类表

    CREATE TABLE `eb_category` (
      `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
      `pid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '父级ID',
      `path` varchar(255) NOT NULL DEFAULT '/0/' COMMENT '路径',
      `name` varchar(50) NOT NULL COMMENT '分类名称',
      `type` smallint(2) DEFAULT '1' COMMENT '类型,1 产品分类,2 附件分类,3 文章分类, 4 设置分类, 5 菜单分类',
      `url` varchar(255) DEFAULT '' COMMENT '地址',
      `extra` text COMMENT '扩展字段 Jsos格式',
      `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态, 1正常,0失效',
      `sort` int(5) NOT NULL DEFAULT '99999' COMMENT '排序',
      `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`) USING BTREE,
      KEY `status+pid` (`pid`,`status`),
      KEY `id+status+url` (`path`)
    ) ENGINE=InnoDB AUTO_INCREMENT=305 DEFAULT CHARSET=utf8 COMMENT='分类表';
    

    快递公司表

    CREATE TABLE `eb_express` (
      `id` mediumint(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '快递公司id',
      `code` varchar(50) NOT NULL DEFAULT '' COMMENT '快递公司简称',
      `name` varchar(50) NOT NULL DEFAULT '' COMMENT '快递公司全称',
      `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
      `is_show` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否显示',
      PRIMARY KEY (`id`) USING BTREE,
      UNIQUE KEY `code` (`code`) USING BTREE,
      KEY `is_show` (`is_show`) USING BTREE
    ) ENGINE=InnoDB AUTO_INCREMENT=426 DEFAULT CHARSET=utf8 COMMENT='快递公司表';
    

    运费模板

    CREATE TABLE `eb_shipping_templates` (
      `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '编号',
      `name` varchar(255) NOT NULL COMMENT '模板名称',
      `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '计费方式',
      `appoint` tinyint(1) NOT NULL DEFAULT '0' COMMENT '指定包邮',
      `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
      `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='运费模板';
    

    运费模板包邮

    CREATE TABLE `eb_shipping_templates_free` (
      `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '编号',
      `temp_id` int(11) NOT NULL DEFAULT '0' COMMENT '模板ID',
      `city_id` int(11) NOT NULL DEFAULT '0' COMMENT '城市ID',
      `title` text COMMENT '描述',
      `number` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '包邮件数',
      `price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '包邮金额',
      `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '计费方式',
      `uniqid` varchar(32) NOT NULL DEFAULT '' COMMENT '分组唯一值',
      `status` tinyint(1) DEFAULT '0' COMMENT '是否无效',
      `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='运费模板包邮';
    

    运费模板指定区域费用

    CREATE TABLE `eb_shipping_templates_region` (
      `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '编号',
      `temp_id` int(11) NOT NULL DEFAULT '0' COMMENT '模板ID',
      `city_id` int(11) NOT NULL DEFAULT '0' COMMENT '城市ID',
      `title` text COMMENT '描述',
      `first` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '首件',
      `first_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '首件运费',
      `renewal` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '续件',
      `renewal_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '续件运费',
      `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '计费方式',
      `uniqid` varchar(32) NOT NULL DEFAULT '' COMMENT '分组唯一值',
      `status` tinyint(1) DEFAULT '0' COMMENT '是否无效',
      `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='运费模板指定区域费用';
    

    短信发送记录表

    CREATE TABLE `eb_sms_record` (
      `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '短信发送记录编号',
      `uid` varchar(255) NOT NULL COMMENT '短信平台账号',
      `phone` char(11) NOT NULL COMMENT '接受短信的手机号',
      `content` text NOT NULL COMMENT '短信内容',
      `add_ip` varchar(30) DEFAULT NULL COMMENT '添加记录ip',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `template` varchar(255) NOT NULL COMMENT '短信模板ID',
      `resultcode` int(6) unsigned NOT NULL COMMENT '状态码 100=成功,130=失败,131=空号,132=停机,133=关机,134=无状态',
      `record_id` int(11) unsigned NOT NULL COMMENT '发送记录id',
      `memo` text COMMENT '短信平台返回信息',
      PRIMARY KEY (`id`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='短信发送记录表';
    

    购物车表

    CREATE TABLE `eb_store_cart` (
      `id` bigint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '购物车表ID',
      `uid` int(10) unsigned NOT NULL COMMENT '用户ID',
      `type` varchar(32) NOT NULL COMMENT '类型',
      `product_id` int(10) unsigned NOT NULL COMMENT '商品ID',
      `product_attr_unique` varchar(16) NOT NULL DEFAULT '' COMMENT '商品属性',
      `cart_num` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '商品数量',
      `is_new` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否为立即购买',
      `combination_id` int(11) unsigned DEFAULT '0' COMMENT '拼团id',
      `seckill_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '秒杀商品ID',
      `bargain_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '砍价id',
      `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',
      `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '已添加的商品是否有效状态',
      PRIMARY KEY (`id`) USING BTREE,
      KEY `user_id` (`uid`) USING BTREE,
      KEY `goods_id` (`product_id`) USING BTREE,
      KEY `uid` (`uid`) USING BTREE,
      KEY `uid_2` (`uid`) USING BTREE,
      KEY `uid_3` (`uid`,`is_new`) USING BTREE,
      KEY `type` (`type`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='购物车表';
    

    优惠券表

    CREATE TABLE `eb_store_coupon` (
      `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '优惠券表ID',
      `name` varchar(64) NOT NULL DEFAULT '' COMMENT '优惠券名称',
      `money` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '兑换的优惠券面值',
      `is_limited` tinyint(1) DEFAULT '0' COMMENT '是否限量, 默认0 不限量, 1限量',
      `total` int(11) NOT NULL DEFAULT '0' COMMENT '发放总数',
      `last_total` int(11) DEFAULT '0' COMMENT '剩余数量',
      `use_type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '使用类型 1 全场通用, 2 商品券, 3 品类券',
      `primary_key` varchar(255) NOT NULL DEFAULT '' COMMENT '所属商品id / 分类id',
      `min_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '最低消费,0代表不限制',
      `receive_start_time` timestamp NOT NULL COMMENT '可领取开始时间',
      `receive_end_time` timestamp NULL DEFAULT NULL COMMENT '可领取结束时间',
      `is_fixed_time` tinyint(1) DEFAULT '0' COMMENT '是否固定使用时间, 默认0 否, 1是',
      `use_start_time` timestamp NULL DEFAULT NULL COMMENT '可使用时间范围 开始时间',
      `use_end_time` timestamp NULL DEFAULT NULL COMMENT '可使用时间范围 结束时间',
      `day` int(4) DEFAULT '0' COMMENT '天数',
      `type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '优惠券类型 1 手动领取, 2 新人券, 3 赠送券',
      `sort` int(11) unsigned NOT NULL DEFAULT '1' COMMENT '排序',
      `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态(0:关闭,1:开启)',
      `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 状态(0:否,1:是)',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`) USING BTREE,
      KEY `state` (`status`) USING BTREE,
      KEY `is_del` (`is_del`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='优惠券表';
    

    优惠券记录表

    CREATE TABLE `eb_store_coupon_user` (
      `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
      `coupon_id` int(10) NOT NULL COMMENT '优惠券发布id',
      `cid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '兑换的项目id',
      `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '领取人id',
      `name` varchar(32) NOT NULL DEFAULT '' COMMENT '优惠券名称',
      `money` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '优惠券的面值',
      `min_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '最低消费多少金额可用优惠券',
      `type` varchar(32) NOT NULL DEFAULT 'send' COMMENT '获取方式,send后台发放, 用户领取 get',
      `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态(0:未使用,1:已使用, 2:已失效)',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      `start_time` timestamp NULL DEFAULT NULL COMMENT '开始使用时间',
      `end_time` timestamp NULL DEFAULT NULL COMMENT '过期时间',
      `use_time` timestamp NULL DEFAULT NULL COMMENT '使用时间',
      `use_type` tinyint(1) DEFAULT '1' COMMENT '使用类型 1 全场通用, 2 商品券, 3 品类券',
      `primary_key` varchar(255) DEFAULT NULL COMMENT '所属商品id / 分类id',
      PRIMARY KEY (`id`) USING BTREE,
      KEY `cid` (`cid`) USING BTREE,
      KEY `uid` (`uid`) USING BTREE,
      KEY `end_time` (`end_time`) USING BTREE,
      KEY `status` (`status`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='优惠券记录表';
    

    订单表

    CREATE TABLE `eb_store_order` (
      `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '订单ID',
      `order_id` varchar(32) NOT NULL COMMENT '订单号',
      `uid` int(11) unsigned NOT NULL COMMENT '用户id',
      `real_name` varchar(32) NOT NULL COMMENT '用户姓名',
      `user_phone` varchar(18) NOT NULL COMMENT '用户电话',
      `user_address` varchar(100) NOT NULL COMMENT '详细地址',
      `freight_price` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '运费金额',
      `total_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '订单商品总数',
      `total_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '订单总价',
      `total_postage` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '邮费',
      `pay_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '实际支付金额',
      `pay_postage` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '支付邮费',
      `deduction_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '抵扣金额',
      `coupon_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '优惠券id',
      `coupon_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '优惠券金额',
      `paid` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '支付状态',
      `pay_time` timestamp NULL DEFAULT NULL COMMENT '支付时间',
      `pay_type` varchar(32) NOT NULL COMMENT '支付方式',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '订单状态(-1 : 申请退款 -2 : 退货成功 0:待发货;1:待收货;2:已收货,待评价;3:已完成;)',
      `refund_status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0 未退款 1 申请中 2 已退款',
      `refund_reason_wap_img` varchar(255) DEFAULT NULL COMMENT '退款图片',
      `refund_reason_wap_explain` varchar(255) DEFAULT NULL COMMENT '退款用户说明',
      `refund_reason_wap` varchar(255) DEFAULT NULL COMMENT '前台退款原因',
      `refund_reason` varchar(255) DEFAULT NULL COMMENT '不退款的理由',
      `refund_reason_time` timestamp NULL DEFAULT NULL COMMENT '退款时间',
      `refund_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '退款金额',
      `delivery_name` varchar(64) DEFAULT NULL COMMENT '快递名称/送货人姓名',
      `delivery_type` varchar(32) DEFAULT NULL COMMENT '发货类型',
      `delivery_id` varchar(64) DEFAULT NULL COMMENT '快递单号/手机号',
      `gain_integral` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '消费赚取积分',
      `use_integral` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '使用积分',
      `back_integral` decimal(8,2) unsigned DEFAULT NULL COMMENT '给用户退了多少积分',
      `mark` varchar(512) NOT NULL COMMENT '备注',
      `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除',
      `unique` char(32) NOT NULL COMMENT '唯一id(md5加密)类似id',
      `remark` varchar(512) DEFAULT NULL COMMENT '管理员备注',
      `mer_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商户ID',
      `is_mer_check` tinyint(3) unsigned NOT NULL DEFAULT '0',
      `combination_id` int(11) unsigned DEFAULT '0' COMMENT '拼团商品id0一般商品',
      `pink_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '拼团id 0没有拼团',
      `cost` decimal(8,2) unsigned NOT NULL COMMENT '成本价',
      `seckill_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '秒杀商品ID',
      `bargain_id` int(11) unsigned DEFAULT '0' COMMENT '砍价id',
      `verify_code` varchar(12) NOT NULL DEFAULT '' COMMENT '核销码',
      `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '门店id',
      `shipping_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '配送方式 1=快递 ,2=门店自提',
      `clerk_id` int(11) NOT NULL DEFAULT '0' COMMENT '店员id',
      `is_channel` tinyint(1) unsigned DEFAULT '0' COMMENT '支付渠道(0微信公众号1微信小程序)',
      `is_remind` tinyint(1) unsigned DEFAULT '0' COMMENT '消息提醒',
      `is_system_del` tinyint(1) DEFAULT '0' COMMENT '后台是否删除',
      `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`) USING BTREE,
      UNIQUE KEY `order_id_2` (`order_id`,`uid`) USING BTREE,
      UNIQUE KEY `unique` (`unique`) USING BTREE,
      KEY `uid` (`uid`) USING BTREE,
      KEY `add_time` (`create_time`) USING BTREE,
      KEY `pay_price` (`pay_price`) USING BTREE,
      KEY `paid` (`paid`) USING BTREE,
      KEY `pay_time` (`pay_time`) USING BTREE,
      KEY `pay_type` (`pay_type`) USING BTREE,
      KEY `status` (`status`) USING BTREE,
      KEY `is_del` (`is_del`) USING BTREE,
      KEY `coupon_id` (`coupon_id`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='订单表';
    

    订单购物详情表

    CREATE TABLE `eb_store_order_info` (
      `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
      `order_id` int(11) unsigned NOT NULL COMMENT '订单id',
      `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品ID',
      `info` text NOT NULL COMMENT '购买东西的详细信息',
      `unique` char(32) NOT NULL COMMENT '唯一id',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`),
      UNIQUE KEY `oid` (`order_id`,`unique`) USING BTREE,
      KEY `product_id` (`product_id`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='订单购物详情表';
    

    订单操作记录表

    CREATE TABLE `eb_store_order_status` (
      `oid` int(10) unsigned NOT NULL COMMENT '订单id',
      `change_type` varchar(32) NOT NULL COMMENT '操作类型',
      `change_message` varchar(256) NOT NULL COMMENT '操作备注',
      `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '操作时间',
      KEY `oid` (`oid`) USING BTREE,
      KEY `change_type` (`change_type`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='订单操作记录表';
    

    商品表

    CREATE TABLE `eb_store_product` (
      `id` mediumint(11) NOT NULL AUTO_INCREMENT COMMENT '商品id',
      `mer_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)',
      `image` varchar(256) NOT NULL COMMENT '商品图片',
      `slider_image` varchar(2000) NOT NULL COMMENT '轮播图',
      `store_name` varchar(128) NOT NULL COMMENT '商品名称',
      `store_info` varchar(256) NOT NULL COMMENT '商品简介',
      `keyword` varchar(256) NOT NULL COMMENT '关键字',
      `bar_code` varchar(15) NOT NULL DEFAULT '' COMMENT '商品条码(一维码)',
      `cate_id` varchar(64) NOT NULL COMMENT '分类id',
      `price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '商品价格',
      `vip_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '会员价格',
      `ot_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '市场价',
      `postage` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '邮费',
      `unit_name` varchar(32) NOT NULL COMMENT '单位名',
      `sort` smallint(11) NOT NULL DEFAULT '0' COMMENT '排序',
      `sales` mediumint(11) unsigned NOT NULL DEFAULT '0' COMMENT '销量',
      `stock` mediumint(11) unsigned NOT NULL DEFAULT '0' COMMENT '库存',
      `is_show` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态(0:未上架,1:上架)',
      `is_hot` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否热卖',
      `is_benefit` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否优惠',
      `is_best` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否精品',
      `is_new` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否新品',
      `add_time` int(11) unsigned NOT NULL COMMENT '添加时间',
      `is_postage` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否包邮',
      `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除',
      `mer_use` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '商户是否代理 0不可代理1可代理',
      `give_integral` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '获得积分',
      `cost` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '成本价',
      `is_seckill` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '秒杀状态 0 未开启 1已开启',
      `is_bargain` tinyint(1) unsigned DEFAULT NULL COMMENT '砍价状态 0未开启 1开启',
      `is_good` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否优品推荐',
      `is_sub` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否单独分佣',
      `ficti` mediumint(11) DEFAULT '100' COMMENT '虚拟销量',
      `browse` int(11) DEFAULT '0' COMMENT '浏览量',
      `code_path` varchar(64) NOT NULL DEFAULT '' COMMENT '商品二维码地址(用户小程序海报)',
      `soure_link` varchar(255) DEFAULT '' COMMENT '淘宝京东1688类型',
      `video_link` varchar(200) NOT NULL DEFAULT '' COMMENT '主图视频链接',
      `temp_id` int(11) NOT NULL DEFAULT '1' COMMENT '运费模板ID',
      `spec_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '规格 0单 1多',
      `activity` varchar(255) NOT NULL DEFAULT '' COMMENT '活动显示排序1=秒杀,2=砍价,3=拼团',
      PRIMARY KEY (`id`) USING BTREE,
      KEY `cate_id` (`cate_id`) USING BTREE,
      KEY `is_hot` (`is_hot`) USING BTREE,
      KEY `is_benefit` (`is_benefit`) USING BTREE,
      KEY `is_best` (`is_best`) USING BTREE,
      KEY `is_new` (`is_new`) USING BTREE,
      KEY `toggle_on_sale, is_del` (`is_del`) USING BTREE,
      KEY `price` (`price`) USING BTREE,
      KEY `is_show` (`is_show`) USING BTREE,
      KEY `sort` (`sort`) USING BTREE,
      KEY `sales` (`sales`) USING BTREE,
      KEY `add_time` (`add_time`) USING BTREE,
      KEY `is_postage` (`is_postage`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='商品表';
    

    **商品属性表

    CREATE TABLE `eb_store_product_attr` (
      `id` mediumint(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
      `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品ID',
      `attr_name` varchar(32) NOT NULL COMMENT '属性名',
      `attr_values` varchar(256) NOT NULL COMMENT '属性值',
      `type` tinyint(1) DEFAULT '0' COMMENT '活动类型 0=商品,1=秒杀,2=砍价,3=拼团',
      PRIMARY KEY (`id`),
      KEY `store_id` (`product_id`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='商品属性表';
    

    商品属性详情表

    CREATE TABLE `eb_store_product_attr_result` (
      `id` int(10) NOT NULL AUTO_INCREMENT COMMENT '主键',
      `product_id` int(10) unsigned NOT NULL COMMENT '商品ID',
      `result` text NOT NULL COMMENT '商品属性参数',
      `change_time` int(10) unsigned NOT NULL COMMENT '上次修改时间',
      `type` tinyint(1) DEFAULT '0' COMMENT '活动类型 0=商品,1=秒杀,2=砍价,3=拼团',
      PRIMARY KEY (`id`),
      KEY `product_id` (`product_id`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='商品属性详情表';
    

    商品属性值表

    CREATE TABLE `eb_store_product_attr_value` (
      `id` mediumint(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
      `product_id` int(10) unsigned NOT NULL COMMENT '商品ID',
      `suk` varchar(128) NOT NULL COMMENT '商品属性索引值 (attr_value|attr_value[|....])',
      `stock` int(10) unsigned NOT NULL COMMENT '属性对应的库存',
      `sales` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '销量',
      `price` decimal(8,2) unsigned NOT NULL COMMENT '属性金额',
      `image` varchar(1000) DEFAULT NULL COMMENT '图片',
      `unique` char(8) NOT NULL DEFAULT '' COMMENT '唯一值',
      `cost` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '成本价',
      `bar_code` varchar(50) NOT NULL DEFAULT '' COMMENT '商品条码',
      `ot_price` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '原价',
      `weight` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '重量',
      `volume` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '体积',
      `brokerage` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '一级返佣',
      `brokerage_two` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '二级返佣',
      `type` tinyint(1) DEFAULT '0' COMMENT '活动类型 0=商品,1=秒杀,2=砍价,3=拼团',
      `quota` int(11) DEFAULT NULL COMMENT '活动限购数量',
      `quota_show` int(11) DEFAULT NULL COMMENT '活动限购数量显示',
      `attr_value` text COMMENT 'attr_values 创建更新时的属性对应',
      PRIMARY KEY (`id`),
      KEY `unique` (`unique`,`suk`) USING BTREE,
      KEY `store_id` (`product_id`,`suk`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品属性值表';
    

    商品分类辅助表

    CREATE TABLE `eb_store_product_cate` (
      `id` int(11) NOT NULL AUTO_INCREMENT,
      `product_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id',
      `cate_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类id',
      `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间',
      PRIMARY KEY (`id`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='商品分类辅助表';
    

    产品优惠券

    CREATE TABLE `eb_store_product_coupon` (
      `id` int(10) NOT NULL AUTO_INCREMENT,
      `product_id` int(10) NOT NULL DEFAULT '0' COMMENT '商品id',
      `issue_coupon_id` int(10) NOT NULL DEFAULT '0' COMMENT '优惠劵id',
      `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加时间',
      PRIMARY KEY (`id`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='产品优惠券';
    

    产品详情

    CREATE TABLE `eb_store_product_description` (
      `product_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
      `description` text NOT NULL COMMENT '商品详情',
      `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '商品类型',
      KEY `product_id` (`product_id`,`type`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='产品详情';
    

    商品点赞和收藏表

    CREATE TABLE `eb_store_product_relation` (
      `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
      `uid` int(10) unsigned NOT NULL COMMENT '用户ID',
      `product_id` int(10) unsigned NOT NULL COMMENT '商品ID',
      `type` varchar(32) NOT NULL COMMENT '类型(收藏(collect)、点赞(like))',
      `category` varchar(32) NOT NULL COMMENT '某种类型的商品(普通商品、秒杀商品)',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`),
      UNIQUE KEY `uid` (`uid`,`product_id`,`type`,`category`) USING BTREE,
      KEY `type` (`type`) USING BTREE,
      KEY `category` (`category`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品点赞和收藏表';
    

    评论表

    CREATE TABLE `eb_store_product_reply` (
      `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '评论ID',
      `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
      `oid` int(11) NOT NULL DEFAULT '0' COMMENT '订单ID',
      `unique` varchar(32) NOT NULL COMMENT '商品唯一id',
      `product_id` int(11) NOT NULL COMMENT '商品id',
      `reply_type` varchar(32) NOT NULL DEFAULT 'product' COMMENT '某种商品类型(普通商品、秒杀商品)',
      `product_score` tinyint(1) NOT NULL COMMENT '商品分数',
      `service_score` tinyint(1) NOT NULL COMMENT '服务分数',
      `comment` varchar(512) NOT NULL COMMENT '评论内容',
      `pics` text NOT NULL COMMENT '评论图片',
      `merchant_reply_content` varchar(300) DEFAULT NULL COMMENT '管理员回复内容',
      `merchant_reply_time` int(11) DEFAULT NULL COMMENT '管理员回复时间',
      `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0未删除1已删除',
      `is_reply` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0未回复1已回复',
      `nickname` varchar(64) NOT NULL COMMENT '用户名称',
      `avatar` varchar(255) NOT NULL COMMENT '用户头像',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`) USING BTREE,
      KEY `parent_id` (`reply_type`) USING BTREE,
      KEY `is_del` (`is_del`) USING BTREE,
      KEY `product_score` (`product_score`) USING BTREE,
      KEY `service_score` (`service_score`) USING BTREE,
      KEY `uid+oid` (`uid`,`oid`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='评论表';
    

    商品规则值(规格)表

    CREATE TABLE `eb_store_product_rule` (
      `id` int(10) NOT NULL AUTO_INCREMENT,
      `rule_name` varchar(32) NOT NULL COMMENT '规格名称',
      `rule_value` text NOT NULL COMMENT '规格值',
      PRIMARY KEY (`id`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='商品规则值(规格)表';
    

    后台管理员表

    CREATE TABLE `eb_system_admin` (
      `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT '后台管理员表ID',
      `account` varchar(32) NOT NULL COMMENT '后台管理员账号',
      `pwd` char(32) NOT NULL COMMENT '后台管理员密码',
      `real_name` varchar(16) NOT NULL COMMENT '后台管理员姓名',
      `roles` varchar(128) NOT NULL COMMENT '后台管理员权限(menus_id)',
      `last_ip` varchar(16) DEFAULT NULL COMMENT '后台管理员最后一次登录ip',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      `login_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '登录次数',
      `level` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '后台管理员级别',
      `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '后台管理员状态 1有效0无效',
      `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0',
      PRIMARY KEY (`id`) USING BTREE,
      KEY `account` (`account`) USING BTREE,
      KEY `status` (`status`) USING BTREE
    ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='后台管理员表';
    

    附件管理表

    CREATE TABLE `eb_system_attachment` (
      `att_id` int(10) NOT NULL AUTO_INCREMENT,
      `name` varchar(100) NOT NULL DEFAULT '' COMMENT '附件名称',
      `att_dir` varchar(200) NOT NULL DEFAULT '' COMMENT '附件路径',
      `satt_dir` varchar(200) DEFAULT NULL COMMENT '压缩图片路径',
      `att_size` char(30) NOT NULL DEFAULT '' COMMENT '附件大小',
      `att_type` char(30) NOT NULL DEFAULT '' COMMENT '附件类型',
      `pid` int(10) NOT NULL DEFAULT '0' COMMENT '分类ID0编辑器,1商品图片,2拼团图片,3砍价图片,4秒杀图片,5文章图片,6组合数据图, 7前台用户',
      `image_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '图片上传类型 1本地 2七牛云 3OSS 4COS ',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`att_id`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='附件管理表';
    

    城市表

    CREATE TABLE `eb_system_city` (
      `id` int(11) NOT NULL AUTO_INCREMENT,
      `city_id` int(11) NOT NULL DEFAULT '0' COMMENT '城市id',
      `level` int(11) NOT NULL DEFAULT '0' COMMENT '省市级别',
      `parent_id` int(11) NOT NULL DEFAULT '0' COMMENT '父级id',
      `area_code` varchar(30) NOT NULL DEFAULT '' COMMENT '区号',
      `name` varchar(100) NOT NULL DEFAULT '' COMMENT '名称',
      `merger_name` varchar(255) NOT NULL DEFAULT '' COMMENT '合并名称',
      `lng` varchar(50) NOT NULL DEFAULT '' COMMENT '经度',
      `lat` varchar(50) NOT NULL DEFAULT '' COMMENT '纬度',
      `is_show` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否展示',
      `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`) USING BTREE
    ) ENGINE=InnoDB AUTO_INCREMENT=3971 DEFAULT CHARSET=utf8 COMMENT='城市表';
    

    配置表

    CREATE TABLE `eb_system_config` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '配置id',
      `name` varchar(500) NOT NULL DEFAULT '' COMMENT '字段名称',
      `title` varchar(255) NOT NULL DEFAULT '' COMMENT '字段提示文字',
      `form_id` int(10) DEFAULT '0' COMMENT '表单id',
      `value` varchar(5000) DEFAULT '' COMMENT '值',
      `status` tinyint(1) DEFAULT '0' COMMENT '是否隐藏',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`) USING BTREE,
      KEY `status+name` (`name`),
      KEY `name` (`name`)
    ) ENGINE=InnoDB AUTO_INCREMENT=1635 DEFAULT CHARSET=utf8 COMMENT='配置表';
    

    表单模板

    CREATE TABLE `eb_system_form_temp` (
      `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '表单模板id',
      `name` varchar(500) NOT NULL DEFAULT '' COMMENT '表单名称',
      `info` varchar(500) NOT NULL DEFAULT '' COMMENT '表单简介',
      `content` text NOT NULL COMMENT '表单内容',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`) USING BTREE
    ) ENGINE=InnoDB AUTO_INCREMENT=119 DEFAULT CHARSET=utf8 COMMENT='表单模板';
    

    组合数据表

    CREATE TABLE `eb_system_group` (
      `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '组合数据ID',
      `name` varchar(50) NOT NULL DEFAULT '' COMMENT '数据组名称',
      `info` varchar(256) NOT NULL DEFAULT '' COMMENT '简介',
      `form_id` int(11) NOT NULL DEFAULT '0' COMMENT 'form 表单 id',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`) USING BTREE,
      KEY `name` (`name`),
      KEY `form_id` (`form_id`)
    ) ENGINE=InnoDB AUTO_INCREMENT=73 DEFAULT CHARSET=utf8 COMMENT='组合数据表';
    

    组合数据详情表

    CREATE TABLE `eb_system_group_data` (
      `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '组合数据详情ID',
      `gid` int(11) NOT NULL DEFAULT '0' COMMENT '对应的数据组id',
      `value` text NOT NULL COMMENT '数据组对应的数据值(json数据)',
      `sort` int(11) NOT NULL DEFAULT '0' COMMENT '数据排序',
      `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态(1:开启;2:关闭;)',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`) USING BTREE,
      KEY `gid` (`gid`)
    ) ENGINE=InnoDB AUTO_INCREMENT=121 DEFAULT CHARSET=utf8 COMMENT='组合数据详情表';
    

    身份管理表

    CREATE TABLE `eb_system_role` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '身份管理id',
      `role_name` varchar(32) NOT NULL COMMENT '身份管理名称',
      `rules` text NOT NULL COMMENT '身份管理权限(menus_id)',
      `level` tinyint(3) unsigned NOT NULL DEFAULT '0',
      `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态',
      `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`) USING BTREE,
      KEY `status` (`status`) USING BTREE
    ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COMMENT='身份管理表';
    

    门店自提

    CREATE TABLE `eb_system_store` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
      `name` varchar(100) NOT NULL DEFAULT '' COMMENT '门店名称',
      `introduction` varchar(1000) NOT NULL DEFAULT '' COMMENT '简介',
      `phone` char(25) NOT NULL DEFAULT '' COMMENT '手机号码',
      `address` varchar(255) NOT NULL DEFAULT '' COMMENT '省市区',
      `detailed_address` varchar(255) NOT NULL DEFAULT '' COMMENT '详细地址',
      `image` varchar(255) NOT NULL DEFAULT '' COMMENT '门店logo',
      `latitude` char(25) NOT NULL DEFAULT '' COMMENT '纬度',
      `longitude` char(25) NOT NULL DEFAULT '' COMMENT '经度',
      `valid_time` varchar(100) NOT NULL DEFAULT '' COMMENT '核销有效日期',
      `day_time` varchar(100) NOT NULL DEFAULT '' COMMENT '每日营业开关时间',
      `is_show` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否显示',
      `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除',
      `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',
      `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`) USING BTREE,
      KEY `phone` (`phone`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='门店自提';
    

    门店店员表

    CREATE TABLE `eb_system_store_staff` (
      `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
      `uid` int(10) unsigned NOT NULL COMMENT '微信用户id',
      `avatar` varchar(255) NOT NULL DEFAULT '' COMMENT '店员头像',
      `store_id` int(11) NOT NULL COMMENT '门店id',
      `staff_name` varchar(64) DEFAULT '' COMMENT '店员名称',
      `phone` char(15) DEFAULT NULL COMMENT '手机号码',
      `verify_status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '核销开关',
      `status` tinyint(2) DEFAULT '1' COMMENT '状态',
      `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',
      `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='门店店员表';
    

    普通会员等级

    CREATE TABLE `eb_system_user_level` (
      `id` int(11) NOT NULL AUTO_INCREMENT,
      `name` varchar(255) NOT NULL DEFAULT '' COMMENT '会员名称',
      `experience` int(11) NOT NULL DEFAULT '0' COMMENT '达到多少升级经验',
      `is_show` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否显示 1=显示,0=隐藏',
      `grade` int(11) NOT NULL DEFAULT '0' COMMENT '会员等级',
      `discount` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '享受折扣',
      `image` varchar(255) NOT NULL DEFAULT '' COMMENT '会员卡背景',
      `icon` varchar(255) NOT NULL DEFAULT '' COMMENT '会员图标',
      `memo` text COMMENT '说明',
      `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除.1=删除,0=未删除',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`) USING BTREE
    ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='普通会员等级';
    

    微信模板

    CREATE TABLE `eb_template_message` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '模板id',
      `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=订阅消息,1=微信模板消息',
      `temp_key` char(50) NOT NULL DEFAULT '' COMMENT '模板编号',
      `name` char(100) NOT NULL COMMENT '模板名',
      `content` varchar(1000) NOT NULL COMMENT '回复内容',
      `temp_id` char(100) DEFAULT NULL COMMENT '模板ID',
      `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态',
      `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',
      `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`) USING BTREE
    ) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='微信模板';
    

    用户表

    CREATE TABLE `eb_user` (
      `uid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户id',
      `account` varchar(32) NOT NULL DEFAULT '' COMMENT '用户账号',
      `pwd` varchar(32) DEFAULT '' COMMENT '用户密码',
      `real_name` varchar(25) DEFAULT '' COMMENT '真实姓名',
      `birthday` varchar(32) DEFAULT '' COMMENT '生日',
      `card_id` varchar(20) DEFAULT '' COMMENT '身份证号码',
      `mark` varchar(255) DEFAULT '' COMMENT '用户备注',
      `partner_id` int(11) DEFAULT '0' COMMENT '合伙人id',
      `group_id` varchar(255) DEFAULT '' COMMENT '用户分组id',
      `tag_id` varchar(255) DEFAULT '' COMMENT '标签id',
      `nickname` varchar(16) DEFAULT '' COMMENT '用户昵称',
      `avatar` varchar(256) DEFAULT '' COMMENT '用户头像',
      `phone` char(15) DEFAULT NULL COMMENT '手机号码',
      `add_ip` varchar(16) DEFAULT '' COMMENT '添加ip',
      `last_ip` varchar(16) DEFAULT '' COMMENT '最后一次登录ip',
      `now_money` decimal(8,2) unsigned DEFAULT '0.00' COMMENT '用户余额',
      `brokerage_price` decimal(8,2) DEFAULT '0.00' COMMENT '佣金金额',
      `integral` decimal(8,2) unsigned DEFAULT '0.00' COMMENT '用户剩余积分',
      `experience` int(11) unsigned DEFAULT '0' COMMENT '用户剩余经验',
      `sign_num` int(11) DEFAULT '0' COMMENT '连续签到天数',
      `status` tinyint(1) DEFAULT '1' COMMENT '1为正常,0为禁止',
      `level` tinyint(2) unsigned DEFAULT '0' COMMENT '等级',
      `spread_uid` int(10) unsigned DEFAULT '0' COMMENT '推广元id',
      `spread_time` timestamp NULL DEFAULT NULL COMMENT '推广员关联时间',
      `user_type` varchar(32) NOT NULL DEFAULT '' COMMENT '用户类型',
      `is_promoter` tinyint(1) unsigned DEFAULT '0' COMMENT '是否为推广员',
      `pay_count` int(11) unsigned DEFAULT '0' COMMENT '用户购买次数',
      `spread_count` int(11) DEFAULT '0' COMMENT '下级人数',
      `addres` varchar(255) DEFAULT '' COMMENT '详细地址',
      `adminid` int(11) unsigned DEFAULT '0' COMMENT '管理员编号 ',
      `login_type` varchar(36) NOT NULL DEFAULT '' COMMENT '用户登陆类型,h5,wechat,routine',
      `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      `last_login_time` timestamp NULL DEFAULT NULL COMMENT '最后一次登录时间',
      `clean_time` timestamp NULL DEFAULT NULL COMMENT '清除时间',
      `path` varchar(255) NOT NULL DEFAULT '/0/' COMMENT '推广等级记录',
      `subscribe` tinyint(3) DEFAULT '0' COMMENT '是否关注公众号',
      `subscribe_time` timestamp NULL DEFAULT NULL COMMENT '关注公众号时间',
      PRIMARY KEY (`uid`) USING BTREE,
      UNIQUE KEY `account` (`account`),
      KEY `spreaduid` (`spread_uid`) USING BTREE,
      KEY `level` (`level`) USING BTREE,
      KEY `status` (`status`) USING BTREE,
      KEY `is_promoter` (`is_promoter`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户表';
    

    用户地址表

    CREATE TABLE `eb_user_address` (
      `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户地址id',
      `uid` int(10) unsigned NOT NULL COMMENT '用户id',
      `real_name` varchar(32) NOT NULL DEFAULT '' COMMENT '收货人姓名',
      `phone` varchar(16) NOT NULL DEFAULT '' COMMENT '收货人电话',
      `province` varchar(64) NOT NULL DEFAULT '' COMMENT '收货人所在省',
      `city` varchar(64) NOT NULL DEFAULT '' COMMENT '收货人所在市',
      `city_id` int(11) NOT NULL DEFAULT '0' COMMENT '城市id',
      `district` varchar(64) NOT NULL DEFAULT '' COMMENT '收货人所在区',
      `detail` varchar(256) NOT NULL DEFAULT '' COMMENT '收货人详细地址',
      `post_code` int(10) NOT NULL DEFAULT '0' COMMENT '邮编',
      `longitude` varchar(16) NOT NULL DEFAULT '0' COMMENT '经度',
      `latitude` varchar(16) NOT NULL DEFAULT '0' COMMENT '纬度',
      `is_default` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否默认',
      `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`) USING BTREE,
      KEY `uid` (`uid`) USING BTREE,
      KEY `is_default` (`is_default`) USING BTREE,
      KEY `is_del` (`is_del`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户地址表';
    

    用户账单表

    CREATE TABLE `eb_user_bill` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户账单id',
      `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户uid',
      `link_id` varchar(32) NOT NULL DEFAULT '0' COMMENT '关联id',
      `pm` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0 = 支出 1 = 获得',
      `title` varchar(64) NOT NULL DEFAULT '' COMMENT '账单标题',
      `category` varchar(64) NOT NULL DEFAULT '' COMMENT '明细种类',
      `type` varchar(64) NOT NULL DEFAULT '' COMMENT '明细类型',
      `number` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '明细数字',
      `balance` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '剩余',
      `mark` varchar(512) NOT NULL DEFAULT '' COMMENT '备注',
      `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 = 带确定 1 = 有效 -1 = 无效',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',
      `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`) USING BTREE,
      KEY `openid` (`uid`) USING BTREE,
      KEY `status` (`status`) USING BTREE,
      KEY `add_time` (`create_time`) USING BTREE,
      KEY `pm` (`pm`) USING BTREE,
      KEY `type` (`category`,`type`,`link_id`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户账单表';
    

    用户提现表

    CREATE TABLE `eb_user_extract` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
      `uid` int(10) unsigned DEFAULT NULL,
      `real_name` varchar(64) DEFAULT NULL COMMENT '名称',
      `extract_type` varchar(32) DEFAULT 'bank' COMMENT 'bank = 银行卡 alipay = 支付宝wx=微信',
      `bank_code` varchar(32) DEFAULT '0' COMMENT '银行卡',
      `bank_address` varchar(256) DEFAULT '' COMMENT '开户地址',
      `alipay_code` varchar(64) DEFAULT '' COMMENT '支付宝账号',
      `extract_price` decimal(8,2) unsigned DEFAULT '0.00' COMMENT '提现金额',
      `mark` varchar(512) DEFAULT NULL,
      `balance` decimal(8,2) unsigned DEFAULT '0.00',
      `fail_msg` varchar(128) DEFAULT NULL COMMENT '无效原因',
      `status` tinyint(2) DEFAULT '0' COMMENT '-1 未通过 0 审核中 1 已提现',
      `wechat` varchar(15) DEFAULT NULL COMMENT '微信号',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      `fail_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '失败时间',
      PRIMARY KEY (`id`) USING BTREE,
      KEY `extract_type` (`extract_type`) USING BTREE,
      KEY `status` (`status`) USING BTREE,
      KEY `openid` (`uid`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户提现表';
    

    用户分组表

    CREATE TABLE `eb_user_group` (
      `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
      `group_name` varchar(64) DEFAULT NULL COMMENT '用户分组名称',
      PRIMARY KEY (`id`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户分组表';
    

    用户等级记录表

    CREATE TABLE `eb_user_level` (
      `id` int(11) NOT NULL AUTO_INCREMENT,
      `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户uid',
      `level_id` int(11) NOT NULL DEFAULT '0' COMMENT '等级vip',
      `grade` int(11) NOT NULL DEFAULT '0' COMMENT '会员等级',
      `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0:禁止,1:正常',
      `mark` varchar(255) NOT NULL DEFAULT '' COMMENT '备注',
      `remind` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否已通知',
      `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除,0=未删除,1=删除',
      `discount` int(11) NOT NULL DEFAULT '0' COMMENT '享受折扣',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      `expired_time` timestamp NULL DEFAULT NULL COMMENT '过期时间',
      PRIMARY KEY (`id`) USING BTREE,
      UNIQUE KEY `id` (`id`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户等级记录表';
    

    用户充值表

    CREATE TABLE `eb_user_recharge` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
      `uid` int(10) NOT NULL COMMENT '充值用户UID',
      `order_id` varchar(32) NOT NULL DEFAULT '' COMMENT '订单号',
      `price` decimal(8,2) NOT NULL COMMENT '充值金额',
      `give_price` decimal(8,2) DEFAULT '0.00' COMMENT '购买赠送金额',
      `recharge_type` varchar(32) NOT NULL DEFAULT '' COMMENT '充值类型',
      `paid` tinyint(1) DEFAULT '0' COMMENT '是否充值',
      `pay_time` timestamp NULL DEFAULT NULL COMMENT '充值支付时间',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '充值时间',
      `refund_price` decimal(10,2) DEFAULT '0.00' COMMENT '退款金额',
      PRIMARY KEY (`id`) USING BTREE,
      UNIQUE KEY `order_id` (`order_id`) USING BTREE,
      KEY `uid` (`uid`) USING BTREE,
      KEY `recharge_type` (`recharge_type`) USING BTREE,
      KEY `paid` (`paid`) USING BTREE
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户充值表';
    

    签到记录表

    CREATE TABLE `eb_user_sign` (
      `id` int(11) NOT NULL AUTO_INCREMENT,
      `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户uid',
      `title` varchar(255) NOT NULL DEFAULT '' COMMENT '签到说明',
      `number` int(11) NOT NULL DEFAULT '0' COMMENT '获得',
      `balance` int(11) NOT NULL DEFAULT '0' COMMENT '剩余',
      `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '类型,1积分,2经验',
      `create_day` date NOT NULL COMMENT '签到日期',
      `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',
      PRIMARY KEY (`id`) USING BTREE,
      KEY `uid` (`uid`,`type`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='签到记录表';
    

    标签管理

    CREATE TABLE `eb_user_tag` (
      `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
      `name` varchar(64) DEFAULT NULL COMMENT '标签名称',
      PRIMARY KEY (`id`) USING BTREE
    ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='标签管理';
    

    第三方用户登录token

    CREATE TABLE `eb_user_token` (
      `id` int(11) NOT NULL AUTO_INCREMENT,
      `uid` int(10) unsigned NOT NULL COMMENT '用户 id',
      `token` varchar(500) NOT NULL COMMENT 'token',
      `type` tinyint(1) DEFAULT '1' COMMENT '类型,1 公众号, 2 小程序, 3 unionid',
      `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `expires_time` datetime DEFAULT NULL COMMENT '到期时间',
      `login_ip` varchar(32) DEFAULT NULL COMMENT '登录ip',
      PRIMARY KEY (`id`) USING BTREE,
      UNIQUE KEY `type+token` (`type`,`token`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='第三方用户登录token';
    

    微信关键字回复表

    CREATE TABLE `eb_wechat_reply` (
      `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '微信关键字回复id',
      `keywords` varchar(64) NOT NULL DEFAULT '' COMMENT '关键字',
      `type` varchar(32) NOT NULL DEFAULT '' COMMENT '回复类型',
      `data` text NOT NULL COMMENT '回复数据',
      `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '回复状态 0=不可用  1 =可用',
      `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
      PRIMARY KEY (`id`) USING BTREE,
      UNIQUE KEY `key` (`keywords`) USING BTREE,
      KEY `type` (`type`) USING BTREE,
      KEY `status` (`status`) USING BTREE
    ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COMMENT='微信关键字回复表';
    1. 本站所有资源来源于用户上传和网络,因此不包含技术服务请大家谅解!如有侵权请邮件联系客服!3165260857@qq.com
    2. 本站不保证所提供下载的资源的准确性、安全性和完整性,资源仅供下载学习之用!如有链接无法下载、失效或广告,请联系客服处理,有奖励!
    3. 您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容资源!如用于商业或者非法用途,与本站无关,一切后果请用户自负!
    4. 如果您也有好的资源或教程,您可以投稿发布,成功分享后有站币奖励和额外收入!


    三优资源网 » crmeb_java 数据字典

    常见问题FAQ

    免费下载或者VIP会员专享资源能否直接商用?
    本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。
    提示下载完但解压或打开不了?
    最常见的情况是下载不完整: 可对比下载完压缩包的与网盘上的容量,若小于网盘提示的容量则是这个原因。这是浏览器下载的bug,建议用百度网盘软件或迅雷下载。若排除这种情况,可在对应资源底部留言,或 联络我们.。
    找不到素材资源介绍文章里的示例图片?
    对于PPT,KEY,Mockups,APP,网页模版等类型的素材,文章内用于介绍的图片通常并不包含在对应可供下载素材包内。这些相关商业图片需另外购买,且本站不负责(也没有办法)找到出处。 同样地一些字体文件也是这种情况,但部分素材会在素材包内有一份字体下载链接清单。
    三优资源网
    一个高级程序员模板开发平台

    发表评论

    • 232会员总数(位)
    • 1266资源总数(个)
    • 0本周发布(个)
    • 0 今日发布(个)
    • 1483稳定运行(天)

    提供最优质的资源集合

    立即查看 了解详情