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