easyroute_mysql.sql 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. -- MySQL dump 10.10
  2. --
  3. -- Host: localhost Database: easyroute
  4. -- ------------------------------------------------------
  5. -- Server version 5.0.26-log
  6. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  7. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  8. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  9. /*!40101 SET NAMES utf8 */;
  10. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  11. /*!40103 SET TIME_ZONE='+00:00' */;
  12. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  13. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  14. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  15. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  16. --
  17. -- Table structure for table `gateways`
  18. --
  19. DROP TABLE IF EXISTS `gateways`;
  20. CREATE TABLE `gateways` (
  21. `gateway_id` int(10) unsigned NOT NULL auto_increment,
  22. `gateway_ip` varchar(16) NOT NULL,
  23. `group` varchar(15) NOT NULL,
  24. `limit` int(10) unsigned NOT NULL,
  25. `techprofile` varchar(128) NOT NULL,
  26. PRIMARY KEY (`gateway_id`),
  27. KEY `gateway_ip` (`gateway_ip`,`group`)
  28. ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='Gateways Table';
  29. --
  30. -- Dumping data for table `gateways`
  31. --
  32. LOCK TABLES `gateways` WRITE;
  33. /*!40000 ALTER TABLE `gateways` DISABLE KEYS */;
  34. INSERT INTO `gateways` VALUES (1,'192.168.99.1','mustang',50,'sofia/default');
  35. /*!40000 ALTER TABLE `gateways` ENABLE KEYS */;
  36. UNLOCK TABLES;
  37. --
  38. -- Table structure for table `numbers`
  39. --
  40. DROP TABLE IF EXISTS `numbers`;
  41. CREATE TABLE `numbers` (
  42. `number_id` int(10) unsigned NOT NULL auto_increment,
  43. `gateway_id` int(10) unsigned NOT NULL,
  44. `number` varchar(16) NOT NULL,
  45. `acctcode` varchar(16) NOT NULL,
  46. `translated` varchar(16) NOT NULL,
  47. PRIMARY KEY (`number_id`),
  48. UNIQUE KEY `number` (`number`),
  49. KEY `gateway_id` (`gateway_id`)
  50. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Numbers Table';
  51. --
  52. -- Dumping data for table `numbers`
  53. --
  54. LOCK TABLES `numbers` WRITE;
  55. /*!40000 ALTER TABLE `numbers` DISABLE KEYS */;
  56. INSERT INTO `numbers` VALUES (1,1,'19018577141','999999', '9018577141'),(2,1,'19995551212','666666', '9995551212');
  57. /*!40000 ALTER TABLE `numbers` ENABLE KEYS */;
  58. UNLOCK TABLES;
  59. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  60. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  61. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  62. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  63. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  64. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  65. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  66. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  67. -- Dump completed on 2008-02-28 21:41:43