1
CREATE TABLE `wst_accreds` (
`accredid、` int(11) NOT NULL COMMENT '自增ID',
`accredNme` varchar(50) NOT NULL COMMENT '名称',
`accredlmg` varchar(150) NOT NULL DEFAULT '0' COMMENT '图标',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志(-1:删除 1有效)',
`createTime` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`accredid、`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='accreds 熊康宁';
2
CREATE TABLE `wst_ad_positions` (
`positionid` int(11) NOT NULL COMMENT '自增ID',
`positiontype` tinyint(4) NOT NULL DEFAULT '0' COMMENT '广告类型(1:电脑端2:微信端3:手机端4:app端5:小程序端)',
`positionname` varchar(100) NOT NULL COMMENT '广告位置名称',
`positionwidth` int(11) NOT NULL DEFAULT '0' COMMENT '建议宽度',
`positionheight` int(11) NOT NULL DEFAULT '0' COMMENT '建议高度',
`dataflag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效状态(1:有效 -1:无效)',
`positioncode` varchar(20) DEFAULT NULL COMMENT '广告位置代码(N/A)',
`adsort` int(11) NOT NULL COMMENT '排序号',
PRIMARY KEY (`positionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='wst_ad_positions 熊康宁';
3
CREATE TABLE `wst_addons` (
`addonid` int(10) NOT NULL COMMENT '自增ID',
`name` varchar(40) NOT NULL COMMENT '插件名称',
`title` varchar(20) NOT NULL COMMENT '插件标题',
`description` text COMMENT '插件描述',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '插件状态',
`config` text COMMENT '插件配置参数json',
`author` varchar(40) DEFAULT NULL COMMENT '插件作者',
`version` varchar(20) DEFAULT NULL COMMENT '插件版本号',
`create time` datetime NOT NULL COMMENT '创建时间',
`dataFlag` tinyint(4) DEFAULT '1' COMMENT '有效标识',
`isconfig` tinyint(4) DEFAULT '0' COMMENT '是否配置',
`update time` datetime DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`addonid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='wst_addons熊康宁';
4
CREATE TABLE `wst_ads` (
`adid` int(11) NOT NULL COMMENT '自增ID',
`adpositionid` int(11) NOT NULL DEFAULT '0' COMMENT '广告位置ID',
`adfile` varchar(150) NOT NULL COMMENT '广告文件',
`adname` varchar(100) NOT NULL COMMENT '广告名称',
`adurl` varchar(255) NOT NULL COMMENT '广告网址',
`adstartdate` date NOT NULL COMMENT '广告开始日期',
`adendate` date NOT NULL COMMENT '广告结束日期',
`adsort` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
`adclicknum` int(11) NOT NULL DEFAULT '0' COMMENT '广告点击数',
`position type` tinyint(4) DEFAULT '0' COMMENT '广高类型',
`dataflag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志',
`createtime` datetime NOT NULL COMMENT '创建时间',
`subtitle` varchar(255) DEFAULT NULL COMMENT '副标题',
PRIMARY KEY (`adid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='wst_ads熊康宁';
5
CREATE TABLE `wst_areas` (
`areaid` int(11) NOT NULL COMMENT '自增ID',
`parentid` int(11) NOT NULL COMMENT '父ID',
`areaname` varchar(100) NOT NULL COMMENT '地区名称',
`isshow` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否显示(0:是 1:否)',
`areasort` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
`areakey` char(10) NOT NULL COMMENT '地区首字母',
`areatype` tinyint(4) NOT NULL DEFAULT '1' COMMENT '级别标志(1:省 2:市 3:县区)',
`dataflag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志(-1:删除 1:有效)',
`createtime` datetime DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`areaid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='wst_areas熊康宁';
6
CREATE TABLE `wst_article_cats` (
`catid` int(11) NOT NULL COMMENT '自增id',
`parentid` int(11) NOT NULL DEFAULT '0' COMMENT '父id',
`cattype` tinyint(4) NOT NULL DEFAULT '0' COMMENT '分类类型(0:普通类型 1:系统菜单)',
`isshow` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否显示(0:隐藏 1:显示)',
`carName` varchar(20) NOT NULL COMMENT '分类名称',
`catsort` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
`dataflag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志',
`createtime` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`catid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='wst_article_cats熊康宁';
7
CREATE TABLE `wst_articles` (
`articleid` int(11) NOT NULL,
`catid` int(11) NOT NULL,
`article title` varchar(200) NOT NULL,
`isshow` tinyint(4) NOT NULL DEFAULT '1',
`articlecontent` longtext NOT NULL,
`articlekey` varchar(200) DEFAULT NULL,
`staffid` int(11) NOT NULL,
`daraflag` tinyint(4) NOT NULL DEFAULT '1',
`createtime` datetime NOT NULL,
`solve` int(10) unsigned DEFAULT NULL,
`unsolve` int(10) unsigned DEFAULT NULL,
`coverimg` varchar(150) DEFAULT NULL,
`sisitornum` int(10) unsigned DEFAULT NULL,
`typestatus` int(10) DEFAULT '1',
`likenum` int(10) DEFAULT '0',
`catsort` int(11) DEFAULT '0',
`articledesc` varchar(600) NOT NULL,
`ishide` tinyint(4) DEFAULT '0',
PRIMARY KEY (`articleid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='wst_articles 熊康宁';
8
CREATE TABLE `wst_attributes` (
`attrid` int(11) NOT NULL COMMENT '自增id',
`goodscatid` int(11) NOT NULL DEFAULT '0' COMMENT '最后一级商品分类id',
`goodscatpath` varchar(100) NOT NULL COMMENT '商品分类路径',
`attrname` varchar(100) NOT NULL COMMENT '属性名称',
`attrtype` tinyint(4) NOT NULL DEFAULT '0' COMMENT '属性类型(0:输入框 1:多选项 2:下拉框)',
`attrval` text COMMENT '属性值',
`attrsort` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
`isshow` tinyint(4) DEFAULT '1' COMMENT '是否显示(1:显示 0:不显示)',
`dataflag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效状态(1:有效2:无效)',
`createtime` datetime NOT NULL COMMENT '创建时间',
`shopid` int(11) DEFAULT '0' COMMENT '店铺id(如果有值则说明是店铺属性)',
PRIMARY KEY (`attrid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='wst_attributes熊康宁';