TT#19715 stats.cdr_info table

Change-Id: I17d100f604c865c773fd7c8af865f401bfe5cd09
changes/49/15649/4
Rene Krenn 9 years ago committed by Kirill Solomko
parent 834d7c4a8a
commit 9869885322

@ -0,0 +1,3 @@
USE stats;
DROP TABLE cdr_info;

@ -0,0 +1,28 @@
USE stats;
CREATE TABLE cdr_info (
id int(11) unsigned NOT NULL AUTO_INCREMENT,
peer_in_total int(11) unsigned NOT NULL DEFAULT 0,
peer_in_rated int(11) unsigned NOT NULL DEFAULT 0,
peer_out_total int(11) unsigned NOT NULL DEFAULT 0,
peer_out_rated int(11) unsigned NOT NULL DEFAULT 0,
peer_cost decimal(14,6) DEFAULT 0,
reseller_in_total int(11) unsigned NOT NULL DEFAULT 0,
reseller_in_rated int(11) unsigned NOT NULL DEFAULT 0,
reseller_out_total int(11) unsigned NOT NULL DEFAULT 0,
reseller_out_rated int(11) unsigned NOT NULL DEFAULT 0,
reseller_cost decimal(14,6) DEFAULT 0,
customer_in_total int(11) unsigned NOT NULL DEFAULT 0,
customer_in_rated int(11) unsigned NOT NULL DEFAULT 0,
customer_out_total int(11) unsigned NOT NULL DEFAULT 0,
customer_out_rated int(11) unsigned NOT NULL DEFAULT 0,
customer_cost decimal(14,6) DEFAULT 0,
period datetime NOT NULL,
last_rated_id int(11) unsigned DEFAULT NULL,
PRIMARY KEY (id),
UNIQUE KEY cdr_info_period_idx (period)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Loading…
Cancel
Save