V1.1.0__accesskey.sql 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --
  2. -- Copyright 2022 Apollo Authors
  3. --
  4. -- Licensed under the Apache License, Version 2.0 (the "License");
  5. -- you may not use this file except in compliance with the License.
  6. -- You may obtain a copy of the License at
  7. --
  8. -- http://www.apache.org/licenses/LICENSE-2.0
  9. --
  10. -- Unless required by applicable law or agreed to in writing, software
  11. -- distributed under the License is distributed on an "AS IS" BASIS,
  12. -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. -- See the License for the specific language governing permissions and
  14. -- limitations under the License.
  15. --
  16. # Dump of table accesskey
  17. # ------------------------------------------------------------
  18. Use ApolloConfigDB;
  19. DROP TABLE IF EXISTS `AccessKey`;
  20. CREATE TABLE `AccessKey` (
  21. `Id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增主键',
  22. `AppId` varchar(500) NOT NULL DEFAULT 'default' COMMENT 'AppID',
  23. `Secret` varchar(128) NOT NULL DEFAULT '' COMMENT 'Secret',
  24. `IsEnabled` bit(1) NOT NULL DEFAULT b'0' COMMENT '1: enabled, 0: disabled',
  25. `IsDeleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '1: deleted, 0: normal',
  26. `DataChange_CreatedBy` varchar(32) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀',
  27. `DataChange_CreatedTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  28. `DataChange_LastModifiedBy` varchar(32) NOT NULL DEFAULT '' COMMENT '最后修改人邮箱前缀',
  29. `DataChange_LastTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改时间',
  30. PRIMARY KEY (`Id`),
  31. KEY `AppId` (`AppId`(191)),
  32. KEY `DataChange_LastTime` (`DataChange_LastTime`)
  33. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='访问密钥';