Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
GeoFlyApi
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GeoFly
GeoFlyApi
Commits
3b74eb6a
Commit
3b74eb6a
authored
Mar 14, 2026
by
tntxia
Committed by
gdj
Mar 14, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户登录日志的数据库脚本
parent
b2cdefc0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
sql/login_log.sql
+38
-0
No files found.
sql/login_log.sql
0 → 100644
View file @
3b74eb6a
/*
Navicat Premium Dump SQL
Source Server : 本地mysql
Source Server Type : MySQL
Source Server Version : 80043 (8.0.43)
Source Host : localhost:3306
Source Schema : cloud_sample
Target Server Type : MySQL
Target Server Version : 80043 (8.0.43)
File Encoding : 65001
Date: 03/02/2026 09:34:11
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for login_log
-- ----------------------------
DROP
TABLE
IF
EXISTS
`login_log`
;
CREATE
TABLE
`login_log`
(
`id`
bigint
NOT
NULL
AUTO_INCREMENT
COMMENT
'ID'
,
`user_id`
varchar
(
100
)
CHARACTER
SET
utf8mb3
COLLATE
utf8mb3_general_ci
NOT
NULL
COMMENT
'登录用户ID'
,
`username`
varchar
(
255
)
CHARACTER
SET
utf8mb3
COLLATE
utf8mb3_general_ci
NOT
NULL
COMMENT
'登录用户名'
,
`message`
varchar
(
5000
)
CHARACTER
SET
utf8mb3
COLLATE
utf8mb3_general_ci
NULL
DEFAULT
NULL
COMMENT
'登录信息'
,
`success`
bit
(
1
)
NOT
NULL
COMMENT
'是否登录成功'
,
`ip_address`
varchar
(
100
)
CHARACTER
SET
utf8mb3
COLLATE
utf8mb3_general_ci
NULL
DEFAULT
NULL
COMMENT
'IP地址'
,
`user_agent`
varchar
(
500
)
CHARACTER
SET
utf8mb3
COLLATE
utf8mb3_general_ci
NULL
DEFAULT
NULL
COMMENT
'用户代理'
,
`create_time`
bigint
NULL
DEFAULT
NULL
COMMENT
'登录时间'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
INDEX
`idx_ip_address`
(
`ip_address`
ASC
)
USING
BTREE
,
INDEX
`idx_create_time`
(
`create_time`
ASC
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
31258
CHARACTER
SET
=
utf8mb3
COLLATE
=
utf8mb3_general_ci
COMMENT
=
'登录日志'
ROW_FORMAT
=
DYNAMIC
;
SET
FOREIGN_KEY_CHECKS
=
1
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment