/*
SQLyog Community v13.1.7 (64 bit)
MySQL - 5.7.26 : Database - education_resource
*********************************************************************
*/

/*!40101 SET NAMES utf8 */;

/*!40101 SET SQL_MODE=''*/;

/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
/*Table structure for table `er_admin` */

CREATE TABLE `er_admin` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(20) COLLATE utf8_bin DEFAULT '' COMMENT '用户名',
  `password` varchar(32) COLLATE utf8_bin DEFAULT '' COMMENT '密码',
  `portrait` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '头像',
  `loginnum` int(11) DEFAULT '0' COMMENT '登陆次数',
  `last_login_ip` varchar(255) COLLATE utf8_bin DEFAULT '' COMMENT '最后登录IP',
  `last_login_time` int(11) DEFAULT '0' COMMENT '最后登录时间',
  `real_name` varchar(20) COLLATE utf8_bin DEFAULT '' COMMENT '真实姓名',
  `status` int(1) DEFAULT '0' COMMENT '状态',
  `groupid` int(11) DEFAULT '1' COMMENT '用户角色id',
  `token` varchar(32) COLLATE utf8_bin DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `NewIndex1` (`username`)
) ENGINE=MyISAM AUTO_INCREMENT=22 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

/*Table structure for table `er_auth_group` */

CREATE TABLE `er_auth_group` (
  `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `title` char(100) NOT NULL DEFAULT '',
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `rules` text NOT NULL,
  `create_time` int(11) DEFAULT NULL,
  `update_time` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;

/*Table structure for table `er_auth_group_2` */

CREATE TABLE `er_auth_group_2` (
  `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `title` char(100) NOT NULL DEFAULT '',
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `rules` text NOT NULL,
  `create_time` int(11) DEFAULT NULL,
  `update_time` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;

/*Table structure for table `er_auth_group_access` */

CREATE TABLE `er_auth_group_access` (
  `uid` mediumint(8) unsigned NOT NULL,
  `group_id` mediumint(8) unsigned NOT NULL,
  UNIQUE KEY `uid_group_id` (`uid`,`group_id`),
  KEY `uid` (`uid`),
  KEY `group_id` (`group_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

/*Table structure for table `er_auth_rule` */

CREATE TABLE `er_auth_rule` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `name` char(80) NOT NULL DEFAULT '',
  `title` char(20) NOT NULL DEFAULT '',
  `type` tinyint(1) NOT NULL DEFAULT '1',
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `css` varchar(100) NOT NULL DEFAULT '' COMMENT '样式',
  `condition` char(100) NOT NULL DEFAULT '',
  `pid` int(11) NOT NULL DEFAULT '0' COMMENT '父栏目ID',
  `sort` int(11) NOT NULL DEFAULT '50' COMMENT '排序',
  `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间',
  `update_time` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=126 DEFAULT CHARSET=utf8;

/*Table structure for table `er_category` */

CREATE TABLE `er_category` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `idStr` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sourceName` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` int(11) DEFAULT NULL,
  `sortOrder` int(11) DEFAULT NULL,
  `delFlag` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idstr` (`idStr`)
) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

/*Table structure for table `er_config` */

CREATE TABLE `er_config` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '配置ID',
  `name` varchar(30) NOT NULL DEFAULT '' COMMENT '配置名称',
  `value` text COMMENT '配置值',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_name` (`name`)
) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;

/*Table structure for table `er_counter` */

CREATE TABLE `er_counter` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `client` tinyint(1) DEFAULT NULL,
  `source` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `create_time` int(11) NOT NULL,
  `ip` char(15) COLLATE utf8_unicode_ci NOT NULL,
  `state` tinyint(1) unsigned NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3609 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

/*Table structure for table `er_course` */

CREATE TABLE `er_course` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `idStr` varchar(200) COLLATE utf8_unicode_ci DEFAULT '' COMMENT '课程id',
  `name` varchar(500) COLLATE utf8_unicode_ci DEFAULT '' COMMENT '课程名称',
  `imageUrl` varchar(500) COLLATE utf8_unicode_ci DEFAULT '' COMMENT '课程图片',
  `overviewVideo` varchar(500) COLLATE utf8_unicode_ci DEFAULT '' COMMENT '课程视频',
  `pageView` int(11) DEFAULT '0' COMMENT '浏览数',
  `userId` varchar(200) COLLATE utf8_unicode_ci DEFAULT '',
  `userName` varchar(200) COLLATE utf8_unicode_ci DEFAULT '' COMMENT '主讲人',
  `schoolName` varchar(500) COLLATE utf8_unicode_ci DEFAULT '' COMMENT '学校名称',
  `projectGroupId` varchar(200) COLLATE utf8_unicode_ci DEFAULT '' COMMENT '项目id',
  `projectGroupName` varchar(500) COLLATE utf8_unicode_ci DEFAULT '' COMMENT '项目名称',
  `certName` varchar(200) COLLATE utf8_unicode_ci DEFAULT '',
  `peopleNumber` int(11) DEFAULT '0' COMMENT '人数',
  `spider_detail` tinyint(1) DEFAULT '0' COMMENT '采集详情',
  `majorId` varchar(500) COLLATE utf8_unicode_ci DEFAULT '',
  `majorName` varchar(500) COLLATE utf8_unicode_ci DEFAULT '',
  `courseType` varchar(200) COLLATE utf8_unicode_ci DEFAULT '',
  `schoolId` varchar(200) COLLATE utf8_unicode_ci DEFAULT '',
  `courseMajors` varchar(500) COLLATE utf8_unicode_ci DEFAULT '',
  `projectSourceName` varchar(200) COLLATE utf8_unicode_ci DEFAULT '',
  `educationType` varchar(200) COLLATE utf8_unicode_ci DEFAULT '',
  `add_time` int(11) DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `idStr` (`idStr`)
) ENGINE=MyISAM AUTO_INCREMENT=21487 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

/*Table structure for table `er_course_design` */

CREATE TABLE `er_course_design` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `idStr` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `courseId` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `courseInfoId` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `parentId` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `knowledgePointsId` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `level` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `levelName` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fileType` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fileUrl` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `content` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `allowDownload` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `examId` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sort` int(11) DEFAULT NULL,
  `delFlag` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createBy` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createTime` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `updateBy` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `updateTime` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `startTime` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `endTime` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `week` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `viewCount` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `source` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dutyName` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `resourceId` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `urlShort` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fileGenUrl` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `isTaskPoint` int(11) DEFAULT NULL,
  `dutyId` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `examTypeId` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idStr` (`idStr`)
) ENGINE=MyISAM AUTO_INCREMENT=4906568 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

/*Table structure for table `er_course_info` */

CREATE TABLE `er_course_info` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `idStr` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `courseId` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `credit` int(11) DEFAULT NULL,
  `startTime` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `endTime` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `week` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8_unicode_ci,
  `userId` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `userName` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `avatar` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `state` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `averageStar` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `delFlag` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createTime` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `updateTime` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `remark` text COLLATE utf8_unicode_ci,
  `peopleNumber` int(11) DEFAULT NULL,
  `schoolId` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `schoolName` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `recommendationStatus` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `imageUrl` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `videoUrl` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `overviewVideoUrl` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `introduce` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `recommend` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `classHour` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `copyId` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dataSource` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `openType` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `isWebsite` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idStr` (`idStr`)
) ENGINE=MyISAM AUTO_INCREMENT=107471 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

/*Table structure for table `er_edu_major` */

CREATE TABLE `er_edu_major` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `pcate` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cate` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `code` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `remark` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idStr` (`code`)
) ENGINE=MyISAM AUTO_INCREMENT=7303 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

/*Table structure for table `er_log` */

CREATE TABLE `er_log` (
  `log_id` int(11) NOT NULL AUTO_INCREMENT,
  `admin_id` int(11) DEFAULT NULL COMMENT '用户ID',
  `admin_name` varchar(50) DEFAULT NULL COMMENT '用户姓名',
  `description` varchar(300) DEFAULT NULL COMMENT '描述',
  `ip` char(60) DEFAULT NULL COMMENT 'IP地址',
  `status` tinyint(1) DEFAULT NULL COMMENT '1 成功 2 失败',
  `add_time` int(11) DEFAULT NULL COMMENT '添加时间',
  PRIMARY KEY (`log_id`)
) ENGINE=MyISAM AUTO_INCREMENT=237 DEFAULT CHARSET=utf8;

/*Table structure for table `er_major` */

CREATE TABLE `er_major` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `idStr` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `majorName` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` int(11) DEFAULT NULL,
  `pid` int(11) NOT NULL DEFAULT '0',
  `parentIdStr` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idStr` (`idStr`,`type`)
) ENGINE=MyISAM AUTO_INCREMENT=5755 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

/*Table structure for table `er_product_cate` */

CREATE TABLE `er_product_cate` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键自增',
  `name` varchar(255) DEFAULT NULL COMMENT '分类名称',
  `parent_id` int(11) DEFAULT NULL COMMENT '父级id',
  `orderby` int(11) DEFAULT NULL COMMENT '排序',
  `photo` varchar(255) DEFAULT NULL COMMENT '图片地址',
  `create_time` int(11) unsigned DEFAULT NULL COMMENT '添加时间',
  `update_time` int(11) unsigned DEFAULT NULL COMMENT '更新时间',
  `status` tinyint(4) DEFAULT '1' COMMENT '1:开启 0：关闭',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=92 DEFAULT CHARSET=utf8;

/*Table structure for table `er_project` */

CREATE TABLE `er_project` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `idStr` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `groupName` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '项目分组',
  `source` int(11) NOT NULL DEFAULT '0' COMMENT '项目来源',
  `sourceName` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '项目来源名称',
  `sourceId` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '项目来源标志',
  `presidingUnitName` varchar(500) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '项目学校 , 隔开',
  `presidingUnit` varchar(500) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '项目标志 , 隔开',
  `logo` varchar(500) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '项目logo',
  `buildMethod` int(11) NOT NULL DEFAULT '1',
  `template` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `province` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `courseCount` int(11) NOT NULL DEFAULT '0' COMMENT '课程数',
  `smallCount` int(11) NOT NULL DEFAULT '0' COMMENT '微课数',
  `studyCount` int(11) NOT NULL DEFAULT '0' COMMENT '学员数',
  `questionCount` int(11) NOT NULL DEFAULT '0' COMMENT '提问数',
  `materialCount` int(11) NOT NULL DEFAULT '0' COMMENT '素材数',
  `major` int(11) NOT NULL DEFAULT '0' COMMENT '专业id',
  `majorId` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '专业标志',
  `majorName` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '专业名称',
  `spider_detail` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否采集详情',
  `spider_course` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否补充内容',
  `proProfile` text COLLATE utf8_unicode_ci COMMENT '简介',
  `score_avg` decimal(10,2) DEFAULT '0.00',
  `score_num` int(11) DEFAULT '0',
  `add_time` int(11) DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `idStr` (`idStr`),
  KEY `groupName` (`groupName`),
  KEY `source` (`source`)
) ENGINE=MyISAM AUTO_INCREMENT=1069 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

/*Table structure for table `er_project_smartedu` */

CREATE TABLE `er_project_smartedu` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `origin` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `link` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `industry` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sort` int(11) DEFAULT NULL,
  `major_level` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `check_status` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `emcee_companyname` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `major` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `province` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `first_major` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `second_major` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `idStr` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `industry_detail` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `preview_pic` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `score_1` int(11) DEFAULT NULL,
  `score_2` int(11) DEFAULT NULL,
  `score_3` int(11) DEFAULT NULL,
  `score_4` int(11) DEFAULT NULL,
  `score_5` int(11) DEFAULT NULL,
  `score_avg` decimal(10,2) DEFAULT NULL,
  `score_num` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idStr` (`idStr`)
) ENGINE=MyISAM AUTO_INCREMENT=1484 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

/*Table structure for table `er_project_unit` */

CREATE TABLE `er_project_unit` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `projectId` int(11) NOT NULL DEFAULT '0' COMMENT '项目id',
  `unitId` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '单位id',
  `type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '类型 0 主持院校 1 参建单位',
  `sort` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=11573 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

/*Table structure for table `er_region` */

CREATE TABLE `er_region` (
  `id` int(10) NOT NULL DEFAULT '0' COMMENT '地区编号',
  `parent_id` int(10) NOT NULL DEFAULT '0' COMMENT '父级地区编码',
  `level` tinyint(1) NOT NULL DEFAULT '0' COMMENT '等级 0-国家；1-省份；2-地级市；3-县区',
  `name` varchar(64) CHARACTER SET utf8mb4 NOT NULL COMMENT '名称',
  `short` varchar(64) CHARACTER SET utf8mb4 NOT NULL COMMENT '简称',
  `city_code` varchar(10) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '地区编码',
  `zip_code` varchar(10) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '邮政编码',
  `gcj02_lng` varchar(24) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '纬度',
  `gcj02_lat` varchar(24) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '经度',
  `db09_lng` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '纬度',
  `db09_lat` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '经度',
  `remark1` varchar(64) CHARACTER SET utf8mb4 DEFAULT '',
  `remark2` varchar(64) CHARACTER SET utf8mb4 DEFAULT '',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='地区表';

/*Table structure for table `er_school` */

CREATE TABLE `er_school` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `sort` int(11) DEFAULT NULL,
  `name` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `code` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `department` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `provice` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `level` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `remark` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `city` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `code` (`code`)
) ENGINE=MyISAM AUTO_INCREMENT=8731 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

/*Table structure for table `er_task` */

CREATE TABLE `er_task` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `file` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` tinyint(1) DEFAULT '1',
  `add_time` int(11) DEFAULT '0',
  `last_time` int(11) DEFAULT '0',
  `period` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `update_time` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

/*Table structure for table `er_task_log` */

CREATE TABLE `er_task_log` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `task_id` int(11) DEFAULT '0',
  `start_at` int(11) DEFAULT '0',
  `ent_at` int(11) DEFAULT '0',
  `status` tinyint(1) DEFAULT '0',
  `remark` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

/*Table structure for table `er_teacher` */

CREATE TABLE `er_teacher` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `idStr` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `courseId` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `courseInfoId` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `teacherId` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `teacherNo` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `content` text COLLATE utf8_unicode_ci,
  `teacherTittle` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `telephone` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `teacherName` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `teacherAvatar` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createTime` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `classId` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` int(11) DEFAULT NULL,
  `duty` int(11) DEFAULT NULL,
  `schoolName` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sort` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idStr` (`idStr`)
) ENGINE=MyISAM AUTO_INCREMENT=213349 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

/*Table structure for table `er_teching` */

CREATE TABLE `er_teching` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `idStr` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `typeId` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `typeName` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `title` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `imageUrl` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `classId` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `className` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `member` int(11) DEFAULT NULL,
  `createTime` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `level` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `shoolName` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `schoolNames` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `add_time` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `shoolName` (`shoolName`),
  KEY `idStr` (`idStr`),
  KEY `title` (`title`)
) ENGINE=MyISAM AUTO_INCREMENT=753 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

/*Table structure for table `er_unit` */

CREATE TABLE `er_unit` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idStr` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '单位id',
  `UnitName` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '单位名称',
  PRIMARY KEY (`id`),
  UNIQUE KEY `idStr` (`idStr`),
  KEY `UnitName` (`UnitName`)
) ENGINE=MyISAM AUTO_INCREMENT=4284 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

/*Table structure for table `er_user_action_log` */

CREATE TABLE `er_user_action_log` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
  `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '行为类型 1 登陆 2 退出 3 浏览页面 4 看视频 5 做习题 6 修改资料',
  `content_id` varchar(50) NOT NULL COMMENT '来源数据',
  `url` varchar(200) NOT NULL COMMENT 'url',
  `create_time` int(11) DEFAULT NULL,
  `update_time` int(11) DEFAULT NULL,
  `content` text COMMENT '内容 如 用户答题的内容',
  `ip` varchar(30) NOT NULL DEFAULT '' COMMENT '操作ip',
  PRIMARY KEY (`id`),
  KEY `uid` (`uid`,`type`,`content_id`)
) ENGINE=MyISAM AUTO_INCREMENT=5966 DEFAULT CHARSET=utf8;

/*Table structure for table `er_web_config` */

CREATE TABLE `er_web_config` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '配置ID',
  `name` varchar(30) NOT NULL DEFAULT '' COMMENT '配置名称',
  `value` text COMMENT '配置值',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_name` (`name`)
) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
