add user manager
This commit is contained in:
1 parent
0b07fb2d80
commit
d159fb66a4
10 files changed
+1265
-195
No files matched your search
@@ -80,6 +80,9 @@ CREATE TABLE `users` (
|
||||
`email` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||||
`phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||||
`password_hash` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
|
||||
`is_admin` tinyint(1) NULL DEFAULT 0 COMMENT '是否为管理员',
|
||||
`is_active` tinyint(1) NULL DEFAULT 1 COMMENT '是否激活',
|
||||
`last_login` timestamp NULL DEFAULT NULL COMMENT '最后登录时间',
|
||||
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
|
||||
Reference in new issue
Block a user