ims_charging-create.sql 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. INSERT INTO version (table_name, table_version) values ('ro_session','3');
  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. `auth_app_id` int(11) NOT NULL,
  22. `auth_session_type` int(11) NOT NULL,
  23. `pani` varchar(100) DEFAULT NULL,
  24. `mac` varchar(17) DEFAULT NULL,
  25. `app_provided_party` varchar(100) DEFAULT NULL,
  26. `is_final_allocation` int(1) unsigned NOT NULL,
  27. `origin_host` varchar(150) DEFAULT NULL,
  28. PRIMARY KEY (`id`),
  29. KEY `hash_idx` (`hash_entry`,`hash_id`)
  30. );