forked from github/dataease
Merge pull request #561 from dataease/pr@dev@feat_aksk_sql
feat: 添加ak,sk的flyway
This commit is contained in:
commit
9adde0ca10
15
backend/src/main/resources/db/migration/V21__user_key.sql
Normal file
15
backend/src/main/resources/db/migration/V21__user_key.sql
Normal file
@ -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';
|
@ -54,7 +54,7 @@
|
||||
<el-dropdown-item>{{ $t('commons.personal_info') }}</el-dropdown-item>
|
||||
</router-link>
|
||||
|
||||
<router-link to="/ukey/index">
|
||||
<router-link v-if="$store.getters.validate" to="/ukey/index">
|
||||
<el-dropdown-item>{{ $t('commons.ukey_title') }}</el-dropdown-item>
|
||||
</router-link>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user