123456789101112131415161718192021222324252627282930 |
- create table node
- (
- id int auto_increment comment 'ID主键自动添加'
- primary key,
- name varchar(128) not null comment '服务器名称',
- host varchar(20) not null comment '服务器IP',
- port int not null comment '服务器端口',
- url text not null comment '服务器切换地址',
- update_at datetime null comment '更新时间',
- create_at datetime null comment '创建时间',
- ping_type int default 0 not null comment '服务器延迟类型 0 icmp 1 tcp',
- url_status int null comment '用于表示url是否执行完成',
- node_ms int default 0 null comment '节点延迟'
- )
- charset = utf8mb4;
- create table pinglog
- (
- id int auto_increment
- primary key,
- maxdelay varchar(64) null comment '最大延迟',
- mindelay varchar(64) null comment '最小延迟',
- avgdelay varchar(64) null comment '平均延迟',
- losspk varchar(64) null comment '丢包率',
- update_at datetime null comment '更新时间',
- create_at datetime null comment '创建时间',
- serverid int null comment '服务器ID'
- )
- charset = utf8mb4;
|