-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWorkerNode.sql
More file actions
16 lines (16 loc) · 978 Bytes
/
WorkerNode.sql
File metadata and controls
16 lines (16 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
DROP TABLE IF EXISTS worker_node;
CREATE TABLE worker_node
(
id bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'auto increment id',
host_name varchar(128) NOT NULL COMMENT 'host name',
port varchar(64) NOT NULL COMMENT 'port',
type int unsigned NOT NULL COMMENT 'node type: ACTUAL or CONTAINER',
use_version int unsigned NOT NULL DEFAULT '0' COMMENT 'use version',
renewal_date DATETIME NOT NULL COMMENT 'renewal date',
heartbeat_date DATETIME NOT NULL COMMENT 'heartbeat date',
launch_date DATETIME NOT NULL COMMENT 'launch date',
modified DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'modified time',
created DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'created time',
PRIMARY KEY (id),
KEY `idx_renewal_date` (`renewal_date`)
) COMMENT='DB WorkerID Assigner for UID Generator',ENGINE = INNODB;