Commit 6e690b38 by Jason Song

optimize schema

parent baba0b56
......@@ -33,7 +33,7 @@ CREATE TABLE `App` (
PRIMARY KEY (`Id`),
KEY `AppId` (`AppId`(191)),
KEY `DataChange_LastTime` (`DataChange_LastTime`),
FULLTEXT KEY `Name` (`Name`)
KEY `Name` (`Name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='应用表';
......@@ -266,28 +266,6 @@ CREATE TABLE `NamespaceLock` (
# Dump of table privilege
# ------------------------------------------------------------
DROP TABLE IF EXISTS `Privilege`;
CREATE TABLE `Privilege` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`Name` varchar(500) NOT NULL DEFAULT 'default' COMMENT 'Name',
`PrivilType` varchar(50) NOT NULL DEFAULT 'default' COMMENT 'PrivilType',
`NamespaceId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'NamespaceId',
`IsDeleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '1: deleted, 0: normal',
`DataChange_CreatedBy` varchar(32) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀',
`DataChange_CreatedTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`DataChange_LastModifiedBy` varchar(32) DEFAULT '' COMMENT '最后修改人邮箱前缀',
`DataChange_LastTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改时间',
PRIMARY KEY (`id`),
KEY `Name_PrivilType_NamespaceId` (`Name`(191),`PrivilType`,`NamespaceId`),
KEY `DataChange_LastTime` (`DataChange_LastTime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='权限';
# Dump of table release
# ------------------------------------------------------------
......@@ -303,7 +281,6 @@ CREATE TABLE `Release` (
`NamespaceName` varchar(500) NOT NULL DEFAULT 'default' COMMENT 'namespaceName',
`Configurations` longtext NOT NULL COMMENT '发布配置',
`IsAbandoned` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否废弃',
`Status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '发布的状态,0:废弃 1:正常 2:灰度',
`IsDeleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '1: deleted, 0: normal',
`DataChange_CreatedBy` varchar(32) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀',
`DataChange_CreatedTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
......
......@@ -33,7 +33,7 @@ CREATE TABLE `App` (
PRIMARY KEY (`Id`),
KEY `AppId` (`AppId`(191)),
KEY `DataChange_LastTime` (`DataChange_LastTime`),
FULLTEXT KEY `Name` (`Name`)
KEY `Name` (`Name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='应用表';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment