From 8b421b8f91960188ad8307aa6b3223e407cfc398 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 9 Aug 2021 16:52:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0ak,sk=E7=9A=84flyway?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/db/migration/V21__user_key.sql | 15 +++++++++++++++ frontend/src/layout/components/Topbar.vue | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 backend/src/main/resources/db/migration/V21__user_key.sql 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') }}