/*
SQLyog 企業版 - MySQL GUI v8.14
MySQL - 5.6.28 : Database - neirongxitong
*********************************************************************
*/
/*!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 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`neirongxitong` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `neirongxitong`;
/*Table structure for table `d_cont` */
DROP TABLE IF EXISTS `d_cont`;
CREATE TABLE `d_cont` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '編號',
`user_id` int(6) NOT NULL COMMENT '使用者編號',
`modify_time` datetime NOT NULL COMMENT '修改時間',
`logout` tinyint(1) DEFAULT '0' COMMENT '登出',
`title` varchar(250) NOT NULL COMMENT '標題',
`picture` varchar(250) NOT NULL COMMENT '圖片',
`cont` text NOT NULL COMMENT '內容',
`score_id` int(6) NOT NULL COMMENT '評分編號',
`cont_depa_id` int(6) NOT NULL COMMENT '文章科室編號',
`cont_disease_id` int(6) NOT NULL COMMENT '文章病種編號',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=627 DEFAULT CHARSET=utf8 COMMENT='文章表';
/*Table structure for table `d_cont_depa` */
DROP TABLE IF EXISTS `d_cont_depa`;
CREATE TABLE `d_cont_depa` (
`id` int(6) NOT NULL AUTO_INCREMENT COMMENT '編號',
`depa_name` varchar(100) NOT NULL COMMENT '名稱',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COMMENT='織夢文章科室表';
/*Table structure for table `d_cont_disease` */
DROP TABLE IF EXISTS `d_cont_disease`;
CREATE TABLE `d_cont_disease` (
`id` int(6) NOT NULL AUTO_INCREMENT COMMENT '編號',
`disease_name` varchar(100) NOT NULL COMMENT '名稱',
`cont_depa_id` int(6) NOT NULL COMMENT '父編號',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=78 DEFAULT CHARSET=utf8 COMMENT='織夢文章病種表';
/*Table structure for table `d_cont_put` */
DROP TABLE IF EXISTS `d_cont_put`;
CREATE TABLE `d_cont_put` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '編號',
`website_id` int(6) NOT NULL COMMENT '站點編號',
`domain` varchar(100) NOT NULL COMMENT '域名',
`dede_type_id` bigint(20) NOT NULL COMMENT '文章科室編號',
`session_name` varchar(100) NOT NULL COMMENT 'Session使用者',
`now_time` datetime NOT NULL COMMENT '記錄時間',
`title` varchar(250) NOT NULL COMMENT '標題',
`picture` varchar(250) NOT NULL COMMENT '圖片',
`cont` text NOT NULL COMMENT '內容',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=215 DEFAULT CHARSET=utf8 COMMENT='資料庫記錄表';
/*Table structure for table `d_cont_record` */
DROP TABLE IF EXISTS `d_cont_record`;
CREATE TABLE `d_cont_record` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '編號',
`cont_id` bigint(20) NOT NULL COMMENT '文章編號',
`user_id` int(6) NOT NULL COMMENT '使用者編號',
`session_name` varchar(100) NOT NULL COMMENT 'Session使用者',
`now_time` datetime NOT NULL COMMENT '記錄時間',
`title` varchar(250) NOT NULL COMMENT '標題',
`picture` varchar(250) NOT NULL COMMENT '圖片',
`cont` text NOT NULL COMMENT '內容',
`score_id` int(6) NOT NULL COMMENT '評分編號',
`cont_depa_id` int(6) NOT NULL COMMENT '文章科室編號',
`cont_disease_id` int(6) NOT NULL COMMENT '文章病種編號',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=547 DEFAULT CHARSET=utf8 COMMENT='文章記錄表';
/*Table structure for table `d_score` */
DROP TABLE IF EXISTS `d_score`;
CREATE TABLE `d_score` (
`id` int(6) NOT NULL AUTO_INCREMENT COMMENT '編號',
`score_name` varchar(100) NOT NULL COMMENT '名稱',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='織夢評分表';
/*Table structure for table `d_zt` */
DROP TABLE IF EXISTS `d_zt`;
CREATE TABLE `d_zt` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '編號',
`user_id` int(6) NOT NULL COMMENT '使用者編號',
`modify_time` datetime NOT NULL COMMENT '修改時間',
`logout` tinyint(1) DEFAULT '0' COMMENT '登出',
`title` varchar(250) NOT NULL COMMENT '標題',
`route` varchar(250) NOT NULL COMMENT '路徑',
`score_id` int(6) NOT NULL COMMENT '評分編號',
`zt_type_id` int(6) NOT NULL COMMENT '專題型別編號',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COMMENT='專題表';
/*Table structure for table `d_zt_record` */
DROP TABLE IF EXISTS `d_zt_record`;
CREATE TABLE `d_zt_record` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '編號',
`zt_id` bigint(20) NOT NULL COMMENT '專題編號',
`user_id` int(6) NOT NULL COMMENT '使用者編號',
`session_name` varchar(100) NOT NULL COMMENT 'Session使用者',
`now_time` datetime NOT NULL COMMENT '記錄時間',
`title` varchar(250) NOT NULL COMMENT '標題',
`route` varchar(250) NOT NULL COMMENT '路徑',
`score_id` int(6) NOT NULL COMMENT '評分編號',
`zt_type_id` int(6) NOT NULL COMMENT '專題型別編號',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COMMENT='資料庫記錄表';
/*Table structure for table `d_zt_type` */
DROP TABLE IF EXISTS `d_zt_type`;
CREATE TABLE `d_zt_type` (
`id` int(6) NOT NULL AUTO_INCREMENT COMMENT '編號',
`zt_name` varchar(100) NOT NULL COMMENT '名稱',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='專題種類表';
/*Table structure for table `r_register` */
DROP TABLE IF EXISTS `r_register`;
CREATE TABLE `r_register` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '編號',
`patient` varchar(50) NOT NULL COMMENT '患者姓名',
`contact` varchar(50) NOT NULL COMMENT '聯絡方式',
`vis_time` datetime NOT NULL COMMENT '就診時間',
`bewrite` text NOT NULL COMMENT '病情描述',
`ps` text NOT NULL COMMENT '備註',
`state_id` int(6) NOT NULL COMMENT '狀態編號',
`logout` tinyint(1) DEFAULT '0' COMMENT '登出',
`user_id` int(6) NOT NULL COMMENT '使用者編號',
`now_time` datetime NOT NULL COMMENT '當前時間',
`furl` varchar(250) NOT NULL COMMENT '來源URL',
`fip` varchar(30) NOT NULL COMMENT '獲取IP',
`fcity` varchar(100) NOT NULL COMMENT '獲取城市',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='掛號表';
/*Table structure for table `r_register_record` */
DROP TABLE IF EXISTS `r_register_record`;
CREATE TABLE `r_register_record` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '編號',
`register_id` bigint(20) NOT NULL COMMENT '掛號編號',
`patient` varchar(50) NOT NULL COMMENT '患者姓名',
`contact` varchar(50) NOT NULL COMMENT '聯絡方式',
`vis_time` datetime NOT NULL COMMENT '就診時間',
`bewrite` text NOT NULL COMMENT '病情描述',
`ps` text NOT NULL COMMENT '備註',
`state_id` int(6) NOT NULL COMMENT '狀態編號',
`user_id` int(6) NOT NULL COMMENT '使用者編號',
`now_time` datetime NOT NULL COMMENT '當前時間',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='掛號記錄表';
/*Table structure for table `r_register_state` */
DROP TABLE IF EXISTS `r_register_state`;
CREATE TABLE `r_register_state` (
`id` int(6) NOT NULL AUTO_INCREMENT COMMENT '編號',
`state_name` varchar(100) NOT NULL COMMENT '名稱',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='掛號狀態表';
/*Table structure for table `u_depa` */
DROP TABLE IF EXISTS `u_depa`;
CREATE TABLE `u_depa` (
`id` int(2) NOT NULL AUTO_INCREMENT COMMENT '編號',
`depa_name` varchar(50) NOT NULL COMMENT '名稱',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='使用者部門表';
/*Table structure for table `u_record` */
DROP TABLE IF EXISTS `u_record`;
CREATE TABLE `u_record` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '編號',
`user_id` int(6) NOT NULL COMMENT '操作者',
`now_time` datetime NOT NULL COMMENT '操作時間',
`record_cont` varchar(250) NOT NULL COMMENT '操作記錄',
`record_ip` varchar(50) NOT NULL COMMENT '客戶端的IP',
`record_city` varchar(100) NOT NULL COMMENT '客戶端的城市',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=410 DEFAULT CHARSET=utf8 COMMENT='使用者操作記錄表';
/*Table structure for table `u_role` */
DROP TABLE IF EXISTS `u_role`;
CREATE TABLE `u_role` (
`id` int(2) NOT NULL AUTO_INCREMENT COMMENT '編號',
`role_name` varchar(50) NOT NULL COMMENT '名稱',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='使用者超級許可權表';
/*Table structure for table `u_user` */
DROP TABLE IF EXISTS `u_user`;
CREATE TABLE `u_user` (
`id` int(6) NOT NULL AUTO_INCREMENT COMMENT '編號',
`zh_name` varchar(20) NOT NULL COMMENT '中文姓名',
`en_name` varchar(20) NOT NULL COMMENT '英文名',
`pwd` varchar(250) NOT NULL COMMENT '密碼',
`now_time` datetime NOT NULL COMMENT '操作時間',
`logout` tinyint(1) DEFAULT '0' COMMENT '登出',
`depa_id` int(2) NOT NULL COMMENT '部門編號',
`role_id` int(2) NOT NULL COMMENT '超級許可權編號',
`session_id` varchar(100) NOT NULL COMMENT 'SessionID',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COMMENT='使用者表';
/*Table structure for table `w_website` */
DROP TABLE IF EXISTS `w_website`;
CREATE TABLE `w_website` (
`id` int(6) NOT NULL AUTO_INCREMENT COMMENT '編號',
`user_id` int(6) NOT NULL COMMENT '使用者編號',
`logout` tinyint(1) DEFAULT '0' COMMENT '登出',
`domain` varchar(100) NOT NULL COMMENT '域名',
`now_time` datetime NOT NULL COMMENT '操作時間',
`admin_domain` varchar(100) NOT NULL COMMENT '後臺域名',
`admin_user` varchar(100) NOT NULL COMMENT '賬號',
`admin_pwd` varchar(250) NOT NULL COMMENT '密碼',
`dbhost` varchar(100) NOT NULL COMMENT '資料庫IP',
`dbname` varchar(100) NOT NULL COMMENT '資料庫使用者',
`dbuser` varchar(100) NOT NULL COMMENT '資料庫賬號',
`dbpwd` varchar(250) NOT NULL COMMENT '資料庫密碼',
`ps` text NOT NULL COMMENT '備註',
`picture` varchar(100) NOT NULL COMMENT '圖片路徑',
`website_type_id` int(6) NOT NULL COMMENT '科室類別編號',
`website_hos_id` int(6) NOT NULL COMMENT '醫院名稱編號',
`website_sem_id` int(6) NOT NULL COMMENT '推廣方式編號',
`website_mpc_id` int(6) NOT NULL COMMENT '手機/PC編號',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=64 DEFAULT CHARSET=utf8 COMMENT='站點表';
/*Table structure for table `w_website_hos` */
DROP TABLE IF EXISTS `w_website_hos`;
CREATE TABLE `w_website_hos` (
`id` int(6) NOT NULL AUTO_INCREMENT COMMENT '編號',
`hos_name` varchar(100) NOT NULL COMMENT '名稱',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='站點醫院名稱';
/*Table structure for table `w_website_mpc` */
DROP TABLE IF EXISTS `w_website_mpc`;
CREATE TABLE `w_website_mpc` (
`id` int(6) NOT NULL AUTO_INCREMENT COMMENT '編號',
`mpc_name` varchar(100) NOT NULL COMMENT '名稱',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='站點手機/PC';
/*Table structure for table `w_website_record` */
DROP TABLE IF EXISTS `w_website_record`;
CREATE TABLE `w_website_record` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '編號',
`website_id` int(6) NOT NULL COMMENT '站點編號',
`session_name` varchar(100) NOT NULL COMMENT 'Session使用者',
`user_id` int(6) NOT NULL COMMENT '使用者編號',
`logout` tinyint(1) DEFAULT '0' COMMENT '登出',
`domain` varchar(100) NOT NULL COMMENT '域名',
`now_time` datetime NOT NULL COMMENT '操作時間',
`admin_domain` varchar(100) NOT NULL COMMENT '後臺域名',
`admin_user` varchar(100) NOT NULL COMMENT '賬號',
`admin_pwd` varchar(250) NOT NULL COMMENT '密碼',
`dbhost` varchar(100) NOT NULL COMMENT '資料庫IP',
`dbname` varchar(100) NOT NULL COMMENT '資料庫使用者',
`dbuser` varchar(100) NOT NULL COMMENT '資料庫賬號',
`dbpwd` varchar(250) NOT NULL COMMENT '資料庫密碼',
`ps` text NOT NULL COMMENT '備註',
`picture` varchar(100) NOT NULL COMMENT '圖片路徑',
`website_type_id` int(6) NOT NULL COMMENT '科室類別編號',
`website_hos_id` int(6) NOT NULL COMMENT '醫院名稱編號',
`website_sem_id` int(6) NOT NULL COMMENT '推廣方式編號',
`website_mpc_id` int(6) NOT NULL COMMENT '手機/PC編號',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=145 DEFAULT CHARSET=utf8 COMMENT='站點記錄表';
/*Table structure for table `w_website_sem` */
DROP TABLE IF EXISTS `w_website_sem`;
CREATE TABLE `w_website_sem` (
`id` int(6) NOT NULL AUTO_INCREMENT COMMENT '編號',
`sem_name` varchar(100) NOT NULL COMMENT '名稱',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='站點推廣方式';
/*Table structure for table `w_website_type` */
DROP TABLE IF EXISTS `w_website_type`;
CREATE TABLE `w_website_type` (
`id` int(6) NOT NULL AUTO_INCREMENT COMMENT '編號',
`type_name` varchar(100) NOT NULL COMMENT '名稱',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='站點科室類別';
/*!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 */;