ims_charging_create.sql 920 B

123456789101112131415161718192021222324
  1. INSERT INTO version (table_name, table_version) values ('ro_session','6');
  2. CREATE TABLE `ro_session` (
  3. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  4. `hash_entry` int(10) unsigned NOT NULL,
  5. `hash_id` int(10) unsigned NOT NULL,
  6. `session_id` varchar(100) NOT NULL,
  7. `dlg_hash_entry` int(10) unsigned NOT NULL,
  8. `dlg_hash_id` int(10) unsigned NOT NULL,
  9. `direction` int(1) unsigned NOT NULL,
  10. `asserted_identity` varchar(100) NOT NULL,
  11. `callee` varchar(100) NOT NULL,
  12. `start_time` datetime DEFAULT NULL,
  13. `last_event_timestamp` datetime DEFAULT NULL,
  14. `reserved_secs` int(10) DEFAULT NULL,
  15. `valid_for` int(10) DEFAULT NULL,
  16. `state` int(1) DEFAULT NULL,
  17. `incoming_trunk_id` varchar(20) DEFAULT NULL,
  18. `outgoing_trunk_id` varchar(20) DEFAULT NULL,
  19. `rating_group` int(11) DEFAULT NULL,
  20. `service_identifier` int(11) DEFAULT NULL,
  21. PRIMARY KEY (`id`),
  22. KEY `hash_idx` (`hash_entry`,`hash_id`)
  23. );