mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 07:38:45 +05:00
Adding mediation tables, modified cdrs_primary to include source host of the CDR
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
--
|
||||
-- Table structure for table `cdrs_primary`
|
||||
--
|
||||
DROP TABLE IF EXISTS `cdrs_primary`;
|
||||
CREATE TABLE `cdrs_primary` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`cgrid` char(40) NOT NULL,
|
||||
`accid` varchar(64) NOT NULL,
|
||||
`cdrhost` varchar(64) NOT NULL,
|
||||
`reqtype` varchar(24) NOT NULL,
|
||||
`direction` enum('0','1','2') NOT NULL DEFAULT '1',
|
||||
`tenant` varchar(64) NOT NULL,
|
||||
`tor` varchar(8) NOT NULL,
|
||||
@@ -21,7 +22,6 @@ CREATE TABLE `cdrs_primary` (
|
||||
--
|
||||
-- Table structure for table cdrs_extra
|
||||
--
|
||||
DROP TABLE IF EXISTS `cdrs_extra`;
|
||||
CREATE TABLE `cdrs_extra` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`cgrid` char(40) NOT NULL,
|
||||
|
||||
13
data/storage/mysql/create_mediator_tables.sql
Normal file
13
data/storage/mysql/create_mediator_tables.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
--
|
||||
-- Table structure for table `rater_cdrs`
|
||||
--
|
||||
CREATE TABLE `rated_cdrs` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`cgrid` char(40) NOT NULL,
|
||||
`cost` double(20,4) default NULL,
|
||||
`cgrcostid` int(11) NOT NULL,
|
||||
`cdrsrc` char(64) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `cgrid` (`cgrid`)
|
||||
);
|
||||
Reference in New Issue
Block a user