8# 发表于:2019-02-15 14:55:31 IP:27.220.*.*
[Err] 1067 - Invalid default value for 'login_time'
[Err] #
# Source for table jc_api_user_login
#
CREATE TABLE `jc_api_user_login` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`session_key` varchar(100) DEFAULT '' COMMENT 'sesssionKey',
`username` varchar(255) NOT NULL DEFAULT '' COMMENT '用户名',
`login_time` timestamp NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '登陆时间',
`login_count` int(11) NOT NULL DEFAULT '0' COMMENT '登陆次数',
`active_time` timestamp NOT NULL COMMENT '最后活跃时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='API用户登录表';
[Err] 1146 - Table 'qzrd.jc_api_user_login' doesn't exist
[Err] #
# Dumping data for table jc_api_user_login
#
INSERT INTO `jc_api_user_login` (`id`,`session_key`,`username`,`login_time`,`login_count`,`active_time`) VALUES (4,'EFF9F6ADE387F76F04638010D93E2AFC','admin','2017-12-26 18:44:45',1,'2017-12-26 18:46:10');
[Err] 1067 - Invalid default value for 'access_date'
[Err] #
# Dumping data for table jc_site_access_count_hour
#
#
# Source for table jc_site_access_pages
#
CREATE TABLE `jc_site_access_pages` (
`access_pages_id` int(11) NOT NULL AUTO_INCREMENT,
`access_page` varchar(255) NOT NULL COMMENT '访问页面',
`session_id` varchar(32) NOT NULL,
`access_date` date NOT NULL DEFAULT '0000-00-00' COMMENT '访问日期',
`access_time` time NOT NULL COMMENT '访问时间',
`visit_second` int(11) NOT NULL DEFAULT '0' COMMENT '停留时长(秒)',
`page_index` int(11) NOT NULL DEFAULT '0' COMMENT '用户访问页面的索引',
`site_id` int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`access_pages_id`),
KEY `fk_jc_access_pages_access` (`session_id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COMMENT='访问详细页面表';
[Msg] Finished - Unsuccessfully