From ce811fa90424e330a13dd862698b4ed379f767a5 Mon Sep 17 00:00:00 2001 From: Karson Date: Fri, 27 May 2022 11:43:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=BB=98=E8=AE=A4=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/command/Install/fastadmin.sql | 69 ++++++++++--------- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/application/admin/command/Install/fastadmin.sql b/application/admin/command/Install/fastadmin.sql index 1b816535..8ef7d35b 100755 --- a/application/admin/command/Install/fastadmin.sql +++ b/application/admin/command/Install/fastadmin.sql @@ -17,11 +17,12 @@ CREATE TABLE `fa_admin` ( `salt` varchar(30) DEFAULT '' COMMENT '密码盐', `avatar` varchar(255) DEFAULT '' COMMENT '头像', `email` varchar(100) DEFAULT '' COMMENT '电子邮箱', + `mobile` varchar(11) DEFAULT '' COMMENT '手机号码', `loginfailure` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '失败次数', - `logintime` int(10) DEFAULT NULL COMMENT '登录时间', + `logintime` bigint(16) DEFAULT NULL COMMENT '登录时间', `loginip` varchar(50) DEFAULT NULL COMMENT '登录IP', - `createtime` int(10) DEFAULT NULL COMMENT '创建时间', - `updatetime` int(10) DEFAULT NULL COMMENT '更新时间', + `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间', + `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间', `token` varchar(59) DEFAULT '' COMMENT 'Session标识', `status` varchar(30) NOT NULL DEFAULT 'normal' COMMENT '状态', PRIMARY KEY (`id`), @@ -48,7 +49,7 @@ CREATE TABLE `fa_admin_log` ( `content` longtext NOT NULL COMMENT '内容', `ip` varchar(50) DEFAULT '' COMMENT 'IP', `useragent` varchar(255) DEFAULT '' COMMENT 'User-Agent', - `createtime` int(10) DEFAULT NULL COMMENT '操作时间', + `createtime` bigint(16) DEFAULT NULL COMMENT '操作时间', PRIMARY KEY (`id`), KEY `name` (`username`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT='管理员日志表'; @@ -92,9 +93,9 @@ CREATE TABLE `fa_attachment` ( `filesize` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '文件大小', `mimetype` varchar(100) DEFAULT '' COMMENT 'mime类型', `extparam` varchar(255) DEFAULT '' COMMENT '透传数据', - `createtime` int(10) DEFAULT NULL COMMENT '创建日期', - `updatetime` int(10) DEFAULT NULL COMMENT '更新时间', - `uploadtime` int(10) DEFAULT NULL COMMENT '上传时间', + `createtime` bigint(16) DEFAULT NULL COMMENT '创建日期', + `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间', + `uploadtime` bigint(16) DEFAULT NULL COMMENT '上传时间', `storage` varchar(100) NOT NULL DEFAULT 'local' COMMENT '存储位置', `sha1` varchar(40) DEFAULT '' COMMENT '文件 sha1编码', PRIMARY KEY (`id`) @@ -116,8 +117,8 @@ CREATE TABLE `fa_auth_group` ( `pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '父组别', `name` varchar(100) DEFAULT '' COMMENT '组名', `rules` text NOT NULL COMMENT '规则ID', - `createtime` int(10) DEFAULT NULL COMMENT '创建时间', - `updatetime` int(10) DEFAULT NULL COMMENT '更新时间', + `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间', + `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间', `status` varchar(30) DEFAULT '' COMMENT '状态', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT='分组表'; @@ -171,8 +172,8 @@ CREATE TABLE `fa_auth_rule` ( `extend` varchar(255) DEFAULT '' COMMENT '扩展属性', `py` varchar(30) DEFAULT '' COMMENT '拼音首字母', `pinyin` varchar(100) DEFAULT '' COMMENT '拼音', - `createtime` int(10) DEFAULT NULL COMMENT '创建时间', - `updatetime` int(10) DEFAULT NULL COMMENT '更新时间', + `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间', + `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间', `weigh` int(10) NOT NULL DEFAULT '0' COMMENT '权重', `status` varchar(30) DEFAULT '' COMMENT '状态', PRIMARY KEY (`id`), @@ -284,8 +285,8 @@ CREATE TABLE `fa_category` ( `keywords` varchar(255) DEFAULT '' COMMENT '关键字', `description` varchar(255) DEFAULT '' COMMENT '描述', `diyname` varchar(30) DEFAULT '' COMMENT '自定义名称', - `createtime` int(10) DEFAULT NULL COMMENT '创建时间', - `updatetime` int(10) DEFAULT NULL COMMENT '更新时间', + `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间', + `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间', `weigh` int(10) NOT NULL DEFAULT '0' COMMENT '权重', `status` varchar(30) DEFAULT '' COMMENT '状态', PRIMARY KEY (`id`), @@ -368,7 +369,7 @@ CREATE TABLE `fa_ems` ( `code` varchar(10) DEFAULT '' COMMENT '验证码', `times` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '验证次数', `ip` varchar(30) DEFAULT '' COMMENT 'IP', - `createtime` int(10) DEFAULT NULL COMMENT '创建时间', + `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT='邮箱验证码表'; @@ -383,7 +384,7 @@ CREATE TABLE `fa_sms` ( `code` varchar(10) DEFAULT '' COMMENT '验证码', `times` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '验证次数', `ip` varchar(30) DEFAULT '' COMMENT 'IP', - `createtime` int(10) unsigned DEFAULT '0' COMMENT '创建时间', + `createtime` bigint(16) unsigned DEFAULT '0' COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT='短信验证码表'; @@ -419,10 +420,10 @@ CREATE TABLE `fa_test` ( `activitytime` datetime DEFAULT NULL COMMENT '活动时间(datetime)', `year` year(4) DEFAULT NULL COMMENT '年', `times` time DEFAULT NULL COMMENT '时间', - `refreshtime` int(10) DEFAULT NULL COMMENT '刷新时间(int)', - `createtime` int(10) DEFAULT NULL COMMENT '创建时间', - `updatetime` int(10) DEFAULT NULL COMMENT '更新时间', - `deletetime` int(10) DEFAULT NULL COMMENT '删除时间', + `refreshtime` bigint(16) DEFAULT NULL COMMENT '刷新时间(int)', + `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间', + `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间', + `deletetime` bigint(16) DEFAULT NULL COMMENT '删除时间', `weigh` int(10) DEFAULT '0' COMMENT '权重', `switch` tinyint(1) DEFAULT '0' COMMENT '开关', `status` enum('normal','hidden') DEFAULT 'normal' COMMENT '状态', @@ -459,14 +460,14 @@ CREATE TABLE `fa_user` ( `score` int(10) NOT NULL DEFAULT '0' COMMENT '积分', `successions` int(10) unsigned NOT NULL DEFAULT '1' COMMENT '连续登录天数', `maxsuccessions` int(10) unsigned NOT NULL DEFAULT '1' COMMENT '最大连续登录天数', - `prevtime` int(10) DEFAULT NULL COMMENT '上次登录时间', - `logintime` int(10) DEFAULT NULL COMMENT '登录时间', + `prevtime` bigint(16) DEFAULT NULL COMMENT '上次登录时间', + `logintime` bigint(16) DEFAULT NULL COMMENT '登录时间', `loginip` varchar(50) DEFAULT '' COMMENT '登录IP', `loginfailure` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '失败次数', `joinip` varchar(50) DEFAULT '' COMMENT '加入IP', - `jointime` int(10) DEFAULT NULL COMMENT '加入时间', - `createtime` int(10) DEFAULT NULL COMMENT '创建时间', - `updatetime` int(10) DEFAULT NULL COMMENT '更新时间', + `jointime` bigint(16) DEFAULT NULL COMMENT '加入时间', + `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间', + `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间', `token` varchar(50) DEFAULT '' COMMENT 'Token', `status` varchar(30) DEFAULT '' COMMENT '状态', `verification` varchar(255) DEFAULT '' COMMENT '验证', @@ -491,8 +492,8 @@ CREATE TABLE `fa_user_group` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT '' COMMENT '组名', `rules` text COMMENT '权限节点', - `createtime` int(10) DEFAULT NULL COMMENT '添加时间', - `updatetime` int(10) DEFAULT NULL COMMENT '更新时间', + `createtime` bigint(16) DEFAULT NULL COMMENT '添加时间', + `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间', `status` enum('normal','hidden') DEFAULT NULL COMMENT '状态', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT='会员组表'; @@ -515,7 +516,7 @@ CREATE TABLE `fa_user_money_log` ( `before` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '变更前余额', `after` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '变更后余额', `memo` varchar(255) DEFAULT '' COMMENT '备注', - `createtime` int(10) DEFAULT NULL COMMENT '创建时间', + `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT='会员余额变动表'; @@ -530,8 +531,8 @@ CREATE TABLE `fa_user_rule` ( `title` varchar(50) DEFAULT '' COMMENT '标题', `remark` varchar(100) DEFAULT NULL COMMENT '备注', `ismenu` tinyint(1) DEFAULT NULL COMMENT '是否菜单', - `createtime` int(10) DEFAULT NULL COMMENT '创建时间', - `updatetime` int(10) DEFAULT NULL COMMENT '更新时间', + `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间', + `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间', `weigh` int(10) DEFAULT '0' COMMENT '权重', `status` enum('normal','hidden') DEFAULT NULL COMMENT '状态', PRIMARY KEY (`id`) @@ -566,7 +567,7 @@ CREATE TABLE `fa_user_score_log` ( `before` int(10) NOT NULL DEFAULT '0' COMMENT '变更前积分', `after` int(10) NOT NULL DEFAULT '0' COMMENT '变更后积分', `memo` varchar(255) DEFAULT '' COMMENT '备注', - `createtime` int(10) DEFAULT NULL COMMENT '创建时间', + `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT='会员积分变动表'; @@ -577,8 +578,8 @@ DROP TABLE IF EXISTS `fa_user_token`; CREATE TABLE `fa_user_token` ( `token` varchar(50) NOT NULL COMMENT 'Token', `user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '会员ID', - `createtime` int(10) DEFAULT NULL COMMENT '创建时间', - `expiretime` int(10) DEFAULT NULL COMMENT '过期时间', + `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间', + `expiretime` bigint(16) DEFAULT NULL COMMENT '过期时间', PRIMARY KEY (`token`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT='会员Token表'; @@ -594,8 +595,8 @@ CREATE TABLE `fa_version` ( `content` varchar(500) DEFAULT '' COMMENT '升级内容', `downloadurl` varchar(255) DEFAULT '' COMMENT '下载地址', `enforce` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '强制更新', - `createtime` int(10) DEFAULT NULL COMMENT '创建时间', - `updatetime` int(10) DEFAULT NULL COMMENT '更新时间', + `createtime` bigint(16) DEFAULT NULL COMMENT '创建时间', + `updatetime` bigint(16) DEFAULT NULL COMMENT '更新时间', `weigh` int(10) NOT NULL DEFAULT 0 COMMENT '权重', `status` varchar(30) DEFAULT '' COMMENT '状态', PRIMARY KEY (`id`) USING BTREE