ims_usrloc_pcscf-create.sql 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. INSERT INTO version (table_name, table_version) values ('location','7');
  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_pc` int(11) unsigned DEFAULT NULL,
  27. `port_ps` int(11) unsigned DEFAULT NULL,
  28. `port_uc` int(11) unsigned DEFAULT NULL,
  29. `port_us` int(11) unsigned DEFAULT NULL,
  30. `spi_pc` int(11) unsigned DEFAULT NULL,
  31. `spi_ps` int(11) unsigned DEFAULT NULL,
  32. `spi_uc` int(11) unsigned DEFAULT NULL,
  33. `spi_us` int(11) unsigned DEFAULT NULL,
  34. `t_security_type` int(11) DEFAULT NULL,
  35. `t_port_pc` int(11) unsigned DEFAULT NULL,
  36. `t_port_ps` int(11) unsigned DEFAULT NULL,
  37. `t_port_uc` int(11) unsigned DEFAULT NULL,
  38. `t_port_us` int(11) unsigned DEFAULT NULL,
  39. `t_spi_pc` int(11) unsigned DEFAULT NULL,
  40. `t_spi_ps` int(11) unsigned DEFAULT NULL,
  41. `t_spi_uc` int(11) unsigned DEFAULT NULL,
  42. `t_spi_us` int(11) unsigned DEFAULT NULL,
  43. `t_protocol` char(5) DEFAULT NULL,
  44. `t_mode` char(10) DEFAULT NULL,
  45. `t_ck` varchar(100) DEFAULT NULL,
  46. `t_ik` varchar(100) DEFAULT NULL,
  47. `t_ealg` char(20) DEFAULT NULL,
  48. `t_ialg` char(20) DEFAULT NULL,
  49. PRIMARY KEY (`id`),
  50. KEY `aor` (`aor`)
  51. );