You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
db-schema/db_scripts/diff/15357.up

29 lines
1.0 KiB

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;