Browse Source

Merge branch 'dev_thirdplatform' into dev_temp

dev_shibei_match
wxz 4 years ago
parent
commit
7c318865ce
  1. 61
      epmet-module/epmet-third/epmet-third-server/src/main/resources/db/migration/V0.0.13__addPlatformDDLS.sql

61
epmet-module/epmet-third/epmet-third-server/src/main/resources/db/migration/V0.0.13__addPlatformDDLS.sql

@ -0,0 +1,61 @@
CREATE TABLE `thirdplatform` (
`ID` varchar(64) NOT NULL,
`PLATFORM_NAME` varchar(32) NOT NULL COMMENT '平台名称',
`PLATFORM_KEY` varchar(32) NOT NULL COMMENT '平台唯一KEY',
`PLATFORM_SECRET` varchar(64) DEFAULT NULL,
`ICON` varchar(255) DEFAULT NULL,
`API_SERVICE` varchar(32) NOT NULL COMMENT 'api service实例名称',
`BASE_URL` varchar(128) NOT NULL COMMENT '平台基础url',
`DEL_FLAG` varchar(1) NOT NULL COMMENT '删除标识',
`REVISION` int(10) NOT NULL COMMENT '乐观锁',
`CREATED_BY` varchar(64) NOT NULL COMMENT '创建人',
`CREATED_TIME` datetime NOT NULL COMMENT '创建时间',
`UPDATED_BY` varchar(64) NOT NULL COMMENT '更新人',
`UPDATED_TIME` datetime NOT NULL COMMENT '更新时间',
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `thirdplatform_customer_action` (
`ID` varchar(64) NOT NULL,
`CUSTOMER_ID` varchar(64) NOT NULL COMMENT '客户ID',
`PLATFORM_ID` varchar(64) NOT NULL COMMENT '平台ID',
`ACTION_KEY` varchar(64) NOT NULL COMMENT '动作key',
`DEL_FLAG` varchar(1) NOT NULL COMMENT '删除标识',
`REVISION` int(10) NOT NULL COMMENT '乐观锁',
`CREATED_BY` varchar(64) NOT NULL COMMENT '创建人',
`CREATED_TIME` datetime NOT NULL COMMENT '创建时间',
`UPDATED_BY` varchar(64) NOT NULL COMMENT '更新人',
`UPDATED_TIME` datetime NOT NULL COMMENT '更新时间',
PRIMARY KEY (`ID`),
UNIQUE KEY `plat_custm_act` (`PLATFORM_ID`,`CUSTOMER_ID`,`ACTION_KEY`,`DEL_FLAG`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='客户针对指定操作所选用的第三方平台列表';
CREATE TABLE `thirdplatform_customer_register` (
`ID` varchar(64) NOT NULL,
`CUSTOMER_ID` varchar(64) DEFAULT NULL,
`PLATFORM_ID` varchar(64) DEFAULT NULL,
`CUSTOMIZED_PLATFORM_NAME` varchar(32) DEFAULT NULL,
`CUSTOMIZED_PLATFORM_ICON` varchar(255) DEFAULT NULL,
`DEL_FLAG` varchar(1) NOT NULL COMMENT '删除标识',
`REVISION` int(10) NOT NULL COMMENT '乐观锁',
`CREATED_BY` varchar(64) NOT NULL COMMENT '创建人',
`CREATED_TIME` datetime NOT NULL COMMENT '创建时间',
`UPDATED_BY` varchar(64) NOT NULL COMMENT '更新人',
`UPDATED_TIME` datetime NOT NULL COMMENT '更新时间',
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `thirdplatform_action` (
`ID` varchar(64) NOT NULL,
`PLATFORM_ID` varchar(64) DEFAULT NULL,
`ACTION_KEY` varchar(32) DEFAULT NULL,
`API_URL` varchar(64) NOT NULL COMMENT '动作对应的api的路径',
`DEL_FLAG` varchar(1) NOT NULL COMMENT '删除标识',
`REVISION` int(10) NOT NULL COMMENT '乐观锁',
`CREATED_BY` varchar(64) NOT NULL COMMENT '创建人',
`CREATED_TIME` datetime NOT NULL COMMENT '创建时间',
`UPDATED_BY` varchar(64) NOT NULL COMMENT '更新人',
`UPDATED_TIME` datetime NOT NULL COMMENT '更新时间',
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
Loading…
Cancel
Save