📄 schema.postgresql
字号:
CREATE TABLE bd_rx_log(sensor_id int,ip inet,timestamp timestamp with time zone DEFAULT now(),sample_duration int,total int,icmp int,udp int,tcp int,ftp int,http int,p2p int);create index bd_rx_log_sensor_id_ip_timestamp_idx on bd_rx_log (sensor_id, ip, timestamp);create index bd_rx_log_sensor_id_timestamp_idx on bd_rx_log(sensor_id, timestamp);CREATE TABLE bd_tx_log(sensor_id int,ip inet,timestamp timestamp with time zone DEFAULT now(),sample_duration int,total int,icmp int,udp int,tcp int,ftp int,http int,p2p int);create index bd_tx_log_sensor_id_ip_timestamp_idx on bd_tx_log (sensor_id, ip, timestamp);create index bd_tx_log_sensor_id_timestamp_idx on bd_tx_log(sensor_id, timestamp);CREATE TABLE bd_rx_total_log(sensor_id int,ip inet,timestamp timestamp with time zone DEFAULT now(),sample_duration int,total int,icmp int,udp int,tcp int,ftp int,http int,p2p int);create index bd_rx_total_log_sensor_id_timestamp_ip_idx on bd_rx_total_log (sensor_id, timestamp);CREATE TABLE bd_tx_total_log(sensor_id int,ip inet,timestamp timestamp with time zone DEFAULT now(),sample_duration int,total int,icmp int,udp int,tcp int,ftp int,http int,p2p int);create index bd_tx_total_log_sensor_id_timestamp_ip_idx on bd_tx_total_log (sensor_id, timestamp);CREATE TABLE sensors(sensor_id serial PRIMARY KEY,sensor_name varchar,last_connection timestamp with time zone);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -