You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

n9e_hbs.sql 844 B

5 years ago
1234567891011121314151617181920212223242526272829
  1. set names utf8;
  2. drop database if exists n9e_hbs;
  3. create database n9e_hbs;
  4. use n9e_hbs;
  5. create table `instance` (
  6. `id` int unsigned not null auto_increment,
  7. `module` varchar(32) not null,
  8. `identity` varchar(255) not null,
  9. `rpc_port` varchar(16) not null,
  10. `http_port` varchar(16) not null,
  11. `remark` text,
  12. `ts` int unsigned not null,
  13. primary key (`id`),
  14. key(`module`,`identity`,`rpc_port`,`http_port`)
  15. ) engine=innodb default charset=utf8;
  16. create table `detector` (
  17. `id` int unsigned not null auto_increment,
  18. `module` varchar(32) not null,
  19. `node` varchar(16) not null,
  20. `region` varchar(64) not null,
  21. `ip` varchar(255) not null,
  22. `port` varchar(16) not null,
  23. `ts` int unsigned not null,
  24. primary key (`id`),
  25. key(`ip`,`port`)
  26. ) engine=innodb default charset=utf8;