From 82280cb2e109ed2b5b4e1afe6a097ae4ada2bd21 Mon Sep 17 00:00:00 2001 From: Jenkins User Date: Mon, 4 Jun 2012 09:37:10 +0000 Subject: [PATCH] db-schema dump: snapshot Mon Jun 04 11:37:11 +0200 2012 --- schema/dump.db | 207 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 200 insertions(+), 7 deletions(-) diff --git a/schema/dump.db b/schema/dump.db index e8e9c3a7..ab520c24 100644 --- a/schema/dump.db +++ b/schema/dump.db @@ -1437,6 +1437,40 @@ CREATE TABLE `acc_trash` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Table structure for table `active_watchers` +-- + +DROP TABLE IF EXISTS `active_watchers`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `active_watchers` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `presentity_uri` varchar(128) NOT NULL, + `watcher_username` varchar(64) NOT NULL, + `watcher_domain` varchar(64) NOT NULL, + `to_user` varchar(64) NOT NULL, + `to_domain` varchar(64) NOT NULL, + `event` varchar(64) NOT NULL DEFAULT 'presence', + `event_id` varchar(64) DEFAULT NULL, + `to_tag` varchar(64) NOT NULL, + `from_tag` varchar(64) NOT NULL, + `callid` varchar(128) NOT NULL, + `local_cseq` int(11) NOT NULL, + `remote_cseq` int(11) NOT NULL, + `contact` varchar(128) NOT NULL, + `record_route` text, + `expires` int(11) NOT NULL, + `status` int(11) NOT NULL DEFAULT '2', + `reason` varchar(64) NOT NULL, + `version` int(11) NOT NULL DEFAULT '0', + `socket_info` varchar(64) NOT NULL, + `local_contact` varchar(128) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `active_watchers_idx` (`presentity_uri`,`callid`,`to_tag`,`from_tag`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + -- -- Table structure for table `address` -- @@ -1775,6 +1809,116 @@ CREATE TABLE `peer_preferences` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Table structure for table `presentity` +-- + +DROP TABLE IF EXISTS `presentity`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `presentity` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `username` varchar(64) NOT NULL, + `domain` varchar(64) NOT NULL, + `event` varchar(64) NOT NULL, + `etag` varchar(64) NOT NULL, + `expires` int(11) NOT NULL, + `received_time` int(11) NOT NULL, + `body` blob NOT NULL, + `sender` varchar(128) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `presentity_idx` (`username`,`domain`,`event`,`etag`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `pua` +-- + +DROP TABLE IF EXISTS `pua`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `pua` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `pres_uri` varchar(128) NOT NULL, + `pres_id` varchar(64) NOT NULL, + `event` int(11) NOT NULL, + `expires` int(11) NOT NULL, + `desired_expires` int(11) NOT NULL, + `flag` int(11) NOT NULL, + `etag` varchar(64) NOT NULL, + `tuple_id` varchar(64) DEFAULT NULL, + `watcher_uri` varchar(128) NOT NULL, + `call_id` varchar(128) NOT NULL, + `to_tag` varchar(64) NOT NULL, + `from_tag` varchar(64) NOT NULL, + `cseq` int(11) NOT NULL, + `record_route` text, + `contact` varchar(128) NOT NULL, + `remote_contact` varchar(128) NOT NULL, + `version` int(11) NOT NULL, + `extra_headers` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `rls_presentity` +-- + +DROP TABLE IF EXISTS `rls_presentity`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `rls_presentity` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `rlsubs_did` varchar(255) NOT NULL, + `resource_uri` varchar(128) NOT NULL, + `content_type` varchar(64) NOT NULL, + `presence_state` blob NOT NULL, + `expires` int(11) NOT NULL, + `updated` int(11) NOT NULL, + `auth_state` int(11) NOT NULL, + `reason` varchar(64) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `rls_presentity_idx` (`rlsubs_did`,`resource_uri`), + KEY `updated_idx` (`updated`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `rls_watchers` +-- + +DROP TABLE IF EXISTS `rls_watchers`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `rls_watchers` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `presentity_uri` varchar(128) NOT NULL, + `to_user` varchar(64) NOT NULL, + `to_domain` varchar(64) NOT NULL, + `watcher_username` varchar(64) NOT NULL, + `watcher_domain` varchar(64) NOT NULL, + `event` varchar(64) NOT NULL DEFAULT 'presence', + `event_id` varchar(64) DEFAULT NULL, + `to_tag` varchar(64) NOT NULL, + `from_tag` varchar(64) NOT NULL, + `callid` varchar(64) NOT NULL, + `local_cseq` int(11) NOT NULL, + `remote_cseq` int(11) NOT NULL, + `contact` varchar(64) NOT NULL, + `record_route` text, + `expires` int(11) NOT NULL, + `status` int(11) NOT NULL DEFAULT '2', + `reason` varchar(64) NOT NULL, + `version` int(11) NOT NULL DEFAULT '0', + `socket_info` varchar(64) NOT NULL, + `local_contact` varchar(128) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `rls_watcher_idx` (`presentity_uri`,`callid`,`to_tag`,`from_tag`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + -- -- Table structure for table `sems_registrations` -- @@ -1959,6 +2103,50 @@ CREATE TABLE `voicemail_users` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Table structure for table `watchers` +-- + +DROP TABLE IF EXISTS `watchers`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `watchers` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `presentity_uri` varchar(128) NOT NULL, + `watcher_username` varchar(64) NOT NULL, + `watcher_domain` varchar(64) NOT NULL, + `event` varchar(64) NOT NULL DEFAULT 'presence', + `status` int(11) NOT NULL, + `reason` varchar(64) DEFAULT NULL, + `inserted_time` int(11) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `watcher_idx` (`presentity_uri`,`watcher_username`,`watcher_domain`,`event`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `xcap` +-- + +DROP TABLE IF EXISTS `xcap`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `xcap` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `username` varchar(64) NOT NULL, + `domain` varchar(64) NOT NULL, + `doc` blob NOT NULL, + `doc_type` int(11) NOT NULL, + `etag` varchar(64) NOT NULL, + `source` int(11) NOT NULL, + `doc_uri` varchar(128) NOT NULL, + `port` int(11) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `account_doc_type_idx` (`username`,`domain`,`doc_type`,`doc_uri`), + KEY `source_idx` (`source`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + -- -- Current Database: `ngcp` -- @@ -1983,7 +2171,7 @@ CREATE TABLE `cfg_schema` ( `applied_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `rev_idx` (`revision`,`node`) -) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8; +) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -2000,7 +2188,7 @@ CREATE TABLE `db_schema` ( `applied_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `rev_idx` (`revision`,`node`) -) ENGINE=InnoDB AUTO_INCREMENT=105 DEFAULT CHARSET=utf8; +) ENGINE=InnoDB AUTO_INCREMENT=106 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -3282,12 +3470,17 @@ DROP TABLE IF EXISTS `voip_preferences_enum`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `voip_preferences_enum` ( - `preference_id` int(11) unsigned NOT NULL DEFAULT '0', + `id` int(11) NOT NULL AUTO_INCREMENT, + `preference_id` int(11) unsigned DEFAULT NULL, `label` varchar(128) DEFAULT NULL, - `value` varchar(128) NOT NULL DEFAULT '', - PRIMARY KEY (`preference_id`,`value`), + `value` varchar(128) DEFAULT NULL, + `usr_pref` tinyint(1) DEFAULT '0', + `dom_pref` tinyint(1) DEFAULT '0', + `peer_pref` tinyint(1) DEFAULT '0', + PRIMARY KEY (`id`), + KEY `preference_id` (`preference_id`), CONSTRAINT `voip_preferences_enum_ibfk_1` FOREIGN KEY (`preference_id`) REFERENCES `voip_preferences` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -5380,4 +5573,4 @@ CREATE TABLE `se9` ( /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2012-05-31 16:10:31 +-- Dump completed on 2012-06-04 11:36:47