@@ -2207,3 +2207,64 @@ CREATE TABLE t_ds_process_task_lineage
2207
2207
KEY ` idx_task_code_version` (` task_definition_code` ,` task_definition_version` ),
2208
2208
KEY ` idx_dept_code` (` dept_project_code` ,` dept_process_definition_code` ,` dept_task_definition_code` )
2209
2209
);
2210
+
2211
+
2212
+ -- ----------------------------
2213
+ -- Table structure for jdbc registry
2214
+ -- ----------------------------
2215
+
2216
+ DROP TABLE IF EXISTS ` t_ds_jdbc_registry_data` ;
2217
+ CREATE TABLE `t_ds_jdbc_registry_data `
2218
+ (
2219
+ ` id` bigint (11 ) NOT NULL AUTO_INCREMENT COMMENT ' primary key' ,
2220
+ ` data_key` varchar (256 ) NOT NULL COMMENT ' key, like zookeeper node path' ,
2221
+ ` data_value` text NOT NULL COMMENT ' data, like zookeeper node value' ,
2222
+ ` data_type` varchar (64 ) NOT NULL COMMENT ' EPHEMERAL, PERSISTENT' ,
2223
+ ` client_id` bigint NOT NULL COMMENT ' client id' ,
2224
+ ` create_time` timestamp NOT NULL default current_timestamp COMMENT ' create time' ,
2225
+ ` last_update_time` timestamp NOT NULL default current_timestamp COMMENT ' last update time' ,
2226
+ PRIMARY KEY (` id` ),
2227
+ unique KEY ` uk_t_ds_jdbc_registry_dataKey` (` data_key` )
2228
+ ) ENGINE = InnoDB
2229
+ DEFAULT CHARSET = utf8;
2230
+
2231
+
2232
+ DROP TABLE IF EXISTS ` t_ds_jdbc_registry_lock` ;
2233
+ CREATE TABLE `t_ds_jdbc_registry_lock `
2234
+ (
2235
+ ` id` bigint (11 ) NOT NULL AUTO_INCREMENT COMMENT ' primary key' ,
2236
+ ` lock_key` varchar (256 ) NOT NULL COMMENT ' lock path' ,
2237
+ ` lock_owner` varchar (256 ) NOT NULL COMMENT ' the lock owner, ip_processId' ,
2238
+ ` client_id` bigint NOT NULL COMMENT ' client id' ,
2239
+ ` create_time` timestamp NOT NULL default current_timestamp COMMENT ' create time' ,
2240
+ PRIMARY KEY (` id` ),
2241
+ unique KEY ` uk_t_ds_jdbc_registry_lockKey` (` lock_key` )
2242
+ ) ENGINE = InnoDB
2243
+ DEFAULT CHARSET = utf8;
2244
+
2245
+ DROP TABLE IF EXISTS ` t_ds_jdbc_registry_client_heartbeat` ;
2246
+ CREATE TABLE `t_ds_jdbc_registry_client_heartbeat `
2247
+ (
2248
+ ` id` bigint (11 ) NOT NULL AUTO_INCREMENT COMMENT ' primary key' ,
2249
+ ` client_name` varchar (256 ) NOT NULL COMMENT ' client name, ip_processId' ,
2250
+ ` last_heartbeat_time` bigint NOT NULL COMMENT ' last heartbeat timestamp' ,
2251
+ ` connection_config` text NOT NULL COMMENT ' connection config' ,
2252
+ ` create_time` timestamp NOT NULL default current_timestamp COMMENT ' create time' ,
2253
+ PRIMARY KEY (` id` )
2254
+ ) ENGINE = InnoDB
2255
+ DEFAULT CHARSET = utf8;
2256
+
2257
+ DROP TABLE IF EXISTS ` t_ds_jdbc_registry_data_change_event` ;
2258
+ CREATE TABLE `t_ds_jdbc_registry_data_change_event `
2259
+ (
2260
+ ` id` bigint (11 ) NOT NULL AUTO_INCREMENT COMMENT ' primary key' ,
2261
+ ` event_type` varchar (64 ) NOT NULL COMMENT ' ADD, UPDATE, DELETE' ,
2262
+ ` jdbc_registry_data` text NOT NULL COMMENT ' jdbc registry data' ,
2263
+ ` create_time` timestamp NOT NULL default current_timestamp COMMENT ' create time' ,
2264
+ PRIMARY KEY (` id` )
2265
+ ) ENGINE = InnoDB
2266
+ DEFAULT CHARSET = utf8;
2267
+
2268
+ -- ----------------------------
2269
+ -- Table structure for jdbc registry
2270
+ -- ----------------------------
0 commit comments