-- -- Table structure for table `cost_details` -- DROP TABLE IF EXISTS `cost_details`; CREATE TABLE `cost_details` ( `tbid` int(11) NOT NULL AUTO_INCREMENT, `cgrid` char(40) NOT NULL, `accid` varchar(64) NOT NULL, `direction` varchar(8) NOT NULL, `tenant` varchar(128) NOT NULL, `tor` varchar(32) NOT NULL, `account` varchar(128) NOT NULL, `subject` varchar(128) NOT NULL, `destination` varchar(128) NOT NULL, `cost` DECIMAL(20,4) NOT NULL, `timespans` text, `source` varchar(64) NOT NULL, `runid` varchar(64) NOT NULL, `cost_time` datetime NOT NULL, PRIMARY KEY (`tbid`), UNIQUE KEY `costid` (`cgrid`,`runid`) );