From ef6b1cc9f8d25a338b3b896573fb470fb59dff67 Mon Sep 17 00:00:00 2001 From: DanB Date: Tue, 28 May 2013 16:29:33 +0200 Subject: [PATCH] Adding some more tables on mysql side --- data/storage/mysql/create_callcost_tables.sql | 21 +++++++++++++++++++ data/storage/mysql/create_user.sql | 5 +++++ 2 files changed, 26 insertions(+) create mode 100644 data/storage/mysql/create_callcost_tables.sql create mode 100644 data/storage/mysql/create_user.sql diff --git a/data/storage/mysql/create_callcost_tables.sql b/data/storage/mysql/create_callcost_tables.sql new file mode 100644 index 000000000..ff4aeea7d --- /dev/null +++ b/data/storage/mysql/create_callcost_tables.sql @@ -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`) +); + diff --git a/data/storage/mysql/create_user.sql b/data/storage/mysql/create_user.sql new file mode 100644 index 000000000..149a38db1 --- /dev/null +++ b/data/storage/mysql/create_user.sql @@ -0,0 +1,5 @@ + +-- +-- Sample user creation. Replace here with your own details +-- +GRANT ALL on cgrates.* TO 'cgrates'@'localhost' IDENTIFIED BY 'CGRateS.org';