[Freeswitch-svn] [commit] r10509 - freeswitch/trunk/scripts/contrib/intralanman/C/lcr/sql
FreeSWITCH SVN
intralanman at freeswitch.org
Fri Nov 21 14:48:29 PST 2008
Author: intralanman
Date: Fri Nov 21 17:48:28 2008
New Revision: 10509
Log:
schema for mysql 5.0 (should work, i think :-))
Added:
freeswitch/trunk/scripts/contrib/intralanman/C/lcr/sql/mysql-5.0.sql
Added: freeswitch/trunk/scripts/contrib/intralanman/C/lcr/sql/mysql-5.0.sql
==============================================================================
--- (empty file)
+++ freeswitch/trunk/scripts/contrib/intralanman/C/lcr/sql/mysql-5.0.sql Fri Nov 21 17:48:28 2008
@@ -0,0 +1,80 @@
+-- MySQL dump 10.11
+--
+-- Host: lmdt.intralanman.com Database: freeswitch
+-- ------------------------------------------------------
+-- Server version 5.0.51a-17-log
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Table structure for table `lcr`
+--
+
+DROP TABLE IF EXISTS `lcr`;
+CREATE TABLE `lcr` (
+ `digits` varchar(15) default NULL,
+ `rate` float(11,5) unsigned NOT NULL,
+ `carrier_id` int(11) NOT NULL,
+ `lead_strip` int(11) NOT NULL,
+ `trail_strip` int(11) NOT NULL,
+ `prefix` varchar(16) NOT NULL,
+ `suffix` varchar(16) NOT NULL,
+ `lcr_profile` varchar(32) default NULL,
+ `date_start` datetime NOT NULL,
+ `date_end` datetime NOT NULL,
+ `quality` float(10,6) NOT NULL,
+ `reliability` float(10,6) NOT NULL,
+ `id` int(11) NOT NULL auto_increment,
+ PRIMARY KEY (`id`),
+ KEY `carrier_id` (`carrier_id`),
+ KEY `digits` (`digits`),
+ KEY `lcr_profile` (`lcr_profile`),
+ KEY `rate` (`rate`),
+ KEY `digits_profile_cid_rate` USING BTREE (`digits`,`rate`),
+ CONSTRAINT `carrier_id` FOREIGN KEY (`carrier_id`) REFERENCES `carriers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
+) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `carriers`
+--
+
+DROP TABLE IF EXISTS `carriers`;
+CREATE TABLE `carriers` (
+ `id` int(11) NOT NULL auto_increment,
+ `carrier_name` varchar(255) default NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `carrier_gateway`
+--
+
+DROP TABLE IF EXISTS `carrier_gateway`;
+CREATE TABLE `carrier_gateway` (
+ `id` int(11) NOT NULL auto_increment,
+ `carrier_id` int(11) default NULL,
+ `prefix` varchar(255) NOT NULL,
+ `suffix` varchar(255) NOT NULL,
+ PRIMARY KEY (`id`),
+ KEY `carrier_id` (`carrier_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2008-11-21 22:48:11
More information about the Freeswitch-svn
mailing list