Browse code

modules/ims_charging: added sql script to create ims_charging tables

Richard Good authored on 03/02/2015 17:18:40
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,24 @@
0
+INSERT INTO version (table_name, table_version) values ('ro_session','6');
1
+CREATE TABLE `ro_session` (
2
+  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
3
+  `hash_entry` int(10) unsigned NOT NULL,
4
+  `hash_id` int(10) unsigned NOT NULL,
5
+  `session_id` varchar(100) NOT NULL,
6
+  `dlg_hash_entry` int(10) unsigned NOT NULL,
7
+  `dlg_hash_id` int(10) unsigned NOT NULL,
8
+  `direction` int(1) unsigned NOT NULL,
9
+  `asserted_identity` varchar(100) NOT NULL,
10
+  `callee` varchar(100) NOT NULL,
11
+  `start_time` datetime DEFAULT NULL,
12
+  `last_event_timestamp` datetime DEFAULT NULL,
13
+  `reserved_secs` int(10) DEFAULT NULL,
14
+  `valid_for` int(10) DEFAULT NULL,
15
+  `state` int(1) DEFAULT NULL,
16
+  `incoming_trunk_id` varchar(20) DEFAULT NULL,
17
+  `outgoing_trunk_id` varchar(20) DEFAULT NULL,
18
+  `rating_group` int(11) DEFAULT NULL,
19
+  `service_identifier` int(11) DEFAULT NULL,
20
+  PRIMARY KEY (`id`),
21
+  KEY `hash_idx` (`hash_entry`,`hash_id`)
22
+);
23
+