广告
/*
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for tp_ad
-- ----------------------------
DROP TABLE IF EXISTS `ad`;
CREATE TABLE `ad` (
`ad_id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '广告id',
`pid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '广告位置ID',
`media_type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '广告类型',
`ad_name` varchar(60) NOT NULL DEFAULT '' COMMENT '广告名称',
`ad_link` varchar(255) NOT NULL DEFAULT '' COMMENT '链接地址',
`ad_code` text NOT NULL COMMENT '图片地址',
`start_time` int(11) NOT NULL DEFAULT '0' COMMENT '投放时间',
`end_time` int(11) NOT NULL DEFAULT '0' COMMENT '结束时间',
`link_man` varchar(60) NOT NULL DEFAULT '' COMMENT '添加人',
`link_email` varchar(60) NOT NULL DEFAULT '' COMMENT '添加人邮箱',
`link_phone` varchar(60) NOT NULL DEFAULT '' COMMENT '添加人联系电话',
`click_count` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '点击量',
`enabled` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '是否显示',
`orderby` smallint(6) DEFAULT '50' COMMENT '排序',
`target` tinyint(1) DEFAULT '0' COMMENT '是否开启浏览器新窗口',
`bgcolor` varchar(20) DEFAULT NULL COMMENT '背景颜色',
PRIMARY KEY (`ad_id`),
KEY `enabled` (`enabled`),
KEY `position_id` (`pid`)
) ENGINE=MyISAM AUTO_INCREMENT=82 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for tp_ad_position
-- ----------------------------
DROP TABLE IF EXISTS `ad_position`;
CREATE TABLE `ad_position` (
`position_id` int(3) unsigned NOT NULL AUTO_INCREMENT COMMENT '表id',
`position_name` varchar(60) NOT NULL DEFAULT '' COMMENT '广告位置名称',
`ad_width` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '广告位宽度',
`ad_height` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '广告位高度',
`position_desc` varchar(255) NOT NULL DEFAULT '' COMMENT '广告描述',
`position_style` text COMMENT '模板',
`is_open` tinyint(1) DEFAULT '0' COMMENT '0关闭1开启',
PRIMARY KEY (`position_id`)
) ENGINE=MyISAM AUTO_INCREMENT=537 DEFAULT CHARSET=utf8;
友情链接
友情链接位表
注释 | |
---|---|
名称 | |
类型 | |
js路径 | |
配置项 | |
介绍 | |
数量 | |
是否启用 |
友情链接内容表
注释 | |
---|---|
名称 | |
友情链接位id | |
友情链接类型 | |
启动时间 | |
结束时间 | |
创建时间 | |
展示次数 | |
点击次数 | |
排序 | |
配置项 | |
介绍 | |
是否启用 |
站内信
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for tp_user_message
-- ----------------------------
DROP TABLE IF EXISTS `tp_user_message`;
CREATE TABLE `tp_user_message` (
`rec_id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
`title` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '消息标题',
`content` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '消息内容',
`message_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '消息id',
`category` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '通知消息:0, 活动消息:1, 物流:2, 私信:3',
`is_see` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否查看:0未查看, 1已查看',
`deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '用户假删除标识,1:删除,0未删除',
PRIMARY KEY (`rec_id`),
KEY `user_id` (`user_id`),
KEY `message_id` (`message_id`)
) ENGINE=MyISAM AUTO_INCREMENT=199 DEFAULT CHARSET=utf8 COMMENT='用户的消息表';
会员地址
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for tp_user_address
-- ----------------------------
DROP TABLE IF EXISTS `tp_user_address`;
CREATE TABLE `tp_user_address` (
`address_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '表id',
`user_id` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
`consignee` varchar(60) NOT NULL DEFAULT '' COMMENT '收货人',
`email` varchar(60) NOT NULL DEFAULT '' COMMENT '邮箱地址',
`country` int(11) NOT NULL DEFAULT '0' COMMENT '国家',
`province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
`city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
`district` int(11) NOT NULL DEFAULT '0' COMMENT '地区',
`twon` int(11) DEFAULT '0' COMMENT '乡镇',
`address` varchar(120) NOT NULL DEFAULT '' COMMENT '地址',
`zipcode` varchar(60) NOT NULL DEFAULT '' COMMENT '邮政编码',
`mobile` varchar(60) NOT NULL DEFAULT '' COMMENT '手机',
`is_default` tinyint(1) DEFAULT '0' COMMENT '默认收货地址',
`longitude` decimal(10,7) NOT NULL DEFAULT '0.0000000' COMMENT '地址经度',
`latitude` decimal(10,7) NOT NULL DEFAULT '0.0000000' COMMENT '地址纬度',
PRIMARY KEY (`address_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=88 DEFAULT CHARSET=utf8;
会员银行卡
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for tp_user_address
-- ----------------------------
DROP TABLE IF EXISTS `tp_user_bank`;
CREATE TABLE `tp_user_bank` (
`address_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '表id',
`user_id` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
`real_name` varchar(60) NOT NULL DEFAULT '' COMMENT '真实姓名',
`bank` varchar(60) NOT NULL DEFAULT '' COMMENT '开户行',
`bank_name` int(11) NOT NULL DEFAULT '0' COMMENT '银行名称',
`bank_card` int(11) NOT NULL DEFAULT '0' COMMENT '银行卡号',
`mobile` varchar(60) NOT NULL DEFAULT '' COMMENT '手机',
`is_default` tinyint(1) DEFAULT '0' COMMENT '默认',
PRIMARY KEY (`address_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=88 DEFAULT CHARSET=utf8;
会员收藏
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for tp_user_collection
-- ----------------------------
DROP TABLE IF EXISTS `tp_user_collection`;
CREATE TABLE `tp_user_collection` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户下载收集表',
`mobile` varchar(11) DEFAULT '' COMMENT '用户手机号',
`contact` varchar(32) DEFAULT '' COMMENT '联系人',
`why_down` varchar(32) DEFAULT '' COMMENT '下载原因',
`add_time` int(11) DEFAULT '0' COMMENT '申请时间',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
评论表
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for tp_comment
-- ----------------------------
DROP TABLE IF EXISTS `comment`;
CREATE TABLE `comment` (
`comment_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '评论id',
`goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '商品id',
`email` varchar(60) NOT NULL DEFAULT '' COMMENT 'email邮箱',
`username` varchar(60) NOT NULL DEFAULT '' COMMENT '用户名',
`content` text NOT NULL COMMENT '评论内容',
`add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间',
`ip_address` varchar(15) NOT NULL DEFAULT '' COMMENT 'ip地址',
`is_show` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否显示',
`parent_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '父id',
`user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '评论用户',
`img` text COMMENT '晒单图片',
`order_id` mediumint(8) DEFAULT '0' COMMENT '订单id',
`deliver_rank` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '物流评价等级',
`goods_rank` tinyint(1) DEFAULT '0' COMMENT '商品评价等级',
`service_rank` tinyint(1) DEFAULT '0' COMMENT '商家服务态度评价等级',
`zan_num` int(10) NOT NULL DEFAULT '0' COMMENT '被赞数',
`zan_userid` varchar(255) NOT NULL DEFAULT '' COMMENT '点赞用户id',
`is_anonymous` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否匿名评价:0不是,1是',
`rec_id` int(11) DEFAULT NULL COMMENT '订单商品表ID',
`sort` int(4) unsigned NOT NULL DEFAULT '100' COMMENT '排序',
PRIMARY KEY (`comment_id`),
KEY `parent_id` (`parent_id`),
KEY `id_value` (`goods_id`),
KEY `order_id` (`order_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=68 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of tp_comment
-- ----------------------------
INSERT INTO `tp_comment` VALUES ('1', '154', '', '', '54545445', '1523851074', '183.11.70.112', '1', '0', '2', 'a:5:{i:0;s:51:\"/public/upload/comment/2018/04-16/5ad41f428b4e5.png\";i:1;s:51:\"/public/upload/comment/2018/04-16/5ad41f428b4e5.png\";i:2;s:51:\"/public/upload/comment/2018/04-16/5ad41f428b4e5.png\";i:3;s:51:\"/public/upload/comment/2018/04-16/5ad41f428b4e5.png\";i:4;s:51:\"/public/upload/comment/2018/04-16/5ad41f428b4e5.png\";}', '24', '2', '3', '4', '2', ',2,3', '1', '32', '100');
INSERT INTO `tp_comment` VALUES ('2', '74', '', '15915407513', 'OK!OK!OK!OKOKOKOKOKOK1', '1523857699', '183.11.70.112', '1', '0', '2', 's:0:\"\";', '25', '0', '3', '3', '0', '', '0', '33', '100');
INSERT INTO `tp_comment` VALUES ('3', '56', '', '', 'okokokokokokok', '1523858263', '183.11.70.112', '1', '0', '2', 's:0:\"\";', '7', '4', '4', '4', '0', '', '1', '7', '100');
INSERT INTO `tp_comment` VALUES ('4', '97', '[email protected]', '15915407513', '往事并不如烟123456', '1523869839', '183.11.70.112', '1', '0', '2', 'a:5:{i:0;s:67:\"/public/upload/user/2/comment//5028f4eaaeec64d8c1918b3fa65f0c8b.jpg\";i:1;s:67:\"/public/upload/user/2/comment//9ef3862b61b24ecb82d89ad5dc33e9bb.jpg\";i:2;s:67:\"/public/upload/user/2/comment//dfc6b6b565ec492d0f61cbea66492c50.png\";i:3;s:67:\"/public/upload/user/2/comment//f5f38481bc76a025234b6ee89e40ec1a.png\";i:4;s:67:\"/public/upload/user/2/comment//59d2256f28ae30da4085c045ea01d001.png\";}', '32', '3', '5', '2', '1', ',2', '0', '44', '100');
搜索关键词
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for tp_search_word
-- ----------------------------
DROP TABLE IF EXISTS `tp_search_word`;
CREATE TABLE `tp_search_word` (
`id` int(8) NOT NULL AUTO_INCREMENT COMMENT '搜索表ID',
`keywords` varchar(255) NOT NULL DEFAULT '' COMMENT '搜索关键词,商品关键词',
`pinyin_full` varchar(255) NOT NULL DEFAULT '' COMMENT '拼音全拼',
`pinyin_simple` varchar(255) NOT NULL DEFAULT '' COMMENT '拼音简写',
`search_num` int(8) NOT NULL DEFAULT '0' COMMENT '搜索次数',
`goods_num` int(8) NOT NULL DEFAULT '0' COMMENT '商品数量',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=32 DEFAULT CHARSET=utf8 COMMENT='搜索关键词表';
抬头号
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for tp_user_extend
-- ----------------------------
DROP TABLE IF EXISTS `tp_user_extend`;
CREATE TABLE `tp_user_extend` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) unsigned DEFAULT '0',
`invoice_title` varchar(200) CHARACTER SET utf8 DEFAULT NULL COMMENT '发票抬头',
`taxpayer` varchar(100) CHARACTER SET utf8 DEFAULT NULL COMMENT '纳税人识别号',
`invoice_desc` varchar(50) CHARACTER SET utf8 DEFAULT NULL COMMENT '不开发票/明细',
`realname` varchar(100) CHARACTER SET utf8 DEFAULT NULL COMMENT '真实姓名',
`idcard` varchar(100) CHARACTER SET utf8 DEFAULT NULL COMMENT '身份证号',
`cash_alipay` varchar(100) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '提现支付宝号',
`cash_unionpay` varchar(100) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '提现银行卡号',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
签到
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for tp_user_sign
-- ----------------------------
DROP TABLE IF EXISTS `tp_user_sign`;
CREATE TABLE `tp_user_sign` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT '0' COMMENT '用户id',
`sign_total` int(11) DEFAULT '0' COMMENT '累计签到天数',
`sign_count` int(11) DEFAULT '0' COMMENT '连续签到天数',
`sign_last` char(11) DEFAULT '0' COMMENT '最后签到时间,时间格式20170907',
`sign_time` text CHARACTER SET utf8 COMMENT '历史签到时间,以逗号隔开',
`cumtrapz` int(11) DEFAULT '0' COMMENT '用户累计签到总积分',
`this_month` int(6) DEFAULT NULL COMMENT '本月累计积分',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
我的足迹
我的优惠卷