⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 schema.postgresql

📁 linux下流量查看软件,可以查看到每台机子的具体流量
💻 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 + -