Files
cgrates/data/storage/mysql/create_mediator_tables.sql

17 lines
413 B
SQL

--
-- Table structure for table `rated_cdrs`
--
DROP TABLE IF EXISTS `rated_cdrs`;
CREATE TABLE `rated_cdrs` (
`tbid` int(11) NOT NULL AUTO_INCREMENT,
`cgrid` char(40) NOT NULL,
`runid` varchar(64) NOT NULL,
`subject` varchar(64) NOT NULL,
`cost` DECIMAL(20,4) DEFAULT NULL,
`mediation_time` datetime NOT NULL,
`extra_info` text,
PRIMARY KEY (`tbid`),
UNIQUE KEY `costid` (`cgrid`,`runid`)
);