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_ams.sql 1.0 kB

5 years ago
123456789101112131415161718192021222324252627282930
  1. set names utf8;
  2. drop database if exists n9e_ams;
  3. create database n9e_ams;
  4. use n9e_ams;
  5. CREATE TABLE `host`
  6. (
  7. `id` int unsigned not null AUTO_INCREMENT,
  8. `sn` char(128) not null default '',
  9. `ip` char(15) not null,
  10. `ident` varchar(128) not null default '',
  11. `name` varchar(128) not null default '',
  12. `cpu` varchar(255) not null default '',
  13. `mem` varchar(255) not null default '',
  14. `disk` varchar(255) not null default '',
  15. `note` varchar(255) not null default 'different with resource note',
  16. `cate` varchar(32) not null comment 'host,vm,container,switch',
  17. `tenant` varchar(128) not null default '',
  18. `clock` bigint not null comment 'heartbeat timestamp',
  19. PRIMARY KEY (`id`),
  20. UNIQUE KEY (`ip`),
  21. UNIQUE KEY (`ident`),
  22. KEY (`sn`),
  23. KEY (`name`),
  24. KEY (`tenant`)
  25. ) ENGINE = InnoDB
  26. DEFAULT CHARSET = utf8;
  27. /* 网络设备管理、机柜机架、配件耗材等相关的功能是商业版本才有的,表结构不要放到这里 */