diff --git a/backend/src/main/resources/db/migration/V21__user_key.sql b/backend/src/main/resources/db/migration/V21__user_key.sql new file mode 100644 index 0000000000..8de55ea198 --- /dev/null +++ b/backend/src/main/resources/db/migration/V21__user_key.sql @@ -0,0 +1,15 @@ +-- ---------------------------- +-- Table structure for user_key +-- ---------------------------- +DROP TABLE IF EXISTS `user_key`; +CREATE TABLE `user_key` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID', + `user_id` bigint(20) DEFAULT NULL COMMENT '用户ID', + `access_key` varchar(50) NOT NULL COMMENT 'access_key', + `secret_key` varchar(50) NOT NULL COMMENT 'secret key', + `create_time` bigint(13) NOT NULL COMMENT '创建时间', + `status` varchar(10) DEFAULT NULL COMMENT '状态', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE KEY `IDX_AK` (`access_key`), + KEY `IDX_USER_K_ID` (`user_id`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户KEY'; \ No newline at end of file diff --git a/frontend/src/layout/components/Topbar.vue b/frontend/src/layout/components/Topbar.vue index 29d097c2ee..3df7960cfb 100644 --- a/frontend/src/layout/components/Topbar.vue +++ b/frontend/src/layout/components/Topbar.vue @@ -54,7 +54,7 @@ {{ $t('commons.personal_info') }} - + {{ $t('commons.ukey_title') }}