代码拉取完成,页面将自动刷新
<?php
global $_W;
$sql = "
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_adv') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`advname` varchar(50) DEFAULT '',
`link` varchar(255) DEFAULT '',
`thumb` varchar(255) DEFAULT '',
`displayorder` int(11) DEFAULT '0',
`enabled` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_enabled` (`enabled`),
KEY `idx_displayorder` (`displayorder`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_carrier') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`realname` varchar(50) DEFAULT '',
`mobile` varchar(50) DEFAULT '',
`address` varchar(255) DEFAULT '',
`deleted` tinyint(1) DEFAULT '0',
`createtime` int(11) DEFAULT '0',
`displayorder` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_deleted` (`deleted`),
KEY `idx_createtime` (`createtime`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_category') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0' COMMENT '所属帐号',
`name` varchar(50) DEFAULT NULL COMMENT '分类名称',
`thumb` varchar(255) DEFAULT NULL COMMENT '分类图片',
`parentid` int(11) DEFAULT '0' COMMENT '上级分类ID,0为第一级',
`isrecommand` int(10) DEFAULT '0',
`description` varchar(500) DEFAULT NULL COMMENT '分类介绍',
`displayorder` tinyint(3) unsigned DEFAULT '0' COMMENT '排序',
`enabled` tinyint(1) DEFAULT '1' COMMENT '是否开启',
`ishome` tinyint(3) DEFAULT '0',
`advimg` varchar(255) DEFAULT '',
`advurl` varchar(500) DEFAULT '',
`level` tinyint(3) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_displayorder` (`displayorder`),
KEY `idx_enabled` (`enabled`),
KEY `idx_parentid` (`parentid`),
KEY `idx_isrecommand` (`isrecommand`),
KEY `idx_ishome` (`ishome`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_commission_apply') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`applyno` varchar(255) DEFAULT '',
`mid` int(11) DEFAULT '0' COMMENT '会员ID',
`type` tinyint(3) DEFAULT '0' COMMENT '0 余额 1 微信',
`orderids` text,
`commission` decimal(10,2) DEFAULT '0.00',
`commission_pay` decimal(10,2) DEFAULT '0.00',
`content` text,
`status` tinyint(3) DEFAULT '0' COMMENT '-1 无效 0 未知 1 正在申请 2 审核通过 3 已经打款',
`applytime` int(11) DEFAULT '0',
`checktime` int(11) DEFAULT '0',
`paytime` int(11) DEFAULT '0',
`invalidtime` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_mid` (`mid`),
KEY `idx_checktime` (`checktime`),
KEY `idx_paytime` (`paytime`),
KEY `idx_applytime` (`applytime`),
KEY `idx_status` (`status`),
KEY `idx_invalidtime` (`invalidtime`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_commission_clickcount') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`openid` varchar(255) DEFAULT '',
`from_openid` varchar(255) DEFAULT '',
`clicktime` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_openid` (`openid`),
KEY `idx_from_openid` (`from_openid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_commission_level') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) NOT NULL,
`levelname` varchar(50) DEFAULT '',
`commission1` decimal(10,2) DEFAULT '0.00',
`commission2` decimal(10,2) DEFAULT '0.00',
`commission3` decimal(10,2) DEFAULT '0.00',
`commissionmoney` decimal(10,2) DEFAULT '0.00',
`ordermoney` decimal(10,2) DEFAULT '0.00',
`downcount` int(11) DEFAULT '0',
`ordercount` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_commission_log') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`applyid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT '0',
`commission` decimal(10,2) DEFAULT '0.00',
`createtime` int(11) DEFAULT '0',
`commission_pay` decimal(10,2) DEFAULT '0.00',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_applyid` (`applyid`),
KEY `idx_mid` (`mid`),
KEY `idx_createtime` (`createtime`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_commission_shop') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`mid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT '',
`logo` varchar(255) DEFAULT '',
`img` varchar(255) DEFAULT NULL,
`desc` varchar(255) DEFAULT '',
`selectgoods` tinyint(3) DEFAULT '0',
`selectcategory` tinyint(3) DEFAULT '0',
`goodsids` text,
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_mid` (`mid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `ims_sz_yi_coupon` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`catid` int(11) DEFAULT '0',
`couponname` varchar(255) DEFAULT '',
`gettype` tinyint(3) DEFAULT '0',
`getmax` int(11) DEFAULT '0',
`usetype` tinyint(3) DEFAULT '0' COMMENT '消费方式 0 付款使用 1 下单使用',
`returntype` tinyint(3) DEFAULT '0' COMMENT '退回方式 0 不可退回 1 取消订单(未付款) 2.退款可以退回',
`bgcolor` varchar(255) DEFAULT '',
`enough` decimal(10,2) DEFAULT '0.00',
`timelimit` tinyint(3) DEFAULT '0' COMMENT '0 领取后几天有效 1 时间范围',
`coupontype` tinyint(3) DEFAULT '0' COMMENT '0 优惠券 1 充值券',
`timedays` int(11) DEFAULT '0',
`timestart` int(11) DEFAULT '0',
`timeend` int(11) DEFAULT '0',
`discount` decimal(10,2) DEFAULT '0.00' COMMENT '折扣',
`deduct` decimal(10,2) DEFAULT '0.00' COMMENT '抵扣',
`backtype` tinyint(3) DEFAULT '0',
`backmoney` varchar(50) DEFAULT '' COMMENT '返现',
`backcredit` varchar(50) DEFAULT '' COMMENT '返积分',
`backredpack` varchar(50) DEFAULT '',
`backwhen` tinyint(3) DEFAULT '0',
`thumb` varchar(255) DEFAULT '',
`desc` text,
`createtime` int(11) DEFAULT '0',
`total` int(11) DEFAULT '0' COMMENT '数量 -1 不限制',
`status` tinyint(3) DEFAULT '0' COMMENT '可用',
`money` decimal(10,2) DEFAULT '0.00' COMMENT '购买价格',
`respdesc` text COMMENT '推送描述',
`respthumb` varchar(255) DEFAULT '' COMMENT '推送图片',
`resptitle` varchar(255) DEFAULT '' COMMENT '推送标题',
`respurl` varchar(255) DEFAULT '',
`credit` int(11) DEFAULT '0',
`usecredit2` tinyint(3) DEFAULT '0',
`remark` varchar(1000) DEFAULT '',
`descnoset` tinyint(3) DEFAULT '0',
`pwdkey` varchar(255) DEFAULT '',
`pwdsuc` text,
`pwdfail` text,
`pwdurl` varchar(255) DEFAULT '',
`pwdask` text,
`pwdstatus` tinyint(3) DEFAULT '0',
`pwdtimes` int(11) DEFAULT '0',
`pwdfull` text,
`pwdwords` text,
`pwdopen` tinyint(3) DEFAULT '0',
`pwdown` text,
`pwdexit` varchar(255) DEFAULT '',
`pwdexitstr` text,
`displayorder` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_coupontype` (`coupontype`),
KEY `idx_timestart` (`timestart`),
KEY `idx_timeend` (`timeend`),
KEY `idx_timelimit` (`timelimit`),
KEY `idx_status` (`status`),
KEY `idx_givetype` (`backtype`),
KEY `idx_catid` (`catid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `ims_sz_yi_coupon_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT '',
`displayorder` int(11) DEFAULT '0',
`status` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_displayorder` (`displayorder`),
KEY `idx_status` (`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `ims_sz_yi_coupon_data` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`openid` varchar(255) DEFAULT '',
`couponid` int(11) DEFAULT '0',
`gettype` tinyint(3) DEFAULT '0' COMMENT '获取方式 0 发放 1 领取 2 积分商城',
`used` int(11) DEFAULT '0',
`usetime` int(11) DEFAULT '0',
`gettime` int(11) DEFAULT '0' COMMENT '获取时间',
`senduid` int(11) DEFAULT '0',
`ordersn` varchar(255) DEFAULT '',
`back` tinyint(3) DEFAULT '0',
`backtime` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_couponid` (`couponid`),
KEY `idx_gettype` (`gettype`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `ims_sz_yi_coupon_guess` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`couponid` int(11) DEFAULT '0',
`openid` varchar(255) DEFAULT '',
`times` int(11) DEFAULT '0',
`pwdkey` varchar(255) DEFAULT '',
`ok` tinyint(3) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_couponid` (`couponid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `ims_sz_yi_coupon_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`logno` varchar(255) DEFAULT '',
`openid` varchar(255) DEFAULT '',
`couponid` int(11) DEFAULT '0',
`status` int(11) DEFAULT '0',
`paystatus` tinyint(3) DEFAULT '0',
`creditstatus` tinyint(3) DEFAULT '0',
`createtime` int(11) DEFAULT '0',
`paytype` tinyint(3) DEFAULT '0',
`getfrom` tinyint(3) DEFAULT '0' COMMENT '0 发放 1 中心 2 积分兑换',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_couponid` (`couponid`),
KEY `idx_status` (`status`),
KEY `idx_paystatus` (`paystatus`),
KEY `idx_createtime` (`createtime`),
KEY `idx_getfrom` (`getfrom`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `ims_sz_yi_creditshop_adv` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`advname` varchar(50) DEFAULT '',
`link` varchar(255) DEFAULT '',
`thumb` varchar(255) DEFAULT '',
`displayorder` int(11) DEFAULT '0',
`enabled` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_enabled` (`enabled`),
KEY `idx_displayorder` (`displayorder`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `ims_sz_yi_creditshop_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0' COMMENT '所属帐号',
`name` varchar(50) DEFAULT NULL COMMENT '分类名称',
`thumb` varchar(255) DEFAULT NULL COMMENT '分类图片',
`displayorder` tinyint(3) unsigned DEFAULT '0' COMMENT '排序',
`enabled` tinyint(1) DEFAULT '1' COMMENT '是否开启',
`advimg` varchar(255) DEFAULT '',
`advurl` varchar(500) DEFAULT '',
`isrecommand` tinyint(3) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_displayorder` (`displayorder`),
KEY `idx_enabled` (`enabled`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `ims_sz_yi_creditshop_goods` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`displayorder` int(11) DEFAULT '0',
`title` varchar(255) DEFAULT '',
`cate` int(11) DEFAULT '0',
`thumb` varchar(255) DEFAULT '',
`price` decimal(10,2) DEFAULT '0.00',
`type` tinyint(3) DEFAULT '0',
`credit` int(11) DEFAULT '0',
`money` decimal(10,2) DEFAULT '0.00',
`total` int(11) DEFAULT '0',
`totalday` int(11) DEFAULT '0',
`chance` int(11) DEFAULT '0',
`chanceday` int(11) DEFAULT '0',
`detail` text,
`rate1` int(11) DEFAULT '0',
`rate2` int(11) DEFAULT '0',
`endtime` int(11) DEFAULT '0',
`joins` int(11) DEFAULT '0',
`views` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT '0',
`status` tinyint(3) DEFAULT '0',
`deleted` tinyint(3) DEFAULT '0',
`showlevels` text,
`buylevels` text,
`showgroups` text,
`buygroups` text,
`vip` tinyint(3) DEFAULT '0',
`istop` tinyint(3) DEFAULT '0',
`isrecommand` tinyint(3) DEFAULT '0',
`istime` tinyint(3) DEFAULT '0',
`timestart` int(11) DEFAULT '0',
`timeend` int(11) DEFAULT '0',
`share_title` varchar(255) DEFAULT '',
`share_icon` varchar(255) DEFAULT '',
`share_desc` varchar(500) DEFAULT '',
`followneed` tinyint(3) DEFAULT '0',
`followtext` varchar(255) DEFAULT '',
`subtitle` varchar(255) DEFAULT '',
`subdetail` text,
`noticedetail` text,
`usedetail` varchar(255) DEFAULT '',
`goodsdetail` text,
`isendtime` tinyint(3) DEFAULT '0',
`usecredit2` tinyint(3) DEFAULT '0',
`area` varchar(255) DEFAULT '',
`dispatch` decimal(10,2) DEFAULT '0.00',
`storeids` text,
`noticeopenid` varchar(255) DEFAULT '',
`noticetype` tinyint(3) DEFAULT '0',
`isverify` tinyint(3) DEFAULT '0',
`goodstype` tinyint(3) DEFAULT '0',
`couponid` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_type` (`type`),
KEY `idx_endtime` (`endtime`),
KEY `idx_createtime` (`createtime`),
KEY `idx_status` (`status`),
KEY `idx_displayorder` (`displayorder`),
KEY `idx_deleted` (`deleted`),
KEY `idx_istop` (`istop`),
KEY `idx_isrecommand` (`isrecommand`),
KEY `idx_istime` (`istime`),
KEY `idx_timestart` (`timestart`),
KEY `idx_timeend` (`timeend`),
KEY `idx_goodstype` (`goodstype`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `ims_sz_yi_creditshop_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`logno` varchar(255) DEFAULT '',
`eno` varchar(255) DEFAULT '' COMMENT '兑换码',
`openid` varchar(255) DEFAULT '',
`goodsid` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT '0',
`status` tinyint(3) DEFAULT '0' COMMENT '0 只生成记录未参加 1 未中奖 2 已中奖 3 已发奖',
`paystatus` tinyint(3) DEFAULT '0' COMMENT '支付状态 -1 不需要支付 0 未支付 1 已支付',
`paytype` tinyint(3) DEFAULT '-1' COMMENT '支付类型 -1 不需要支付 0 余额 1 微信',
`dispatchstatus` tinyint(3) DEFAULT '0' COMMENT '运费状态 -1 不需要运费 0 未支付 1 已支付',
`creditpay` tinyint(3) DEFAULT '0' COMMENT '积分支付 0 未支付 1 已支付',
`addressid` int(11) DEFAULT '0' COMMENT '收货地址',
`dispatchno` varchar(255) DEFAULT '' COMMENT '运费支付单号',
`usetime` int(11) DEFAULT '0',
`express` varchar(255) DEFAULT '',
`expresssn` varchar(255) DEFAULT '',
`expresscom` varchar(255) DEFAULT '',
`verifyopenid` varchar(255) DEFAULT '',
`storeid` int(11) DEFAULT '0',
`realname` varchar(255) DEFAULT '',
`mobile` varchar(255) DEFAULT '',
`couponid` int(11) DEFAULT '0',
`dupdate1` tinyint(3) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_designer') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) NOT NULL DEFAULT '0' COMMENT '公众号',
`pagename` varchar(255) NOT NULL DEFAULT '' COMMENT '页面名称',
`pagetype` tinyint(3) NOT NULL DEFAULT '0' COMMENT '页面类型',
`pageinfo` text NOT NULL,
`createtime` varchar(255) NOT NULL DEFAULT '' COMMENT '页面创建时间',
`keyword` varchar(255) DEFAULT '',
`savetime` varchar(255) NOT NULL DEFAULT '' COMMENT '页面最后保存时间',
`setdefault` tinyint(3) NOT NULL DEFAULT '0' COMMENT '默认页面',
`datas` text NOT NULL COMMENT '数据',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_pagetype` (`pagetype`),
FULLTEXT KEY `idx_keyword` (`keyword`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `ims_sz_yi_designer_menu` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`menuname` varchar(255) DEFAULT '',
`isdefault` tinyint(3) DEFAULT '0',
`createtime` int(11) DEFAULT '0',
`menus` text,
`params` text,
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_isdefault` (`isdefault`),
KEY `idx_createtime` (`createtime`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_dispatch') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`dispatchname` varchar(50) DEFAULT '',
`dispatchtype` int(11) DEFAULT '0',
`displayorder` int(11) DEFAULT '0',
`firstprice` decimal(10,2) DEFAULT '0.00',
`secondprice` decimal(10,2) DEFAULT '0.00',
`firstweight` int(11) DEFAULT '0',
`secondweight` int(11) DEFAULT '0',
`express` varchar(250) DEFAULT '',
`areas` text,
`carriers` text,
`enabled` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_displayorder` (`displayorder`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_express') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`express_name` varchar(50) DEFAULT '',
`displayorder` int(11) DEFAULT '0',
`express_price` varchar(10) DEFAULT '',
`express_area` varchar(100) DEFAULT '',
`express_url` varchar(255) DEFAULT '',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_displayorder` (`displayorder`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_feedback') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`openid` varchar(50) DEFAULT '0',
`type` tinyint(1) DEFAULT '1' COMMENT '1为维权,2为投诉',
`status` tinyint(1) DEFAULT '0' COMMENT '状态 0 未解决,1用户同意,2用户拒绝',
`feedbackid` varchar(100) DEFAULT '' COMMENT '投诉单号',
`transid` varchar(100) DEFAULT '' COMMENT '订单号',
`reason` varchar(1000) DEFAULT '' COMMENT '理由',
`solution` varchar(1000) DEFAULT '' COMMENT '期待解决方案',
`remark` varchar(1000) DEFAULT '' COMMENT '备注',
`createtime` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_feedbackid` (`feedbackid`),
KEY `idx_createtime` (`createtime`),
KEY `idx_transid` (`transid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_goods') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`pcate` int(11) DEFAULT '0',
`ccate` int(11) DEFAULT '0',
`type` tinyint(1) DEFAULT '1' COMMENT '1为实体,2为虚拟',
`status` tinyint(1) DEFAULT '1',
`displayorder` int(11) DEFAULT '0',
`title` varchar(100) DEFAULT '',
`thumb` varchar(255) DEFAULT '',
`unit` varchar(5) DEFAULT '',
`description` varchar(1000) DEFAULT '',
`content` text,
`goodssn` varchar(50) DEFAULT '',
`productsn` varchar(50) DEFAULT '',
`productprice` decimal(10,2) DEFAULT '0.00',
`marketprice` decimal(10,2) DEFAULT '0.00',
`costprice` decimal(10,2) DEFAULT '0.00',
`originalprice` decimal(10,2) DEFAULT '0.00' COMMENT '原价',
`total` int(10) DEFAULT '0',
`totalcnf` int(11) DEFAULT '0' COMMENT '0 拍下减库存 1 付款减库存 2 永久不减',
`sales` int(11) DEFAULT '0',
`salesreal` int(11) DEFAULT '0',
`spec` varchar(5000) DEFAULT '',
`createtime` int(11) DEFAULT '0',
`weight` decimal(10,2) DEFAULT '0.00',
`credit` varchar(255) DEFAULT NULL,
`maxbuy` int(11) DEFAULT '0',
`usermaxbuy` int(11) DEFAULT '0',
`hasoption` int(11) DEFAULT '0',
`dispatch` int(11) DEFAULT '0',
`thumb_url` text,
`isnew` tinyint(1) DEFAULT '0',
`ishot` tinyint(1) DEFAULT '0',
`isdiscount` tinyint(1) DEFAULT '0',
`isrecommand` tinyint(1) DEFAULT '0',
`issendfree` tinyint(1) DEFAULT '0',
`istime` tinyint(1) DEFAULT '0',
`iscomment` tinyint(1) DEFAULT '0',
`timestart` int(11) DEFAULT '0',
`timeend` int(11) DEFAULT '0',
`viewcount` int(11) DEFAULT '0',
`deleted` tinyint(3) DEFAULT '0',
`hascommission` tinyint(3) DEFAULT '0',
`commission1_rate` decimal(10,2) DEFAULT '0.00',
`commission1_pay` decimal(10,2) DEFAULT '0.00',
`commission2_rate` decimal(10,2) DEFAULT '0.00',
`commission2_pay` decimal(10,2) DEFAULT '0.00',
`commission3_rate` decimal(10,2) DEFAULT '0.00',
`commission3_pay` decimal(10,2) DEFAULT '0.00',
`score` decimal(10,2) DEFAULT '0.00',
`taobaoid` varchar(255) DEFAULT '',
`taotaoid` varchar(255) DEFAULT '',
`taobaourl` varchar(255) DEFAULT '',
`updatetime` int(11) DEFAULT '0',
`share_title` varchar(255) DEFAULT '',
`share_icon` varchar(255) DEFAULT '',
`cash` tinyint(3) DEFAULT '0',
`commission_thumb` varchar(255) DEFAULT '',
`isnodiscount` tinyint(3) DEFAULT '0',
`showlevels` text,
`buylevels` text,
`showgroups` text,
`buygroups` text,
`isverify` tinyint(3) DEFAULT '0',
`storeids` text,
`noticeopenid` text,
`tcate` int(11) DEFAULT '0',
`noticetype` text,
`needfollow` tinyint(3) DEFAULT '0',
`followtip` varchar(255) DEFAULT '',
`followurl` varchar(255) DEFAULT '',
`deduct` decimal(10,2) DEFAULT '0.00',
`virtual` int(11) DEFAULT '0',
`ccates` text,
`discounts` text,
`nocommission` tinyint(3) DEFAULT '0',
`hidecommission` tinyint(3) DEFAULT '0',
`pcates` text,
`tcates` text,
`artid` int(11) DEFAULT '0',
`detail_logo` varchar(255) DEFAULT '',
`detail_shopname` varchar(255) DEFAULT '',
`detail_btntext1` varchar(255) DEFAULT '',
`detail_btnurl1` varchar(255) DEFAULT '',
`detail_btntext2` varchar(255) DEFAULT '',
`detail_btnurl2` varchar(255) DEFAULT '',
`detail_totaltitle` varchar(255) DEFAULT '',
`deduct2` decimal(10,2) DEFAULT '0.00',
`ednum` int(11) DEFAULT '0',
`edmoney` decimal(10,2) DEFAULT '0.00',
`edareas` text,
`cates` text,
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_pcate` (`pcate`),
KEY `idx_ccate` (`ccate`),
KEY `idx_isnew` (`isnew`),
KEY `idx_ishot` (`ishot`),
KEY `idx_isdiscount` (`isdiscount`),
KEY `idx_isrecommand` (`isrecommand`),
KEY `idx_iscomment` (`iscomment`),
KEY `idx_issendfree` (`issendfree`),
KEY `idx_istime` (`istime`),
KEY `idx_deleted` (`deleted`),
KEY `idx_tcate` (`tcate`),
FULLTEXT KEY `idx_buylevels` (`buylevels`),
FULLTEXT KEY `idx_showgroups` (`showgroups`),
FULLTEXT KEY `idx_buygroups` (`buygroups`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_goods_comment') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`goodsid` int(10) DEFAULT '0',
`openid` varchar(50) DEFAULT '',
`nickname` varchar(50) DEFAULT '',
`headimgurl` varchar(255) DEFAULT '',
`content` varchar(255) DEFAULT '',
`createtime` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_goodsid` (`goodsid`),
KEY `idx_openid` (`openid`),
KEY `idx_createtime` (`createtime`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_goods_option') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`goodsid` int(10) DEFAULT '0',
`title` varchar(50) DEFAULT '',
`thumb` varchar(60) DEFAULT '',
`productprice` decimal(10,2) DEFAULT '0.00',
`marketprice` decimal(10,2) DEFAULT '0.00',
`costprice` decimal(10,2) DEFAULT '0.00',
`stock` int(11) DEFAULT '0',
`weight` decimal(10,2) DEFAULT '0.00',
`displayorder` int(11) DEFAULT '0',
`specs` text,
`skuId` varchar(255) DEFAULT '',
`goodssn` varchar(255) DEFAULT '',
`productsn` varchar(255) DEFAULT '',
`virtual` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_goodsid` (`goodsid`),
KEY `idx_displayorder` (`displayorder`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_goods_param') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`goodsid` int(10) DEFAULT '0',
`title` varchar(50) DEFAULT '',
`value` text,
`displayorder` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_goodsid` (`goodsid`),
KEY `idx_displayorder` (`displayorder`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_goods_spec') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`goodsid` int(11) DEFAULT '0',
`title` varchar(50) DEFAULT '',
`description` varchar(1000) DEFAULT '',
`displaytype` tinyint(3) DEFAULT '0',
`content` text,
`displayorder` int(11) DEFAULT '0',
`propId` varchar(255) DEFAULT '',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_goodsid` (`goodsid`),
KEY `idx_displayorder` (`displayorder`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_goods_spec_item') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`specid` int(11) DEFAULT '0',
`title` varchar(255) DEFAULT '',
`thumb` varchar(255) DEFAULT '',
`show` int(11) DEFAULT '0',
`displayorder` int(11) DEFAULT '0',
`valueId` varchar(255) DEFAULT '',
`virtual` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_specid` (`specid`),
KEY `idx_show` (`show`),
KEY `idx_displayorder` (`displayorder`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_member') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`uid` int(11) DEFAULT '0',
`groupid` int(11) DEFAULT '0',
`level` int(11) DEFAULT '0',
`agentid` int(11) DEFAULT '0',
`openid` varchar(50) DEFAULT '',
`realname` varchar(20) DEFAULT '',
`mobile` varchar(11) DEFAULT '',
`pwd` varchar(20) DEFAULT '',
`weixin` varchar(100) DEFAULT '',
`content` text,
`createtime` int(10) DEFAULT '0',
`agenttime` int(10) DEFAULT '0',
`status` tinyint(1) DEFAULT '0',
`isagent` tinyint(1) DEFAULT '0',
`clickcount` int(11) DEFAULT '0',
`agentlevel` int(11) DEFAULT '0',
`noticeset` text,
`nickname` varchar(255) DEFAULT '',
`credit1` int(11) DEFAULT '0',
`credit2` decimal(10,2) DEFAULT '0.00',
`birthyear` varchar(255) DEFAULT '',
`birthmonth` varchar(255) DEFAULT '',
`birthday` varchar(255) DEFAULT '',
`gender` tinyint(3) DEFAULT '0',
`avatar` varchar(255) DEFAULT '',
`province` varchar(255) DEFAULT '',
`city` varchar(255) DEFAULT '',
`area` varchar(255) DEFAULT '',
`childtime` int(11) DEFAULT '0',
`inviter` int(11) DEFAULT '0',
`agentnotupgrade` tinyint(3) DEFAULT '0',
`agentselectgoods` tinyint(3) DEFAULT '0',
`agentblack` tinyint(3) DEFAULT '0',
`fixagentid` tinyint(3) DEFAULT '0',
`regtype` tinyint(3) DEFAULT '1',
`isbindmobile` tinyint(3) DEFAULT '0',
`isjumpbind` tinyint(3) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_shareid` (`agentid`),
KEY `idx_openid` (`openid`),
KEY `idx_status` (`status`),
KEY `idx_agenttime` (`agenttime`),
KEY `idx_isagent` (`isagent`),
KEY `idx_uid` (`uid`),
KEY `idx_groupid` (`groupid`),
KEY `idx_level` (`level`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_member_address') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`openid` varchar(50) DEFAULT '0',
`realname` varchar(20) DEFAULT '',
`mobile` varchar(11) DEFAULT '',
`province` varchar(30) DEFAULT '',
`city` varchar(30) DEFAULT '',
`area` varchar(30) DEFAULT '',
`address` varchar(300) DEFAULT '',
`isdefault` tinyint(1) DEFAULT '0',
`zipcode` varchar(255) DEFAULT '',
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_openid` (`openid`),
KEY `idx_isdefault` (`isdefault`),
KEY `idx_deleted` (`deleted`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_member_cart') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`openid` varchar(100) DEFAULT '',
`goodsid` int(11) DEFAULT '0',
`total` int(11) DEFAULT '0',
`marketprice` decimal(10,2) DEFAULT '0.00',
`deleted` tinyint(1) DEFAULT '0',
`optionid` int(11) DEFAULT '0',
`createtime` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_goodsid` (`goodsid`),
KEY `idx_openid` (`openid`),
KEY `idx_deleted` (`deleted`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_member_favorite') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`goodsid` int(10) DEFAULT '0',
`openid` varchar(50) DEFAULT '',
`deleted` tinyint(1) DEFAULT '0',
`createtime` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_goodsid` (`goodsid`),
KEY `idx_openid` (`openid`),
KEY `idx_deleted` (`deleted`),
KEY `idx_createtime` (`createtime`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_member_group') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`groupname` varchar(255) DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_member_history') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`goodsid` int(10) DEFAULT '0',
`openid` varchar(50) DEFAULT '',
`deleted` tinyint(1) DEFAULT '0',
`createtime` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_goodsid` (`goodsid`),
KEY `idx_openid` (`openid`),
KEY `idx_deleted` (`deleted`),
KEY `idx_createtime` (`createtime`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_member_level') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) NOT NULL,
`level` int(11) DEFAULT '0',
`levelname` varchar(50) DEFAULT '',
`ordermoney` decimal(10,2) DEFAULT '0.00',
`ordercount` int(10) DEFAULT '0',
`discount` decimal(10,2) DEFAULT '0.00',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_member_log') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`openid` varchar(255) DEFAULT '',
`type` tinyint(3) DEFAULT NULL COMMENT '0 充值 1 提现',
`logno` varchar(255) DEFAULT '',
`title` varchar(255) DEFAULT '',
`createtime` int(11) DEFAULT '0',
`status` int(11) DEFAULT '0' COMMENT '0 生成 1 成功 2 失败',
`money` decimal(10,2) DEFAULT '0.00',
`rechargetype` varchar(255) DEFAULT '' COMMENT '充值类型',
`gives` decimal(10,2) DEFAULT NULL,
`couponid` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_openid` (`openid`),
KEY `idx_type` (`type`),
KEY `idx_createtime` (`createtime`),
KEY `idx_status` (`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_member_message_template') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`title` varchar(255) DEFAULT '',
`template_id` varchar(255) DEFAULT '',
`first` text NOT NULL COMMENT '键名',
`firstcolor` varchar(255) DEFAULT '',
`data` text NOT NULL COMMENT '颜色',
`remark` text NOT NULL COMMENT '键值',
`remarkcolor` varchar(255) DEFAULT '',
`url` varchar(255) NOT NULL,
`createtime` int(11) DEFAULT '0',
`sendtimes` int(11) DEFAULT '0',
`sendcount` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_createtime` (`createtime`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_notice') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`displayorder` int(11) DEFAULT '0',
`title` varchar(255) DEFAULT '',
`thumb` varchar(255) DEFAULT '',
`link` varchar(255) DEFAULT '',
`detail` text,
`status` tinyint(3) DEFAULT '0',
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_order') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`openid` varchar(50) DEFAULT '',
`agentid` int(11) DEFAULT '0',
`ordersn` varchar(20) DEFAULT '',
`price` decimal(10,2) DEFAULT '0.00',
`goodsprice` decimal(10,2) DEFAULT '0.00',
`discountprice` decimal(10,2) DEFAULT '0.00',
`status` tinyint(4) DEFAULT '0' COMMENT '-1取消状态,0普通状态,1为已付款,2为已发货,3为成功',
`paytype` tinyint(1) DEFAULT '0' COMMENT '1为余额,2为在线,3为到付',
`transid` varchar(30) DEFAULT '0' COMMENT '微信支付单号',
`remark` varchar(1000) DEFAULT '',
`addressid` int(11) DEFAULT '0',
`dispatchprice` decimal(10,2) DEFAULT '0.00',
`dispatchid` int(10) DEFAULT '0',
`createtime` int(10) DEFAULT NULL,
`dispatchtype` tinyint(3) DEFAULT '0',
`carrier` text,
`refundid` int(11) DEFAULT '0',
`iscomment` tinyint(3) DEFAULT '0',
`creditadd` tinyint(3) DEFAULT '0',
`deleted` tinyint(3) DEFAULT '0',
`userdeleted` tinyint(3) DEFAULT '0',
`finishtime` int(11) DEFAULT '0',
`paytime` int(11) DEFAULT '0',
`expresscom` varchar(30) NOT NULL DEFAULT '',
`expresssn` varchar(50) NOT NULL DEFAULT '',
`express` varchar(255) DEFAULT '',
`sendtime` int(11) DEFAULT '0',
`fetchtime` int(11) DEFAULT '0',
`cash` tinyint(3) DEFAULT '0',
`canceltime` int(11) DEFAULT NULL,
`cancelpaytime` int(11) DEFAULT '0',
`refundtime` int(11) DEFAULT '0',
`isverify` tinyint(3) DEFAULT '0',
`verified` tinyint(3) DEFAULT '0',
`verifyopenid` varchar(255) DEFAULT '',
`verifycode` text,
`verifytime` int(11) DEFAULT '0',
`verifystoreid` int(11) DEFAULT '0',
`deductprice` decimal(10,2) DEFAULT '0.00',
`deductcredit` int(11) DEFAULT '0',
`deductcredit2` decimal(10,2) DEFAULT '0.00',
`deductenough` decimal(10,2) DEFAULT '0.00',
`virtual` int(11) DEFAULT '0',
`virtual_info` text,
`virtual_str` text,
`address` text,
`sysdeleted` tinyint(3) DEFAULT '0',
`ordersn2` int(11) DEFAULT '0',
`changeprice` decimal(10,2) DEFAULT '0.00',
`changedispatchprice` decimal(10,2) DEFAULT '0.00',
`oldprice` decimal(10,2) DEFAULT '0.00',
`olddispatchprice` decimal(10,2) DEFAULT '0.00',
`isvirtual` tinyint(3) DEFAULT '0',
`couponid` int(11) DEFAULT '0',
`couponprice` decimal(10,2) DEFAULT '0.00',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_openid` (`openid`),
KEY `idx_shareid` (`agentid`),
KEY `idx_status` (`status`),
KEY `idx_createtime` (`createtime`),
KEY `idx_refundid` (`refundid`),
KEY `idx_paytime` (`paytime`),
KEY `idx_finishtime` (`finishtime`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_order_comment') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`orderid` int(11) DEFAULT '0',
`goodsid` int(11) DEFAULT '0',
`openid` varchar(50) DEFAULT '',
`nickname` varchar(50) DEFAULT '',
`headimgurl` varchar(255) DEFAULT '',
`level` tinyint(3) DEFAULT '0',
`content` varchar(255) DEFAULT '',
`images` text,
`createtime` int(11) DEFAULT '0',
`deleted` tinyint(3) DEFAULT '0',
`append_content` varchar(255) DEFAULT '',
`append_images` text,
`reply_content` varchar(255) DEFAULT '',
`reply_images` text,
`append_reply_content` varchar(255) DEFAULT '',
`append_reply_images` text,
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_goodsid` (`goodsid`),
KEY `idx_openid` (`openid`),
KEY `idx_createtime` (`createtime`),
KEY `idx_orderid` (`orderid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_order_goods') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`orderid` int(11) DEFAULT '0',
`goodsid` int(11) DEFAULT '0',
`price` decimal(10,2) DEFAULT '0.00',
`total` int(11) DEFAULT '1',
`optionid` int(10) DEFAULT '0',
`createtime` int(11) DEFAULT '0',
`optionname` text,
`commission1` text COMMENT '0',
`applytime1` int(11) DEFAULT '0',
`checktime1` int(10) DEFAULT '0',
`paytime1` int(11) DEFAULT '0',
`invalidtime1` int(11) DEFAULT '0',
`deletetime1` int(11) DEFAULT '0',
`status1` tinyint(3) DEFAULT '0' COMMENT '申请状态,-2删除,-1无效,0未申请,1申请,2审核通过 3已打款',
`content1` text,
`commission2` text,
`applytime2` int(11) DEFAULT '0',
`checktime2` int(10) DEFAULT '0',
`paytime2` int(11) DEFAULT '0',
`invalidtime2` int(11) DEFAULT '0',
`deletetime2` int(11) DEFAULT '0',
`status2` tinyint(3) DEFAULT '0' COMMENT '申请状态,-2删除,-1无效,0未申请,1申请,2审核通过 3已打款',
`content2` text,
`commission3` text,
`applytime3` int(11) DEFAULT '0',
`checktime3` int(10) DEFAULT '0',
`paytime3` int(11) DEFAULT '0',
`invalidtime3` int(11) DEFAULT '0',
`deletetime3` int(11) DEFAULT '0',
`status3` tinyint(3) DEFAULT '0' COMMENT '申请状态,-2删除,-1无效,0未申请,1申请,2审核通过 3已打款',
`content3` text,
`realprice` decimal(10,2) DEFAULT '0.00',
`goodssn` varchar(255) DEFAULT '',
`productsn` varchar(255) DEFAULT '',
`nocommission` tinyint(3) DEFAULT '0',
`changeprice` decimal(10,2) DEFAULT '0.00',
`oldprice` decimal(10,2) DEFAULT '0.00',
`commissions` text,
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_orderid` (`orderid`),
KEY `idx_goodsid` (`goodsid`),
KEY `idx_createtime` (`createtime`),
KEY `idx_applytime1` (`applytime1`),
KEY `idx_checktime1` (`checktime1`),
KEY `idx_status1` (`status1`),
KEY `idx_applytime2` (`applytime2`),
KEY `idx_checktime2` (`checktime2`),
KEY `idx_status2` (`status2`),
KEY `idx_applytime3` (`applytime3`),
KEY `idx_invalidtime1` (`invalidtime1`),
KEY `idx_checktime3` (`checktime3`),
KEY `idx_invalidtime2` (`invalidtime2`),
KEY `idx_invalidtime3` (`invalidtime3`),
KEY `idx_status3` (`status3`),
KEY `idx_paytime1` (`paytime1`),
KEY `idx_paytime2` (`paytime2`),
KEY `idx_paytime3` (`paytime3`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_order_refund') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`orderid` int(11) DEFAULT '0',
`refundno` varchar(255) DEFAULT '',
`price` varchar(255) DEFAULT '',
`reason` varchar(255) DEFAULT '',
`images` text,
`content` text,
`createtime` int(11) DEFAULT '0',
`status` tinyint(3) DEFAULT '0' COMMENT '0申请 1 通过 2 驳回',
`reply` text,
`refundtype` tinyint(3) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_createtime` (`createtime`),
KEY `idx_uniacid` (`uniacid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_perm_log') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) DEFAULT '0',
`uniacid` int(11) DEFAULT '0',
`name` varchar(255) DEFAULT '',
`type` varchar(255) DEFAULT '',
`op` text,
`createtime` int(11) DEFAULT '0',
`ip` varchar(255) DEFAULT '',
PRIMARY KEY (`id`),
KEY `idx_uid` (`uid`),
KEY `idx_createtime` (`createtime`),
KEY `idx_uniacid` (`uniacid`),
FULLTEXT KEY `idx_type` (`type`),
FULLTEXT KEY `idx_op` (`op`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_perm_plugin') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`acid` int(11) DEFAULT '0',
`uid` int(11) DEFAULT '0',
`type` tinyint(3) DEFAULT '0',
`plugins` text,
PRIMARY KEY (`id`),
KEY `idx_uid` (`uid`),
KEY `idx_acid` (`acid`),
KEY `idx_type` (`type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_perm_role') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`rolename` varchar(255) DEFAULT '',
`status` tinyint(3) DEFAULT '0',
`perms` text,
`deleted` tinyint(3) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_status` (`status`),
KEY `idx_deleted` (`deleted`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_perm_user') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`uid` int(11) DEFAULT '0',
`username` varchar(255) DEFAULT '',
`password` varchar(255) DEFAULT '',
`roleid` int(11) DEFAULT '0',
`status` int(11) DEFAULT '0',
`perms` text,
`deleted` tinyint(3) DEFAULT '0',
`realname` varchar(255) DEFAULT '',
`mobile` varchar(255) DEFAULT '',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_uid` (`uid`),
KEY `idx_roleid` (`roleid`),
KEY `idx_status` (`status`),
KEY `idx_deleted` (`deleted`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_plugin') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`displayorder` int(11) DEFAULT '0',
`identity` varchar(50) DEFAULT '',
`name` varchar(50) DEFAULT '',
`version` varchar(10) DEFAULT '',
`author` varchar(20) DEFAULT '',
`status` tinyint(3) DEFAULT '0',
`category` varchar(255) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_displayorder` (`displayorder`),
FULLTEXT KEY `idx_identity` (`identity`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_poster') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`type` tinyint(3) DEFAULT '0' COMMENT '1 首页 2 小店 3 商城 4 自定义',
`title` varchar(255) DEFAULT '',
`bg` varchar(255) DEFAULT '',
`data` text,
`keyword` varchar(255) DEFAULT '',
`times` int(11) DEFAULT '0',
`follows` int(11) DEFAULT '0',
`isdefault` tinyint(3) DEFAULT '0',
`resptitle` varchar(255) DEFAULT '',
`respthumb` varchar(255) DEFAULT '',
`createtime` int(11) DEFAULT '0',
`respdesc` varchar(255) DEFAULT '',
`respurl` varchar(255) DEFAULT '',
`waittext` varchar(255) DEFAULT '',
`oktext` varchar(255) DEFAULT '',
`subcredit` int(11) DEFAULT '0',
`submoney` decimal(10,2) DEFAULT '0.00',
`reccredit` int(11) DEFAULT '0',
`recmoney` decimal(10,2) DEFAULT '0.00',
`paytype` tinyint(1) DEFAULT '0',
`scantext` varchar(255) DEFAULT '',
`subtext` varchar(255) DEFAULT '',
`beagent` tinyint(3) DEFAULT '0',
`bedown` tinyint(3) DEFAULT '0',
`isopen` tinyint(3) DEFAULT '0',
`opentext` varchar(255) DEFAULT '',
`openurl` varchar(255) DEFAULT '',
`templateid` varchar(255) DEFAULT '',
`subpaycontent` text,
`recpaycontent` text,
`entrytext` varchar(255) DEFAULT '',
`reccouponid` int(11) DEFAULT '0',
`reccouponnum` int(11) DEFAULT '0',
`subcouponid` int(11) DEFAULT '0',
`subcouponnum` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_type` (`type`),
KEY `idx_times` (`times`),
KEY `idx_isdefault` (`isdefault`),
KEY `idx_createtime` (`createtime`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_poster_log') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`openid` varchar(255) DEFAULT '',
`posterid` int(11) DEFAULT '0',
`from_openid` varchar(255) DEFAULT '',
`subcredit` int(11) DEFAULT '0',
`submoney` decimal(10,2) DEFAULT '0.00',
`reccredit` int(11) DEFAULT '0',
`recmoney` decimal(10,2) DEFAULT '0.00',
`createtime` int(11) DEFAULT '0',
`reccouponid` int(11) DEFAULT '0',
`reccouponnum` int(11) DEFAULT '0',
`subcouponid` int(11) DEFAULT '0',
`subcouponnum` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_openid` (`openid`),
KEY `idx_createtime` (`createtime`),
KEY `idx_posterid` (`posterid`),
FULLTEXT KEY `idx_from_openid` (`from_openid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_poster_qr') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`acid` int(10) unsigned NOT NULL,
`openid` varchar(100) NOT NULL DEFAULT '',
`type` tinyint(3) DEFAULT '0',
`sceneid` int(11) DEFAULT '0',
`mediaid` varchar(255) DEFAULT '',
`ticket` varchar(250) NOT NULL,
`url` varchar(80) NOT NULL,
`createtime` int(10) unsigned NOT NULL,
`goodsid` int(11) DEFAULT '0',
`qrimg` varchar(1000) DEFAULT '',
`scenestr` varchar(255) DEFAULT '',
PRIMARY KEY (`id`),
KEY `idx_acid` (`acid`),
KEY `idx_sceneid` (`sceneid`),
KEY `idx_type` (`type`),
FULLTEXT KEY `idx_openid` (`openid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_poster_scan') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`posterid` int(11) DEFAULT '0',
`openid` varchar(255) DEFAULT '',
`from_openid` varchar(255) DEFAULT '',
`scantime` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_posterid` (`posterid`),
KEY `idx_scantime` (`scantime`),
FULLTEXT KEY `idx_openid` (`openid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `ims_sz_yi_postera` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`type` tinyint(3) DEFAULT '0' COMMENT '1 首页 2 小店 3 商城 4 自定义',
`days` int(11) DEFAULT '0',
`title` varchar(255) DEFAULT '',
`bg` varchar(255) DEFAULT '',
`data` text,
`keyword` varchar(255) DEFAULT '',
`isdefault` tinyint(3) DEFAULT '0',
`resptitle` varchar(255) DEFAULT '',
`respthumb` varchar(255) DEFAULT '',
`createtime` int(11) DEFAULT '0',
`respdesc` varchar(255) DEFAULT '',
`respurl` varchar(255) DEFAULT '',
`waittext` varchar(255) DEFAULT '',
`oktext` varchar(255) DEFAULT '',
`subcredit` int(11) DEFAULT '0',
`submoney` decimal(10,2) DEFAULT '0.00',
`reccredit` int(11) DEFAULT '0',
`recmoney` decimal(10,2) DEFAULT '0.00',
`scantext` varchar(255) DEFAULT '',
`subtext` varchar(255) DEFAULT '',
`beagent` tinyint(3) DEFAULT '0',
`bedown` tinyint(3) DEFAULT '0',
`isopen` tinyint(3) DEFAULT '0',
`opentext` varchar(255) DEFAULT '',
`openurl` varchar(255) DEFAULT '',
`paytype` tinyint(1) NOT NULL DEFAULT '0',
`subpaycontent` text,
`recpaycontent` varchar(255) DEFAULT '',
`templateid` varchar(255) DEFAULT '',
`entrytext` varchar(255) DEFAULT '',
`reccouponid` int(11) DEFAULT '0',
`reccouponnum` int(11) DEFAULT '0',
`subcouponid` int(11) DEFAULT '0',
`subcouponnum` int(11) DEFAULT '0',
`timestart` int(11) DEFAULT '0',
`timeend` int(11) DEFAULT '0',
`status` tinyint(3) DEFAULT '0',
`goodsid` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_type` (`type`),
KEY `idx_isdefault` (`isdefault`),
KEY `idx_createtime` (`createtime`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `ims_sz_yi_postera_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`openid` varchar(255) DEFAULT '',
`posterid` int(11) DEFAULT '0',
`from_openid` varchar(255) DEFAULT '',
`subcredit` int(11) DEFAULT '0',
`submoney` decimal(10,2) DEFAULT '0.00',
`reccredit` int(11) DEFAULT '0',
`recmoney` decimal(10,2) DEFAULT '0.00',
`createtime` int(11) DEFAULT '0',
`reccouponid` int(11) DEFAULT '0',
`reccouponnum` int(11) DEFAULT '0',
`subcouponid` int(11) DEFAULT '0',
`subcouponnum` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_openid` (`openid`),
KEY `idx_createtime` (`createtime`),
KEY `idx_posteraid` (`posterid`),
FULLTEXT KEY `idx_from_openid` (`from_openid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `ims_sz_yi_postera_qr` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`acid` int(10) unsigned NOT NULL,
`openid` varchar(100) NOT NULL DEFAULT '',
`posterid` int(11) DEFAULT '0',
`type` tinyint(3) DEFAULT '0',
`sceneid` int(11) DEFAULT '0',
`mediaid` varchar(255) DEFAULT '',
`ticket` varchar(250) NOT NULL,
`url` varchar(80) NOT NULL,
`createtime` int(10) unsigned NOT NULL,
`goodsid` int(11) DEFAULT '0',
`qrimg` varchar(1000) DEFAULT '',
`expire` int(11) DEFAULT '0',
`endtime` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_acid` (`acid`),
KEY `idx_sceneid` (`sceneid`),
KEY `idx_type` (`type`),
KEY `idx_posterid` (`posterid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_saler') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`storeid` int(11) DEFAULT '0',
`uniacid` int(11) DEFAULT '0',
`openid` varchar(255) DEFAULT '',
`status` tinyint(3) DEFAULT '0',
`salername` varchar(255) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_storeid` (`storeid`),
KEY `idx_uniacid` (`uniacid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_store') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`storename` varchar(255) DEFAULT '',
`address` varchar(255) DEFAULT '',
`tel` varchar(255) DEFAULT '',
`lat` varchar(255) DEFAULT '',
`lng` varchar(255) DEFAULT '',
`status` tinyint(3) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_status` (`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_sysset') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`sets` text,
`plugins` text,
`sec` text,
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_virtual_category') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0' COMMENT '所属帐号',
`name` varchar(50) DEFAULT NULL COMMENT '分类名称',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_virtual_data') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) NOT NULL DEFAULT '0',
`typeid` int(11) NOT NULL DEFAULT '0' COMMENT '类型id',
`pvalue` varchar(255) DEFAULT '' COMMENT '主键键值',
`fields` text NOT NULL COMMENT '字符集',
`openid` varchar(255) NOT NULL DEFAULT '' COMMENT '使用者openid',
`usetime` int(11) NOT NULL DEFAULT '0' COMMENT '使用时间',
`orderid` int(11) DEFAULT '0',
`ordersn` varchar(255) DEFAULT '',
`price` decimal(10,2) DEFAULT '0.00',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_typeid` (`typeid`),
KEY `idx_usetime` (`usetime`),
KEY `idx_orderid` (`orderid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_virtual_type') . " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) NOT NULL DEFAULT '0',
`cate` int(11) DEFAULT '0',
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '分类名称',
`fields` text NOT NULL COMMENT '字段集',
`usedata` int(11) NOT NULL DEFAULT '0' COMMENT '已用数据',
`alldata` int(11) NOT NULL DEFAULT '0' COMMENT '全部数据',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_cate` (`cate`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_article'). " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`article_title` varchar(255) NOT NULL DEFAULT '' COMMENT '文章标题',
`resp_desc` text NOT NULL COMMENT '回复介绍',
`resp_img` text NOT NULL COMMENT '回复图片',
`article_content` longtext,
`article_category` int(11) NOT NULL DEFAULT '0' COMMENT '文章分类',
`article_date_v` varchar(20) NOT NULL DEFAULT '' COMMENT '虚拟发布时间',
`article_date` varchar(20) NOT NULL DEFAULT '' COMMENT '文章发布时间',
`article_mp` varchar(50) NOT NULL DEFAULT '' COMMENT '公众号',
`article_author` varchar(20) NOT NULL DEFAULT '' COMMENT '发布作者',
`article_readnum_v` int(11) NOT NULL DEFAULT '0' COMMENT '虚拟阅读量',
`article_readnum` int(11) NOT NULL DEFAULT '0' COMMENT '真实阅读量',
`article_likenum_v` int(11) NOT NULL DEFAULT '0' COMMENT '虚拟点赞数',
`article_likenum` int(11) NOT NULL DEFAULT '0' COMMENT '真实点赞数',
`article_linkurl` varchar(300) NOT NULL DEFAULT '' COMMENT '阅读原文链接',
`article_rule_daynum` int(11) NOT NULL DEFAULT '0' COMMENT '每人每天参与次数',
`article_rule_allnum` int(11) NOT NULL DEFAULT '0' COMMENT '所有参与次数',
`article_rule_credit` int(11) NOT NULL DEFAULT '0' COMMENT '增加y积分',
`article_rule_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '增加z余额',
`page_set_option_nocopy` int(1) NOT NULL DEFAULT '0' COMMENT '页面禁止复制url',
`page_set_option_noshare_tl` int(1) NOT NULL DEFAULT '0' COMMENT '页面禁止分享至朋友圈',
`page_set_option_noshare_msg` int(1) NOT NULL DEFAULT '0' COMMENT '页面禁止发送给好友',
`article_keyword` varchar(255) NOT NULL DEFAULT '' COMMENT '页面关键字',
`article_report` int(1) NOT NULL DEFAULT '0' COMMENT '举报按钮',
`product_advs_type` int(1) NOT NULL DEFAULT '0' COMMENT '营销显示产品',
`product_advs_title` varchar(255) NOT NULL DEFAULT '' COMMENT '营销产品标题',
`product_advs_more` varchar(255) NOT NULL DEFAULT '' COMMENT '推广产品底部标题',
`product_advs_link` varchar(255) NOT NULL DEFAULT '' COMMENT '推广产品底部链接',
`product_advs` text NOT NULL COMMENT '营销商品',
`article_state` int(1) NOT NULL DEFAULT '0',
`network_attachment` varchar(255) DEFAULT '',
`uniacid` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_article_title` (`article_title`),
KEY `idx_article_content` (`article_content`(10)),
KEY `idx_article_keyword` (`article_keyword`),
KEY `idx_uniacid` (`uniacid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='营销文章';
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_article_category'). " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`category_name` varchar(255) NOT NULL DEFAULT '' COMMENT '分类名称',
`uniacid` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`),
KEY `idx_category_name` (`category_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='营销表单分类';
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_article_log'). " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) NOT NULL DEFAULT '0' COMMENT '文章id',
`read` int(11) NOT NULL DEFAULT '0',
`like` int(11) NOT NULL DEFAULT '0',
`openid` varchar(255) NOT NULL DEFAULT '' COMMENT '用户openid',
`uniacid` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_aid` (`aid`),
KEY `idx_openid` (`openid`),
KEY `idx_uniacid` (`uniacid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='点赞/阅读记录';
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_article_report'). " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`mid` int(11) NOT NULL DEFAULT '0',
`openid` varchar(255) NOT NULL DEFAULT '',
`aid` int(11) DEFAULT '0',
`cate` varchar(255) NOT NULL DEFAULT '',
`cons` varchar(255) NOT NULL DEFAULT '',
`uniacid` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='用户举报记录';
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_article_share'). " (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) NOT NULL DEFAULT '0',
`share_user` int(11) NOT NULL DEFAULT '0' COMMENT '分享人',
`click_user` int(11) NOT NULL DEFAULT '0' COMMENT '点击人',
`click_date` varchar(20) NOT NULL DEFAULT '' COMMENT '执行时间',
`add_credit` int(11) NOT NULL DEFAULT '0' COMMENT '添加的积分',
`add_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '添加的余额',
`uniacid` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_aid` (`aid`),
KEY `idx_uniacid` (`uniacid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='用户分享数据';
CREATE TABLE IF NOT EXISTS " . tablename('sz_yi_article_sys'). " (
`uniacid` int(11) NOT NULL DEFAULT '0',
`article_message` varchar(255) NOT NULL DEFAULT '',
`article_title` varchar(255) NOT NULL DEFAULT '' COMMENT '标题',
`article_image` varchar(300) NOT NULL DEFAULT '' COMMENT '图片',
`article_shownum` int(11) NOT NULL DEFAULT '0' COMMENT '每页数量',
`article_keyword` varchar(255) NOT NULL DEFAULT '' COMMENT '关键字',
`article_temp` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`uniacid`),
KEY `idx_article_message` (`article_message`),
KEY `idx_article_keyword` (`article_keyword`),
KEY `idx_article_title` (`article_title`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='文章设置';
INSERT INTO " . tablename('sz_yi_plugin') . " (`id`,`displayorder`,`identity`,`name`,`version`,`author`,`status`,`category`) VALUES
(1, 1, 'qiniu', '七牛存储', '1.0', '官方', '1','tool'),
(2, 2, 'taobao', '淘宝助手', '1.0', '官方', '1','tool'),
(3, 3, 'commission','人人分销','1.0','官方','1','biz'),
(4, 4, 'poster','超级海报','1.2','官方','1','sale'),
(5, 5, 'verify','O2O核销','1.0','官方','1','biz'),
(6, 6, 'perm','分权系统','1.0','官方','0','help'),
(7, 7, 'sale','营销宝','1.0','官方','0','sale'),
(8, 8, 'tmessage','会员群发','1.0','官方','1','tool'),
(9, 9, 'designer', '店铺装修', '1.0', '官方', '1','tool'),
(10, 10, 'creditshop','积分商城','1.0','官方','0','biz'),
(11, 11, 'virtual','虚拟物品','1.0','官方','0','biz'),
(12, 12, 'article', '文章营销','1.0', '官方', '1','sale'),
(13,13,'coupon','超级券','1.0','官方','0','sale'),
(14,14,'postera','活动海报','1.0','官方','0','sale');
;
";
pdo_query($sql);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。