ims_charging-create.sql 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. CREATE TABLE `ro_session` (
  2. `id` INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
  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. `auth_app_id` INT(11) NOT NULL,
  21. `auth_session_type` INT(11) NOT NULL,
  22. `pani` VARCHAR(100) DEFAULT NULL,
  23. `mac` VARCHAR(17) DEFAULT NULL,
  24. `app_provided_party` VARCHAR(100) DEFAULT NULL,
  25. `is_final_allocation` INT(1) UNSIGNED NOT NULL,
  26. `origin_host` VARCHAR(150) DEFAULT NULL
  27. );
  28. CREATE INDEX hash_idx ON ro_session (`hash_entry`, `hash_id`);
  29. INSERT INTO version (table_name, table_version) values ('ro_session','3');