billing improvements from codekiller.

git-svn-id: http://www.observium.org/svn/observer/trunk@2715 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-11-05 14:55:08 +00:00
parent f3de72be89
commit f7eb392298
9 changed files with 508 additions and 147 deletions

View File

@@ -1163,3 +1163,31 @@ CREATE TABLE IF NOT EXISTS `vrfs` (
PRIMARY KEY (`vrf_id`),
KEY `device_id` (`device_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Tabel structuur voor tabel `bill_history`
--
CREATE TABLE IF NOT EXISTS `bill_history` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`bill_id` int(11) NOT NULL,
`bill_datefrom` datetime NOT NULL,
`bill_dateto` datetime NOT NULL,
`bill_type` text NOT NULL,
`bill_allowed` int(11) NOT NULL,
`bill_used` int(11) NOT NULL,
`bill_overuse` int(11) NOT NULL,
`bill_percent` DECIMAL(5,2) NOT NULL,
`rate_95th_in` int(11) NOT NULL,
`rate_95th_out` int(11) NOT NULL,
`rate_95th` int(11) NOT NULL,
`dir_95th` varchar(3) NOT NULL,
`traf_in` int(11) NOT NULL,
`traf_out` int(11) NOT NULL,
`traf_total` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `bill_id` (`bill_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;