mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-14 10:57:19 +08:00
refactor(system/client): 移除终端部分配置字段
This commit is contained in:
@@ -273,6 +273,6 @@ VALUES
|
||||
|
||||
-- 初始化终端数据
|
||||
INSERT INTO `sys_client`
|
||||
(`id`, `client_id`, `client_key`, `client_secret`, `auth_type`, `client_type`, `active_timeout`, `timeout`, `status`, `create_user`, `create_time`)
|
||||
(`id`, `client_id`, `client_type`, `auth_type`, `active_timeout`, `timeout`, `status`, `create_user`, `create_time`)
|
||||
VALUES
|
||||
(1, 'ef51c9a3e9046c4f2ea45142c8a8344a', 'pc', 'dd77ab1e353a027e0d60ce3b151e8642', '["ACCOUNT", "EMAIL", "PHONE", "SOCIAL"]', 'PC', 1800, 86400, 1, 1, NOW());
|
||||
(1, 'ef51c9a3e9046c4f2ea45142c8a8344a', 'PC', '["ACCOUNT", "EMAIL", "PHONE", "SOCIAL"]', 1800, 86400, 1, 1, NOW());
|
||||
|
@@ -308,10 +308,8 @@ CREATE TABLE IF NOT EXISTS `sys_file` (
|
||||
CREATE TABLE IF NOT EXISTS `sys_client` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
||||
`client_id` varchar(50) NOT NULL COMMENT '终端ID',
|
||||
`client_key` varchar(255) NOT NULL COMMENT '终端Key',
|
||||
`client_secret` varchar(255) NOT NULL COMMENT '终端秘钥',
|
||||
`auth_type` json NOT NULL COMMENT '认证类型',
|
||||
`client_type` varchar(50) NOT NULL COMMENT '终端类型',
|
||||
`auth_type` json NOT NULL COMMENT '认证类型',
|
||||
`active_timeout` bigint(20) DEFAULT -1 COMMENT 'Token最低活跃频率(单位:秒,-1:不限制,永不冻结)',
|
||||
`timeout` bigint(20) DEFAULT 2592000 COMMENT 'Token有效期(单位:秒,-1:永不过期)',
|
||||
`status` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '状态(1:启用;2:禁用)',
|
||||
|
@@ -273,6 +273,6 @@ VALUES
|
||||
|
||||
-- 初始化终端数据
|
||||
INSERT INTO "sys_client"
|
||||
("id", "client_id", "client_key", "client_secret", "auth_type", "client_type", "active_timeout", "timeout", "status", "create_user", "create_time")
|
||||
("id", "client_id", "client_type", "auth_type", "active_timeout", "timeout", "status", "create_user", "create_time")
|
||||
VALUES
|
||||
(1, 'ef51c9a3e9046c4f2ea45142c8a8344a', 'pc', 'dd77ab1e353a027e0d60ce3b151e8642', '["ACCOUNT", "EMAIL", "PHONE", "SOCIAL"]', 'PC', 1800, 86400, 1, 1, NOW());
|
||||
(1, 'ef51c9a3e9046c4f2ea45142c8a8344a', 'PC', '["ACCOUNT", "EMAIL", "PHONE", "SOCIAL"]', 1800, 86400, 1, 1, NOW());
|
||||
|
@@ -514,10 +514,8 @@ COMMENT ON TABLE "sys_file" IS '文件表';
|
||||
CREATE TABLE IF NOT EXISTS "sys_client" (
|
||||
"id" int8 NOT NULL,
|
||||
"client_id" varchar(50) NOT NULL,
|
||||
"client_key" varchar(255) NOT NULL,
|
||||
"client_secret" varchar(255) NOT NULL,
|
||||
"auth_type" json NOT NULL,
|
||||
"client_type" varchar(50) NOT NULL,
|
||||
"auth_type" json NOT NULL,
|
||||
"active_timeout" int8 NOT NULL DEFAULT -1,
|
||||
"timeout" int8 NOT NULL DEFAULT 2592000,
|
||||
"status" int2 NOT NULL DEFAULT 1,
|
||||
@@ -532,10 +530,8 @@ CREATE INDEX "idx_client_create_user" ON "sys_client" ("create_user");
|
||||
CREATE INDEX "idx_client_update_user" ON "sys_client" ("update_user");
|
||||
COMMENT ON COLUMN "sys_client"."id" IS 'ID';
|
||||
COMMENT ON COLUMN "sys_client"."client_id" IS '终端ID';
|
||||
COMMENT ON COLUMN "sys_client"."client_key" IS '终端Key';
|
||||
COMMENT ON COLUMN "sys_client"."client_secret" IS '终端秘钥';
|
||||
COMMENT ON COLUMN "sys_client"."auth_type" IS '认证类型';
|
||||
COMMENT ON COLUMN "sys_client"."client_type" IS '终端类型';
|
||||
COMMENT ON COLUMN "sys_client"."auth_type" IS '认证类型';
|
||||
COMMENT ON COLUMN "sys_client"."active_timeout" IS 'Token最低活跃频率(单位:秒,-1:不限制,永不冻结)';
|
||||
COMMENT ON COLUMN "sys_client"."timeout" IS 'Token有效期(单位:秒,-1:永不过期)';
|
||||
COMMENT ON COLUMN "sys_client"."status" IS '状态(1:启用;2:禁用)';
|
||||
|
Reference in New Issue
Block a user