From f3c8ea0017cb2c1ef556191bc541e2a4f228b309 Mon Sep 17 00:00:00 2001 From: molong Date: Tue, 28 Jun 2016 09:43:13 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E5=A4=8D=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E9=83=A8=E5=88=86bug=202=E3=80=81=E4=BF=AE=E5=A4=8D=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E5=A4=87=E4=BB=BD=E7=B1=BB=203=E3=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E6=96=87=E4=BB=B6=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Config.php | 9 +- data/sql.sql | 2526 ++++++++++------------- extend/com/Database.php | 10 +- 3 files changed, 1046 insertions(+), 1499 deletions(-) diff --git a/application/admin/controller/Config.php b/application/admin/controller/Config.php index 11c9c32f..a2ad24bf 100644 --- a/application/admin/controller/Config.php +++ b/application/admin/controller/Config.php @@ -49,16 +49,17 @@ class Config extends Admin{ return $this->fetch(); } - public function group(){ + public function group($id = 1){ if (IS_POST) { - $config = input('post.config/a',''); + $config = $this->request->post('config/a'); $model = model('Config'); foreach ($config as $key => $value) { - $model::where('name',$key)->update(array('value' => $value)); + $model->where(array('name'=>$key))->setField('value', $value); } + //清除db_config_data缓存 + cache('db_config_data', null); return $this->success("更新成功!"); }else{ - $id = input('get.id', 1); $type = config('config_group_list'); $list = db("Config")->where(array('status' => 1, 'group' => $id))->field('id,name,title,extra,value,remark,type')->order('sort')->select(); if ($list) { diff --git a/data/sql.sql b/data/sql.sql index fc696ca4..6c9bac33 100644 --- a/data/sql.sql +++ b/data/sql.sql @@ -1,25 +1,23 @@ --- phpMyAdmin SQL Dump --- version 4.4.12 --- http://www.phpmyadmin.net --- --- Host: localhost --- Generation Time: 2016-06-27 09:31:01 --- 服务器版本: 5.5.28 --- PHP Version: 5.4.14 +-- ----------------------------- +-- SentCMS MySQL Data Transfer +-- +-- Host : 127.0.0.1 +-- Port : +-- Database : sentcms_www +-- +-- Part : #1 +-- Date : 2016-06-28 09:38:33 +-- ----------------------------- -SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; -SET time_zone = "+00:00"; +SET FOREIGN_KEY_CHECKS = 0; --- -------------------------------------------------------- - --- --- 表的结构 `sent_action` --- - +-- ----------------------------- +-- Table structure for `sent_action` +-- ----------------------------- DROP TABLE IF EXISTS `sent_action`; -CREATE TABLE IF NOT EXISTS `sent_action` ( - `id` int(11) unsigned NOT NULL COMMENT '主键', +CREATE TABLE `sent_action` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', `name` char(30) NOT NULL DEFAULT '' COMMENT '行为唯一标识', `title` char(80) NOT NULL DEFAULT '' COMMENT '行为说明', `remark` char(140) NOT NULL DEFAULT '' COMMENT '行为描述', @@ -27,35 +25,31 @@ CREATE TABLE IF NOT EXISTS `sent_action` ( `log` text COMMENT '日志规则', `type` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '类型', `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '状态', - `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '修改时间' + `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '修改时间', + PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='系统行为表'; --- --- 转存表中的数据 `sent_action` --- - -INSERT INTO `sent_action` (`id`, `name`, `title`, `remark`, `rule`, `log`, `type`, `status`, `update_time`) VALUES -(1, 'user_login', '用户登录', '积分+10,每天一次', 'table:member|field:score|condition:uid={$self} AND status>-1|rule:score+10|cycle:24|max:1;', '[user|get_nickname]在[time|time_format]登录了后台', 1, 1, 1387181220), -(2, 'add_article', '发布文章', '积分+5,每天上限5次', 'table:member|field:score|condition:uid={$self}|rule:score+5|cycle:24|max:5', '', 2, 1, 1380173180), -(3, 'review', '评论', '评论积分+1,无限制', 'table:member|field:score|condition:uid={$self}|rule:score+1', '', 2, 1, 1383285646), -(4, 'add_document', '发表文档', '积分+10,每天上限5次', 'table:member|field:score|condition:uid={$self}|rule:score+10|cycle:24|max:5', '[user|get_nickname]在[time|time_format]发表了一篇文章。\r\n表[model],记录编号[record]。', 2, 1, 1386139726), -(5, 'add_document_topic', '发表讨论', '积分+5,每天上限10次', 'table:member|field:score|condition:uid={$self}|rule:score+5|cycle:24|max:10', '', 2, 1, 1383285551), -(6, 'update_config', '更新配置', '新增或修改或删除配置', '', '', 1, 1, 1383294988), -(7, 'update_model', '更新模型', '新增或修改模型', '', '', 1, 1, 1383295057), -(8, 'update_attribute', '更新属性', '新增或更新或删除属性', '', '', 1, 1, 1383295963), -(9, 'update_channel', '更新导航', '新增或修改或删除导航', '', '', 1, 1, 1383296301), -(10, 'update_menu', '更新菜单', '新增或修改或删除菜单', '', '', 1, 1, 1383296392), -(11, 'update_category', '更新分类', '新增或修改或删除分类.', '', '', 1, 1, 1383296765); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_action_log` --- +-- ----------------------------- +-- Records of `sent_action` +-- ----------------------------- +INSERT INTO `sent_action` VALUES ('1', 'user_login', '用户登录', '积分+10,每天一次', 'table:member|field:score|condition:uid={$self} AND status>-1|rule:score+10|cycle:24|max:1;', '[user|get_nickname]在[time|time_format]登录了后台', '1', '1', '1387181220'); +INSERT INTO `sent_action` VALUES ('2', 'add_article', '发布文章', '积分+5,每天上限5次', 'table:member|field:score|condition:uid={$self}|rule:score+5|cycle:24|max:5', '', '2', '1', '1380173180'); +INSERT INTO `sent_action` VALUES ('3', 'review', '评论', '评论积分+1,无限制', 'table:member|field:score|condition:uid={$self}|rule:score+1', '', '2', '1', '1383285646'); +INSERT INTO `sent_action` VALUES ('4', 'add_document', '发表文档', '积分+10,每天上限5次', 'table:member|field:score|condition:uid={$self}|rule:score+10|cycle:24|max:5', '[user|get_nickname]在[time|time_format]发表了一篇文章。\r\n表[model],记录编号[record]。', '2', '1', '1386139726'); +INSERT INTO `sent_action` VALUES ('5', 'add_document_topic', '发表讨论', '积分+5,每天上限10次', 'table:member|field:score|condition:uid={$self}|rule:score+5|cycle:24|max:10', '', '2', '1', '1383285551'); +INSERT INTO `sent_action` VALUES ('6', 'update_config', '更新配置', '新增或修改或删除配置', '', '', '1', '1', '1383294988'); +INSERT INTO `sent_action` VALUES ('7', 'update_model', '更新模型', '新增或修改模型', '', '', '1', '1', '1383295057'); +INSERT INTO `sent_action` VALUES ('8', 'update_attribute', '更新属性', '新增或更新或删除属性', '', '', '1', '1', '1383295963'); +INSERT INTO `sent_action` VALUES ('9', 'update_channel', '更新导航', '新增或修改或删除导航', '', '', '1', '1', '1383296301'); +INSERT INTO `sent_action` VALUES ('10', 'update_menu', '更新菜单', '新增或修改或删除菜单', '', '', '1', '1', '1383296392'); +INSERT INTO `sent_action` VALUES ('11', 'update_category', '更新分类', '新增或修改或删除分类.', '', '', '1', '1', '1383296765'); +-- ----------------------------- +-- Table structure for `sent_action_log` +-- ----------------------------- DROP TABLE IF EXISTS `sent_action_log`; -CREATE TABLE IF NOT EXISTS `sent_action_log` ( - `id` int(10) unsigned NOT NULL COMMENT '主键', +CREATE TABLE `sent_action_log` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', `action_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '行为id', `user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '执行用户id', `action_ip` bigint(20) NOT NULL COMMENT '执行行为者ip', @@ -63,22 +57,20 @@ CREATE TABLE IF NOT EXISTS `sent_action_log` ( `record_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '触发行为的数据id', `remark` varchar(255) NOT NULL DEFAULT '' COMMENT '日志备注', `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态', - `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '执行行为的时间' + `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '执行行为的时间', + PRIMARY KEY (`id`), + KEY `action_ip_ix` (`action_ip`), + KEY `action_id_ix` (`action_id`), + KEY `user_id_ix` (`user_id`) ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='行为日志表'; --- --- 转存表中的数据 `sent_action_log` --- - --- -------------------------------------------------------- - --- --- 表的结构 `sent_ad` --- +-- ----------------------------- +-- Table structure for `sent_ad` +-- ----------------------------- DROP TABLE IF EXISTS `sent_ad`; -CREATE TABLE IF NOT EXISTS `sent_ad` ( - `id` int(10) unsigned NOT NULL COMMENT '主键', +CREATE TABLE `sent_ad` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', `place_id` int(11) DEFAULT NULL COMMENT '广告位ID', `title` varchar(150) DEFAULT NULL COMMENT '广告名称', `cover_id` int(11) DEFAULT NULL COMMENT '广告图片', @@ -89,57 +81,24 @@ CREATE TABLE IF NOT EXISTS `sent_ad` ( `content` text COMMENT '广告描述', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间', - `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '广告位状态' + `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '广告位状态', + PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='广告表'; --- --- 转存表中的数据 `sent_ad` --- - -INSERT INTO `sent_ad` (`id`, `place_id`, `title`, `cover_id`, `photolist`, `url`, `listurl`, `background`, `content`, `create_time`, `update_time`, `status`) VALUES -(1, 1, '电子商务系统设计与开发', 0, '', '', '', '', '

我们为客户提供专业的B2C、C2C、B2B、P2P等电子商务平台开发,同时紧扣企业运营,提供个性化的电子商务平台开发和运营管理平台。

', 1440433466, 1440433466, 1), -(2, 1, '企业网站设计与开发', 0, '', '', '', '', '

我们为您提供更加专业的企业网站建设、企业文化提升以及企业形象包装服务,为您量身打造更加适合当前网络时代的需求服务,让您的公司更加贴近客户。

', 1440433531, 1440433531, 1), -(3, 1, 'WEB应用系统设计与开发', 14, '', '', '', '', '

我们为您的企业量身打造专业级别的企业OA系统、CRM系统等,为事、企业单位提供更好更高效的无纸化办公平台环境。

', 1440433554, 1462966106, 1), -(4, 1, '手机APP应用设计与开发', 0, '', 'http://www.tensent.cn', '', '', '

腾速科技有限公司专注于手机客户端软件开发,是省内移动客户端开发商的先行者,做到行业内领先地位。

', 1440433571, 1459489811, 1); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_addons` --- - -DROP TABLE IF EXISTS `sent_addons`; -CREATE TABLE IF NOT EXISTS `sent_addons` ( - `id` int(10) unsigned NOT NULL COMMENT '主键', - `name` varchar(40) NOT NULL COMMENT '插件名或标识', - `title` varchar(20) NOT NULL DEFAULT '' COMMENT '中文名', - `description` text COMMENT '插件描述', - `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态', - `config` text COMMENT '配置', - `author` varchar(40) DEFAULT '' COMMENT '作者', - `version` varchar(20) DEFAULT '' COMMENT '版本号', - `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '安装时间', - `has_adminlist` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否有后台列表' -) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COMMENT='插件表'; - --- --- 转存表中的数据 `sent_addons` --- - -INSERT INTO `sent_addons` (`id`, `name`, `title`, `description`, `status`, `config`, `author`, `version`, `create_time`, `has_adminlist`) VALUES -(1, 'Devteam', '开发团队信息', '开发团队成员信息', 1, '', 'molong', '0.1', 0, 0), -(2, 'Sitestat', '站点统计信息', '统计站点的基础信息', 1, '', 'thinkphp', '0.2', 0, 0), -(3, 'Systeminfo', '系统环境信息', '用于显示一些服务器的信息', 1, '', 'molong', '0.1', 0, 0); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_ad_place` --- +-- ----------------------------- +-- Records of `sent_ad` +-- ----------------------------- +INSERT INTO `sent_ad` VALUES ('1', '1', '电子商务系统设计与开发', '0', '', '', '', '', '

我们为客户提供专业的B2C、C2C、B2B、P2P等电子商务平台开发,同时紧扣企业运营,提供个性化的电子商务平台开发和运营管理平台。

', '1440433466', '1440433466', '1'); +INSERT INTO `sent_ad` VALUES ('2', '1', '企业网站设计与开发', '0', '', '', '', '', '

我们为您提供更加专业的企业网站建设、企业文化提升以及企业形象包装服务,为您量身打造更加适合当前网络时代的需求服务,让您的公司更加贴近客户。

', '1440433531', '1440433531', '1'); +INSERT INTO `sent_ad` VALUES ('3', '1', 'WEB应用系统设计与开发', '14', '', '', '', '', '

我们为您的企业量身打造专业级别的企业OA系统、CRM系统等,为事、企业单位提供更好更高效的无纸化办公平台环境。

', '1440433554', '1462966106', '1'); +INSERT INTO `sent_ad` VALUES ('4', '1', '手机APP应用设计与开发', '0', '', 'http://www.tensent.cn', '', '', '

腾速科技有限公司专注于手机客户端软件开发,是省内移动客户端开发商的先行者,做到行业内领先地位。

', '1440433571', '1459489811', '1'); +-- ----------------------------- +-- Table structure for `sent_ad_place` +-- ----------------------------- DROP TABLE IF EXISTS `sent_ad_place`; -CREATE TABLE IF NOT EXISTS `sent_ad_place` ( - `id` int(10) unsigned NOT NULL COMMENT '主键', +CREATE TABLE `sent_ad_place` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', `title` varchar(150) DEFAULT NULL COMMENT '广告位名称', `name` varchar(20) NOT NULL COMMENT '调用名称', `show_type` int(11) NOT NULL DEFAULT '5' COMMENT '广告位类型', @@ -149,25 +108,46 @@ CREATE TABLE IF NOT EXISTS `sent_ad_place` ( `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间', `template` varchar(150) DEFAULT NULL COMMENT '广告位模板', - `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '广告位状态' + `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '广告位状态', + PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='广告位表'; --- --- 转存表中的数据 `sent_ad_place` --- +-- ----------------------------- +-- Records of `sent_ad_place` +-- ----------------------------- +INSERT INTO `sent_ad_place` VALUES ('1', '首页幻灯片', 'banner', '1', '5', '0', '0', '1440433367', '1440433367', '', '1'); -INSERT INTO `sent_ad_place` (`id`, `title`, `name`, `show_type`, `show_num`, `start_time`, `end_time`, `create_time`, `update_time`, `template`, `status`) VALUES -(1, '首页幻灯片', 'banner', 1, 5, 0, 0, 1440433367, 1440433367, '', 1); +-- ----------------------------- +-- Table structure for `sent_addons` +-- ----------------------------- +DROP TABLE IF EXISTS `sent_addons`; +CREATE TABLE `sent_addons` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', + `name` varchar(40) NOT NULL COMMENT '插件名或标识', + `title` varchar(20) NOT NULL DEFAULT '' COMMENT '中文名', + `description` text COMMENT '插件描述', + `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态', + `config` text COMMENT '配置', + `author` varchar(40) DEFAULT '' COMMENT '作者', + `version` varchar(20) DEFAULT '' COMMENT '版本号', + `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '安装时间', + `has_adminlist` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否有后台列表', + PRIMARY KEY (`id`) +) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COMMENT='插件表'; --- -------------------------------------------------------- - --- --- 表的结构 `sent_attachment` --- +-- ----------------------------- +-- Records of `sent_addons` +-- ----------------------------- +INSERT INTO `sent_addons` VALUES ('1', 'Devteam', '开发团队信息', '开发团队成员信息', '1', '', 'molong', '0.1', '0', '0'); +INSERT INTO `sent_addons` VALUES ('2', 'Sitestat', '站点统计信息', '统计站点的基础信息', '1', '', 'thinkphp', '0.2', '0', '0'); +INSERT INTO `sent_addons` VALUES ('3', 'Systeminfo', '系统环境信息', '用于显示一些服务器的信息', '1', '', 'molong', '0.1', '0', '0'); +-- ----------------------------- +-- Table structure for `sent_attachment` +-- ----------------------------- DROP TABLE IF EXISTS `sent_attachment`; -CREATE TABLE IF NOT EXISTS `sent_attachment` ( - `id` int(10) unsigned NOT NULL, +CREATE TABLE `sent_attachment` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户ID', `title` char(30) NOT NULL DEFAULT '' COMMENT '附件显示名', `type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '附件类型', @@ -179,18 +159,18 @@ CREATE TABLE IF NOT EXISTS `sent_attachment` ( `sort` int(8) unsigned NOT NULL DEFAULT '0' COMMENT '排序', `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', - `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态' + `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态', + PRIMARY KEY (`id`), + KEY `idx_record_status` (`record_id`,`status`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='附件表'; --- -------------------------------------------------------- - --- --- 表的结构 `sent_attribute` --- +-- ----------------------------- +-- Table structure for `sent_attribute` +-- ----------------------------- DROP TABLE IF EXISTS `sent_attribute`; -CREATE TABLE IF NOT EXISTS `sent_attribute` ( - `id` int(10) unsigned NOT NULL, +CREATE TABLE `sent_attribute` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL DEFAULT '' COMMENT '字段名', `title` varchar(100) NOT NULL DEFAULT '' COMMENT '字段注释', `length` varchar(100) NOT NULL DEFAULT '' COMMENT '字段定义', @@ -210,169 +190,158 @@ CREATE TABLE IF NOT EXISTS `sent_attribute` ( `validate_type` varchar(25) NOT NULL DEFAULT '', `auto_rule` varchar(100) NOT NULL DEFAULT '', `auto_time` tinyint(1) unsigned NOT NULL DEFAULT '0', - `auto_type` varchar(25) NOT NULL DEFAULT '' + `auto_type` varchar(25) NOT NULL DEFAULT '', + PRIMARY KEY (`id`), + KEY `model_id` (`model_id`) ) ENGINE=MyISAM AUTO_INCREMENT=55 DEFAULT CHARSET=utf8 COMMENT='模型属性表'; --- --- 转存表中的数据 `sent_attribute` --- - -INSERT INTO `sent_attribute` (`id`, `name`, `title`, `length`, `type`, `value`, `remark`, `is_show`, `extra`, `model_id`, `is_must`, `status`, `update_time`, `create_time`, `validate_rule`, `validate_time`, `error_info`, `validate_type`, `auto_rule`, `auto_time`, `auto_type`) VALUES -(1, 'uid', '用户ID', '10', 'num', '0', '', 0, '', 1, 0, 1, 1384508362, 1383891233, '', 0, '', '', '', 0, ''), -(2, 'name', '标识', '40', 'string', '', '同一根节点下标识不重复', 1, '', 1, 0, 1, 1383894743, 1383891233, '', 0, '', '', '', 0, ''), -(3, 'title', '标题', '80', 'string', '', '文档标题', 1, '', 1, 0, 1, 1383894778, 1383891233, '', 0, '', '', '', 0, ''), -(4, 'category_id', '所属分类', '10', 'bind', '', '', 1, 'category', 1, 0, 1, 1384508336, 1383891233, '', 0, '', '', '', 0, ''), -(5, 'description', '描述', '140', 'textarea', '', '', 1, '', 1, 0, 1, 1383894927, 1383891233, '', 0, '', '', '', 0, ''), -(8, 'model_id', '内容模型ID', '3', 'num', '0', '该文档所对应的模型', 0, '', 1, 0, 1, 1384508350, 1383891233, '', 0, '', '', '', 0, ''), -(10, 'position', '推荐位', '5', 'select', '0', '多个推荐则将其推荐值相加', 1, '[DOCUMENT_POSITION]', 1, 0, 1, 1383895640, 1383891233, '', 0, '', '', '', 0, ''), -(11, 'link_id', '外链', '10', 'num', '0', '0-非外链,大于0-外链ID,需要函数进行链接与编号的转换', 1, '', 1, 0, 1, 1383895757, 1383891233, '', 0, '', '', '', 0, ''), -(12, 'cover_id', '封面', '10', 'image', '0', '0-无封面,大于0-封面图片ID,需要函数处理', 1, '', 1, 0, 1, 1384147827, 1383891233, '', 0, '', '', '', 0, ''), -(13, 'display', '可见性', '3', 'bool', '1', '', 1, '0:不可见\r\n1:所有人可见', 1, 0, 1, 1386662271, 1383891233, '', 0, '', 'regex', '', 0, 'function'), -(14, 'deadline', '截至时间', '10', 'datetime', '0', '0-永久有效', 1, '', 1, 0, 1, 1387163248, 1383891233, '', 0, '', 'regex', '', 0, 'function'), -(15, 'attach', '附件数量', '3', 'num', '0', '', 0, '', 1, 0, 1, 1387260355, 1383891233, '', 0, '', 'regex', '', 0, 'function'), -(16, 'view', '浏览量', '10', 'num', '0', '', 1, '', 1, 0, 1, 1383895835, 1383891233, '', 0, '', '', '', 0, ''), -(17, 'comment', '评论数', '10', 'num', '0', '', 1, '', 1, 0, 1, 1383895846, 1383891233, '', 0, '', '', '', 0, ''), -(18, 'extend', '扩展统计字段', '10', 'num', '0', '根据需求自行使用', 0, '', 1, 0, 1, 1384508264, 1383891233, '', 0, '', '', '', 0, ''), -(19, 'level', '优先级', '10', 'num', '0', '越高排序越靠前', 1, '', 1, 0, 1, 1453278679, 1383891233, '', 0, '', '0', '', 0, '0'), -(20, 'create_time', '创建时间', '10', 'datetime', '0', '', 1, '', 1, 0, 1, 1383895903, 1383891233, '', 0, '', '', '', 0, ''), -(21, 'update_time', '更新时间', '10', 'text', '0', '', 0, '', 1, 0, 1, 1453278665, 1383891233, '', 0, '', '0', '', 0, '0'), -(22, 'status', '数据状态', '4', 'select', '1', '', 0, '-1:删除\r\n0:禁用\r\n1:正常\r\n2:待审核\r\n3:草稿', 1, 0, 1, 1453278660, 1383891233, '', 0, '', '0', '', 0, '0'), -(24, 'content', '内容', '', 'editor', '', '', 1, '', 2, 0, 1, 1453859207, 1453859207, '', 0, '', '0', '', 0, '0'), -(25, 'tags', '标签', '20', 'tags', '', '', 1, '', 2, 0, 1, 1453881165, 1453881107, '', 0, '', '0', '', 0, '0'), -(26, 'photo_list', '图片列表', '50', 'images', '', '', 1, '', 3, 0, 1, 1454052339, 1454052339, '', 0, '', '0', '', 0, '0'), -(27, 'content', '内容', '', 'editor', '', '', 1, '', 3, 0, 1, 1454052355, 1454052355, '', 0, '', '0', '', 0, '0'), -(28, 'title', '标题', '200', 'text', '', '', 1, '', 4, 0, 0, 0, 0, '', 0, '', '0', '', 0, '0'), -(29, 'model_id', '模型ID', '11', 'num', '', '', 0, '', 4, 1, 0, 0, 0, '', 0, '', '0', '', 0, '0'), -(30, 'cover_id', '封面', '11', 'image', '0', '', 1, '', 4, 0, 0, 0, 0, '', 0, '', '0', '', 0, '0'), -(31, 'content', '内容', '', 'editor', '', '', 1, '', 4, 0, 0, 0, 0, '', 0, '', '0', '', 0, '0'), -(32, 'create_time', '创建时间', '11', 'datetime', '', '', 1, '', 4, 0, 0, 0, 0, '', 0, '', '0', '', 0, '0'), -(33, 'update_time', '更新时间', '11', 'datetime', '', '', 1, '', 4, 0, 0, 0, 0, '', 0, '', '0', '', 0, '0'), -(34, 'is_top', '是否置顶', '1', 'bool', '0', '', 1, '0:否\r\n1:是', 1, 0, 0, 1466041260, 1466041226, '', 0, '', '0', '', 0, '0'); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_auth_extend` --- +-- ----------------------------- +-- Records of `sent_attribute` +-- ----------------------------- +INSERT INTO `sent_attribute` VALUES ('1', 'uid', '用户ID', '10', 'num', '0', '', '0', '', '1', '0', '1', '1384508362', '1383891233', '', '0', '', '', '', '0', ''); +INSERT INTO `sent_attribute` VALUES ('2', 'name', '标识', '40', 'string', '', '同一根节点下标识不重复', '1', '', '1', '0', '1', '1383894743', '1383891233', '', '0', '', '', '', '0', ''); +INSERT INTO `sent_attribute` VALUES ('3', 'title', '标题', '80', 'string', '', '文档标题', '1', '', '1', '0', '1', '1383894778', '1383891233', '', '0', '', '', '', '0', ''); +INSERT INTO `sent_attribute` VALUES ('4', 'category_id', '所属分类', '10', 'bind', '', '', '1', 'category', '1', '0', '1', '1384508336', '1383891233', '', '0', '', '', '', '0', ''); +INSERT INTO `sent_attribute` VALUES ('5', 'description', '描述', '140', 'textarea', '', '', '1', '', '1', '0', '1', '1383894927', '1383891233', '', '0', '', '', '', '0', ''); +INSERT INTO `sent_attribute` VALUES ('8', 'model_id', '内容模型ID', '3', 'num', '0', '该文档所对应的模型', '0', '', '1', '0', '1', '1384508350', '1383891233', '', '0', '', '', '', '0', ''); +INSERT INTO `sent_attribute` VALUES ('10', 'position', '推荐位', '5', 'select', '0', '多个推荐则将其推荐值相加', '1', '[DOCUMENT_POSITION]', '1', '0', '1', '1383895640', '1383891233', '', '0', '', '', '', '0', ''); +INSERT INTO `sent_attribute` VALUES ('11', 'link_id', '外链', '10', 'num', '0', '0-非外链,大于0-外链ID,需要函数进行链接与编号的转换', '1', '', '1', '0', '1', '1383895757', '1383891233', '', '0', '', '', '', '0', ''); +INSERT INTO `sent_attribute` VALUES ('12', 'cover_id', '封面', '10', 'image', '0', '0-无封面,大于0-封面图片ID,需要函数处理', '1', '', '1', '0', '1', '1384147827', '1383891233', '', '0', '', '', '', '0', ''); +INSERT INTO `sent_attribute` VALUES ('13', 'display', '可见性', '3', 'bool', '1', '', '1', '0:不可见\r\n1:所有人可见', '1', '0', '1', '1386662271', '1383891233', '', '0', '', 'regex', '', '0', 'function'); +INSERT INTO `sent_attribute` VALUES ('14', 'deadline', '截至时间', '10', 'datetime', '0', '0-永久有效', '1', '', '1', '0', '1', '1387163248', '1383891233', '', '0', '', 'regex', '', '0', 'function'); +INSERT INTO `sent_attribute` VALUES ('15', 'attach', '附件数量', '3', 'num', '0', '', '0', '', '1', '0', '1', '1387260355', '1383891233', '', '0', '', 'regex', '', '0', 'function'); +INSERT INTO `sent_attribute` VALUES ('16', 'view', '浏览量', '10', 'num', '0', '', '1', '', '1', '0', '1', '1383895835', '1383891233', '', '0', '', '', '', '0', ''); +INSERT INTO `sent_attribute` VALUES ('17', 'comment', '评论数', '10', 'num', '0', '', '1', '', '1', '0', '1', '1383895846', '1383891233', '', '0', '', '', '', '0', ''); +INSERT INTO `sent_attribute` VALUES ('18', 'extend', '扩展统计字段', '10', 'num', '0', '根据需求自行使用', '0', '', '1', '0', '1', '1384508264', '1383891233', '', '0', '', '', '', '0', ''); +INSERT INTO `sent_attribute` VALUES ('19', 'level', '优先级', '10', 'num', '0', '越高排序越靠前', '1', '', '1', '0', '1', '1453278679', '1383891233', '', '0', '', '0', '', '0', '0'); +INSERT INTO `sent_attribute` VALUES ('20', 'create_time', '创建时间', '10', 'datetime', '0', '', '1', '', '1', '0', '1', '1383895903', '1383891233', '', '0', '', '', '', '0', ''); +INSERT INTO `sent_attribute` VALUES ('21', 'update_time', '更新时间', '10', 'text', '0', '', '0', '', '1', '0', '1', '1453278665', '1383891233', '', '0', '', '0', '', '0', '0'); +INSERT INTO `sent_attribute` VALUES ('22', 'status', '数据状态', '4', 'select', '1', '', '0', '-1:删除\r\n0:禁用\r\n1:正常\r\n2:待审核\r\n3:草稿', '1', '0', '1', '1453278660', '1383891233', '', '0', '', '0', '', '0', '0'); +INSERT INTO `sent_attribute` VALUES ('24', 'content', '内容', '', 'editor', '', '', '1', '', '2', '0', '1', '1453859207', '1453859207', '', '0', '', '0', '', '0', '0'); +INSERT INTO `sent_attribute` VALUES ('25', 'tags', '标签', '20', 'tags', '', '', '1', '', '2', '0', '1', '1453881165', '1453881107', '', '0', '', '0', '', '0', '0'); +INSERT INTO `sent_attribute` VALUES ('26', 'photo_list', '图片列表', '50', 'images', '', '', '1', '', '3', '0', '1', '1454052339', '1454052339', '', '0', '', '0', '', '0', '0'); +INSERT INTO `sent_attribute` VALUES ('27', 'content', '内容', '', 'editor', '', '', '1', '', '3', '0', '1', '1454052355', '1454052355', '', '0', '', '0', '', '0', '0'); +INSERT INTO `sent_attribute` VALUES ('28', 'title', '标题', '200', 'text', '', '', '1', '', '4', '0', '0', '0', '0', '', '0', '', '0', '', '0', '0'); +INSERT INTO `sent_attribute` VALUES ('29', 'model_id', '模型ID', '11', 'num', '', '', '0', '', '4', '1', '0', '0', '0', '', '0', '', '0', '', '0', '0'); +INSERT INTO `sent_attribute` VALUES ('30', 'cover_id', '封面', '11', 'image', '0', '', '1', '', '4', '0', '0', '0', '0', '', '0', '', '0', '', '0', '0'); +INSERT INTO `sent_attribute` VALUES ('31', 'content', '内容', '', 'editor', '', '', '1', '', '4', '0', '0', '0', '0', '', '0', '', '0', '', '0', '0'); +INSERT INTO `sent_attribute` VALUES ('32', 'create_time', '创建时间', '11', 'datetime', '', '', '1', '', '4', '0', '0', '0', '0', '', '0', '', '0', '', '0', '0'); +INSERT INTO `sent_attribute` VALUES ('33', 'update_time', '更新时间', '11', 'datetime', '', '', '1', '', '4', '0', '0', '0', '0', '', '0', '', '0', '', '0', '0'); +INSERT INTO `sent_attribute` VALUES ('34', 'is_top', '是否置顶', '1', 'bool', '0', '', '1', '0:否\r\n1:是', '1', '0', '0', '1466041260', '1466041226', '', '0', '', '0', '', '0', '0'); +-- ----------------------------- +-- Table structure for `sent_auth_extend` +-- ----------------------------- DROP TABLE IF EXISTS `sent_auth_extend`; -CREATE TABLE IF NOT EXISTS `sent_auth_extend` ( +CREATE TABLE `sent_auth_extend` ( `group_id` mediumint(10) unsigned NOT NULL COMMENT '用户id', `extend_id` mediumint(8) unsigned NOT NULL COMMENT '扩展表中数据的id', - `type` tinyint(1) unsigned NOT NULL COMMENT '扩展类型标识 1:栏目分类权限;2:模型权限' + `type` tinyint(1) unsigned NOT NULL COMMENT '扩展类型标识 1:栏目分类权限;2:模型权限', + UNIQUE KEY `group_extend_type` (`group_id`,`extend_id`,`type`), + KEY `uid` (`group_id`), + KEY `group_id` (`extend_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='用户组与分类的对应关系表'; --- -------------------------------------------------------- - --- --- 表的结构 `sent_auth_group` --- +-- ----------------------------- +-- Table structure for `sent_auth_group` +-- ----------------------------- DROP TABLE IF EXISTS `sent_auth_group`; -CREATE TABLE IF NOT EXISTS `sent_auth_group` ( - `id` mediumint(8) unsigned NOT NULL COMMENT '用户组id,自增主键', +CREATE TABLE `sent_auth_group` ( + `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户组id,自增主键', `module` varchar(20) NOT NULL DEFAULT '' COMMENT '用户组所属模块', `type` varchar(10) NOT NULL DEFAULT '' COMMENT '组类型', `title` char(20) NOT NULL DEFAULT '' COMMENT '用户组中文名称', `description` varchar(80) NOT NULL DEFAULT '' COMMENT '描述信息', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '用户组状态:为1正常,为0禁用,-1为删除', - `rules` varchar(500) NOT NULL DEFAULT '' COMMENT '用户组拥有的规则id,多个规则 , 隔开' + `rules` varchar(500) NOT NULL DEFAULT '' COMMENT '用户组拥有的规则id,多个规则 , 隔开', + PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; --- --- 转存表中的数据 `sent_auth_group` --- - -INSERT INTO `sent_auth_group` (`id`, `module`, `type`, `title`, `description`, `status`, `rules`) VALUES -(1, 'admin', '1', '网站编辑', '网站编辑,针对内容进行管理', 1, '2,1'), -(2, 'admin', '1', '网站运营', '针对网站SEO进行管理', 1, '21,20,14,12,3,19,18,17,16,15,13,1'); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_auth_group_access` --- +-- ----------------------------- +-- Records of `sent_auth_group` +-- ----------------------------- +INSERT INTO `sent_auth_group` VALUES ('1', 'admin', '1', '网站编辑', '网站编辑,针对内容进行管理', '1', '2,1'); +INSERT INTO `sent_auth_group` VALUES ('2', 'admin', '1', '网站运营', '针对网站SEO进行管理', '1', '21,20,14,12,3,19,18,17,16,15,13,1'); +-- ----------------------------- +-- Table structure for `sent_auth_group_access` +-- ----------------------------- DROP TABLE IF EXISTS `sent_auth_group_access`; -CREATE TABLE IF NOT EXISTS `sent_auth_group_access` ( +CREATE TABLE `sent_auth_group_access` ( `uid` int(10) unsigned NOT NULL COMMENT '用户id', - `group_id` mediumint(8) unsigned NOT NULL COMMENT '用户组id' + `group_id` mediumint(8) unsigned NOT NULL COMMENT '用户组id', + UNIQUE KEY `uid_group_id` (`uid`,`group_id`), + KEY `uid` (`uid`), + KEY `group_id` (`group_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; --- --- 转存表中的数据 `sent_auth_group_access` --- - -INSERT INTO `sent_auth_group_access` (`uid`, `group_id`) VALUES -(1, 2), -(14, 2); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_auth_rule` --- +-- ----------------------------- +-- Records of `sent_auth_group_access` +-- ----------------------------- +INSERT INTO `sent_auth_group_access` VALUES ('1', '2'); +INSERT INTO `sent_auth_group_access` VALUES ('14', '2'); +-- ----------------------------- +-- Table structure for `sent_auth_rule` +-- ----------------------------- DROP TABLE IF EXISTS `sent_auth_rule`; -CREATE TABLE IF NOT EXISTS `sent_auth_rule` ( - `id` mediumint(8) unsigned NOT NULL COMMENT '规则id,自增主键', +CREATE TABLE `sent_auth_rule` ( + `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '规则id,自增主键', `module` varchar(20) NOT NULL COMMENT '规则所属module', `type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '1-url;2-主菜单', `name` char(80) NOT NULL DEFAULT '' COMMENT '规则唯一英文标识', `title` char(20) NOT NULL DEFAULT '' COMMENT '规则中文描述', `group` char(20) NOT NULL DEFAULT '' COMMENT '权限节点分组', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否有效(0:无效,1:有效)', - `condition` varchar(300) NOT NULL DEFAULT '' COMMENT '规则附加条件' -) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; + `condition` varchar(300) NOT NULL DEFAULT '' COMMENT '规则附加条件', + PRIMARY KEY (`id`), + KEY `module` (`module`,`status`,`type`) +) ENGINE=MyISAM AUTO_INCREMENT=34 DEFAULT CHARSET=utf8; --- --- 转存表中的数据 `sent_auth_rule` --- - -INSERT INTO `sent_auth_rule` (`id`, `module`, `type`, `name`, `title`, `group`, `status`, `condition`) VALUES -(1, 'admin', 2, 'admin/index/index', '后台首页', '首页管理', 1, ''), -(2, 'admin', 2, 'admin/form/index', '自定义表单', '运营管理', 1, ''), -(3, 'admin', 2, 'admin/addons/hooks', '钩子列表', '扩展管理', 1, ''), -(4, 'admin', 2, 'admin/addons/index', '插件列表', '扩展管理', 1, ''), -(5, 'admin', 2, 'admin/ad/index', '广告管理', '运营管理', 1, ''), -(6, 'admin', 2, 'admin/link/index', '友链管理', '运营管理', 1, ''), -(7, 'admin', 2, 'admin/action/log', '行为日志', '会员管理', 1, ''), -(8, 'admin', 2, 'admin/action/index', '行为列表', '会员管理', 1, ''), -(9, 'admin', 2, 'admin/group/access', '权限列表', '会员管理', 1, ''), -(10, 'admin', 2, 'admin/group/index', '用户组表', '会员管理', 1, ''), -(11, 'admin', 2, 'admin/user/index', '用户列表', '会员管理', 1, ''), -(12, 'admin', 2, 'admin/model/index', '模型管理', '内容管理', 1, ''), -(13, 'admin', 2, 'admin/category/index', '栏目管理', '内容管理', 1, ''), -(14, 'admin', 2, 'admin/seo/index', 'SEO设置', '系统管理', 1, ''), -(15, 'admin', 2, 'admin/database/index?type=import', '数据恢复', '系统管理', 1, ''), -(16, 'admin', 2, 'admin/database/index?type=export', '数据备份', '系统管理', 1, ''), -(17, 'admin', 2, 'admin/channel/index', '导航管理', '系统管理', 1, ''), -(18, 'admin', 2, 'admin/menu/index', '菜单管理', '系统管理', 1, ''), -(19, 'admin', 2, 'admin/config/group', '配置管理', '系统管理', 1, ''), -(20, 'admin', 2, 'admin/index/clear', '更新缓存', '首页管理', 1, ''), -(21, 'admin', 1, 'admin/config/add', '配置添加', '系统管理', 1, ''), -(22, 'admin', 2, 'admin/content/index', '内容列表', '内容管理', 1, ''), -(23, 'admin', 2, 'admin/content/add', '内容添加', '内容管理', 1, ''), -(24, 'admin', 1, 'admin/content/edit', '内容编辑', '内容管理', 1, ''), -(25, 'admin', 1, 'admin/content/del', '内容删除', '内容管理', 1, ''), -(26, 'admin', 1, 'admin/content/status', '内容设置状态', '内容管理', 1, ''), -(27, 'admin', 1, 'admin/category/add', '栏目添加', '内容管理', 1, ''), -(28, 'admin', 1, 'admin/category/edit', '栏目编辑', '内容管理', 1, ''), -(29, 'admin', 1, 'admin/category/editable', '栏目单字编辑', '内容管理', 1, ''), -(30, 'admin', 1, 'admin/category/remove', '栏目删除', '内容管理', 1, ''), -(31, 'admin', 1, 'admin/category/merge', '栏目合并', '内容管理', 1, ''), -(32, 'admin', 1, 'admin/category/move', '栏目移动', '内容管理', 1, ''), -(33, 'admin', 1, 'admin/category/status', '栏目状态', '内容管理', 1, ''); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_category` --- +-- ----------------------------- +-- Records of `sent_auth_rule` +-- ----------------------------- +INSERT INTO `sent_auth_rule` VALUES ('1', 'admin', '2', 'admin/index/index', '后台首页', '首页管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('2', 'admin', '2', 'admin/form/index', '自定义表单', '运营管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('3', 'admin', '2', 'admin/addons/hooks', '钩子列表', '扩展管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('4', 'admin', '2', 'admin/addons/index', '插件列表', '扩展管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('5', 'admin', '2', 'admin/ad/index', '广告管理', '运营管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('6', 'admin', '2', 'admin/link/index', '友链管理', '运营管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('7', 'admin', '2', 'admin/action/log', '行为日志', '会员管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('8', 'admin', '2', 'admin/action/index', '行为列表', '会员管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('9', 'admin', '2', 'admin/group/access', '权限列表', '会员管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('10', 'admin', '2', 'admin/group/index', '用户组表', '会员管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('11', 'admin', '2', 'admin/user/index', '用户列表', '会员管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('12', 'admin', '2', 'admin/model/index', '模型管理', '内容管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('13', 'admin', '2', 'admin/category/index', '栏目管理', '内容管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('14', 'admin', '2', 'admin/seo/index', 'SEO设置', '系统管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('15', 'admin', '2', 'admin/database/index?type=import', '数据恢复', '系统管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('16', 'admin', '2', 'admin/database/index?type=export', '数据备份', '系统管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('17', 'admin', '2', 'admin/channel/index', '导航管理', '系统管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('18', 'admin', '2', 'admin/menu/index', '菜单管理', '系统管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('19', 'admin', '2', 'admin/config/group', '配置管理', '系统管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('20', 'admin', '2', 'admin/index/clear', '更新缓存', '首页管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('21', 'admin', '1', 'admin/config/add', '配置添加', '系统管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('22', 'admin', '2', 'admin/content/index', '内容列表', '内容管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('23', 'admin', '2', 'admin/content/add', '内容添加', '内容管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('24', 'admin', '1', 'admin/content/edit', '内容编辑', '内容管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('25', 'admin', '1', 'admin/content/del', '内容删除', '内容管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('26', 'admin', '1', 'admin/content/status', '内容设置状态', '内容管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('27', 'admin', '1', 'admin/category/add', '栏目添加', '内容管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('28', 'admin', '1', 'admin/category/edit', '栏目编辑', '内容管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('29', 'admin', '1', 'admin/category/editable', '栏目单字编辑', '内容管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('30', 'admin', '1', 'admin/category/remove', '栏目删除', '内容管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('31', 'admin', '1', 'admin/category/merge', '栏目合并', '内容管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('32', 'admin', '1', 'admin/category/move', '栏目移动', '内容管理', '1', ''); +INSERT INTO `sent_auth_rule` VALUES ('33', 'admin', '1', 'admin/category/status', '栏目状态', '内容管理', '1', ''); +-- ----------------------------- +-- Table structure for `sent_category` +-- ----------------------------- DROP TABLE IF EXISTS `sent_category`; -CREATE TABLE IF NOT EXISTS `sent_category` ( - `id` int(10) unsigned NOT NULL COMMENT '分类ID', +CREATE TABLE `sent_category` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '分类ID', `name` varchar(30) NOT NULL COMMENT '标志', `title` varchar(50) NOT NULL COMMENT '标题', `pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '上级分类ID', @@ -399,27 +368,24 @@ CREATE TABLE IF NOT EXISTS `sent_category` ( `update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '数据状态', `icon` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '分类图标', - `groups` varchar(255) NOT NULL DEFAULT '' COMMENT '分组定义' + `groups` varchar(255) NOT NULL DEFAULT '' COMMENT '分组定义', + PRIMARY KEY (`id`), + KEY `pid` (`pid`) ) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='分类表'; --- --- 转存表中的数据 `sent_category` --- - -INSERT INTO `sent_category` (`id`, `name`, `title`, `pid`, `sort`, `list_row`, `meta_title`, `keywords`, `description`, `template_index`, `template_lists`, `template_detail`, `template_edit`, `model`, `model_sub`, `type`, `link_id`, `allow_publish`, `display`, `reply`, `check`, `reply_model`, `extend`, `create_time`, `update_time`, `status`, `icon`, `groups`) VALUES -(1, 'news', '新闻动态', 0, 0, 10, '', '', '', '', '', '', '', '', '2', '2,1', 0, 0, 1, 0, 0, '1', 'null', 1379474947, 1463561497, 1, 0, ''), -(2, 'company_news', '国内新闻', 1, 1, 10, '', '', '', '', '', '', '', '2,3', '2', '2,1,3', 0, 1, 1, 0, 1, '1', '', 1379475028, 1386839751, 1, 0, ''), -(3, '', '国外新闻', 1, 2, 10, '', '', '', '', '', '', '', '', '', '', 0, 1, 1, 0, 0, '', '', 0, 0, 1, 0, ''); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_channel` --- +-- ----------------------------- +-- Records of `sent_category` +-- ----------------------------- +INSERT INTO `sent_category` VALUES ('1', 'news', '新闻动态', '0', '0', '10', '', '', '', '', '', '', '', '', '2', '2,1', '0', '0', '1', '0', '0', '1', 'null', '1379474947', '1463561497', '1', '0', ''); +INSERT INTO `sent_category` VALUES ('2', 'company_news', '国内新闻', '1', '1', '10', '', '', '', '', '', '', '', '2,3', '2', '2,1,3', '0', '1', '1', '0', '1', '1', '', '1379475028', '1386839751', '1', '0', ''); +INSERT INTO `sent_category` VALUES ('3', '', '国外新闻', '1', '2', '10', '', '', '', '', '', '', '', '', '', '', '0', '1', '1', '0', '0', '', '', '0', '0', '1', '0', ''); +-- ----------------------------- +-- Table structure for `sent_channel` +-- ----------------------------- DROP TABLE IF EXISTS `sent_channel`; -CREATE TABLE IF NOT EXISTS `sent_channel` ( - `id` int(10) unsigned NOT NULL COMMENT '频道ID', +CREATE TABLE `sent_channel` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '频道ID', `pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '上级频道ID', `title` char(30) NOT NULL COMMENT '频道标题', `url` char(100) NOT NULL COMMENT '频道连接', @@ -432,25 +398,22 @@ CREATE TABLE IF NOT EXISTS `sent_channel` ( `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态', - `target` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '新窗口打开' + `target` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '新窗口打开', + PRIMARY KEY (`id`), + KEY `pid` (`pid`) ) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=utf8; --- --- 转存表中的数据 `sent_channel` --- - -INSERT INTO `sent_channel` (`id`, `pid`, `title`, `url`, `sort`, `icon`, `color`, `band_color`, `band_text`, `active`, `create_time`, `update_time`, `status`, `target`) VALUES -(1, 0, '网站首页', 'index/index/index', 1, 'home', '', '', '', 'home', 1379475111, 1464490544, 1, 0); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_config` --- +-- ----------------------------- +-- Records of `sent_channel` +-- ----------------------------- +INSERT INTO `sent_channel` VALUES ('1', '0', '网站首页', 'index/index/index', '1', 'home', '', '', '', 'home', '1379475111', '1464490544', '1', '0'); +-- ----------------------------- +-- Table structure for `sent_config` +-- ----------------------------- DROP TABLE IF EXISTS `sent_config`; -CREATE TABLE IF NOT EXISTS `sent_config` ( - `id` int(10) unsigned NOT NULL COMMENT '配置ID', +CREATE TABLE `sent_config` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '配置ID', `name` varchar(30) NOT NULL DEFAULT '' COMMENT '配置名称', `type` varchar(10) NOT NULL DEFAULT 'text' COMMENT '配置类型', `title` varchar(50) NOT NULL DEFAULT '' COMMENT '配置说明', @@ -462,599 +425,593 @@ CREATE TABLE IF NOT EXISTS `sent_config` ( `update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态', `value` text COMMENT '配置值', - `sort` smallint(3) unsigned NOT NULL DEFAULT '0' COMMENT '排序' + `sort` smallint(3) unsigned NOT NULL DEFAULT '0' COMMENT '排序', + PRIMARY KEY (`id`), + KEY `type` (`type`), + KEY `group` (`group`) ) ENGINE=MyISAM AUTO_INCREMENT=41 DEFAULT CHARSET=utf8; --- --- 转存表中的数据 `sent_config` --- - -INSERT INTO `sent_config` (`id`, `name`, `type`, `title`, `group`, `extra`, `remark`, `icon`, `create_time`, `update_time`, `status`, `value`, `sort`) VALUES -(1, 'config_group_list', 'textarea', '配置分组', 99, '', '', '', 1447305542, 1452323143, 1, '1:基本\r\n2:会员\r\n3:邮件\r\n4:微信\r\n99:系统', 0), -(2, 'hooks_type', 'textarea', '钩子的类型', 99, '', '类型 1-用于扩展显示内容,2-用于扩展业务处理', '', 1379313397, 1379313407, 1, '1:视图\r\n2:控制器', 6), -(3, 'auth_config', 'textarea', 'Auth配置', 99, '', '自定义Auth.class.php类配置', '', 1379409310, 1379409564, 1, 'AUTH_ON:1\r\nAUTH_TYPE:2', 8), -(5, 'data_backup_path', 'text', '数据库备份根路径', 99, '', '路径必须以 / 结尾', '', 1381482411, 1381482411, 1, './data/backup/', 5), -(6, 'data_backup_part_size', 'text', '数据库备份卷大小', 99, '', '该值用于限制压缩后的分卷最大长度。单位:B;建议设置20M', '', 1381482488, 1381729564, 1, '20971520', 7), -(7, 'data_backup_compress', 'bool', '数据库备份文件是否启用压缩', 99, '0:不压缩\r\n1:启用压缩', '压缩备份文件需要PHP环境支持gzopen,gzwrite函数', '', 1381713345, 1447306018, 1, '1', 9), -(8, 'data_backup_compress_level', 'select', '数据库备份文件压缩级别', 99, '1:普通\r\n4:一般\r\n9:最高', '数据库备份文件的压缩级别,该配置在开启压缩时生效', '', 1381713408, 1447305979, 1, '9', 10), -(9, 'develop_mode', 'bool', '开启开发者模式', 99, '0:关闭\r\n1:开启', '是否开启开发者模式', '', 1383105995, 1447305960, 1, '1', 11), -(10, 'allow_visit', 'textarea', '不受限控制器方法', 99, '', '', '', 1386644047, 1438075615, 1, '0:article/draftbox\r\n1:article/mydocument\r\n2:Category/tree\r\n3:Index/verify\r\n4:file/upload\r\n5:file/download\r\n6:user/updatePassword\r\n7:user/updateNickname\r\n8:user/submitPassword\r\n9:user/submitNickname\r\n10:file/uploadpicture', 0), -(11, 'deny_visit', 'textarea', '超管专限控制器方法', 99, '', '仅超级管理员可访问的控制器方法', '', 1386644141, 1438075628, 1, '0:Addons/addhook\r\n1:Addons/edithook\r\n2:Addons/delhook\r\n3:Addons/updateHook\r\n4:Admin/getMenus\r\n5:Admin/recordList\r\n6:AuthManager/updateRules\r\n7:AuthManager/tree', 0), -(12, 'admin_allow_ip', 'text', '后台允许访问IP', 99, '', '多个用逗号分隔,如果不配置表示不限制IP访问', '', 1387165454, 1452307198, 1, '', 12), -(13, 'show_page_trace', 'bool', '是否显示页面Trace', 99, '0:关闭\r\n1:开启', '是否显示页面Trace信息', '', 1387165685, 1447306056, 1, '0', 1), -(14, 'web_site_title', 'text', '网站标题', 1, '', '网站标题前台显示标题', '', 1378898976, 1379235274, 1, 'SentCMS网站管理系统', 0), -(15, 'web_site_url', 'text', '网站URL', 1, '', '网站网址', '', 1378898976, 1379235274, 1, 'http://n.dxpd.cn', 1), -(16, 'web_site_description', 'textarea', '网站描述', 1, '', '网站搜索引擎描述', '', 1378898976, 1379235841, 1, 'SentCMS网站管理系统', 3), -(17, 'web_site_keyword', 'textarea', '网站关键字', 1, '', '网站搜索引擎关键字', '', 1378898976, 1381390100, 1, 'SentCMS网站管理系统,SentCMS', 6), -(18, 'web_site_close', 'bool', '关闭站点', 1, '0:否,1:是', '站点关闭后其他用户不能访问,管理员可以正常访问', '', 1378898976, 1447321395, 1, '0', 4), -(19, 'web_site_icp', 'text', '网站备案号', 1, '', '设置在网站底部显示的备案号,如“赣ICP备13006622号', '', 1378900335, 1379235859, 1, '赣ICP备13006622号', 7), -(20, 'open_mobile_site', 'bool', '开启手机站', 1, '0:关闭\r\n1:开启', '', '', 1440901307, 1440901543, 1, '0', 4), -(21, 'list_rows', 'num', '列表条数', 99, '', '', '', 1448937662, 1448937662, 1, '20', 10), -(22, 'user_allow_register', 'bool', '是否可注册', 2, '1:是\r\n0:否', '', '', 1449043544, 1449043586, 1, '1', 0), -(23, 'user_group_type', 'textarea', '会员分组类别', 2, '', '', '', 1449196835, 1449196835, 1, 'admin:系统管理员\r\nfront:会员等级', 1), -(24, 'config_type_list', 'textarea', '字段类型', 99, '', '', '', 1459136529, 1459136529, 1, 'text:单行文本:varchar\r\nstring:字符串:int\r\npassword:密码:varchar\r\ntextarea:文本框:text\r\nbool:布尔型:int\r\nselect:选择:varchar\r\nnum:数字:int\r\ndecimal:金额:decimal\r\ntags:标签:varchar\r\ndatetime:时间控件:int\r\ndate:日期控件:varchar\r\neditor:编辑器:text\r\nbind:模型绑定:int\r\nimage:图片上传:int\r\nimages:多图上传:varchar\r\nattach:文件上传:varchar', 0), -(25, 'document_position', 'textarea', '文档推荐位', 99, '', '', '', 1453449698, 1453449698, 1, '1:首页推荐\r\n2:列表推荐', 0), -(26, 'mail_host', 'text', 'smtp服务器的名称', 3, '', 'smtp服务器的名称', '', 1455690530, 1455690556, 1, 'smtp.163.com', 0), -(27, 'mail_smtpauth', 'select', '启用smtp认证', 3, '0:否,1:是', '启用smtp认证', '', 1455690641, 1455690689, 1, '1', 0), -(28, 'mail_username', 'text', '邮件发送用户名', 3, '', '邮件发送用户名', '', 1455690771, 1455690771, 1, '你的邮箱账号', 0), -(29, 'mail_password', 'text', '邮箱密码', 3, '', '邮箱密码,如果是qq邮箱,则填安全密码', '', 1455690802, 1455690802, 1, '你的邮箱密码', 0), -(30, 'mail_fromname', 'text', '发件人姓名', 3, '', '发件人姓名', '', 1455690838, 1455690838, 1, '发件人姓名', 0), -(31, 'mail_ishtml', 'select', '是否HTML格式邮件', 3, '0:否,1:是', '是否HTML格式邮件', '', 1455690888, 1455690888, 1, '1', 0), -(32, 'mail_charset', 'text', '邮件编码', 3, '', '设置发送邮件的编码', '', 1455690920, 1455690920, 1, 'UTF8', 0), -(33, 'wechat_name', 'text', '微信名称', 4, '', '填写微信名称', '', 1459136529, 1461898406, 1, '', 0); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_district` --- +-- ----------------------------- +-- Records of `sent_config` +-- ----------------------------- +INSERT INTO `sent_config` VALUES ('1', 'config_group_list', 'textarea', '配置分组', '99', '', '', '', '1447305542', '1452323143', '1', '1:基本\r\n2:会员\r\n3:邮件\r\n4:微信\r\n99:系统', '0'); +INSERT INTO `sent_config` VALUES ('2', 'hooks_type', 'textarea', '钩子的类型', '99', '', '类型 1-用于扩展显示内容,2-用于扩展业务处理', '', '1379313397', '1379313407', '1', '1:视图\r\n2:控制器', '6'); +INSERT INTO `sent_config` VALUES ('3', 'auth_config', 'textarea', 'Auth配置', '99', '', '自定义Auth.class.php类配置', '', '1379409310', '1379409564', '1', 'AUTH_ON:1\r\nAUTH_TYPE:2', '8'); +INSERT INTO `sent_config` VALUES ('5', 'data_backup_path', 'text', '数据库备份根路径', '99', '', '路径必须以 / 结尾', '', '1381482411', '1381482411', '1', './data/backup/', '5'); +INSERT INTO `sent_config` VALUES ('6', 'data_backup_part_size', 'text', '数据库备份卷大小', '99', '', '该值用于限制压缩后的分卷最大长度。单位:B;建议设置20M', '', '1381482488', '1381729564', '1', '20971520', '7'); +INSERT INTO `sent_config` VALUES ('7', 'data_backup_compress', 'bool', '数据库备份文件是否启用压缩', '99', '0:不压缩\r\n1:启用压缩', '压缩备份文件需要PHP环境支持gzopen,gzwrite函数', '', '1381713345', '1447306018', '1', '1', '9'); +INSERT INTO `sent_config` VALUES ('8', 'data_backup_compress_level', 'select', '数据库备份文件压缩级别', '99', '1:普通\r\n4:一般\r\n9:最高', '数据库备份文件的压缩级别,该配置在开启压缩时生效', '', '1381713408', '1447305979', '1', '9', '10'); +INSERT INTO `sent_config` VALUES ('9', 'develop_mode', 'bool', '开启开发者模式', '99', '0:关闭\r\n1:开启', '是否开启开发者模式', '', '1383105995', '1447305960', '1', '1', '11'); +INSERT INTO `sent_config` VALUES ('10', 'allow_visit', 'textarea', '不受限控制器方法', '99', '', '', '', '1386644047', '1438075615', '1', '0:article/draftbox\r\n1:article/mydocument\r\n2:Category/tree\r\n3:Index/verify\r\n4:file/upload\r\n5:file/download\r\n6:user/updatePassword\r\n7:user/updateNickname\r\n8:user/submitPassword\r\n9:user/submitNickname\r\n10:file/uploadpicture', '0'); +INSERT INTO `sent_config` VALUES ('11', 'deny_visit', 'textarea', '超管专限控制器方法', '99', '', '仅超级管理员可访问的控制器方法', '', '1386644141', '1438075628', '1', '0:Addons/addhook\r\n1:Addons/edithook\r\n2:Addons/delhook\r\n3:Addons/updateHook\r\n4:Admin/getMenus\r\n5:Admin/recordList\r\n6:AuthManager/updateRules\r\n7:AuthManager/tree', '0'); +INSERT INTO `sent_config` VALUES ('12', 'admin_allow_ip', 'text', '后台允许访问IP', '99', '', '多个用逗号分隔,如果不配置表示不限制IP访问', '', '1387165454', '1452307198', '1', '', '12'); +INSERT INTO `sent_config` VALUES ('13', 'show_page_trace', 'bool', '是否显示页面Trace', '99', '0:关闭\r\n1:开启', '是否显示页面Trace信息', '', '1387165685', '1447306056', '1', '0', '1'); +INSERT INTO `sent_config` VALUES ('14', 'web_site_title', 'text', '网站标题', '1', '', '网站标题前台显示标题', '', '1378898976', '1379235274', '1', 'SentCMS网站管理系统', '0'); +INSERT INTO `sent_config` VALUES ('15', 'web_site_url', 'text', '网站URL', '1', '', '网站网址', '', '1378898976', '1379235274', '1', 'http://www.tensent.cn', '1'); +INSERT INTO `sent_config` VALUES ('16', 'web_site_description', 'textarea', '网站描述', '1', '', '网站搜索引擎描述', '', '1378898976', '1379235841', '1', 'SentCMS网站管理系统', '3'); +INSERT INTO `sent_config` VALUES ('17', 'web_site_keyword', 'textarea', '网站关键字', '1', '', '网站搜索引擎关键字', '', '1378898976', '1381390100', '1', 'SentCMS网站管理系统,SentCMS', '6'); +INSERT INTO `sent_config` VALUES ('18', 'web_site_close', 'bool', '关闭站点', '1', '0:否,1:是', '站点关闭后其他用户不能访问,管理员可以正常访问', '', '1378898976', '1447321395', '1', '0', '4'); +INSERT INTO `sent_config` VALUES ('19', 'web_site_icp', 'text', '网站备案号', '1', '', '设置在网站底部显示的备案号,如“赣ICP备13006622号', '', '1378900335', '1379235859', '1', '赣ICP备13006622号', '7'); +INSERT INTO `sent_config` VALUES ('20', 'open_mobile_site', 'bool', '开启手机站', '1', '0:关闭\r\n1:开启', '', '', '1440901307', '1440901543', '1', '0', '4'); +INSERT INTO `sent_config` VALUES ('21', 'list_rows', 'num', '列表条数', '99', '', '', '', '1448937662', '1448937662', '1', '20', '10'); +INSERT INTO `sent_config` VALUES ('22', 'user_allow_register', 'bool', '是否可注册', '2', '1:是\r\n0:否', '', '', '1449043544', '1449043586', '1', '1', '0'); +INSERT INTO `sent_config` VALUES ('23', 'user_group_type', 'textarea', '会员分组类别', '2', '', '', '', '1449196835', '1449196835', '1', 'admin:系统管理员\r\nfront:会员等级', '1'); +INSERT INTO `sent_config` VALUES ('24', 'config_type_list', 'textarea', '字段类型', '99', '', '', '', '1459136529', '1459136529', '1', 'text:单行文本:varchar\r\nstring:字符串:int\r\npassword:密码:varchar\r\ntextarea:文本框:text\r\nbool:布尔型:int\r\nselect:选择:varchar\r\nnum:数字:int\r\ndecimal:金额:decimal\r\ntags:标签:varchar\r\ndatetime:时间控件:int\r\ndate:日期控件:varchar\r\neditor:编辑器:text\r\nbind:模型绑定:int\r\nimage:图片上传:int\r\nimages:多图上传:varchar\r\nattach:文件上传:varchar', '0'); +INSERT INTO `sent_config` VALUES ('25', 'document_position', 'textarea', '文档推荐位', '99', '', '', '', '1453449698', '1453449698', '1', '1:首页推荐\r\n2:列表推荐', '0'); +INSERT INTO `sent_config` VALUES ('26', 'mail_host', 'text', 'smtp服务器的名称', '3', '', 'smtp服务器的名称', '', '1455690530', '1455690556', '1', 'smtp.163.com', '0'); +INSERT INTO `sent_config` VALUES ('27', 'mail_smtpauth', 'select', '启用smtp认证', '3', '0:否,1:是', '启用smtp认证', '', '1455690641', '1455690689', '1', '1', '0'); +INSERT INTO `sent_config` VALUES ('28', 'mail_username', 'text', '邮件发送用户名', '3', '', '邮件发送用户名', '', '1455690771', '1455690771', '1', '你的邮箱账号', '0'); +INSERT INTO `sent_config` VALUES ('29', 'mail_password', 'text', '邮箱密码', '3', '', '邮箱密码,如果是qq邮箱,则填安全密码', '', '1455690802', '1455690802', '1', '你的邮箱密码', '0'); +INSERT INTO `sent_config` VALUES ('30', 'mail_fromname', 'text', '发件人姓名', '3', '', '发件人姓名', '', '1455690838', '1455690838', '1', '发件人姓名', '0'); +INSERT INTO `sent_config` VALUES ('31', 'mail_ishtml', 'select', '是否HTML格式邮件', '3', '0:否,1:是', '是否HTML格式邮件', '', '1455690888', '1455690888', '1', '1', '0'); +INSERT INTO `sent_config` VALUES ('32', 'mail_charset', 'text', '邮件编码', '3', '', '设置发送邮件的编码', '', '1455690920', '1455690920', '1', 'UTF8', '0'); +INSERT INTO `sent_config` VALUES ('33', 'wechat_name', 'text', '微信名称', '4', '', '填写微信名称', '', '1459136529', '1461898406', '1', '', '0'); +-- ----------------------------- +-- Table structure for `sent_district` +-- ----------------------------- DROP TABLE IF EXISTS `sent_district`; -CREATE TABLE IF NOT EXISTS `sent_district` ( - `id` mediumint(8) unsigned NOT NULL, +CREATE TABLE `sent_district` ( + `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `level` tinyint(4) unsigned NOT NULL DEFAULT '0', - `upid` mediumint(8) unsigned NOT NULL DEFAULT '0' + `upid` mediumint(8) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=45052 DEFAULT CHARSET=utf8 COMMENT='中国省市区乡镇数据表'; --- --- 转存表中的数据 `sent_district` --- - -INSERT INTO `sent_district` (`id`, `name`, `level`, `upid`) VALUES -(1, '北京市', 1, 0), -(2, '天津市', 1, 0), -(3, '河北省', 1, 0), -(4, '山西省', 1, 0), -(5, '内蒙古自治区', 1, 0), -(6, '辽宁省', 1, 0), -(7, '吉林省', 1, 0), -(8, '黑龙江省', 1, 0), -(9, '上海市', 1, 0), -(10, '江苏省', 1, 0), -(11, '浙江省', 1, 0), -(12, '安徽省', 1, 0), -(13, '福建省', 1, 0), -(14, '江西省', 1, 0), -(15, '山东省', 1, 0), -(16, '河南省', 1, 0), -(17, '湖北省', 1, 0), -(18, '湖南省', 1, 0), -(19, '广东省', 1, 0), -(20, '广西壮族自治区', 1, 0), -(21, '海南省', 1, 0), -(22, '重庆市', 1, 0), -(23, '四川省', 1, 0), -(24, '贵州省', 1, 0), -(25, '云南省', 1, 0), -(26, '西藏自治区', 1, 0), -(27, '陕西省', 1, 0), -(28, '甘肃省', 1, 0), -(29, '青海省', 1, 0), -(30, '宁夏回族自治区', 1, 0), -(31, '新疆维吾尔自治区', 1, 0), -(32, '台湾省', 1, 0), -(33, '香港特别行政区', 1, 0), -(34, '澳门特别行政区', 1, 0), -(35, '海外', 1, 0), -(36, '其他', 1, 0), -(37, '东城区', 2, 1), -(38, '西城区', 2, 1), -(39, '崇文区', 2, 1), -(40, '宣武区', 2, 1), -(41, '朝阳区', 2, 1), -(42, '丰台区', 2, 1), -(43, '石景山区', 2, 1), -(44, '海淀区', 2, 1), -(45, '门头沟区', 2, 1), -(46, '房山区', 2, 1), -(47, '通州区', 2, 1), -(48, '顺义区', 2, 1), -(49, '昌平区', 2, 1), -(50, '大兴区', 2, 1), -(51, '怀柔区', 2, 1), -(52, '平谷区', 2, 1), -(53, '密云县', 2, 1), -(54, '延庆县', 2, 1), -(55, '和平区', 2, 2), -(56, '河东区', 2, 2), -(57, '河西区', 2, 2), -(58, '南开区', 2, 2), -(59, '河北区', 2, 2), -(60, '红桥区', 2, 2), -(61, '塘沽区', 2, 2), -(62, '汉沽区', 2, 2), -(63, '大港区', 2, 2), -(64, '东丽区', 2, 2), -(65, '西青区', 2, 2), -(66, '津南区', 2, 2), -(67, '北辰区', 2, 2), -(68, '武清区', 2, 2), -(69, '宝坻区', 2, 2), -(70, '宁河县', 2, 2), -(71, '静海县', 2, 2), -(72, '蓟县', 2, 2), -(73, '石家庄市', 2, 3), -(74, '唐山市', 2, 3), -(75, '秦皇岛市', 2, 3), -(76, '邯郸市', 2, 3), -(77, '邢台市', 2, 3), -(78, '保定市', 2, 3), -(79, '张家口市', 2, 3), -(80, '承德市', 2, 3), -(81, '衡水市', 2, 3), -(82, '廊坊市', 2, 3), -(83, '沧州市', 2, 3), -(84, '太原市', 2, 4), -(85, '大同市', 2, 4), -(86, '阳泉市', 2, 4), -(87, '长治市', 2, 4), -(88, '晋城市', 2, 4), -(89, '朔州市', 2, 4), -(90, '晋中市', 2, 4), -(91, '运城市', 2, 4), -(92, '忻州市', 2, 4), -(93, '临汾市', 2, 4), -(94, '吕梁市', 2, 4), -(95, '呼和浩特市', 2, 5), -(96, '包头市', 2, 5), -(97, '乌海市', 2, 5), -(98, '赤峰市', 2, 5), -(99, '通辽市', 2, 5), -(100, '鄂尔多斯市', 2, 5), -(101, '呼伦贝尔市', 2, 5), -(102, '巴彦淖尔市', 2, 5), -(103, '乌兰察布市', 2, 5), -(104, '兴安盟', 2, 5), -(105, '锡林郭勒盟', 2, 5), -(106, '阿拉善盟', 2, 5), -(107, '沈阳市', 2, 6), -(108, '大连市', 2, 6), -(109, '鞍山市', 2, 6), -(110, '抚顺市', 2, 6), -(111, '本溪市', 2, 6), -(112, '丹东市', 2, 6), -(113, '锦州市', 2, 6), -(114, '营口市', 2, 6), -(115, '阜新市', 2, 6), -(116, '辽阳市', 2, 6), -(117, '盘锦市', 2, 6), -(118, '铁岭市', 2, 6), -(119, '朝阳市', 2, 6), -(120, '葫芦岛市', 2, 6), -(121, '长春市', 2, 7), -(122, '吉林市', 2, 7), -(123, '四平市', 2, 7), -(124, '辽源市', 2, 7), -(125, '通化市', 2, 7), -(126, '白山市', 2, 7), -(127, '松原市', 2, 7), -(128, '白城市', 2, 7), -(129, '延边朝鲜族自治州', 2, 7), -(130, '哈尔滨市', 2, 8), -(131, '齐齐哈尔市', 2, 8), -(132, '鸡西市', 2, 8), -(133, '鹤岗市', 2, 8), -(134, '双鸭山市', 2, 8), -(135, '大庆市', 2, 8), -(136, '伊春市', 2, 8), -(137, '佳木斯市', 2, 8), -(138, '七台河市', 2, 8), -(139, '牡丹江市', 2, 8), -(140, '黑河市', 2, 8), -(141, '绥化市', 2, 8), -(142, '大兴安岭地区', 2, 8), -(143, '黄浦区', 2, 9), -(144, '卢湾区', 2, 9), -(145, '徐汇区', 2, 9), -(146, '长宁区', 2, 9), -(147, '静安区', 2, 9), -(148, '普陀区', 2, 9), -(149, '闸北区', 2, 9), -(150, '虹口区', 2, 9), -(151, '杨浦区', 2, 9), -(152, '闵行区', 2, 9), -(153, '宝山区', 2, 9), -(154, '嘉定区', 2, 9), -(155, '浦东新区', 2, 9), -(156, '金山区', 2, 9), -(157, '松江区', 2, 9), -(158, '青浦区', 2, 9), -(159, '南汇区', 2, 9), -(160, '奉贤区', 2, 9), -(161, '崇明县', 2, 9), -(162, '南京市', 2, 10), -(163, '无锡市', 2, 10), -(164, '徐州市', 2, 10), -(165, '常州市', 2, 10), -(166, '苏州市', 2, 10), -(167, '南通市', 2, 10), -(168, '连云港市', 2, 10), -(169, '淮安市', 2, 10), -(170, '盐城市', 2, 10), -(171, '扬州市', 2, 10), -(172, '镇江市', 2, 10), -(173, '泰州市', 2, 10), -(174, '宿迁市', 2, 10), -(175, '杭州市', 2, 11), -(176, '宁波市', 2, 11), -(177, '温州市', 2, 11), -(178, '嘉兴市', 2, 11), -(179, '湖州市', 2, 11), -(180, '绍兴市', 2, 11), -(181, '舟山市', 2, 11), -(182, '衢州市', 2, 11), -(183, '金华市', 2, 11), -(184, '台州市', 2, 11), -(185, '丽水市', 2, 11), -(186, '合肥市', 2, 12), -(187, '芜湖市', 2, 12), -(188, '蚌埠市', 2, 12), -(189, '淮南市', 2, 12), -(190, '马鞍山市', 2, 12), -(191, '淮北市', 2, 12), -(192, '铜陵市', 2, 12), -(193, '安庆市', 2, 12), -(194, '黄山市', 2, 12), -(195, '滁州市', 2, 12), -(196, '阜阳市', 2, 12), -(197, '宿州市', 2, 12), -(198, '巢湖市', 2, 12), -(199, '六安市', 2, 12), -(200, '亳州市', 2, 12), -(201, '池州市', 2, 12), -(202, '宣城市', 2, 12), -(203, '福州市', 2, 13), -(204, '厦门市', 2, 13), -(205, '莆田市', 2, 13), -(206, '三明市', 2, 13), -(207, '泉州市', 2, 13), -(208, '漳州市', 2, 13), -(209, '南平市', 2, 13), -(210, '龙岩市', 2, 13), -(211, '宁德市', 2, 13), -(212, '南昌市', 2, 14), -(213, '景德镇市', 2, 14), -(214, '萍乡市', 2, 14), -(215, '九江市', 2, 14), -(216, '新余市', 2, 14), -(217, '鹰潭市', 2, 14), -(218, '赣州市', 2, 14), -(219, '吉安市', 2, 14), -(220, '宜春市', 2, 14), -(221, '抚州市', 2, 14), -(222, '上饶市', 2, 14), -(223, '济南市', 2, 15), -(224, '青岛市', 2, 15), -(225, '淄博市', 2, 15), -(226, '枣庄市', 2, 15), -(227, '东营市', 2, 15), -(228, '烟台市', 2, 15), -(229, '潍坊市', 2, 15), -(230, '济宁市', 2, 15), -(231, '泰安市', 2, 15), -(232, '威海市', 2, 15), -(233, '日照市', 2, 15), -(234, '莱芜市', 2, 15), -(235, '临沂市', 2, 15), -(236, '德州市', 2, 15), -(237, '聊城市', 2, 15), -(238, '滨州市', 2, 15), -(239, '菏泽市', 2, 15), -(240, '郑州市', 2, 16), -(241, '开封市', 2, 16), -(242, '洛阳市', 2, 16), -(243, '平顶山市', 2, 16), -(244, '安阳市', 2, 16), -(245, '鹤壁市', 2, 16), -(246, '新乡市', 2, 16), -(247, '焦作市', 2, 16), -(248, '濮阳市', 2, 16), -(249, '许昌市', 2, 16), -(250, '漯河市', 2, 16), -(251, '三门峡市', 2, 16), -(252, '南阳市', 2, 16), -(253, '商丘市', 2, 16), -(254, '信阳市', 2, 16), -(255, '周口市', 2, 16), -(256, '驻马店市', 2, 16), -(257, '济源市', 2, 16), -(258, '武汉市', 2, 17), -(259, '黄石市', 2, 17), -(260, '十堰市', 2, 17), -(261, '宜昌市', 2, 17), -(262, '襄樊市', 2, 17), -(263, '鄂州市', 2, 17), -(264, '荆门市', 2, 17), -(265, '孝感市', 2, 17), -(266, '荆州市', 2, 17), -(267, '黄冈市', 2, 17), -(268, '咸宁市', 2, 17), -(269, '随州市', 2, 17), -(270, '恩施土家族苗族自治州', 2, 17), -(271, '仙桃市', 2, 17), -(272, '潜江市', 2, 17), -(273, '天门市', 2, 17), -(274, '神农架林区', 2, 17), -(275, '长沙市', 2, 18), -(276, '株洲市', 2, 18), -(277, '湘潭市', 2, 18), -(278, '衡阳市', 2, 18), -(279, '邵阳市', 2, 18), -(280, '岳阳市', 2, 18), -(281, '常德市', 2, 18), -(282, '张家界市', 2, 18), -(283, '益阳市', 2, 18), -(284, '郴州市', 2, 18), -(285, '永州市', 2, 18), -(286, '怀化市', 2, 18), -(287, '娄底市', 2, 18), -(288, '湘西土家族苗族自治州', 2, 18), -(289, '广州市', 2, 19), -(290, '韶关市', 2, 19), -(291, '深圳市', 2, 19), -(292, '珠海市', 2, 19), -(293, '汕头市', 2, 19), -(294, '佛山市', 2, 19), -(295, '江门市', 2, 19), -(296, '湛江市', 2, 19), -(297, '茂名市', 2, 19), -(298, '肇庆市', 2, 19), -(299, '惠州市', 2, 19), -(300, '梅州市', 2, 19), -(301, '汕尾市', 2, 19), -(302, '河源市', 2, 19), -(303, '阳江市', 2, 19), -(304, '清远市', 2, 19), -(305, '东莞市', 2, 19), -(306, '中山市', 2, 19), -(307, '潮州市', 2, 19), -(308, '揭阳市', 2, 19), -(309, '云浮市', 2, 19), -(310, '南宁市', 2, 20), -(311, '柳州市', 2, 20), -(312, '桂林市', 2, 20), -(313, '梧州市', 2, 20), -(314, '北海市', 2, 20), -(315, '防城港市', 2, 20), -(316, '钦州市', 2, 20), -(317, '贵港市', 2, 20), -(318, '玉林市', 2, 20), -(319, '百色市', 2, 20), -(320, '贺州市', 2, 20), -(321, '河池市', 2, 20), -(322, '来宾市', 2, 20), -(323, '崇左市', 2, 20), -(324, '海口市', 2, 21), -(325, '三亚市', 2, 21), -(326, '五指山市', 2, 21), -(327, '琼海市', 2, 21), -(328, '儋州市', 2, 21), -(329, '文昌市', 2, 21), -(330, '万宁市', 2, 21), -(331, '东方市', 2, 21), -(332, '定安县', 2, 21), -(333, '屯昌县', 2, 21), -(334, '澄迈县', 2, 21), -(335, '临高县', 2, 21), -(336, '白沙黎族自治县', 2, 21), -(337, '昌江黎族自治县', 2, 21), -(338, '乐东黎族自治县', 2, 21), -(339, '陵水黎族自治县', 2, 21), -(340, '保亭黎族苗族自治县', 2, 21), -(341, '琼中黎族苗族自治县', 2, 21), -(342, '西沙群岛', 2, 21), -(343, '南沙群岛', 2, 21), -(344, '中沙群岛的岛礁及其海域', 2, 21), -(345, '万州区', 2, 22), -(346, '涪陵区', 2, 22), -(347, '渝中区', 2, 22), -(348, '大渡口区', 2, 22), -(349, '江北区', 2, 22), -(350, '沙坪坝区', 2, 22), -(351, '九龙坡区', 2, 22), -(352, '南岸区', 2, 22), -(353, '北碚区', 2, 22), -(354, '双桥区', 2, 22), -(355, '万盛区', 2, 22), -(356, '渝北区', 2, 22), -(357, '巴南区', 2, 22), -(358, '黔江区', 2, 22), -(359, '长寿区', 2, 22), -(360, '綦江县', 2, 22), -(361, '潼南县', 2, 22), -(362, '铜梁县', 2, 22), -(363, '大足县', 2, 22), -(364, '荣昌县', 2, 22), -(365, '璧山县', 2, 22), -(366, '梁平县', 2, 22), -(367, '城口县', 2, 22), -(368, '丰都县', 2, 22), -(369, '垫江县', 2, 22), -(370, '武隆县', 2, 22), -(371, '忠县', 2, 22), -(372, '开县', 2, 22), -(373, '云阳县', 2, 22), -(374, '奉节县', 2, 22), -(375, '巫山县', 2, 22), -(376, '巫溪县', 2, 22), -(377, '石柱土家族自治县', 2, 22), -(378, '秀山土家族苗族自治县', 2, 22), -(379, '酉阳土家族苗族自治县', 2, 22), -(380, '彭水苗族土家族自治县', 2, 22), -(381, '江津市', 2, 22), -(382, '合川市', 2, 22), -(383, '永川市', 2, 22), -(384, '南川市', 2, 22), -(385, '成都市', 2, 23), -(386, '自贡市', 2, 23), -(387, '攀枝花市', 2, 23), -(388, '泸州市', 2, 23), -(389, '德阳市', 2, 23), -(390, '绵阳市', 2, 23), -(391, '广元市', 2, 23), -(392, '遂宁市', 2, 23), -(393, '内江市', 2, 23), -(394, '乐山市', 2, 23), -(395, '南充市', 2, 23), -(396, '眉山市', 2, 23), -(397, '宜宾市', 2, 23), -(398, '广安市', 2, 23), -(399, '达州市', 2, 23), -(400, '雅安市', 2, 23), -(401, '巴中市', 2, 23), -(402, '资阳市', 2, 23), -(403, '阿坝藏族羌族自治州', 2, 23), -(404, '甘孜藏族自治州', 2, 23), -(405, '凉山彝族自治州', 2, 23), -(406, '贵阳市', 2, 24), -(407, '六盘水市', 2, 24), -(408, '遵义市', 2, 24), -(409, '安顺市', 2, 24), -(410, '铜仁地区', 2, 24), -(411, '黔西南布依族苗族自治州', 2, 24), -(412, '毕节地区', 2, 24), -(413, '黔东南苗族侗族自治州', 2, 24), -(414, '黔南布依族苗族自治州', 2, 24), -(415, '昆明市', 2, 25), -(416, '曲靖市', 2, 25), -(417, '玉溪市', 2, 25), -(418, '保山市', 2, 25), -(419, '昭通市', 2, 25), -(420, '丽江市', 2, 25), -(421, '思茅市', 2, 25), -(422, '临沧市', 2, 25), -(423, '楚雄彝族自治州', 2, 25), -(424, '红河哈尼族彝族自治州', 2, 25), -(425, '文山壮族苗族自治州', 2, 25), -(426, '西双版纳傣族自治州', 2, 25), -(427, '大理白族自治州', 2, 25), -(428, '德宏傣族景颇族自治州', 2, 25), -(429, '怒江傈僳族自治州', 2, 25), -(430, '迪庆藏族自治州', 2, 25), -(431, '拉萨市', 2, 26), -(432, '昌都地区', 2, 26), -(433, '山南地区', 2, 26), -(434, '日喀则地区', 2, 26), -(435, '那曲地区', 2, 26), -(436, '阿里地区', 2, 26), -(437, '林芝地区', 2, 26), -(438, '西安市', 2, 27), -(439, '铜川市', 2, 27), -(440, '宝鸡市', 2, 27), -(441, '咸阳市', 2, 27), -(442, '渭南市', 2, 27), -(443, '延安市', 2, 27), -(444, '汉中市', 2, 27), -(445, '榆林市', 2, 27), -(446, '安康市', 2, 27), -(447, '商洛市', 2, 27), -(448, '兰州市', 2, 28), -(449, '嘉峪关市', 2, 28), -(450, '金昌市', 2, 28), -(451, '白银市', 2, 28), -(452, '天水市', 2, 28), -(453, '武威市', 2, 28), -(454, '张掖市', 2, 28), -(455, '平凉市', 2, 28), -(456, '酒泉市', 2, 28), -(457, '庆阳市', 2, 28), -(458, '定西市', 2, 28), -(459, '陇南市', 2, 28), -(460, '临夏回族自治州', 2, 28), -(461, '甘南藏族自治州', 2, 28), -(462, '西宁市', 2, 29), -(463, '海东地区', 2, 29), -(464, '海北藏族自治州', 2, 29), -(465, '黄南藏族自治州', 2, 29), -(466, '海南藏族自治州', 2, 29), -(467, '果洛藏族自治州', 2, 29), -(468, '玉树藏族自治州', 2, 29), -(469, '海西蒙古族藏族自治州', 2, 29), -(470, '银川市', 2, 30), -(471, '石嘴山市', 2, 30), -(472, '吴忠市', 2, 30), -(473, '固原市', 2, 30), -(474, '中卫市', 2, 30), -(475, '乌鲁木齐市', 2, 31), -(476, '克拉玛依市', 2, 31), -(477, '吐鲁番地区', 2, 31), -(478, '哈密地区', 2, 31), -(479, '昌吉回族自治州', 2, 31), -(480, '博尔塔拉蒙古自治州', 2, 31), -(481, '巴音郭楞蒙古自治州', 2, 31), -(482, '阿克苏地区', 2, 31), -(483, '克孜勒苏柯尔克孜自治州', 2, 31), -(484, '喀什地区', 2, 31), -(485, '和田地区', 2, 31), -(486, '伊犁哈萨克自治州', 2, 31), -(487, '塔城地区', 2, 31), -(488, '阿勒泰地区', 2, 31), -(489, '石河子市', 2, 31), -(490, '阿拉尔市', 2, 31), -(491, '图木舒克市', 2, 31), -(492, '五家渠市', 2, 31), -(493, '台北市', 2, 32), -(494, '高雄市', 2, 32), -(495, '基隆市', 2, 32), -(496, '台中市', 2, 32), -(497, '台南市', 2, 32), -(498, '新竹市', 2, 32), -(499, '嘉义市', 2, 32), -(500, '台北县', 2, 32), -(501, '宜兰县', 2, 32), -(502, '桃园县', 2, 32), -(503, '新竹县', 2, 32), -(504, '苗栗县', 2, 32), -(505, '台中县', 2, 32), -(506, '彰化县', 2, 32), -(507, '南投县', 2, 32), -(508, '云林县', 2, 32), -(509, '嘉义县', 2, 32), -(510, '台南县', 2, 32), -(511, '高雄县', 2, 32), -(512, '屏东县', 2, 32), -(513, '澎湖县', 2, 32), -(514, '台东县', 2, 32), -(515, '花莲县', 2, 32), -(516, '中西区', 2, 33), -(517, '东区', 2, 33), -(518, '九龙城区', 2, 33), -(519, '观塘区', 2, 33), -(520, '南区', 2, 33), -(521, '深水埗区', 2, 33), -(522, '黄大仙区', 2, 33), -(523, '湾仔区', 2, 33); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_document` --- +-- ----------------------------- +-- Records of `sent_district` +-- ----------------------------- +INSERT INTO `sent_district` VALUES ('1', '北京市', '1', '0'); +INSERT INTO `sent_district` VALUES ('2', '天津市', '1', '0'); +INSERT INTO `sent_district` VALUES ('3', '河北省', '1', '0'); +INSERT INTO `sent_district` VALUES ('4', '山西省', '1', '0'); +INSERT INTO `sent_district` VALUES ('5', '内蒙古自治区', '1', '0'); +INSERT INTO `sent_district` VALUES ('6', '辽宁省', '1', '0'); +INSERT INTO `sent_district` VALUES ('7', '吉林省', '1', '0'); +INSERT INTO `sent_district` VALUES ('8', '黑龙江省', '1', '0'); +INSERT INTO `sent_district` VALUES ('9', '上海市', '1', '0'); +INSERT INTO `sent_district` VALUES ('10', '江苏省', '1', '0'); +INSERT INTO `sent_district` VALUES ('11', '浙江省', '1', '0'); +INSERT INTO `sent_district` VALUES ('12', '安徽省', '1', '0'); +INSERT INTO `sent_district` VALUES ('13', '福建省', '1', '0'); +INSERT INTO `sent_district` VALUES ('14', '江西省', '1', '0'); +INSERT INTO `sent_district` VALUES ('15', '山东省', '1', '0'); +INSERT INTO `sent_district` VALUES ('16', '河南省', '1', '0'); +INSERT INTO `sent_district` VALUES ('17', '湖北省', '1', '0'); +INSERT INTO `sent_district` VALUES ('18', '湖南省', '1', '0'); +INSERT INTO `sent_district` VALUES ('19', '广东省', '1', '0'); +INSERT INTO `sent_district` VALUES ('20', '广西壮族自治区', '1', '0'); +INSERT INTO `sent_district` VALUES ('21', '海南省', '1', '0'); +INSERT INTO `sent_district` VALUES ('22', '重庆市', '1', '0'); +INSERT INTO `sent_district` VALUES ('23', '四川省', '1', '0'); +INSERT INTO `sent_district` VALUES ('24', '贵州省', '1', '0'); +INSERT INTO `sent_district` VALUES ('25', '云南省', '1', '0'); +INSERT INTO `sent_district` VALUES ('26', '西藏自治区', '1', '0'); +INSERT INTO `sent_district` VALUES ('27', '陕西省', '1', '0'); +INSERT INTO `sent_district` VALUES ('28', '甘肃省', '1', '0'); +INSERT INTO `sent_district` VALUES ('29', '青海省', '1', '0'); +INSERT INTO `sent_district` VALUES ('30', '宁夏回族自治区', '1', '0'); +INSERT INTO `sent_district` VALUES ('31', '新疆维吾尔自治区', '1', '0'); +INSERT INTO `sent_district` VALUES ('32', '台湾省', '1', '0'); +INSERT INTO `sent_district` VALUES ('33', '香港特别行政区', '1', '0'); +INSERT INTO `sent_district` VALUES ('34', '澳门特别行政区', '1', '0'); +INSERT INTO `sent_district` VALUES ('35', '海外', '1', '0'); +INSERT INTO `sent_district` VALUES ('36', '其他', '1', '0'); +INSERT INTO `sent_district` VALUES ('37', '东城区', '2', '1'); +INSERT INTO `sent_district` VALUES ('38', '西城区', '2', '1'); +INSERT INTO `sent_district` VALUES ('39', '崇文区', '2', '1'); +INSERT INTO `sent_district` VALUES ('40', '宣武区', '2', '1'); +INSERT INTO `sent_district` VALUES ('41', '朝阳区', '2', '1'); +INSERT INTO `sent_district` VALUES ('42', '丰台区', '2', '1'); +INSERT INTO `sent_district` VALUES ('43', '石景山区', '2', '1'); +INSERT INTO `sent_district` VALUES ('44', '海淀区', '2', '1'); +INSERT INTO `sent_district` VALUES ('45', '门头沟区', '2', '1'); +INSERT INTO `sent_district` VALUES ('46', '房山区', '2', '1'); +INSERT INTO `sent_district` VALUES ('47', '通州区', '2', '1'); +INSERT INTO `sent_district` VALUES ('48', '顺义区', '2', '1'); +INSERT INTO `sent_district` VALUES ('49', '昌平区', '2', '1'); +INSERT INTO `sent_district` VALUES ('50', '大兴区', '2', '1'); +INSERT INTO `sent_district` VALUES ('51', '怀柔区', '2', '1'); +INSERT INTO `sent_district` VALUES ('52', '平谷区', '2', '1'); +INSERT INTO `sent_district` VALUES ('53', '密云县', '2', '1'); +INSERT INTO `sent_district` VALUES ('54', '延庆县', '2', '1'); +INSERT INTO `sent_district` VALUES ('55', '和平区', '2', '2'); +INSERT INTO `sent_district` VALUES ('56', '河东区', '2', '2'); +INSERT INTO `sent_district` VALUES ('57', '河西区', '2', '2'); +INSERT INTO `sent_district` VALUES ('58', '南开区', '2', '2'); +INSERT INTO `sent_district` VALUES ('59', '河北区', '2', '2'); +INSERT INTO `sent_district` VALUES ('60', '红桥区', '2', '2'); +INSERT INTO `sent_district` VALUES ('61', '塘沽区', '2', '2'); +INSERT INTO `sent_district` VALUES ('62', '汉沽区', '2', '2'); +INSERT INTO `sent_district` VALUES ('63', '大港区', '2', '2'); +INSERT INTO `sent_district` VALUES ('64', '东丽区', '2', '2'); +INSERT INTO `sent_district` VALUES ('65', '西青区', '2', '2'); +INSERT INTO `sent_district` VALUES ('66', '津南区', '2', '2'); +INSERT INTO `sent_district` VALUES ('67', '北辰区', '2', '2'); +INSERT INTO `sent_district` VALUES ('68', '武清区', '2', '2'); +INSERT INTO `sent_district` VALUES ('69', '宝坻区', '2', '2'); +INSERT INTO `sent_district` VALUES ('70', '宁河县', '2', '2'); +INSERT INTO `sent_district` VALUES ('71', '静海县', '2', '2'); +INSERT INTO `sent_district` VALUES ('72', '蓟县', '2', '2'); +INSERT INTO `sent_district` VALUES ('73', '石家庄市', '2', '3'); +INSERT INTO `sent_district` VALUES ('74', '唐山市', '2', '3'); +INSERT INTO `sent_district` VALUES ('75', '秦皇岛市', '2', '3'); +INSERT INTO `sent_district` VALUES ('76', '邯郸市', '2', '3'); +INSERT INTO `sent_district` VALUES ('77', '邢台市', '2', '3'); +INSERT INTO `sent_district` VALUES ('78', '保定市', '2', '3'); +INSERT INTO `sent_district` VALUES ('79', '张家口市', '2', '3'); +INSERT INTO `sent_district` VALUES ('80', '承德市', '2', '3'); +INSERT INTO `sent_district` VALUES ('81', '衡水市', '2', '3'); +INSERT INTO `sent_district` VALUES ('82', '廊坊市', '2', '3'); +INSERT INTO `sent_district` VALUES ('83', '沧州市', '2', '3'); +INSERT INTO `sent_district` VALUES ('84', '太原市', '2', '4'); +INSERT INTO `sent_district` VALUES ('85', '大同市', '2', '4'); +INSERT INTO `sent_district` VALUES ('86', '阳泉市', '2', '4'); +INSERT INTO `sent_district` VALUES ('87', '长治市', '2', '4'); +INSERT INTO `sent_district` VALUES ('88', '晋城市', '2', '4'); +INSERT INTO `sent_district` VALUES ('89', '朔州市', '2', '4'); +INSERT INTO `sent_district` VALUES ('90', '晋中市', '2', '4'); +INSERT INTO `sent_district` VALUES ('91', '运城市', '2', '4'); +INSERT INTO `sent_district` VALUES ('92', '忻州市', '2', '4'); +INSERT INTO `sent_district` VALUES ('93', '临汾市', '2', '4'); +INSERT INTO `sent_district` VALUES ('94', '吕梁市', '2', '4'); +INSERT INTO `sent_district` VALUES ('95', '呼和浩特市', '2', '5'); +INSERT INTO `sent_district` VALUES ('96', '包头市', '2', '5'); +INSERT INTO `sent_district` VALUES ('97', '乌海市', '2', '5'); +INSERT INTO `sent_district` VALUES ('98', '赤峰市', '2', '5'); +INSERT INTO `sent_district` VALUES ('99', '通辽市', '2', '5'); +INSERT INTO `sent_district` VALUES ('100', '鄂尔多斯市', '2', '5'); +INSERT INTO `sent_district` VALUES ('101', '呼伦贝尔市', '2', '5'); +INSERT INTO `sent_district` VALUES ('102', '巴彦淖尔市', '2', '5'); +INSERT INTO `sent_district` VALUES ('103', '乌兰察布市', '2', '5'); +INSERT INTO `sent_district` VALUES ('104', '兴安盟', '2', '5'); +INSERT INTO `sent_district` VALUES ('105', '锡林郭勒盟', '2', '5'); +INSERT INTO `sent_district` VALUES ('106', '阿拉善盟', '2', '5'); +INSERT INTO `sent_district` VALUES ('107', '沈阳市', '2', '6'); +INSERT INTO `sent_district` VALUES ('108', '大连市', '2', '6'); +INSERT INTO `sent_district` VALUES ('109', '鞍山市', '2', '6'); +INSERT INTO `sent_district` VALUES ('110', '抚顺市', '2', '6'); +INSERT INTO `sent_district` VALUES ('111', '本溪市', '2', '6'); +INSERT INTO `sent_district` VALUES ('112', '丹东市', '2', '6'); +INSERT INTO `sent_district` VALUES ('113', '锦州市', '2', '6'); +INSERT INTO `sent_district` VALUES ('114', '营口市', '2', '6'); +INSERT INTO `sent_district` VALUES ('115', '阜新市', '2', '6'); +INSERT INTO `sent_district` VALUES ('116', '辽阳市', '2', '6'); +INSERT INTO `sent_district` VALUES ('117', '盘锦市', '2', '6'); +INSERT INTO `sent_district` VALUES ('118', '铁岭市', '2', '6'); +INSERT INTO `sent_district` VALUES ('119', '朝阳市', '2', '6'); +INSERT INTO `sent_district` VALUES ('120', '葫芦岛市', '2', '6'); +INSERT INTO `sent_district` VALUES ('121', '长春市', '2', '7'); +INSERT INTO `sent_district` VALUES ('122', '吉林市', '2', '7'); +INSERT INTO `sent_district` VALUES ('123', '四平市', '2', '7'); +INSERT INTO `sent_district` VALUES ('124', '辽源市', '2', '7'); +INSERT INTO `sent_district` VALUES ('125', '通化市', '2', '7'); +INSERT INTO `sent_district` VALUES ('126', '白山市', '2', '7'); +INSERT INTO `sent_district` VALUES ('127', '松原市', '2', '7'); +INSERT INTO `sent_district` VALUES ('128', '白城市', '2', '7'); +INSERT INTO `sent_district` VALUES ('129', '延边朝鲜族自治州', '2', '7'); +INSERT INTO `sent_district` VALUES ('130', '哈尔滨市', '2', '8'); +INSERT INTO `sent_district` VALUES ('131', '齐齐哈尔市', '2', '8'); +INSERT INTO `sent_district` VALUES ('132', '鸡西市', '2', '8'); +INSERT INTO `sent_district` VALUES ('133', '鹤岗市', '2', '8'); +INSERT INTO `sent_district` VALUES ('134', '双鸭山市', '2', '8'); +INSERT INTO `sent_district` VALUES ('135', '大庆市', '2', '8'); +INSERT INTO `sent_district` VALUES ('136', '伊春市', '2', '8'); +INSERT INTO `sent_district` VALUES ('137', '佳木斯市', '2', '8'); +INSERT INTO `sent_district` VALUES ('138', '七台河市', '2', '8'); +INSERT INTO `sent_district` VALUES ('139', '牡丹江市', '2', '8'); +INSERT INTO `sent_district` VALUES ('140', '黑河市', '2', '8'); +INSERT INTO `sent_district` VALUES ('141', '绥化市', '2', '8'); +INSERT INTO `sent_district` VALUES ('142', '大兴安岭地区', '2', '8'); +INSERT INTO `sent_district` VALUES ('143', '黄浦区', '2', '9'); +INSERT INTO `sent_district` VALUES ('144', '卢湾区', '2', '9'); +INSERT INTO `sent_district` VALUES ('145', '徐汇区', '2', '9'); +INSERT INTO `sent_district` VALUES ('146', '长宁区', '2', '9'); +INSERT INTO `sent_district` VALUES ('147', '静安区', '2', '9'); +INSERT INTO `sent_district` VALUES ('148', '普陀区', '2', '9'); +INSERT INTO `sent_district` VALUES ('149', '闸北区', '2', '9'); +INSERT INTO `sent_district` VALUES ('150', '虹口区', '2', '9'); +INSERT INTO `sent_district` VALUES ('151', '杨浦区', '2', '9'); +INSERT INTO `sent_district` VALUES ('152', '闵行区', '2', '9'); +INSERT INTO `sent_district` VALUES ('153', '宝山区', '2', '9'); +INSERT INTO `sent_district` VALUES ('154', '嘉定区', '2', '9'); +INSERT INTO `sent_district` VALUES ('155', '浦东新区', '2', '9'); +INSERT INTO `sent_district` VALUES ('156', '金山区', '2', '9'); +INSERT INTO `sent_district` VALUES ('157', '松江区', '2', '9'); +INSERT INTO `sent_district` VALUES ('158', '青浦区', '2', '9'); +INSERT INTO `sent_district` VALUES ('159', '南汇区', '2', '9'); +INSERT INTO `sent_district` VALUES ('160', '奉贤区', '2', '9'); +INSERT INTO `sent_district` VALUES ('161', '崇明县', '2', '9'); +INSERT INTO `sent_district` VALUES ('162', '南京市', '2', '10'); +INSERT INTO `sent_district` VALUES ('163', '无锡市', '2', '10'); +INSERT INTO `sent_district` VALUES ('164', '徐州市', '2', '10'); +INSERT INTO `sent_district` VALUES ('165', '常州市', '2', '10'); +INSERT INTO `sent_district` VALUES ('166', '苏州市', '2', '10'); +INSERT INTO `sent_district` VALUES ('167', '南通市', '2', '10'); +INSERT INTO `sent_district` VALUES ('168', '连云港市', '2', '10'); +INSERT INTO `sent_district` VALUES ('169', '淮安市', '2', '10'); +INSERT INTO `sent_district` VALUES ('170', '盐城市', '2', '10'); +INSERT INTO `sent_district` VALUES ('171', '扬州市', '2', '10'); +INSERT INTO `sent_district` VALUES ('172', '镇江市', '2', '10'); +INSERT INTO `sent_district` VALUES ('173', '泰州市', '2', '10'); +INSERT INTO `sent_district` VALUES ('174', '宿迁市', '2', '10'); +INSERT INTO `sent_district` VALUES ('175', '杭州市', '2', '11'); +INSERT INTO `sent_district` VALUES ('176', '宁波市', '2', '11'); +INSERT INTO `sent_district` VALUES ('177', '温州市', '2', '11'); +INSERT INTO `sent_district` VALUES ('178', '嘉兴市', '2', '11'); +INSERT INTO `sent_district` VALUES ('179', '湖州市', '2', '11'); +INSERT INTO `sent_district` VALUES ('180', '绍兴市', '2', '11'); +INSERT INTO `sent_district` VALUES ('181', '舟山市', '2', '11'); +INSERT INTO `sent_district` VALUES ('182', '衢州市', '2', '11'); +INSERT INTO `sent_district` VALUES ('183', '金华市', '2', '11'); +INSERT INTO `sent_district` VALUES ('184', '台州市', '2', '11'); +INSERT INTO `sent_district` VALUES ('185', '丽水市', '2', '11'); +INSERT INTO `sent_district` VALUES ('186', '合肥市', '2', '12'); +INSERT INTO `sent_district` VALUES ('187', '芜湖市', '2', '12'); +INSERT INTO `sent_district` VALUES ('188', '蚌埠市', '2', '12'); +INSERT INTO `sent_district` VALUES ('189', '淮南市', '2', '12'); +INSERT INTO `sent_district` VALUES ('190', '马鞍山市', '2', '12'); +INSERT INTO `sent_district` VALUES ('191', '淮北市', '2', '12'); +INSERT INTO `sent_district` VALUES ('192', '铜陵市', '2', '12'); +INSERT INTO `sent_district` VALUES ('193', '安庆市', '2', '12'); +INSERT INTO `sent_district` VALUES ('194', '黄山市', '2', '12'); +INSERT INTO `sent_district` VALUES ('195', '滁州市', '2', '12'); +INSERT INTO `sent_district` VALUES ('196', '阜阳市', '2', '12'); +INSERT INTO `sent_district` VALUES ('197', '宿州市', '2', '12'); +INSERT INTO `sent_district` VALUES ('198', '巢湖市', '2', '12'); +INSERT INTO `sent_district` VALUES ('199', '六安市', '2', '12'); +INSERT INTO `sent_district` VALUES ('200', '亳州市', '2', '12'); +INSERT INTO `sent_district` VALUES ('201', '池州市', '2', '12'); +INSERT INTO `sent_district` VALUES ('202', '宣城市', '2', '12'); +INSERT INTO `sent_district` VALUES ('203', '福州市', '2', '13'); +INSERT INTO `sent_district` VALUES ('204', '厦门市', '2', '13'); +INSERT INTO `sent_district` VALUES ('205', '莆田市', '2', '13'); +INSERT INTO `sent_district` VALUES ('206', '三明市', '2', '13'); +INSERT INTO `sent_district` VALUES ('207', '泉州市', '2', '13'); +INSERT INTO `sent_district` VALUES ('208', '漳州市', '2', '13'); +INSERT INTO `sent_district` VALUES ('209', '南平市', '2', '13'); +INSERT INTO `sent_district` VALUES ('210', '龙岩市', '2', '13'); +INSERT INTO `sent_district` VALUES ('211', '宁德市', '2', '13'); +INSERT INTO `sent_district` VALUES ('212', '南昌市', '2', '14'); +INSERT INTO `sent_district` VALUES ('213', '景德镇市', '2', '14'); +INSERT INTO `sent_district` VALUES ('214', '萍乡市', '2', '14'); +INSERT INTO `sent_district` VALUES ('215', '九江市', '2', '14'); +INSERT INTO `sent_district` VALUES ('216', '新余市', '2', '14'); +INSERT INTO `sent_district` VALUES ('217', '鹰潭市', '2', '14'); +INSERT INTO `sent_district` VALUES ('218', '赣州市', '2', '14'); +INSERT INTO `sent_district` VALUES ('219', '吉安市', '2', '14'); +INSERT INTO `sent_district` VALUES ('220', '宜春市', '2', '14'); +INSERT INTO `sent_district` VALUES ('221', '抚州市', '2', '14'); +INSERT INTO `sent_district` VALUES ('222', '上饶市', '2', '14'); +INSERT INTO `sent_district` VALUES ('223', '济南市', '2', '15'); +INSERT INTO `sent_district` VALUES ('224', '青岛市', '2', '15'); +INSERT INTO `sent_district` VALUES ('225', '淄博市', '2', '15'); +INSERT INTO `sent_district` VALUES ('226', '枣庄市', '2', '15'); +INSERT INTO `sent_district` VALUES ('227', '东营市', '2', '15'); +INSERT INTO `sent_district` VALUES ('228', '烟台市', '2', '15'); +INSERT INTO `sent_district` VALUES ('229', '潍坊市', '2', '15'); +INSERT INTO `sent_district` VALUES ('230', '济宁市', '2', '15'); +INSERT INTO `sent_district` VALUES ('231', '泰安市', '2', '15'); +INSERT INTO `sent_district` VALUES ('232', '威海市', '2', '15'); +INSERT INTO `sent_district` VALUES ('233', '日照市', '2', '15'); +INSERT INTO `sent_district` VALUES ('234', '莱芜市', '2', '15'); +INSERT INTO `sent_district` VALUES ('235', '临沂市', '2', '15'); +INSERT INTO `sent_district` VALUES ('236', '德州市', '2', '15'); +INSERT INTO `sent_district` VALUES ('237', '聊城市', '2', '15'); +INSERT INTO `sent_district` VALUES ('238', '滨州市', '2', '15'); +INSERT INTO `sent_district` VALUES ('239', '菏泽市', '2', '15'); +INSERT INTO `sent_district` VALUES ('240', '郑州市', '2', '16'); +INSERT INTO `sent_district` VALUES ('241', '开封市', '2', '16'); +INSERT INTO `sent_district` VALUES ('242', '洛阳市', '2', '16'); +INSERT INTO `sent_district` VALUES ('243', '平顶山市', '2', '16'); +INSERT INTO `sent_district` VALUES ('244', '安阳市', '2', '16'); +INSERT INTO `sent_district` VALUES ('245', '鹤壁市', '2', '16'); +INSERT INTO `sent_district` VALUES ('246', '新乡市', '2', '16'); +INSERT INTO `sent_district` VALUES ('247', '焦作市', '2', '16'); +INSERT INTO `sent_district` VALUES ('248', '濮阳市', '2', '16'); +INSERT INTO `sent_district` VALUES ('249', '许昌市', '2', '16'); +INSERT INTO `sent_district` VALUES ('250', '漯河市', '2', '16'); +INSERT INTO `sent_district` VALUES ('251', '三门峡市', '2', '16'); +INSERT INTO `sent_district` VALUES ('252', '南阳市', '2', '16'); +INSERT INTO `sent_district` VALUES ('253', '商丘市', '2', '16'); +INSERT INTO `sent_district` VALUES ('254', '信阳市', '2', '16'); +INSERT INTO `sent_district` VALUES ('255', '周口市', '2', '16'); +INSERT INTO `sent_district` VALUES ('256', '驻马店市', '2', '16'); +INSERT INTO `sent_district` VALUES ('257', '济源市', '2', '16'); +INSERT INTO `sent_district` VALUES ('258', '武汉市', '2', '17'); +INSERT INTO `sent_district` VALUES ('259', '黄石市', '2', '17'); +INSERT INTO `sent_district` VALUES ('260', '十堰市', '2', '17'); +INSERT INTO `sent_district` VALUES ('261', '宜昌市', '2', '17'); +INSERT INTO `sent_district` VALUES ('262', '襄樊市', '2', '17'); +INSERT INTO `sent_district` VALUES ('263', '鄂州市', '2', '17'); +INSERT INTO `sent_district` VALUES ('264', '荆门市', '2', '17'); +INSERT INTO `sent_district` VALUES ('265', '孝感市', '2', '17'); +INSERT INTO `sent_district` VALUES ('266', '荆州市', '2', '17'); +INSERT INTO `sent_district` VALUES ('267', '黄冈市', '2', '17'); +INSERT INTO `sent_district` VALUES ('268', '咸宁市', '2', '17'); +INSERT INTO `sent_district` VALUES ('269', '随州市', '2', '17'); +INSERT INTO `sent_district` VALUES ('270', '恩施土家族苗族自治州', '2', '17'); +INSERT INTO `sent_district` VALUES ('271', '仙桃市', '2', '17'); +INSERT INTO `sent_district` VALUES ('272', '潜江市', '2', '17'); +INSERT INTO `sent_district` VALUES ('273', '天门市', '2', '17'); +INSERT INTO `sent_district` VALUES ('274', '神农架林区', '2', '17'); +INSERT INTO `sent_district` VALUES ('275', '长沙市', '2', '18'); +INSERT INTO `sent_district` VALUES ('276', '株洲市', '2', '18'); +INSERT INTO `sent_district` VALUES ('277', '湘潭市', '2', '18'); +INSERT INTO `sent_district` VALUES ('278', '衡阳市', '2', '18'); +INSERT INTO `sent_district` VALUES ('279', '邵阳市', '2', '18'); +INSERT INTO `sent_district` VALUES ('280', '岳阳市', '2', '18'); +INSERT INTO `sent_district` VALUES ('281', '常德市', '2', '18'); +INSERT INTO `sent_district` VALUES ('282', '张家界市', '2', '18'); +INSERT INTO `sent_district` VALUES ('283', '益阳市', '2', '18'); +INSERT INTO `sent_district` VALUES ('284', '郴州市', '2', '18'); +INSERT INTO `sent_district` VALUES ('285', '永州市', '2', '18'); +INSERT INTO `sent_district` VALUES ('286', '怀化市', '2', '18'); +INSERT INTO `sent_district` VALUES ('287', '娄底市', '2', '18'); +INSERT INTO `sent_district` VALUES ('288', '湘西土家族苗族自治州', '2', '18'); +INSERT INTO `sent_district` VALUES ('289', '广州市', '2', '19'); +INSERT INTO `sent_district` VALUES ('290', '韶关市', '2', '19'); +INSERT INTO `sent_district` VALUES ('291', '深圳市', '2', '19'); +INSERT INTO `sent_district` VALUES ('292', '珠海市', '2', '19'); +INSERT INTO `sent_district` VALUES ('293', '汕头市', '2', '19'); +INSERT INTO `sent_district` VALUES ('294', '佛山市', '2', '19'); +INSERT INTO `sent_district` VALUES ('295', '江门市', '2', '19'); +INSERT INTO `sent_district` VALUES ('296', '湛江市', '2', '19'); +INSERT INTO `sent_district` VALUES ('297', '茂名市', '2', '19'); +INSERT INTO `sent_district` VALUES ('298', '肇庆市', '2', '19'); +INSERT INTO `sent_district` VALUES ('299', '惠州市', '2', '19'); +INSERT INTO `sent_district` VALUES ('300', '梅州市', '2', '19'); +INSERT INTO `sent_district` VALUES ('301', '汕尾市', '2', '19'); +INSERT INTO `sent_district` VALUES ('302', '河源市', '2', '19'); +INSERT INTO `sent_district` VALUES ('303', '阳江市', '2', '19'); +INSERT INTO `sent_district` VALUES ('304', '清远市', '2', '19'); +INSERT INTO `sent_district` VALUES ('305', '东莞市', '2', '19'); +INSERT INTO `sent_district` VALUES ('306', '中山市', '2', '19'); +INSERT INTO `sent_district` VALUES ('307', '潮州市', '2', '19'); +INSERT INTO `sent_district` VALUES ('308', '揭阳市', '2', '19'); +INSERT INTO `sent_district` VALUES ('309', '云浮市', '2', '19'); +INSERT INTO `sent_district` VALUES ('310', '南宁市', '2', '20'); +INSERT INTO `sent_district` VALUES ('311', '柳州市', '2', '20'); +INSERT INTO `sent_district` VALUES ('312', '桂林市', '2', '20'); +INSERT INTO `sent_district` VALUES ('313', '梧州市', '2', '20'); +INSERT INTO `sent_district` VALUES ('314', '北海市', '2', '20'); +INSERT INTO `sent_district` VALUES ('315', '防城港市', '2', '20'); +INSERT INTO `sent_district` VALUES ('316', '钦州市', '2', '20'); +INSERT INTO `sent_district` VALUES ('317', '贵港市', '2', '20'); +INSERT INTO `sent_district` VALUES ('318', '玉林市', '2', '20'); +INSERT INTO `sent_district` VALUES ('319', '百色市', '2', '20'); +INSERT INTO `sent_district` VALUES ('320', '贺州市', '2', '20'); +INSERT INTO `sent_district` VALUES ('321', '河池市', '2', '20'); +INSERT INTO `sent_district` VALUES ('322', '来宾市', '2', '20'); +INSERT INTO `sent_district` VALUES ('323', '崇左市', '2', '20'); +INSERT INTO `sent_district` VALUES ('324', '海口市', '2', '21'); +INSERT INTO `sent_district` VALUES ('325', '三亚市', '2', '21'); +INSERT INTO `sent_district` VALUES ('326', '五指山市', '2', '21'); +INSERT INTO `sent_district` VALUES ('327', '琼海市', '2', '21'); +INSERT INTO `sent_district` VALUES ('328', '儋州市', '2', '21'); +INSERT INTO `sent_district` VALUES ('329', '文昌市', '2', '21'); +INSERT INTO `sent_district` VALUES ('330', '万宁市', '2', '21'); +INSERT INTO `sent_district` VALUES ('331', '东方市', '2', '21'); +INSERT INTO `sent_district` VALUES ('332', '定安县', '2', '21'); +INSERT INTO `sent_district` VALUES ('333', '屯昌县', '2', '21'); +INSERT INTO `sent_district` VALUES ('334', '澄迈县', '2', '21'); +INSERT INTO `sent_district` VALUES ('335', '临高县', '2', '21'); +INSERT INTO `sent_district` VALUES ('336', '白沙黎族自治县', '2', '21'); +INSERT INTO `sent_district` VALUES ('337', '昌江黎族自治县', '2', '21'); +INSERT INTO `sent_district` VALUES ('338', '乐东黎族自治县', '2', '21'); +INSERT INTO `sent_district` VALUES ('339', '陵水黎族自治县', '2', '21'); +INSERT INTO `sent_district` VALUES ('340', '保亭黎族苗族自治县', '2', '21'); +INSERT INTO `sent_district` VALUES ('341', '琼中黎族苗族自治县', '2', '21'); +INSERT INTO `sent_district` VALUES ('342', '西沙群岛', '2', '21'); +INSERT INTO `sent_district` VALUES ('343', '南沙群岛', '2', '21'); +INSERT INTO `sent_district` VALUES ('344', '中沙群岛的岛礁及其海域', '2', '21'); +INSERT INTO `sent_district` VALUES ('345', '万州区', '2', '22'); +INSERT INTO `sent_district` VALUES ('346', '涪陵区', '2', '22'); +INSERT INTO `sent_district` VALUES ('347', '渝中区', '2', '22'); +INSERT INTO `sent_district` VALUES ('348', '大渡口区', '2', '22'); +INSERT INTO `sent_district` VALUES ('349', '江北区', '2', '22'); +INSERT INTO `sent_district` VALUES ('350', '沙坪坝区', '2', '22'); +INSERT INTO `sent_district` VALUES ('351', '九龙坡区', '2', '22'); +INSERT INTO `sent_district` VALUES ('352', '南岸区', '2', '22'); +INSERT INTO `sent_district` VALUES ('353', '北碚区', '2', '22'); +INSERT INTO `sent_district` VALUES ('354', '双桥区', '2', '22'); +INSERT INTO `sent_district` VALUES ('355', '万盛区', '2', '22'); +INSERT INTO `sent_district` VALUES ('356', '渝北区', '2', '22'); +INSERT INTO `sent_district` VALUES ('357', '巴南区', '2', '22'); +INSERT INTO `sent_district` VALUES ('358', '黔江区', '2', '22'); +INSERT INTO `sent_district` VALUES ('359', '长寿区', '2', '22'); +INSERT INTO `sent_district` VALUES ('360', '綦江县', '2', '22'); +INSERT INTO `sent_district` VALUES ('361', '潼南县', '2', '22'); +INSERT INTO `sent_district` VALUES ('362', '铜梁县', '2', '22'); +INSERT INTO `sent_district` VALUES ('363', '大足县', '2', '22'); +INSERT INTO `sent_district` VALUES ('364', '荣昌县', '2', '22'); +INSERT INTO `sent_district` VALUES ('365', '璧山县', '2', '22'); +INSERT INTO `sent_district` VALUES ('366', '梁平县', '2', '22'); +INSERT INTO `sent_district` VALUES ('367', '城口县', '2', '22'); +INSERT INTO `sent_district` VALUES ('368', '丰都县', '2', '22'); +INSERT INTO `sent_district` VALUES ('369', '垫江县', '2', '22'); +INSERT INTO `sent_district` VALUES ('370', '武隆县', '2', '22'); +INSERT INTO `sent_district` VALUES ('371', '忠县', '2', '22'); +INSERT INTO `sent_district` VALUES ('372', '开县', '2', '22'); +INSERT INTO `sent_district` VALUES ('373', '云阳县', '2', '22'); +INSERT INTO `sent_district` VALUES ('374', '奉节县', '2', '22'); +INSERT INTO `sent_district` VALUES ('375', '巫山县', '2', '22'); +INSERT INTO `sent_district` VALUES ('376', '巫溪县', '2', '22'); +INSERT INTO `sent_district` VALUES ('377', '石柱土家族自治县', '2', '22'); +INSERT INTO `sent_district` VALUES ('378', '秀山土家族苗族自治县', '2', '22'); +INSERT INTO `sent_district` VALUES ('379', '酉阳土家族苗族自治县', '2', '22'); +INSERT INTO `sent_district` VALUES ('380', '彭水苗族土家族自治县', '2', '22'); +INSERT INTO `sent_district` VALUES ('381', '江津市', '2', '22'); +INSERT INTO `sent_district` VALUES ('382', '合川市', '2', '22'); +INSERT INTO `sent_district` VALUES ('383', '永川市', '2', '22'); +INSERT INTO `sent_district` VALUES ('384', '南川市', '2', '22'); +INSERT INTO `sent_district` VALUES ('385', '成都市', '2', '23'); +INSERT INTO `sent_district` VALUES ('386', '自贡市', '2', '23'); +INSERT INTO `sent_district` VALUES ('387', '攀枝花市', '2', '23'); +INSERT INTO `sent_district` VALUES ('388', '泸州市', '2', '23'); +INSERT INTO `sent_district` VALUES ('389', '德阳市', '2', '23'); +INSERT INTO `sent_district` VALUES ('390', '绵阳市', '2', '23'); +INSERT INTO `sent_district` VALUES ('391', '广元市', '2', '23'); +INSERT INTO `sent_district` VALUES ('392', '遂宁市', '2', '23'); +INSERT INTO `sent_district` VALUES ('393', '内江市', '2', '23'); +INSERT INTO `sent_district` VALUES ('394', '乐山市', '2', '23'); +INSERT INTO `sent_district` VALUES ('395', '南充市', '2', '23'); +INSERT INTO `sent_district` VALUES ('396', '眉山市', '2', '23'); +INSERT INTO `sent_district` VALUES ('397', '宜宾市', '2', '23'); +INSERT INTO `sent_district` VALUES ('398', '广安市', '2', '23'); +INSERT INTO `sent_district` VALUES ('399', '达州市', '2', '23'); +INSERT INTO `sent_district` VALUES ('400', '雅安市', '2', '23'); +INSERT INTO `sent_district` VALUES ('401', '巴中市', '2', '23'); +INSERT INTO `sent_district` VALUES ('402', '资阳市', '2', '23'); +INSERT INTO `sent_district` VALUES ('403', '阿坝藏族羌族自治州', '2', '23'); +INSERT INTO `sent_district` VALUES ('404', '甘孜藏族自治州', '2', '23'); +INSERT INTO `sent_district` VALUES ('405', '凉山彝族自治州', '2', '23'); +INSERT INTO `sent_district` VALUES ('406', '贵阳市', '2', '24'); +INSERT INTO `sent_district` VALUES ('407', '六盘水市', '2', '24'); +INSERT INTO `sent_district` VALUES ('408', '遵义市', '2', '24'); +INSERT INTO `sent_district` VALUES ('409', '安顺市', '2', '24'); +INSERT INTO `sent_district` VALUES ('410', '铜仁地区', '2', '24'); +INSERT INTO `sent_district` VALUES ('411', '黔西南布依族苗族自治州', '2', '24'); +INSERT INTO `sent_district` VALUES ('412', '毕节地区', '2', '24'); +INSERT INTO `sent_district` VALUES ('413', '黔东南苗族侗族自治州', '2', '24'); +INSERT INTO `sent_district` VALUES ('414', '黔南布依族苗族自治州', '2', '24'); +INSERT INTO `sent_district` VALUES ('415', '昆明市', '2', '25'); +INSERT INTO `sent_district` VALUES ('416', '曲靖市', '2', '25'); +INSERT INTO `sent_district` VALUES ('417', '玉溪市', '2', '25'); +INSERT INTO `sent_district` VALUES ('418', '保山市', '2', '25'); +INSERT INTO `sent_district` VALUES ('419', '昭通市', '2', '25'); +INSERT INTO `sent_district` VALUES ('420', '丽江市', '2', '25'); +INSERT INTO `sent_district` VALUES ('421', '思茅市', '2', '25'); +INSERT INTO `sent_district` VALUES ('422', '临沧市', '2', '25'); +INSERT INTO `sent_district` VALUES ('423', '楚雄彝族自治州', '2', '25'); +INSERT INTO `sent_district` VALUES ('424', '红河哈尼族彝族自治州', '2', '25'); +INSERT INTO `sent_district` VALUES ('425', '文山壮族苗族自治州', '2', '25'); +INSERT INTO `sent_district` VALUES ('426', '西双版纳傣族自治州', '2', '25'); +INSERT INTO `sent_district` VALUES ('427', '大理白族自治州', '2', '25'); +INSERT INTO `sent_district` VALUES ('428', '德宏傣族景颇族自治州', '2', '25'); +INSERT INTO `sent_district` VALUES ('429', '怒江傈僳族自治州', '2', '25'); +INSERT INTO `sent_district` VALUES ('430', '迪庆藏族自治州', '2', '25'); +INSERT INTO `sent_district` VALUES ('431', '拉萨市', '2', '26'); +INSERT INTO `sent_district` VALUES ('432', '昌都地区', '2', '26'); +INSERT INTO `sent_district` VALUES ('433', '山南地区', '2', '26'); +INSERT INTO `sent_district` VALUES ('434', '日喀则地区', '2', '26'); +INSERT INTO `sent_district` VALUES ('435', '那曲地区', '2', '26'); +INSERT INTO `sent_district` VALUES ('436', '阿里地区', '2', '26'); +INSERT INTO `sent_district` VALUES ('437', '林芝地区', '2', '26'); +INSERT INTO `sent_district` VALUES ('438', '西安市', '2', '27'); +INSERT INTO `sent_district` VALUES ('439', '铜川市', '2', '27'); +INSERT INTO `sent_district` VALUES ('440', '宝鸡市', '2', '27'); +INSERT INTO `sent_district` VALUES ('441', '咸阳市', '2', '27'); +INSERT INTO `sent_district` VALUES ('442', '渭南市', '2', '27'); +INSERT INTO `sent_district` VALUES ('443', '延安市', '2', '27'); +INSERT INTO `sent_district` VALUES ('444', '汉中市', '2', '27'); +INSERT INTO `sent_district` VALUES ('445', '榆林市', '2', '27'); +INSERT INTO `sent_district` VALUES ('446', '安康市', '2', '27'); +INSERT INTO `sent_district` VALUES ('447', '商洛市', '2', '27'); +INSERT INTO `sent_district` VALUES ('448', '兰州市', '2', '28'); +INSERT INTO `sent_district` VALUES ('449', '嘉峪关市', '2', '28'); +INSERT INTO `sent_district` VALUES ('450', '金昌市', '2', '28'); +INSERT INTO `sent_district` VALUES ('451', '白银市', '2', '28'); +INSERT INTO `sent_district` VALUES ('452', '天水市', '2', '28'); +INSERT INTO `sent_district` VALUES ('453', '武威市', '2', '28'); +INSERT INTO `sent_district` VALUES ('454', '张掖市', '2', '28'); +INSERT INTO `sent_district` VALUES ('455', '平凉市', '2', '28'); +INSERT INTO `sent_district` VALUES ('456', '酒泉市', '2', '28'); +INSERT INTO `sent_district` VALUES ('457', '庆阳市', '2', '28'); +INSERT INTO `sent_district` VALUES ('458', '定西市', '2', '28'); +INSERT INTO `sent_district` VALUES ('459', '陇南市', '2', '28'); +INSERT INTO `sent_district` VALUES ('460', '临夏回族自治州', '2', '28'); +INSERT INTO `sent_district` VALUES ('461', '甘南藏族自治州', '2', '28'); +INSERT INTO `sent_district` VALUES ('462', '西宁市', '2', '29'); +INSERT INTO `sent_district` VALUES ('463', '海东地区', '2', '29'); +INSERT INTO `sent_district` VALUES ('464', '海北藏族自治州', '2', '29'); +INSERT INTO `sent_district` VALUES ('465', '黄南藏族自治州', '2', '29'); +INSERT INTO `sent_district` VALUES ('466', '海南藏族自治州', '2', '29'); +INSERT INTO `sent_district` VALUES ('467', '果洛藏族自治州', '2', '29'); +INSERT INTO `sent_district` VALUES ('468', '玉树藏族自治州', '2', '29'); +INSERT INTO `sent_district` VALUES ('469', '海西蒙古族藏族自治州', '2', '29'); +INSERT INTO `sent_district` VALUES ('470', '银川市', '2', '30'); +INSERT INTO `sent_district` VALUES ('471', '石嘴山市', '2', '30'); +INSERT INTO `sent_district` VALUES ('472', '吴忠市', '2', '30'); +INSERT INTO `sent_district` VALUES ('473', '固原市', '2', '30'); +INSERT INTO `sent_district` VALUES ('474', '中卫市', '2', '30'); +INSERT INTO `sent_district` VALUES ('475', '乌鲁木齐市', '2', '31'); +INSERT INTO `sent_district` VALUES ('476', '克拉玛依市', '2', '31'); +INSERT INTO `sent_district` VALUES ('477', '吐鲁番地区', '2', '31'); +INSERT INTO `sent_district` VALUES ('478', '哈密地区', '2', '31'); +INSERT INTO `sent_district` VALUES ('479', '昌吉回族自治州', '2', '31'); +INSERT INTO `sent_district` VALUES ('480', '博尔塔拉蒙古自治州', '2', '31'); +INSERT INTO `sent_district` VALUES ('481', '巴音郭楞蒙古自治州', '2', '31'); +INSERT INTO `sent_district` VALUES ('482', '阿克苏地区', '2', '31'); +INSERT INTO `sent_district` VALUES ('483', '克孜勒苏柯尔克孜自治州', '2', '31'); +INSERT INTO `sent_district` VALUES ('484', '喀什地区', '2', '31'); +INSERT INTO `sent_district` VALUES ('485', '和田地区', '2', '31'); +INSERT INTO `sent_district` VALUES ('486', '伊犁哈萨克自治州', '2', '31'); +INSERT INTO `sent_district` VALUES ('487', '塔城地区', '2', '31'); +INSERT INTO `sent_district` VALUES ('488', '阿勒泰地区', '2', '31'); +INSERT INTO `sent_district` VALUES ('489', '石河子市', '2', '31'); +INSERT INTO `sent_district` VALUES ('490', '阿拉尔市', '2', '31'); +INSERT INTO `sent_district` VALUES ('491', '图木舒克市', '2', '31'); +INSERT INTO `sent_district` VALUES ('492', '五家渠市', '2', '31'); +INSERT INTO `sent_district` VALUES ('493', '台北市', '2', '32'); +INSERT INTO `sent_district` VALUES ('494', '高雄市', '2', '32'); +INSERT INTO `sent_district` VALUES ('495', '基隆市', '2', '32'); +INSERT INTO `sent_district` VALUES ('496', '台中市', '2', '32'); +INSERT INTO `sent_district` VALUES ('497', '台南市', '2', '32'); +INSERT INTO `sent_district` VALUES ('498', '新竹市', '2', '32'); +INSERT INTO `sent_district` VALUES ('499', '嘉义市', '2', '32'); +INSERT INTO `sent_district` VALUES ('500', '台北县', '2', '32'); +INSERT INTO `sent_district` VALUES ('501', '宜兰县', '2', '32'); +INSERT INTO `sent_district` VALUES ('502', '桃园县', '2', '32'); +INSERT INTO `sent_district` VALUES ('503', '新竹县', '2', '32'); +INSERT INTO `sent_district` VALUES ('504', '苗栗县', '2', '32'); +INSERT INTO `sent_district` VALUES ('505', '台中县', '2', '32'); +INSERT INTO `sent_district` VALUES ('506', '彰化县', '2', '32'); +INSERT INTO `sent_district` VALUES ('507', '南投县', '2', '32'); +INSERT INTO `sent_district` VALUES ('508', '云林县', '2', '32'); +INSERT INTO `sent_district` VALUES ('509', '嘉义县', '2', '32'); +INSERT INTO `sent_district` VALUES ('510', '台南县', '2', '32'); +INSERT INTO `sent_district` VALUES ('511', '高雄县', '2', '32'); +INSERT INTO `sent_district` VALUES ('512', '屏东县', '2', '32'); +INSERT INTO `sent_district` VALUES ('513', '澎湖县', '2', '32'); +INSERT INTO `sent_district` VALUES ('514', '台东县', '2', '32'); +INSERT INTO `sent_district` VALUES ('515', '花莲县', '2', '32'); +INSERT INTO `sent_district` VALUES ('516', '中西区', '2', '33'); +INSERT INTO `sent_district` VALUES ('517', '东区', '2', '33'); +INSERT INTO `sent_district` VALUES ('518', '九龙城区', '2', '33'); +INSERT INTO `sent_district` VALUES ('519', '观塘区', '2', '33'); +INSERT INTO `sent_district` VALUES ('520', '南区', '2', '33'); +INSERT INTO `sent_district` VALUES ('521', '深水埗区', '2', '33'); +INSERT INTO `sent_district` VALUES ('522', '黄大仙区', '2', '33'); +INSERT INTO `sent_district` VALUES ('523', '湾仔区', '2', '33'); +-- ----------------------------- +-- Table structure for `sent_document` +-- ----------------------------- DROP TABLE IF EXISTS `sent_document`; -CREATE TABLE IF NOT EXISTS `sent_document` ( - `id` int(10) unsigned NOT NULL COMMENT '文档ID', +CREATE TABLE `sent_document` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文档ID', `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户ID', `name` char(40) NOT NULL DEFAULT '' COMMENT '标识', `title` char(80) NOT NULL DEFAULT '' COMMENT '标题', @@ -1074,76 +1031,65 @@ CREATE TABLE IF NOT EXISTS `sent_document` ( `is_top` int(2) NOT NULL DEFAULT '0' COMMENT '是否置顶', `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', - `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '数据状态' + `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '数据状态', + PRIMARY KEY (`id`), + KEY `idx_category_status` (`category_id`,`status`) ) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COMMENT='文档模型基础表'; --- --- 转存表中的数据 `sent_document` --- - -INSERT INTO `sent_document` (`id`, `uid`, `name`, `title`, `category_id`, `description`, `model_id`, `position`, `link_id`, `cover_id`, `display`, `deadline`, `attach`, `view`, `comment`, `extend`, `level`, `create_time`, `update_time`, `status`) VALUES -(5, 1, '', '测试', 2, '', 3, 0, 0, 0, 0, 1463648554, 0, 2, 0, 0, 0, 1463648554, 1463648554, 1), -(4, 1, '', '南昌腾速科技有限公司关于春节放假通知', 3, '南昌腾速科技有限公司关于春节放假通知', 2, 0, 0, 0, 0, 1461809278, 0, 5, 0, 0, 0, 1461809278, 1461809278, 1), -(6, 1, '', '我校辅导员赴天津观摩全国辅导员职业技能大赛第一赛区复赛', 2, '', 2, 0, 0, 0, 0, 1461809225, 0, 3, 0, 0, 0, 1461809225, 1461809225, 1), -(7, 1, '', '我校举办高校教师教学发展主题培训会', 3, '', 2, 0, 0, 0, 0, 1461809234, 0, 9, 0, 0, 0, 1461809234, 1461809234, 1), -(11, 1, '', '测试文档标题', 2, '', 2, 1, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1465207747, 1), -(12, 1, '', '测试文章的添加功能', 2, '测试文章的添加功能', 2, 1, 0, 0, 0, 1465207807, 0, 2, 0, 0, 0, 1465207807, 1465207807, 2); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_document_article` --- +-- ----------------------------- +-- Records of `sent_document` +-- ----------------------------- +INSERT INTO `sent_document` VALUES ('5', '1', '', '测试', '2', '', '3', '0', '0', '0', '0', '1463648554', '0', '2', '0', '0', '0', '0', '1463648554', '1463648554', '1'); +INSERT INTO `sent_document` VALUES ('4', '1', '', '南昌腾速科技有限公司关于春节放假通知', '3', '南昌腾速科技有限公司关于春节放假通知', '2', '0', '0', '0', '0', '1461809278', '0', '5', '0', '0', '0', '0', '1461809278', '1461809278', '1'); +INSERT INTO `sent_document` VALUES ('6', '1', '', '我校辅导员赴天津观摩全国辅导员职业技能大赛第一赛区复赛', '2', '', '2', '0', '0', '0', '0', '1461809225', '0', '3', '0', '0', '0', '0', '1461809225', '1461809225', '1'); +INSERT INTO `sent_document` VALUES ('7', '1', '', '我校举办高校教师教学发展主题培训会', '3', '', '2', '0', '0', '0', '0', '1461809234', '0', '9', '0', '0', '0', '0', '1461809234', '1461809234', '1'); +INSERT INTO `sent_document` VALUES ('11', '1', '', '测试文档标题', '2', '', '2', '1', '0', '0', '0', '0', '0', '2', '0', '0', '0', '0', '0', '1465207747', '1'); +INSERT INTO `sent_document` VALUES ('12', '1', '', '测试文章的添加功能', '2', '测试文章的添加功能', '2', '1', '0', '0', '0', '1465207807', '0', '2', '0', '0', '0', '0', '1465207807', '1465207807', '2'); +-- ----------------------------- +-- Table structure for `sent_document_article` +-- ----------------------------- DROP TABLE IF EXISTS `sent_document_article`; -CREATE TABLE IF NOT EXISTS `sent_document_article` ( - `doc_id` int(11) unsigned NOT NULL COMMENT '主键', +CREATE TABLE `sent_document_article` ( + `doc_id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', `content` text, - `tags` varchar(20) DEFAULT NULL + `tags` varchar(20) DEFAULT NULL, + PRIMARY KEY (`doc_id`) ) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='文章'; --- --- 转存表中的数据 `sent_document_article` --- - -INSERT INTO `sent_document_article` (`doc_id`, `content`, `tags`) VALUES -(2, '

我校辅导员赴天津观摩全国辅导员职业技能大赛第一赛区复赛

', ''), -(4, '

南昌腾速科技有限公司关于春节放假通知

', ''), -(6, '

我校辅导员赴天津观摩全国辅导员职业技能大赛第一赛区复赛

', ''), -(7, '

我校举办高校教师教学发展主题培训会

', ''), -(11, '

测试文档标题

', ''), -(8, '

市场陈列

', ''), -(12, '

测试文章的添加功能

', ''); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_document_photo` --- +-- ----------------------------- +-- Records of `sent_document_article` +-- ----------------------------- +INSERT INTO `sent_document_article` VALUES ('2', '

我校辅导员赴天津观摩全国辅导员职业技能大赛第一赛区复赛

', ''); +INSERT INTO `sent_document_article` VALUES ('4', '

南昌腾速科技有限公司关于春节放假通知

', ''); +INSERT INTO `sent_document_article` VALUES ('6', '

我校辅导员赴天津观摩全国辅导员职业技能大赛第一赛区复赛

', ''); +INSERT INTO `sent_document_article` VALUES ('7', '

我校举办高校教师教学发展主题培训会

', ''); +INSERT INTO `sent_document_article` VALUES ('11', '

测试文档标题

', ''); +INSERT INTO `sent_document_article` VALUES ('8', '

市场陈列

', ''); +INSERT INTO `sent_document_article` VALUES ('12', '

测试文章的添加功能

', ''); +-- ----------------------------- +-- Table structure for `sent_document_photo` +-- ----------------------------- DROP TABLE IF EXISTS `sent_document_photo`; -CREATE TABLE IF NOT EXISTS `sent_document_photo` ( - `doc_id` int(11) unsigned NOT NULL COMMENT '主键', +CREATE TABLE `sent_document_photo` ( + `doc_id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', `photo_list` varchar(50) DEFAULT NULL, - `content` text + `content` text, + PRIMARY KEY (`doc_id`) ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='图片'; --- --- 转存表中的数据 `sent_document_photo` --- - -INSERT INTO `sent_document_photo` (`doc_id`, `photo_list`, `content`) VALUES -(5, '', '

测试

'); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_file` --- +-- ----------------------------- +-- Records of `sent_document_photo` +-- ----------------------------- +INSERT INTO `sent_document_photo` VALUES ('5', '', '

测试

'); +-- ----------------------------- +-- Table structure for `sent_file` +-- ----------------------------- DROP TABLE IF EXISTS `sent_file`; -CREATE TABLE IF NOT EXISTS `sent_file` ( - `id` int(10) unsigned NOT NULL COMMENT '文件ID', +CREATE TABLE `sent_file` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文件ID', `name` varchar(300) NOT NULL DEFAULT '' COMMENT '原始文件名', `savename` varchar(100) NOT NULL DEFAULT '' COMMENT '保存名称', `savepath` varchar(100) NOT NULL DEFAULT '' COMMENT '文件保存路径', @@ -1154,60 +1100,49 @@ CREATE TABLE IF NOT EXISTS `sent_file` ( `sha1` char(40) NOT NULL DEFAULT '' COMMENT '文件 sha1编码', `location` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '文件保存位置', `url` varchar(255) NOT NULL DEFAULT '' COMMENT '远程地址', - `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '上传时间' -) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='文件表'; - --- --- 转存表中的数据 `sent_file` --- - -INSERT INTO `sent_file` (`id`, `name`, `savename`, `savepath`, `ext`, `mime`, `size`, `md5`, `sha1`, `location`, `url`, `create_time`) VALUES -(1, 'sql.sql', '576027ac8b70f.sql', '20160614/', 'sql', '', 101150, 'c8b5613759bf6fca2c39a049f8467675', 'a4050af93ccab5b4dc2423d7295d156c4992e973', 0, '', 0); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_hooks` --- + `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '上传时间', + PRIMARY KEY (`id`), + UNIQUE KEY `uk_md5` (`md5`) +) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='文件表'; +-- ----------------------------- +-- Table structure for `sent_hooks` +-- ----------------------------- DROP TABLE IF EXISTS `sent_hooks`; -CREATE TABLE IF NOT EXISTS `sent_hooks` ( - `id` int(10) unsigned NOT NULL COMMENT '主键', +CREATE TABLE `sent_hooks` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', `name` varchar(40) NOT NULL DEFAULT '' COMMENT '钩子名称', `description` text COMMENT '描述', `type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '类型', `update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', `addons` varchar(255) NOT NULL DEFAULT '' COMMENT '钩子挂载的插件 '',''分割', - `status` tinyint(1) unsigned NOT NULL DEFAULT '1' + `status` tinyint(1) unsigned NOT NULL DEFAULT '1', + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`) ) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=utf8; --- --- 转存表中的数据 `sent_hooks` --- - -INSERT INTO `sent_hooks` (`id`, `name`, `description`, `type`, `update_time`, `addons`, `status`) VALUES -(1, 'pageHeader', '页面header钩子,一般用于加载插件CSS文件和代码', 1, 0, '', 1), -(2, 'pageFooter', '页面footer钩子,一般用于加载插件JS文件和JS代码', 1, 0, '', 1), -(3, 'documentEditForm', '添加编辑表单的 扩展内容钩子', 1, 0, '', 1), -(4, 'documentDetailAfter', '文档末尾显示', 1, 0, '', 1), -(5, 'documentDetailBefore', '页面内容前显示用钩子', 1, 0, '', 1), -(6, 'documentSaveComplete', '保存文档数据后的扩展钩子', 2, 0, '', 1), -(7, 'documentEditFormContent', '添加编辑表单的内容显示钩子', 1, 0, '', 1), -(8, 'adminArticleEdit', '后台内容编辑页编辑器', 1, 1378982734, '', 1), -(13, 'AdminIndex', '首页小格子个性化显示', 1, 1382596073, 'Sitestat,Devteam,Systeminfo', 1), -(14, 'topicComment', '评论提交方式扩展钩子。', 1, 1380163518, '', 1), -(16, 'app_begin', '应用开始', 2, 1384481614, '', 1), -(17, 'J_China_City', '每个系统都需要的一个中国省市区三级联动插件。', 1, 1455877345, '', 1); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_link` --- +-- ----------------------------- +-- Records of `sent_hooks` +-- ----------------------------- +INSERT INTO `sent_hooks` VALUES ('1', 'pageHeader', '页面header钩子,一般用于加载插件CSS文件和代码', '1', '0', '', '1'); +INSERT INTO `sent_hooks` VALUES ('2', 'pageFooter', '页面footer钩子,一般用于加载插件JS文件和JS代码', '1', '0', '', '1'); +INSERT INTO `sent_hooks` VALUES ('3', 'documentEditForm', '添加编辑表单的 扩展内容钩子', '1', '0', '', '1'); +INSERT INTO `sent_hooks` VALUES ('4', 'documentDetailAfter', '文档末尾显示', '1', '0', '', '1'); +INSERT INTO `sent_hooks` VALUES ('5', 'documentDetailBefore', '页面内容前显示用钩子', '1', '0', '', '1'); +INSERT INTO `sent_hooks` VALUES ('6', 'documentSaveComplete', '保存文档数据后的扩展钩子', '2', '0', '', '1'); +INSERT INTO `sent_hooks` VALUES ('7', 'documentEditFormContent', '添加编辑表单的内容显示钩子', '1', '0', '', '1'); +INSERT INTO `sent_hooks` VALUES ('8', 'adminArticleEdit', '后台内容编辑页编辑器', '1', '1378982734', '', '1'); +INSERT INTO `sent_hooks` VALUES ('13', 'AdminIndex', '首页小格子个性化显示', '1', '1382596073', 'Sitestat,Devteam,Systeminfo', '1'); +INSERT INTO `sent_hooks` VALUES ('14', 'topicComment', '评论提交方式扩展钩子。', '1', '1380163518', '', '1'); +INSERT INTO `sent_hooks` VALUES ('16', 'app_begin', '应用开始', '2', '1384481614', '', '1'); +INSERT INTO `sent_hooks` VALUES ('17', 'J_China_City', '每个系统都需要的一个中国省市区三级联动插件。', '1', '1455877345', '', '1'); +-- ----------------------------- +-- Table structure for `sent_link` +-- ----------------------------- DROP TABLE IF EXISTS `sent_link`; -CREATE TABLE IF NOT EXISTS `sent_link` ( - `id` int(5) NOT NULL COMMENT '标识ID', +CREATE TABLE `sent_link` ( + `id` int(5) NOT NULL AUTO_INCREMENT COMMENT '标识ID', `ftype` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0:友情链接 1:合作单位', `title` varchar(30) NOT NULL DEFAULT '' COMMENT '标题', `url` varchar(150) NOT NULL DEFAULT '' COMMENT '链接地址', @@ -1217,25 +1152,21 @@ CREATE TABLE IF NOT EXISTS `sent_link` ( `hits` tinyint(7) NOT NULL DEFAULT '0' COMMENT '点击率', `update_time` int(10) NOT NULL DEFAULT '0' COMMENT '更新时间', `uid` int(7) NOT NULL DEFAULT '0' COMMENT '用户ID ', - `status` tinyint(1) NOT NULL DEFAULT '1' -) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; + `status` tinyint(1) NOT NULL DEFAULT '1', + PRIMARY KEY (`id`) +) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=utf8; --- --- 转存表中的数据 `sent_link` --- - -INSERT INTO `sent_link` (`id`, `ftype`, `title`, `url`, `cover_id`, `descrip`, `sort`, `hits`, `update_time`, `uid`, `status`) VALUES -(1, 1, '腾速科技', 'http://www.tensent.cn', 0, '', 0, 0, 1462496026, 0, 1); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_member` --- +-- ----------------------------- +-- Records of `sent_link` +-- ----------------------------- +INSERT INTO `sent_link` VALUES ('1', '1', '腾速科技', 'http://www.tensent.cn', '0', '', '0', '0', '1462496026', '0', '1'); +-- ----------------------------- +-- Table structure for `sent_member` +-- ----------------------------- DROP TABLE IF EXISTS `sent_member`; -CREATE TABLE IF NOT EXISTS `sent_member` ( - `uid` int(10) unsigned NOT NULL COMMENT '用户ID', +CREATE TABLE `sent_member` ( + `uid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户ID', `username` varchar(32) NOT NULL DEFAULT '' COMMENT '用户名', `password` varchar(64) NOT NULL DEFAULT '' COMMENT '用户密码', `nickname` char(16) NOT NULL DEFAULT '' COMMENT '昵称', @@ -1256,69 +1187,57 @@ CREATE TABLE IF NOT EXISTS `sent_member` ( `reg_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '注册时间', `last_login_ip` bigint(20) NOT NULL DEFAULT '0' COMMENT '最后登录IP', `last_login_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后登录时间', - `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '会员状态' + `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '会员状态', + PRIMARY KEY (`uid`), + KEY `status` (`status`) ) ENGINE=MyISAM AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COMMENT='会员表'; --- --- 转存表中的数据 `sent_member` --- - -INSERT INTO `sent_member` (`uid`, `username`, `password`, `nickname`, `email`, `mobile`, `sex`, `birthday`, `qq`, `score`, `signature`, `pos_province`, `pos_city`, `pos_district`, `pos_community`, `salt`, `login`, `reg_ip`, `reg_time`, `last_login_ip`, `last_login_time`, `status`) VALUES -(1, 'admin', 'e927747ef39033eca386584ef290949c', '系统管理员', 'admin@admin.com', '', 1, '0000-00-00', '707479167', 0, '测试用户签名', 0, 0, 0, 0, 'YsIplN', 131, 0, 1455846185, 2130706433, 1465894850, 1); --- -------------------------------------------------------- - --- --- 表的结构 `sent_member_extend` --- +-- ----------------------------- +-- Records of `sent_member` +-- ----------------------------- +INSERT INTO `sent_member` VALUES ('1', 'admin', 'e927747ef39033eca386584ef290949c', '系统管理员', 'admin@admin.com', '', '1', '0000-00-00', '707479167', '0', '测试用户签名', '0', '0', '0', '0', 'YsIplN', '132', '0', '1455846185', '2130706433', '1467077781', '1'); +-- ----------------------------- +-- Table structure for `sent_member_extend` +-- ----------------------------- DROP TABLE IF EXISTS `sent_member_extend`; -CREATE TABLE IF NOT EXISTS `sent_member_extend` ( +CREATE TABLE `sent_member_extend` ( `uid` int(11) NOT NULL COMMENT '用户UID', - `education` int(10) DEFAULT NULL + `education` int(10) DEFAULT 0, + PRIMARY KEY (`uid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; --- --- 转存表中的数据 `sent_member_extend` --- - -INSERT INTO `sent_member_extend` (`uid`, `education`) VALUES -(15, NULL), -(14, NULL), -(24, NULL); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_member_extend_group` --- +-- ----------------------------- +-- Records of `sent_member_extend` +-- ----------------------------- +INSERT INTO `sent_member_extend` VALUES ('1', '0'); +-- ----------------------------- +-- Table structure for `sent_member_extend_group` +-- ----------------------------- DROP TABLE IF EXISTS `sent_member_extend_group`; -CREATE TABLE IF NOT EXISTS `sent_member_extend_group` ( - `id` int(11) NOT NULL COMMENT '自增主键', +CREATE TABLE `sent_member_extend_group` ( + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增主键', `name` varchar(50) NOT NULL COMMENT '分组数据表', `profile_name` varchar(25) NOT NULL COMMENT '扩展分组名称', `createTime` int(11) NOT NULL COMMENT '创建时间', `sort` int(11) NOT NULL COMMENT '排序', `visiable` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否可见,1可见,0不可见', - `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '字段状态' + `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '字段状态', + PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; --- --- 转存表中的数据 `sent_member_extend_group` --- - -INSERT INTO `sent_member_extend_group` (`id`, `name`, `profile_name`, `createTime`, `sort`, `visiable`, `status`) VALUES -(1, 'member_extend', '个人资料', 1403847366, 0, 1, 1); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_member_extend_setting` --- +-- ----------------------------- +-- Records of `sent_member_extend_group` +-- ----------------------------- +INSERT INTO `sent_member_extend_group` VALUES ('1', 'member_extend', '个人资料', '1403847366', '0', '1', '1'); +-- ----------------------------- +-- Table structure for `sent_member_extend_setting` +-- ----------------------------- DROP TABLE IF EXISTS `sent_member_extend_setting`; -CREATE TABLE IF NOT EXISTS `sent_member_extend_setting` ( - `id` int(10) unsigned NOT NULL, +CREATE TABLE `sent_member_extend_setting` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL DEFAULT '' COMMENT '字段名', `title` varchar(100) NOT NULL DEFAULT '' COMMENT '字段注释', `length` varchar(100) NOT NULL DEFAULT '' COMMENT '字段定义', @@ -1330,25 +1249,21 @@ CREATE TABLE IF NOT EXISTS `sent_member_extend_setting` ( `is_must` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否必填', `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '状态', `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', - `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间' + `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间', + PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='会员字段表'; --- --- 转存表中的数据 `sent_member_extend_setting` --- - -INSERT INTO `sent_member_extend_setting` (`id`, `name`, `title`, `length`, `type`, `value`, `remark`, `is_show`, `extra`, `is_must`, `status`, `update_time`, `create_time`) VALUES -(1, 'education', '学历', '10', 'select', '', '', 1, '1:小学\r\n2:初中\r\n3:高中', 0, 1, 1455930923, 1455930787); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_menu` --- +-- ----------------------------- +-- Records of `sent_member_extend_setting` +-- ----------------------------- +INSERT INTO `sent_member_extend_setting` VALUES ('1', 'education', '学历', '10', 'select', '', '', '1', '1:小学\r\n2:初中\r\n3:高中', '0', '1', '1455930923', '1455930787'); +-- ----------------------------- +-- Table structure for `sent_menu` +-- ----------------------------- DROP TABLE IF EXISTS `sent_menu`; -CREATE TABLE IF NOT EXISTS `sent_menu` ( - `id` int(10) unsigned NOT NULL COMMENT '文档ID', +CREATE TABLE `sent_menu` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文档ID', `title` varchar(50) NOT NULL DEFAULT '' COMMENT '标题', `type` varchar(10) NOT NULL DEFAULT 'admin' COMMENT '菜单类别(admin后台,user会员中心)', `icon` varchar(20) NOT NULL DEFAULT '' COMMENT '分类图标', @@ -1359,49 +1274,47 @@ CREATE TABLE IF NOT EXISTS `sent_menu` ( `tip` varchar(255) NOT NULL DEFAULT '' COMMENT '提示', `group` varchar(50) DEFAULT '' COMMENT '分组', `is_dev` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否仅开发者模式可见', - `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态' + `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态', + PRIMARY KEY (`id`), + KEY `pid` (`pid`), + KEY `status` (`status`) ) ENGINE=MyISAM AUTO_INCREMENT=28 DEFAULT CHARSET=utf8; --- --- 转存表中的数据 `sent_menu` --- - -INSERT INTO `sent_menu` (`id`, `title`, `type`, `icon`, `pid`, `sort`, `url`, `hide`, `tip`, `group`, `is_dev`, `status`) VALUES -(1, '首页', 'admin', 'home', 0, 0, 'admin/index/index', 0, '', '', 0, 0), -(2, '系统', 'admin', 'laptop', 0, 11, 'admin/config/group', 0, '', '', 0, 0), -(3, '内容', 'admin', 'list', 0, 22, 'admin/category/index', 0, '', '', 0, 0), -(4, '会员', 'admin', 'user', 0, 33, 'admin/user/index', 0, '', '', 0, 0), -(5, '运营', 'admin', 'th', 0, 44, 'admin/link/index', 0, '', '', 0, 0), -(6, '扩展', 'admin', 'tags', 0, 55, 'admin/addons/index', 0, '', '', 0, 0), -(21, '友链管理', 'admin', 'link', 5, 0, 'admin/link/index', 0, '', '运营管理', 0, 0), -(7, '更新缓存', 'admin', 'refresh', 1, 0, 'admin/index/clear', 0, '', '后台首页', 0, 0), -(8, '配置管理', 'admin', 'cog', 2, 0, 'admin/config/group', 0, '', '系统配置', 0, 0), -(9, '菜单管理', 'admin', 'book', 2, 0, 'admin/menu/index', 0, '', '系统配置', 0, 0), -(10, '导航管理', 'admin', 'map-marker', 2, 0, 'admin/channel/index', 0, '', '系统配置', 0, 0), -(11, '数据备份', 'admin', 'exchange', 2, 0, 'admin/database/index?type=export', 0, '', '数据库管理', 0, 0), -(12, '数据恢复', 'admin', 'table', 2, 0, 'admin/database/index?type=import', 0, '', '数据库管理', 0, 0), -(13, 'SEO设置', 'admin', 'anchor', 2, 0, 'admin/seo/index', 0, '', '优化设置', 0, 0), -(14, '栏目管理', 'admin', 'list-ol', 3, 0, 'admin/category/index', 0, '', '内容配置', 0, 0), -(15, '模型管理', 'admin', 'th-list', 3, 0, 'admin/model/index', 0, '', '内容配置', 0, 0), -(16, '用户列表', 'admin', 'user', 4, 0, 'admin/user/index', 0, '', '用户管理', 0, 0), -(17, '用户组表', 'admin', 'users', 4, 0, 'admin/group/index', 0, '', '用户管理', 0, 0), -(18, '权限列表', 'admin', 'paw', 4, 0, 'admin/group/access', 0, '', '用户管理', 0, 0), -(19, '行为列表', 'admin', 'file-text', 4, 0, 'admin/action/index', 0, '', '行为管理', 0, 0), -(20, '行为日志', 'admin', 'clipboard', 4, 0, 'admin/action/log', 0, '', '行为管理', 0, 0), -(22, '广告管理', 'admin', 'cc', 5, 0, 'admin/ad/index', 0, '', '运营管理', 0, 0), -(23, '插件列表', 'admin', 'usb', 6, 0, 'admin/addons/index', 0, '', '插件管理', 0, 0), -(24, '钩子列表', 'admin', 'code', 6, 0, 'admin/addons/hooks', 0, '', '插件管理', 0, 0), -(25, '自定义表单', 'admin', '', 5, 0, 'admin/form/index', 0, '', '运营管理', 0, 0); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_model` --- +-- ----------------------------- +-- Records of `sent_menu` +-- ----------------------------- +INSERT INTO `sent_menu` VALUES ('1', '首页', 'admin', 'home', '0', '0', 'admin/index/index', '0', '', '', '0', '0'); +INSERT INTO `sent_menu` VALUES ('2', '系统', 'admin', 'laptop', '0', '11', 'admin/config/group', '0', '', '', '0', '0'); +INSERT INTO `sent_menu` VALUES ('3', '内容', 'admin', 'list', '0', '22', 'admin/category/index', '0', '', '', '0', '0'); +INSERT INTO `sent_menu` VALUES ('4', '会员', 'admin', 'user', '0', '33', 'admin/user/index', '0', '', '', '0', '0'); +INSERT INTO `sent_menu` VALUES ('5', '运营', 'admin', 'th', '0', '44', 'admin/link/index', '0', '', '', '0', '0'); +INSERT INTO `sent_menu` VALUES ('6', '扩展', 'admin', 'tags', '0', '55', 'admin/addons/index', '0', '', '', '0', '0'); +INSERT INTO `sent_menu` VALUES ('21', '友链管理', 'admin', 'link', '5', '0', 'admin/link/index', '0', '', '运营管理', '0', '0'); +INSERT INTO `sent_menu` VALUES ('7', '更新缓存', 'admin', 'refresh', '1', '0', 'admin/index/clear', '0', '', '后台首页', '0', '0'); +INSERT INTO `sent_menu` VALUES ('8', '配置管理', 'admin', 'cog', '2', '0', 'admin/config/group', '0', '', '系统配置', '0', '0'); +INSERT INTO `sent_menu` VALUES ('9', '菜单管理', 'admin', 'book', '2', '0', 'admin/menu/index', '0', '', '系统配置', '0', '0'); +INSERT INTO `sent_menu` VALUES ('10', '导航管理', 'admin', 'map-marker', '2', '0', 'admin/channel/index', '0', '', '系统配置', '0', '0'); +INSERT INTO `sent_menu` VALUES ('11', '数据备份', 'admin', 'exchange', '2', '0', 'admin/database/index?type=export', '0', '', '数据库管理', '0', '0'); +INSERT INTO `sent_menu` VALUES ('12', '数据恢复', 'admin', 'table', '2', '0', 'admin/database/index?type=import', '0', '', '数据库管理', '0', '0'); +INSERT INTO `sent_menu` VALUES ('13', 'SEO设置', 'admin', 'anchor', '2', '0', 'admin/seo/index', '0', '', '优化设置', '0', '0'); +INSERT INTO `sent_menu` VALUES ('14', '栏目管理', 'admin', 'list-ol', '3', '0', 'admin/category/index', '0', '', '内容配置', '0', '0'); +INSERT INTO `sent_menu` VALUES ('15', '模型管理', 'admin', 'th-list', '3', '0', 'admin/model/index', '0', '', '内容配置', '0', '0'); +INSERT INTO `sent_menu` VALUES ('16', '用户列表', 'admin', 'user', '4', '0', 'admin/user/index', '0', '', '用户管理', '0', '0'); +INSERT INTO `sent_menu` VALUES ('17', '用户组表', 'admin', 'users', '4', '0', 'admin/group/index', '0', '', '用户管理', '0', '0'); +INSERT INTO `sent_menu` VALUES ('18', '权限列表', 'admin', 'paw', '4', '0', 'admin/group/access', '0', '', '用户管理', '0', '0'); +INSERT INTO `sent_menu` VALUES ('19', '行为列表', 'admin', 'file-text', '4', '0', 'admin/action/index', '0', '', '行为管理', '0', '0'); +INSERT INTO `sent_menu` VALUES ('20', '行为日志', 'admin', 'clipboard', '4', '0', 'admin/action/log', '0', '', '行为管理', '0', '0'); +INSERT INTO `sent_menu` VALUES ('22', '广告管理', 'admin', 'cc', '5', '0', 'admin/ad/index', '0', '', '运营管理', '0', '0'); +INSERT INTO `sent_menu` VALUES ('23', '插件列表', 'admin', 'usb', '6', '0', 'admin/addons/index', '0', '', '插件管理', '0', '0'); +INSERT INTO `sent_menu` VALUES ('24', '钩子列表', 'admin', 'code', '6', '0', 'admin/addons/hooks', '0', '', '插件管理', '0', '0'); +INSERT INTO `sent_menu` VALUES ('25', '自定义表单', 'admin', '', '5', '0', 'admin/form/index', '0', '', '运营管理', '0', '0'); +-- ----------------------------- +-- Table structure for `sent_model` +-- ----------------------------- DROP TABLE IF EXISTS `sent_model`; -CREATE TABLE IF NOT EXISTS `sent_model` ( - `id` int(10) unsigned NOT NULL COMMENT '模型ID', +CREATE TABLE `sent_model` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '模型ID', `name` char(30) NOT NULL DEFAULT '' COMMENT '模型标识', `title` char(30) NOT NULL DEFAULT '' COMMENT '模型名称', `extend` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '继承的模型', @@ -1424,78 +1337,57 @@ CREATE TABLE IF NOT EXISTS `sent_model` ( `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', `status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '状态', - `engine_type` varchar(25) NOT NULL DEFAULT 'MyISAM' COMMENT '数据库引擎' + `engine_type` varchar(25) NOT NULL DEFAULT 'MyISAM' COMMENT '数据库引擎', + PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COMMENT='文档模型表'; --- --- 转存表中的数据 `sent_model` --- - -INSERT INTO `sent_model` (`id`, `name`, `title`, `extend`, `icon`, `relation`, `is_user_show`, `need_pk`, `field_sort`, `field_group`, `field_list`, `attribute_list`, `attribute_alias`, `list_grid`, `list_row`, `search_key`, `search_list`, `template_list`, `template_add`, `template_edit`, `create_time`, `update_time`, `status`, `engine_type`) VALUES -(1, 'document', '通用模型', 0, '', '', 1, 1, '{"1":["17","16","19","20","14","13","4","3","2","5","12","11","10"]}', '1:基础,2:扩展', '1,7,8,9,10,2,11,12,13,3,4,14,25,15,5,6,23,22,24', '', '', 'id:ID\r\ntitle:标题\r\nuid:发布人|get_username\r\ncreate_time:创建时间|time_format\r\nupdate_time:更新时间|time_format\r\nstatus:状态|get_content_status', 10, '', '', '', '', '', 1450088499, 1454054412, 1, 'MyISAM'), -(2, 'article', '文章', 1, 'file-word-o', '', 0, 1, '{"1":["3","2","4","25","12","5","24","55"],"2":["11","10","13","19","17","16","14","20"]}', '1:基础,2:扩展', '', '', '', 'id:ID\r\ntitle:标题\r\nuid:发布人|get_username\r\ncreate_time:创建时间|time_format\r\nupdate_time:更新时间|time_format\r\nstatus:状态|get_content_status', 10, '', '', '', '', '', 1453859167, 1467019566, 1, 'MyISAM'), -(3, 'photo', '图片', 1, 'file-image-o', '', 0, 1, '{"1":["3","2","4","12","26","5","27","55"],"2":["11","10","19","13","16","17","14","20"]}', '1:基础,2:扩展', '', '', '', 'id:ID\r\ntitle:标题\r\nuid:发布人|get_username\r\ncreate_time:创建时间|time_format\r\nupdate_time:更新时间|time_format\r\nstatus:状态|get_content_status', 10, '', '', '', '', '', 1454052310, 1467019679, 1, 'MyISAM'), -(4, 'page', '单页', 2, 'file-text-o', '', 0, 1, '{"1":["28","30","31","32","33"]}', '1:基础', '', '', '', 'id:ID\r\ntitle:标题\r\nupdate_time:更新时间', 10, '', '', '', '', '', 1456296668, 1467019686, 1, 'MyISAM'); --- -------------------------------------------------------- - --- --- 表的结构 `sent_page` --- +-- ----------------------------- +-- Records of `sent_model` +-- ----------------------------- +INSERT INTO `sent_model` VALUES ('1', 'document', '通用模型', '0', '', '', '1', '1', '{\"1\":[\"17\",\"16\",\"19\",\"20\",\"14\",\"13\",\"4\",\"3\",\"2\",\"5\",\"12\",\"11\",\"10\"]}', '1:基础,2:扩展', '1,7,8,9,10,2,11,12,13,3,4,14,25,15,5,6,23,22,24', '', '', 'id:ID\r\ntitle:标题\r\nuid:发布人|get_username\r\ncreate_time:创建时间|time_format\r\nupdate_time:更新时间|time_format\r\nstatus:状态|get_content_status', '10', '', '', '', '', '', '1450088499', '1454054412', '1', 'MyISAM'); +INSERT INTO `sent_model` VALUES ('2', 'article', '文章', '1', 'file-word-o', '', '0', '1', '{\"1\":[\"3\",\"2\",\"4\",\"25\",\"12\",\"5\",\"24\",\"55\"],\"2\":[\"11\",\"10\",\"13\",\"19\",\"17\",\"16\",\"14\",\"20\"]}', '1:基础,2:扩展', '', '', '', 'id:ID\r\ntitle:标题\r\nuid:发布人|get_username\r\ncreate_time:创建时间|time_format\r\nupdate_time:更新时间|time_format\r\nstatus:状态|get_content_status', '10', '', '', '', '', '', '1453859167', '1467019566', '1', 'MyISAM'); +INSERT INTO `sent_model` VALUES ('3', 'photo', '图片', '1', 'file-image-o', '', '0', '1', '{\"1\":[\"3\",\"2\",\"4\",\"12\",\"26\",\"5\",\"27\",\"55\"],\"2\":[\"11\",\"10\",\"19\",\"13\",\"16\",\"17\",\"14\",\"20\"]}', '1:基础,2:扩展', '', '', '', 'id:ID\r\ntitle:标题\r\nuid:发布人|get_username\r\ncreate_time:创建时间|time_format\r\nupdate_time:更新时间|time_format\r\nstatus:状态|get_content_status', '10', '', '', '', '', '', '1454052310', '1467019679', '1', 'MyISAM'); +INSERT INTO `sent_model` VALUES ('4', 'page', '单页', '2', 'file-text-o', '', '0', '1', '{\"1\":[\"28\",\"30\",\"31\",\"32\",\"33\"]}', '1:基础', '', '', '', 'id:ID\r\ntitle:标题\r\nupdate_time:更新时间', '10', '', '', '', '', '', '1456296668', '1467019686', '1', 'MyISAM'); +-- ----------------------------- +-- Table structure for `sent_page` +-- ----------------------------- DROP TABLE IF EXISTS `sent_page`; -CREATE TABLE IF NOT EXISTS `sent_page` ( - `id` int(11) unsigned NOT NULL COMMENT '主键', +CREATE TABLE `sent_page` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户uid', `title` varchar(200) DEFAULT NULL, `model_id` int(11) NOT NULL, `cover_id` int(11) DEFAULT '0', `content` text, `create_time` int(11) DEFAULT NULL, - `update_time` int(11) DEFAULT NULL -) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='单页'; + `update_time` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='单页'; --- --- 转存表中的数据 `sent_page` --- - -INSERT INTO `sent_page` (`id`, `uid`, `title`, `model_id`, `cover_id`, `content`, `create_time`, `update_time`) VALUES -(1, 0, '本院简介', 4, 15, '

测试数据

', 1463587200, 1465703665), -(2, 0, '院领导', 4, 15, '

测试数据

', 1463587200, 1465703665), -(3, 0, '办公室', 4, 15, '

测试数据

', 1463587200, 1465703665), -(4, 0, '档案室', 4, 15, '

测试数据

', 1463587200, 1465703665), -(5, 0, 'MODIS数据中心', 4, 15, '

MODIS数据中心

', 1463587200, 1465703665), -(6, 0, '3S综合应用中心', 4, 15, '

3S综合应用中心

', 1463587200, 1465703665), -(7, 0, 'GIS二次开发中心', 4, 15, '

GIS二次开发中心

', 1463587200, 1465703665), -(8, 0, '遥感数据综合应用中心', 4, 15, '

遥感数据综合应用中心

', 1463587200, 1465703665), -(9, 0, '蒙古高原研究中心', 4, 15, '

蒙古高原研究中心

', 1463587200, 1465703665), -(10, 0, '资源与环境高校开放实验室', 4, 15, '

资源与环境高校开放实验室

', 1463587200, 1465703665); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_picture` --- +-- ----------------------------- +-- Table structure for `sent_picture` +-- ----------------------------- DROP TABLE IF EXISTS `sent_picture`; -CREATE TABLE IF NOT EXISTS `sent_picture` ( - `id` int(10) unsigned NOT NULL COMMENT '主键id自增', +CREATE TABLE `sent_picture` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id自增', `path` varchar(255) NOT NULL DEFAULT '' COMMENT '路径', `url` varchar(255) NOT NULL DEFAULT '' COMMENT '图片链接', `md5` char(32) NOT NULL DEFAULT '' COMMENT '文件md5', `sha1` char(40) NOT NULL DEFAULT '' COMMENT '文件 sha1编码', `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '状态', - `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间' -) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; + `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间', + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; --- -------------------------------------------------------- - --- --- 表的结构 `sent_seo_rule` --- +-- ----------------------------- +-- Table structure for `sent_seo_rule` +-- ----------------------------- DROP TABLE IF EXISTS `sent_seo_rule`; -CREATE TABLE IF NOT EXISTS `sent_seo_rule` ( - `id` int(11) unsigned NOT NULL COMMENT '唯一标识', +CREATE TABLE `sent_seo_rule` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '唯一标识', `title` text NOT NULL COMMENT '规则标题', `app` varchar(40) DEFAULT NULL, `controller` varchar(40) DEFAULT NULL, @@ -1504,370 +1396,24 @@ CREATE TABLE IF NOT EXISTS `sent_seo_rule` ( `seo_title` text NOT NULL COMMENT 'SEO标题', `seo_keywords` text NOT NULL COMMENT 'SEO关键词', `seo_description` text NOT NULL COMMENT 'SEO描述', - `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序' + `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序', + PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; --- --- 转存表中的数据 `sent_seo_rule` --- - -INSERT INTO `sent_seo_rule` (`id`, `title`, `app`, `controller`, `action`, `status`, `seo_title`, `seo_keywords`, `seo_description`, `sort`) VALUES -(1, '整站标题', '', '', '', 1, 'SentCMS网站管理系统', 'SentCMS网站管理系统', 'SentCMS网站管理系统', 7); - --- -------------------------------------------------------- - --- --- 表的结构 `sent_sync_login` --- +-- ----------------------------- +-- Records of `sent_seo_rule` +-- ----------------------------- +INSERT INTO `sent_seo_rule` VALUES ('1', '整站标题', '', '', '', '1', 'SentCMS网站管理系统', 'SentCMS网站管理系统', 'SentCMS网站管理系统', '7'); +-- ----------------------------- +-- Table structure for `sent_sync_login` +-- ----------------------------- DROP TABLE IF EXISTS `sent_sync_login`; -CREATE TABLE IF NOT EXISTS `sent_sync_login` ( +CREATE TABLE `sent_sync_login` ( `uid` int(11) NOT NULL, `openid` varchar(255) NOT NULL, `type` varchar(255) NOT NULL, `access_token` varchar(255) NOT NULL, `refresh_token` varchar(255) NOT NULL, `status` tinyint(4) NOT NULL -) ENGINE=MyISAM DEFAULT CHARSET=latin1; - --- --- Indexes for dumped tables --- - --- --- Indexes for table `sent_action` --- -ALTER TABLE `sent_action` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `sent_action_log` --- -ALTER TABLE `sent_action_log` - ADD PRIMARY KEY (`id`), - ADD KEY `action_ip_ix` (`action_ip`), - ADD KEY `action_id_ix` (`action_id`), - ADD KEY `user_id_ix` (`user_id`); - --- --- Indexes for table `sent_ad` --- -ALTER TABLE `sent_ad` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `sent_addons` --- -ALTER TABLE `sent_addons` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `sent_ad_place` --- -ALTER TABLE `sent_ad_place` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `sent_attachment` --- -ALTER TABLE `sent_attachment` - ADD PRIMARY KEY (`id`), - ADD KEY `idx_record_status` (`record_id`,`status`); - --- --- Indexes for table `sent_attribute` --- -ALTER TABLE `sent_attribute` - ADD PRIMARY KEY (`id`), - ADD KEY `model_id` (`model_id`); - --- --- Indexes for table `sent_auth_extend` --- -ALTER TABLE `sent_auth_extend` - ADD UNIQUE KEY `group_extend_type` (`group_id`,`extend_id`,`type`), - ADD KEY `uid` (`group_id`), - ADD KEY `group_id` (`extend_id`); - --- --- Indexes for table `sent_auth_group` --- -ALTER TABLE `sent_auth_group` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `sent_auth_group_access` --- -ALTER TABLE `sent_auth_group_access` - ADD UNIQUE KEY `uid_group_id` (`uid`,`group_id`), - ADD KEY `uid` (`uid`), - ADD KEY `group_id` (`group_id`); - --- --- Indexes for table `sent_auth_rule` --- -ALTER TABLE `sent_auth_rule` - ADD PRIMARY KEY (`id`), - ADD KEY `module` (`module`,`status`,`type`); - - --- --- Indexes for table `sent_category` --- -ALTER TABLE `sent_category` - ADD PRIMARY KEY (`id`), - ADD KEY `pid` (`pid`); - --- --- Indexes for table `sent_channel` --- -ALTER TABLE `sent_channel` - ADD PRIMARY KEY (`id`), - ADD KEY `pid` (`pid`); - --- --- Indexes for table `sent_config` --- -ALTER TABLE `sent_config` - ADD PRIMARY KEY (`id`), - ADD KEY `type` (`type`), - ADD KEY `group` (`group`); - --- --- Indexes for table `sent_district` --- -ALTER TABLE `sent_district` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `sent_document` --- -ALTER TABLE `sent_document` - ADD PRIMARY KEY (`id`), - ADD KEY `idx_category_status` (`category_id`,`status`); - --- --- Indexes for table `sent_document_article` --- -ALTER TABLE `sent_document_article` - ADD PRIMARY KEY (`doc_id`); - --- --- Indexes for table `sent_document_photo` --- -ALTER TABLE `sent_document_photo` - ADD PRIMARY KEY (`doc_id`); - --- --- Indexes for table `sent_file` --- -ALTER TABLE `sent_file` - ADD PRIMARY KEY (`id`), - ADD UNIQUE KEY `uk_md5` (`md5`); - --- --- Indexes for table `sent_hooks` --- -ALTER TABLE `sent_hooks` - ADD PRIMARY KEY (`id`), - ADD UNIQUE KEY `name` (`name`); - --- --- Indexes for table `sent_link` --- -ALTER TABLE `sent_link` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `sent_member` --- -ALTER TABLE `sent_member` - ADD PRIMARY KEY (`uid`), - ADD KEY `status` (`status`); - --- --- Indexes for table `sent_member_extend` --- -ALTER TABLE `sent_member_extend` - ADD PRIMARY KEY (`uid`); - --- --- Indexes for table `sent_member_extend_group` --- -ALTER TABLE `sent_member_extend_group` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `sent_member_extend_setting` --- -ALTER TABLE `sent_member_extend_setting` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `sent_menu` --- -ALTER TABLE `sent_menu` - ADD PRIMARY KEY (`id`), - ADD KEY `pid` (`pid`), - ADD KEY `status` (`status`); - --- --- Indexes for table `sent_model` --- -ALTER TABLE `sent_model` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `sent_page` --- -ALTER TABLE `sent_page` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `sent_picture` --- -ALTER TABLE `sent_picture` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `sent_seo_rule` --- -ALTER TABLE `sent_seo_rule` - ADD PRIMARY KEY (`id`); - --- --- AUTO_INCREMENT for dumped tables --- - --- --- AUTO_INCREMENT for table `sent_action` --- -ALTER TABLE `sent_action` - MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',AUTO_INCREMENT=13; --- --- AUTO_INCREMENT for table `sent_action_log` --- -ALTER TABLE `sent_action_log` - MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',AUTO_INCREMENT=104; --- --- AUTO_INCREMENT for table `sent_ad` --- -ALTER TABLE `sent_ad` - MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',AUTO_INCREMENT=6; --- --- AUTO_INCREMENT for table `sent_addons` --- -ALTER TABLE `sent_addons` - MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',AUTO_INCREMENT=11; --- --- AUTO_INCREMENT for table `sent_ad_place` --- -ALTER TABLE `sent_ad_place` - MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',AUTO_INCREMENT=3; --- --- AUTO_INCREMENT for table `sent_attachment` --- -ALTER TABLE `sent_attachment` - MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT; --- --- AUTO_INCREMENT for table `sent_attribute` --- -ALTER TABLE `sent_attribute` - MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=55; --- --- AUTO_INCREMENT for table `sent_auth_group` --- -ALTER TABLE `sent_auth_group` - MODIFY `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户组id,自增主键',AUTO_INCREMENT=5; --- --- AUTO_INCREMENT for table `sent_auth_rule` --- -ALTER TABLE `sent_auth_rule` - MODIFY `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '规则id,自增主键',AUTO_INCREMENT=25; --- --- AUTO_INCREMENT for table `sent_category` --- -ALTER TABLE `sent_category` - MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '分类ID',AUTO_INCREMENT=8; --- --- AUTO_INCREMENT for table `sent_channel` --- -ALTER TABLE `sent_channel` - MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '频道ID',AUTO_INCREMENT=21; --- --- AUTO_INCREMENT for table `sent_config` --- -ALTER TABLE `sent_config` - MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '配置ID',AUTO_INCREMENT=41; --- --- AUTO_INCREMENT for table `sent_district` --- -ALTER TABLE `sent_district` - MODIFY `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=45052; --- --- AUTO_INCREMENT for table `sent_document` --- -ALTER TABLE `sent_document` - MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文档ID',AUTO_INCREMENT=13; --- --- AUTO_INCREMENT for table `sent_document_article` --- -ALTER TABLE `sent_document_article` - MODIFY `doc_id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',AUTO_INCREMENT=13; --- --- AUTO_INCREMENT for table `sent_document_photo` --- -ALTER TABLE `sent_document_photo` - MODIFY `doc_id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',AUTO_INCREMENT=6; --- --- AUTO_INCREMENT for table `sent_file` --- -ALTER TABLE `sent_file` - MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文件ID',AUTO_INCREMENT=2; --- --- AUTO_INCREMENT for table `sent_hooks` --- -ALTER TABLE `sent_hooks` - MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',AUTO_INCREMENT=18; --- --- AUTO_INCREMENT for table `sent_link` --- -ALTER TABLE `sent_link` - MODIFY `id` int(5) NOT NULL AUTO_INCREMENT COMMENT '标识ID',AUTO_INCREMENT=21; --- --- AUTO_INCREMENT for table `sent_member` --- -ALTER TABLE `sent_member` - MODIFY `uid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户ID',AUTO_INCREMENT=25; --- --- AUTO_INCREMENT for table `sent_member_extend_group` --- -ALTER TABLE `sent_member_extend_group` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增主键',AUTO_INCREMENT=2; --- --- AUTO_INCREMENT for table `sent_member_extend_setting` --- -ALTER TABLE `sent_member_extend_setting` - MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2; --- --- AUTO_INCREMENT for table `sent_menu` --- -ALTER TABLE `sent_menu` - MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文档ID',AUTO_INCREMENT=28; --- --- AUTO_INCREMENT for table `sent_model` --- -ALTER TABLE `sent_model` - MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '模型ID',AUTO_INCREMENT=11; -ALTER TABLE `sent_page` - MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',AUTO_INCREMENT=7; --- --- AUTO_INCREMENT for table `sent_picture` --- -ALTER TABLE `sent_picture` - MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id自增',AUTO_INCREMENT=1; --- --- AUTO_INCREMENT for table `sent_seo_rule` --- -ALTER TABLE `sent_seo_rule` - MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '唯一标识',AUTO_INCREMENT=4; \ No newline at end of file +) ENGINE=MyISAM DEFAULT CHARSET=latin1; \ No newline at end of file diff --git a/extend/com/Database.php b/extend/com/Database.php index bef1cf91..2661ab4e 100644 --- a/extend/com/Database.php +++ b/extend/com/Database.php @@ -82,11 +82,11 @@ class Database{ */ public function create(){ $sql = "-- -----------------------------\n"; - $sql .= "-- Think MySQL Data Transfer \n"; + $sql .= "-- SentCMS MySQL Data Transfer \n"; $sql .= "-- \n"; - $sql .= "-- Host : " . config('DB_HOST') . "\n"; - $sql .= "-- Port : " . config('DB_PORT') . "\n"; - $sql .= "-- Database : " . config('DB_NAME') . "\n"; + $sql .= "-- Host : " . config('database.hostname') . "\n"; + $sql .= "-- Port : " . config('database.hostport') . "\n"; + $sql .= "-- Database : " . config('database.database') . "\n"; $sql .= "-- \n"; $sql .= "-- Part : #{$this->file['part']}\n"; $sql .= "-- Date : " . date("Y-m-d H:i:s") . "\n"; @@ -129,7 +129,7 @@ class Database{ $sql .= "-- Table structure for `{$table}`\n"; $sql .= "-- -----------------------------\n"; $sql .= "DROP TABLE IF EXISTS `{$table}`;\n"; - $sql .= trim($result[0]['create table']) . ";\n\n"; + $sql .= trim($result[0]['Create Table']) . ";\n\n"; if(false === $this->write($sql)){ return false; }