mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Adding some more tables on mysql side
This commit is contained in:
21
data/storage/mysql/create_callcost_tables.sql
Normal file
21
data/storage/mysql/create_callcost_tables.sql
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
--
|
||||
-- Table structure for table `callcosts`
|
||||
--
|
||||
CREATE TABLE `callcosts` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`uuid` varchar(80),
|
||||
`source` varchar(32) NOT NULL,
|
||||
`direction` varchar(32) NOT NULL,
|
||||
`tenant` varchar(64) NOT NULL,
|
||||
`tor` varchar(8) NOT NULL,
|
||||
`account` varchar(64) NOT NULL,
|
||||
`subject` varchar(64) NOT NULL,
|
||||
`destination` varchar(64) NOT NULL,
|
||||
`cost` double(20,4) default NULL,
|
||||
`connect_fee` double(20,4) default NULL,
|
||||
`timespans` text,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `cgrid` (`uuid`)
|
||||
);
|
||||
|
||||
5
data/storage/mysql/create_user.sql
Normal file
5
data/storage/mysql/create_user.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
--
|
||||
-- Sample user creation. Replace here with your own details
|
||||
--
|
||||
GRANT ALL on cgrates.* TO 'cgrates'@'localhost' IDENTIFIED BY 'CGRateS.org';
|
||||
Reference in New Issue
Block a user