Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 25, 2026

Diff for scripts/perl/accounting/db-structure.sql between version 1.3 and 1.4

version 1.3, 2005/03/13 21:06:23 version 1.4, 2005/03/13 21:49:42
Line 49  CREATE TABLE `net_acct` (
Line 49  CREATE TABLE `net_acct` (
   `data_size` bigint(20) unsigned NOT NULL default '0',    `data_size` bigint(20) unsigned NOT NULL default '0',
   `interface` char(5) default NULL,    `interface` char(5) default NULL,
   `ppp_user` char(12) default NULL,    `ppp_user` char(12) default NULL,
     `config_id` int(11) default NULL,
   PRIMARY KEY  (`id`),    PRIMARY KEY  (`id`),
   KEY `created_key` (`created`)    KEY `created_key` (`created`),
     KEY `config_id_key` (`config_id`)
 ) TYPE=MyISAM;  ) TYPE=MyISAM;
   
 --  --
Line 70  CREATE TABLE `net_acct_2005_01` (
Line 72  CREATE TABLE `net_acct_2005_01` (
   `data_size` bigint(20) unsigned NOT NULL default '0',    `data_size` bigint(20) unsigned NOT NULL default '0',
   `interface` char(5) default NULL,    `interface` char(5) default NULL,
   `ppp_user` char(12) default NULL,    `ppp_user` char(12) default NULL,
     `config_id` int(11) default NULL,
   PRIMARY KEY  (`id`),    PRIMARY KEY  (`id`),
   KEY `created_key` (`created`),    KEY `created_key` (`created`),
   KEY `ip_proto_key` (`ip_proto`),    KEY `ip_proto_key` (`ip_proto`),
Line 80  CREATE TABLE `net_acct_2005_01` (
Line 83  CREATE TABLE `net_acct_2005_01` (
   KEY `source_port_key` (`source_port`),    KEY `source_port_key` (`source_port`),
   KEY `packet_count_key` (`packet_count`),    KEY `packet_count_key` (`packet_count`),
   KEY `data_size_key` (`data_size`),    KEY `data_size_key` (`data_size`),
   KEY `interface_key` (`interface`)    KEY `interface_key` (`interface`),
     KEY `config_id_key` (`config_id`)
 ) TYPE=MyISAM;  ) TYPE=MyISAM;
   
 --  --
Line 100  CREATE TABLE `net_acct_2005_02` (
Line 104  CREATE TABLE `net_acct_2005_02` (
   `data_size` bigint(20) unsigned NOT NULL default '0',    `data_size` bigint(20) unsigned NOT NULL default '0',
   `interface` char(5) default NULL,    `interface` char(5) default NULL,
   `ppp_user` char(12) default NULL,    `ppp_user` char(12) default NULL,
     `config_id` int(11) default NULL,
   PRIMARY KEY  (`id`),    PRIMARY KEY  (`id`),
   KEY `created_key` (`created`),    KEY `created_key` (`created`),
   KEY `interface_key` (`interface`),    KEY `interface_key` (`interface`),
Line 110  CREATE TABLE `net_acct_2005_02` (
Line 115  CREATE TABLE `net_acct_2005_02` (
   KEY `dest_ip_key` (`dest_ip`),    KEY `dest_ip_key` (`dest_ip`),
   KEY `dest_port_key` (`dest_port`),    KEY `dest_port_key` (`dest_port`),
   KEY `packet_count_key` (`packet_count`),    KEY `packet_count_key` (`packet_count`),
   KEY `data_size_key` (`data_size`)    KEY `data_size_key` (`data_size`),
     KEY `config_id_key` (`config_id`)
 ) TYPE=MyISAM;  ) TYPE=MyISAM;
   
 --  --
Line 130  CREATE TABLE `net_acct_2005_03` (
Line 136  CREATE TABLE `net_acct_2005_03` (
   `data_size` bigint(20) unsigned NOT NULL default '0',    `data_size` bigint(20) unsigned NOT NULL default '0',
   `interface` char(5) default NULL,    `interface` char(5) default NULL,
   `ppp_user` char(12) default NULL,    `ppp_user` char(12) default NULL,
     `config_id` int(11) default NULL,
   PRIMARY KEY  (`id`),    PRIMARY KEY  (`id`),
   KEY `created_key` (`created`),    KEY `created_key` (`created`),
   KEY `ip_proto_key` (`ip_proto`),    KEY `ip_proto_key` (`ip_proto`),
Line 140  CREATE TABLE `net_acct_2005_03` (
Line 147  CREATE TABLE `net_acct_2005_03` (
   KEY `packet_count_key` (`packet_count`),    KEY `packet_count_key` (`packet_count`),
   KEY `data_size_key` (`data_size`),    KEY `data_size_key` (`data_size`),
   KEY `interface_key` (`interface`),    KEY `interface_key` (`interface`),
   KEY `ppp_user_key` (`ppp_user`)    KEY `ppp_user_key` (`ppp_user`),
     KEY `config_id_key` (`config_id`)
 ) TYPE=MyISAM;  ) TYPE=MyISAM;
   
 --  --
Line 160  CREATE TABLE `net_acct_2005_04` (
Line 168  CREATE TABLE `net_acct_2005_04` (
   `data_size` bigint(20) unsigned NOT NULL default '0',    `data_size` bigint(20) unsigned NOT NULL default '0',
   `interface` char(5) default NULL,    `interface` char(5) default NULL,
   `ppp_user` char(12) default NULL,    `ppp_user` char(12) default NULL,
     `config_id` int(11) default NULL,
   PRIMARY KEY  (`id`),    PRIMARY KEY  (`id`),
   KEY `interface_key` (`interface`),    KEY `interface_key` (`interface`),
   KEY `created_key` (`created`),    KEY `created_key` (`created`),
Line 170  CREATE TABLE `net_acct_2005_04` (
Line 179  CREATE TABLE `net_acct_2005_04` (
   KEY `dest_port_key` (`dest_port`),    KEY `dest_port_key` (`dest_port`),
   KEY `packet_count_key` (`packet_count`),    KEY `packet_count_key` (`packet_count`),
   KEY `data_size_key` (`data_size`),    KEY `data_size_key` (`data_size`),
   KEY `ppp_user_key` (`ppp_user`)    KEY `ppp_user_key` (`ppp_user`),
     KEY `config_id_key` (`config_id`)
 ) TYPE=MyISAM;  ) TYPE=MyISAM;
   
 --  --
Line 190  CREATE TABLE `net_acct_2005_05` (
Line 200  CREATE TABLE `net_acct_2005_05` (
   `data_size` bigint(20) unsigned NOT NULL default '0',    `data_size` bigint(20) unsigned NOT NULL default '0',
   `interface` char(5) default NULL,    `interface` char(5) default NULL,
   `ppp_user` char(12) default NULL,    `ppp_user` char(12) default NULL,
     `config_id` int(11) default NULL,
   PRIMARY KEY  (`id`),    PRIMARY KEY  (`id`),
   KEY `packet_count_key` (`packet_count`),    KEY `packet_count_key` (`packet_count`),
   KEY `interface_key` (`interface`),    KEY `interface_key` (`interface`),
Line 200  CREATE TABLE `net_acct_2005_05` (
Line 211  CREATE TABLE `net_acct_2005_05` (
   KEY `source_ip_key` (`source_ip`),    KEY `source_ip_key` (`source_ip`),
   KEY `source_port_key` (`source_port`),    KEY `source_port_key` (`source_port`),
   KEY `dest_ip_key` (`dest_ip`),    KEY `dest_ip_key` (`dest_ip`),
   KEY `dest_port_key` (`dest_port`)    KEY `dest_port_key` (`dest_port`),
     KEY `config_id_key` (`config_id`)
 ) TYPE=MyISAM;  ) TYPE=MyISAM;
   
 --  --
Line 220  CREATE TABLE `net_acct_2005_06` (
Line 232  CREATE TABLE `net_acct_2005_06` (
   `data_size` bigint(20) unsigned NOT NULL default '0',    `data_size` bigint(20) unsigned NOT NULL default '0',
   `interface` char(5) default NULL,    `interface` char(5) default NULL,
   `ppp_user` char(12) default NULL,    `ppp_user` char(12) default NULL,
     `config_id` int(11) default NULL,
   PRIMARY KEY  (`id`),    PRIMARY KEY  (`id`),
   KEY `created_key` (`created`),    KEY `created_key` (`created`),
   KEY `ip_proto_key` (`ip_proto`),    KEY `ip_proto_key` (`ip_proto`),
Line 230  CREATE TABLE `net_acct_2005_06` (
Line 243  CREATE TABLE `net_acct_2005_06` (
   KEY `dest_port_key` (`dest_port`),    KEY `dest_port_key` (`dest_port`),
   KEY `packet_count_key` (`packet_count`),    KEY `packet_count_key` (`packet_count`),
   KEY `data_size_key` (`data_size`),    KEY `data_size_key` (`data_size`),
   KEY `ppp_user_key` (`ppp_user`)    KEY `ppp_user_key` (`ppp_user`),
     KEY `config_id_key` (`config_id`)
 ) TYPE=MyISAM;  ) TYPE=MyISAM;
   
 --  --
Line 250  CREATE TABLE `net_acct_2005_07` (
Line 264  CREATE TABLE `net_acct_2005_07` (
   `data_size` bigint(20) unsigned NOT NULL default '0',    `data_size` bigint(20) unsigned NOT NULL default '0',
   `interface` char(5) default NULL,    `interface` char(5) default NULL,
   `ppp_user` char(12) default NULL,    `ppp_user` char(12) default NULL,
     `config_id` int(11) default NULL,
   PRIMARY KEY  (`id`),    PRIMARY KEY  (`id`),
   KEY `created_key` (`created`),    KEY `created_key` (`created`),
   KEY `ip_proto_key` (`ip_proto`),    KEY `ip_proto_key` (`ip_proto`),
Line 260  CREATE TABLE `net_acct_2005_07` (
Line 275  CREATE TABLE `net_acct_2005_07` (
   KEY `dest_ip_key` (`dest_ip`),    KEY `dest_ip_key` (`dest_ip`),
   KEY `packet_count_key` (`packet_count`),    KEY `packet_count_key` (`packet_count`),
   KEY `interface_key` (`interface`),    KEY `interface_key` (`interface`),
   KEY `ppp_user_key` (`ppp_user`)    KEY `ppp_user_key` (`ppp_user`),
     KEY `config_id_key` (`config_id`)
 ) TYPE=MyISAM;  ) TYPE=MyISAM;
   
 --  --
Line 280  CREATE TABLE `net_acct_2005_08` (
Line 296  CREATE TABLE `net_acct_2005_08` (
   `data_size` bigint(20) unsigned NOT NULL default '0',    `data_size` bigint(20) unsigned NOT NULL default '0',
   `interface` char(5) default NULL,    `interface` char(5) default NULL,
   `ppp_user` char(12) default NULL,    `ppp_user` char(12) default NULL,
     `config_id` int(11) default NULL,
   PRIMARY KEY  (`id`),    PRIMARY KEY  (`id`),
   KEY `created_key` (`created`),    KEY `created_key` (`created`),
   KEY `source_ip_key` (`source_ip`),    KEY `source_ip_key` (`source_ip`),
Line 290  CREATE TABLE `net_acct_2005_08` (
Line 307  CREATE TABLE `net_acct_2005_08` (
   KEY `packet_count_key` (`packet_count`),    KEY `packet_count_key` (`packet_count`),
   KEY `data_size_key` (`data_size`),    KEY `data_size_key` (`data_size`),
   KEY `interface_key` (`interface`),    KEY `interface_key` (`interface`),
   KEY `ppp_user_key` (`ppp_user`)    KEY `ppp_user_key` (`ppp_user`),
     KEY `config_id_key` (`config_id`)
 ) TYPE=MyISAM;  ) TYPE=MyISAM;
   
 --  --
Line 310  CREATE TABLE `net_acct_2005_09` (
Line 328  CREATE TABLE `net_acct_2005_09` (
   `data_size` bigint(20) unsigned NOT NULL default '0',    `data_size` bigint(20) unsigned NOT NULL default '0',
   `interface` char(5) default NULL,    `interface` char(5) default NULL,
   `ppp_user` char(12) default NULL,    `ppp_user` char(12) default NULL,
     `config_id` int(11) default NULL,
   PRIMARY KEY  (`id`),    PRIMARY KEY  (`id`),
   KEY `created_key` (`created`),    KEY `created_key` (`created`),
   KEY `ip_proto_key` (`ip_proto`),    KEY `ip_proto_key` (`ip_proto`),
Line 320  CREATE TABLE `net_acct_2005_09` (
Line 339  CREATE TABLE `net_acct_2005_09` (
   KEY `packet_count_key` (`packet_count`),    KEY `packet_count_key` (`packet_count`),
   KEY `data_size_key` (`data_size`),    KEY `data_size_key` (`data_size`),
   KEY `interface_key` (`interface`),    KEY `interface_key` (`interface`),
   KEY `ppp_user_key` (`ppp_user`)    KEY `ppp_user_key` (`ppp_user`),
     KEY `config_id_key` (`config_id`)
 ) TYPE=MyISAM;  ) TYPE=MyISAM;
   
 --  --
Line 340  CREATE TABLE `net_acct_2005_10` (
Line 360  CREATE TABLE `net_acct_2005_10` (
   `data_size` bigint(20) unsigned NOT NULL default '0',    `data_size` bigint(20) unsigned NOT NULL default '0',
   `interface` char(5) default NULL,    `interface` char(5) default NULL,
   `ppp_user` char(12) default NULL,    `ppp_user` char(12) default NULL,
     `config_id` int(11) default NULL,
   PRIMARY KEY  (`id`),    PRIMARY KEY  (`id`),
   KEY `created_key` (`created`),    KEY `created_key` (`created`),
   KEY `ip_proto_key` (`ip_proto`),    KEY `ip_proto_key` (`ip_proto`),
Line 350  CREATE TABLE `net_acct_2005_10` (
Line 371  CREATE TABLE `net_acct_2005_10` (
   KEY `packet_count_key` (`packet_count`),    KEY `packet_count_key` (`packet_count`),
   KEY `data_size_key` (`data_size`),    KEY `data_size_key` (`data_size`),
   KEY `interface_key` (`interface`),    KEY `interface_key` (`interface`),
   KEY `ppp_user_key` (`ppp_user`)    KEY `ppp_user_key` (`ppp_user`),
     KEY `config_id_key` (`config_id`)
 ) TYPE=MyISAM;  ) TYPE=MyISAM;
   
 --  --
Line 370  CREATE TABLE `net_acct_2005_11` (
Line 392  CREATE TABLE `net_acct_2005_11` (
   `data_size` bigint(20) unsigned NOT NULL default '0',    `data_size` bigint(20) unsigned NOT NULL default '0',
   `interface` char(5) default NULL,    `interface` char(5) default NULL,
   `ppp_user` char(12) default NULL,    `ppp_user` char(12) default NULL,
     `config_id` int(11) default NULL,
   PRIMARY KEY  (`id`),    PRIMARY KEY  (`id`),
   KEY `created_key` (`created`),    KEY `created_key` (`created`),
   KEY `ip_proto_key` (`ip_proto`),    KEY `ip_proto_key` (`ip_proto`),
Line 380  CREATE TABLE `net_acct_2005_11` (
Line 403  CREATE TABLE `net_acct_2005_11` (
   KEY `packet_count_key` (`packet_count`),    KEY `packet_count_key` (`packet_count`),
   KEY `data_size_key` (`data_size`),    KEY `data_size_key` (`data_size`),
   KEY `interface_key` (`interface`),    KEY `interface_key` (`interface`),
   KEY `ppp_user_key` (`ppp_user`)    KEY `ppp_user_key` (`ppp_user`),
     KEY `config_id_key` (`config_id`)
 ) TYPE=MyISAM;  ) TYPE=MyISAM;
   
 --  --
Line 400  CREATE TABLE `net_acct_2005_12` (
Line 424  CREATE TABLE `net_acct_2005_12` (
   `data_size` bigint(20) unsigned NOT NULL default '0',    `data_size` bigint(20) unsigned NOT NULL default '0',
   `interface` char(5) default NULL,    `interface` char(5) default NULL,
   `ppp_user` char(12) default NULL,    `ppp_user` char(12) default NULL,
     `config_id` int(11) default NULL,
   PRIMARY KEY  (`id`),    PRIMARY KEY  (`id`),
   KEY `created_key` (`created`),    KEY `created_key` (`created`),
   KEY `ip_proto_key` (`ip_proto`),    KEY `ip_proto_key` (`ip_proto`),
Line 410  CREATE TABLE `net_acct_2005_12` (
Line 435  CREATE TABLE `net_acct_2005_12` (
   KEY `packet_count_key` (`packet_count`),    KEY `packet_count_key` (`packet_count`),
   KEY `data_size_key` (`data_size`),    KEY `data_size_key` (`data_size`),
   KEY `interface_key` (`interface`),    KEY `interface_key` (`interface`),
   KEY `ppp_user_key` (`ppp_user`)    KEY `ppp_user_key` (`ppp_user`),
     KEY `config_id_key` (`config_id`)
   ) TYPE=MyISAM;
   
   --
   -- Table structure for table `net_acct_config`
   --
   
   DROP TABLE IF EXISTS `net_acct_config`;
   CREATE TABLE `net_acct_config` (
     `config_id` int(11) NOT NULL auto_increment,
     `config_order` int(10) unsigned NOT NULL default '0',
     `config_description` text,
     `ip_proto` smallint(5) unsigned NOT NULL default '0',
     `source_ip` varchar(15) default NULL,
     `source_port` smallint(5) unsigned NOT NULL default '0',
     `dest_ip` varchar(15) default NULL,
     `dest_port` smallint(5) unsigned NOT NULL default '0',
     `packet_count` int(10) unsigned NOT NULL default '0',
     `data_size` bigint(20) unsigned NOT NULL default '0',
     `interface` varchar(5) default NULL,
     `ppp_user` varchar(12) default NULL,
     PRIMARY KEY  (`config_id`)
 ) TYPE=MyISAM;  ) TYPE=MyISAM;
   

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top