1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +00:00

new pro scripts

This commit is contained in:
skywalker
2021-12-03 16:53:27 +08:00
parent b6d251e44f
commit 5a8ca8737f
41 changed files with 4047 additions and 36 deletions

View File

@@ -11,3 +11,13 @@ CREATE TABLE IF NOT EXISTS `api2_tokenv2` (
PRIMARY KEY (`key`),
UNIQUE KEY `user` (`user`,`platform`,`device_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `sysadmin_extra_userloginlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) NOT NULL,
`login_date` datetime NOT NULL,
`login_ip` varchar(20) NOT NULL,
PRIMARY KEY (`id`),
KEY `sysadmin_extra_userloginlog_ee0cafa2` (`username`),
KEY `sysadmin_extra_userloginlog_c8db99ec` (`login_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8

View File

@@ -10,3 +10,12 @@ CREATE TABLE IF NOT EXISTS "api2_tokenv2" (
"last_login_ip" char(39),
UNIQUE ("user", "platform", "device_id")
);
CREATE TABLE IF NOT EXISTS "sysadmin_extra_userloginlog" (
"id" integer NOT NULL PRIMARY KEY,
"username" varchar(255) NOT NULL,
"login_date" datetime NOT NULL,
"login_ip" varchar(20) NOT NULL
);
CREATE INDEX IF NOT EXISTS "sysadmin_extra_userloginlog_c8db99ec" ON "sysadmin_extra_userloginlog" ("login_date");
CREATE INDEX IF NOT EXISTS "sysadmin_extra_userloginlog_ee0cafa2" ON "sysadmin_extra_userloginlog" ("username");