ims_usrloc_pcscf-create.sql 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. INSERT INTO version (table_name, table_version) values ('location','6');
  2. CREATE TABLE `location` (
  3. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  4. `domain` varchar(64) NOT NULL,
  5. `aor` varchar(255) NOT NULL,
  6. `host` varchar(100) NOT NULL,
  7. `port` int(10) NOT NULL,
  8. `received` varchar(128) DEFAULT NULL,
  9. `received_port` int(10) unsigned DEFAULT NULL,
  10. `received_proto` int(10) unsigned DEFAULT NULL,
  11. `path` varchar(512) DEFAULT NULL,
  12. `rinstance` varchar(255) DEFAULT NULL,
  13. `rx_session_id` varchar(256) DEFAULT NULL,
  14. `reg_state` tinyint(4) DEFAULT NULL,
  15. `expires` datetime DEFAULT '2030-05-28 21:32:15',
  16. `service_routes` varchar(2048) DEFAULT NULL,
  17. `socket` varchar(64) DEFAULT NULL,
  18. `public_ids` varchar(2048) DEFAULT NULL,
  19. `security_type` int(11) DEFAULT NULL,
  20. `protocol` char(5) DEFAULT NULL,
  21. `mode` char(10) DEFAULT NULL,
  22. `ck` varchar(100) DEFAULT NULL,
  23. `ik` varchar(100) DEFAULT NULL,
  24. `ealg` char(20) DEFAULT NULL,
  25. `ialg` char(20) DEFAULT NULL,
  26. `port_uc` int(11) unsigned DEFAULT NULL,
  27. `port_us` int(11) unsigned DEFAULT NULL,
  28. `spi_pc` int(11) unsigned DEFAULT NULL,
  29. `spi_ps` int(11) unsigned DEFAULT NULL,
  30. `spi_uc` int(11) unsigned DEFAULT NULL,
  31. `spi_us` int(11) unsigned DEFAULT NULL,
  32. `t_security_type` int(11) DEFAULT NULL,
  33. `t_port_uc` int(11) unsigned DEFAULT NULL,
  34. `t_port_us` int(11) unsigned DEFAULT NULL,
  35. `t_spi_pc` int(11) unsigned DEFAULT NULL,
  36. `t_spi_ps` int(11) unsigned DEFAULT NULL,
  37. `t_spi_uc` int(11) unsigned DEFAULT NULL,
  38. `t_spi_us` int(11) unsigned DEFAULT NULL,
  39. `t_protocol` char(5) DEFAULT NULL,
  40. `t_mode` char(10) DEFAULT NULL,
  41. `t_ck` varchar(100) DEFAULT NULL,
  42. `t_ik` varchar(100) DEFAULT NULL,
  43. `t_ealg` char(20) DEFAULT NULL,
  44. `t_ialg` char(20) DEFAULT NULL,
  45. PRIMARY KEY (`id`),
  46. KEY `aor` (`aor`)
  47. );