1 -- MySQL dump 10.13 Distrib 5.1.51, for pc-linux-gnu (x86_64)
3 -- Host: localhost Database: webtt2
4 -- ------------------------------------------------------
5 -- Server version 5.1.51
7 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10 /*!40101 SET NAMES utf8 */;
11 /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12 /*!40103 SET TIME_ZONE='+00:00' */;
13 /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14 /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15 /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16 /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
19 -- Table structure for table `comments`
22 DROP TABLE IF EXISTS `comments`;
23 /*!40101 SET @saved_cs_client = @@character_set_client */;
24 /*!40101 SET character_set_client = utf8 */;
25 CREATE TABLE `comments` (
26 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
27 `translation_id` int(10) unsigned DEFAULT NULL,
28 `identifier_id` int(10) unsigned DEFAULT NULL,
29 `user_id` int(10) unsigned DEFAULT NULL,
31 `created` datetime DEFAULT NULL,
32 `modified` datetime DEFAULT NULL,
34 KEY `identifier_id` (`identifier_id`)
35 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
36 /*!40101 SET character_set_client = @saved_cs_client */;
39 -- Table structure for table `file_identifiers`
42 DROP TABLE IF EXISTS `file_identifiers`;
43 /*!40101 SET @saved_cs_client = @@character_set_client */;
44 /*!40101 SET character_set_client = utf8 */;
45 CREATE TABLE `file_identifiers` (
46 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
47 `imported_translation_file_id` int(10) unsigned DEFAULT NULL,
48 `command` varchar(50) DEFAULT NULL,
49 `translation_index` int(10) unsigned DEFAULT NULL,
50 `identifier_id` int(10) unsigned DEFAULT NULL,
52 `reference_string` text,
53 `created` datetime DEFAULT NULL,
54 `modified` datetime DEFAULT NULL,
56 KEY `imported_translation_file_id` (`imported_translation_file_id`)
57 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
58 /*!40101 SET character_set_client = @saved_cs_client */;
61 -- Table structure for table `identifier_columns`
64 DROP TABLE IF EXISTS `identifier_columns`;
65 /*!40101 SET @saved_cs_client = @@character_set_client */;
66 /*!40101 SET character_set_client = utf8 */;
67 CREATE TABLE `identifier_columns` (
68 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
69 `identifier_id` int(10) unsigned DEFAULT NULL,
70 `column_name` varchar(200) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
71 `reference_string` text,
72 `created` datetime DEFAULT NULL,
73 `modified` datetime DEFAULT NULL,
75 KEY `identifier_id` (`identifier_id`)
76 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
77 /*!40101 SET character_set_client = @saved_cs_client */;
80 -- Table structure for table `identifiers`
83 DROP TABLE IF EXISTS `identifiers`;
84 /*!40101 SET @saved_cs_client = @@character_set_client */;
85 /*!40101 SET character_set_client = utf8 */;
86 CREATE TABLE `identifiers` (
87 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
88 `language_id` int(10) unsigned DEFAULT NULL,
89 `translation_file_id` int(10) unsigned DEFAULT NULL,
90 `translation_index` int(10) unsigned DEFAULT NULL,
91 `identifier` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
93 `reference_string` text,
94 `context_description` text,
95 `translated` tinyint(1) DEFAULT '0',
96 `created` datetime DEFAULT NULL,
97 `modified` datetime DEFAULT NULL,
99 KEY `translation_file_id` (`translation_file_id`)
100 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
101 /*!40101 SET character_set_client = @saved_cs_client */;
104 -- Table structure for table `imported_translation_files`
107 DROP TABLE IF EXISTS `imported_translation_files`;
108 /*!40101 SET @saved_cs_client = @@character_set_client */;
109 /*!40101 SET character_set_client = utf8 */;
110 CREATE TABLE `imported_translation_files` (
111 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
112 `language_id` int(10) unsigned DEFAULT NULL,
113 `translation_file_id` int(10) unsigned DEFAULT NULL,
114 `filename` varchar(255) DEFAULT NULL,
115 `merged` tinyint(1) DEFAULT '0',
116 `file_last_modified_date` int(11) DEFAULT NULL,
117 `created` datetime DEFAULT NULL,
118 `modified` datetime DEFAULT NULL,
120 KEY `translation_file_id` (`translation_file_id`)
121 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
122 /*!40101 SET character_set_client = @saved_cs_client */;
125 -- Table structure for table `languages`
128 DROP TABLE IF EXISTS `languages`;
129 /*!40101 SET @saved_cs_client = @@character_set_client */;
130 /*!40101 SET character_set_client = utf8 */;
131 CREATE TABLE `languages` (
132 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
133 `name` varchar(50) DEFAULT NULL,
134 `code` varchar(10) DEFAULT NULL,
135 `created` datetime DEFAULT NULL,
136 `modified` datetime DEFAULT NULL,
138 UNIQUE KEY `code` (`code`)
139 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
140 /*!40101 SET character_set_client = @saved_cs_client */;
143 -- Table structure for table `translation_files`
146 DROP TABLE IF EXISTS `translation_files`;
147 /*!40101 SET @saved_cs_client = @@character_set_client */;
148 /*!40101 SET character_set_client = utf8 */;
149 CREATE TABLE `translation_files` (
150 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
151 `language_id` int(10) unsigned DEFAULT NULL,
152 `filename_template` varchar(255) DEFAULT NULL,
153 `created` datetime DEFAULT NULL,
154 `modified` datetime DEFAULT NULL,
156 KEY `language_id` (`language_id`)
157 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
158 /*!40101 SET character_set_client = @saved_cs_client */;
161 -- Table structure for table `translations`
164 DROP TABLE IF EXISTS `translations`;
165 /*!40101 SET @saved_cs_client = @@character_set_client */;
166 /*!40101 SET character_set_client = utf8 */;
167 CREATE TABLE `translations` (
168 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
169 `parent_id` int(10) unsigned DEFAULT NULL,
170 `identifier_id` int(10) unsigned DEFAULT NULL,
171 `identifier_column_id` int(10) unsigned DEFAULT NULL,
172 `translation_text` text,
173 `user_id` int(10) unsigned DEFAULT NULL,
174 `best` tinyint(1) DEFAULT NULL,
175 `translation_hash` varchar(32) DEFAULT NULL,
176 `created` datetime DEFAULT NULL,
177 `modified` datetime DEFAULT NULL,
180 KEY `identifier_column_id` (`identifier_column_id`)
181 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
182 /*!40101 SET character_set_client = @saved_cs_client */;
185 -- Table structure for table `users`
188 DROP TABLE IF EXISTS `users`;
189 /*!40101 SET @saved_cs_client = @@character_set_client */;
190 /*!40101 SET character_set_client = utf8 */;
191 CREATE TABLE `users` (
192 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
193 `name` varchar(100) DEFAULT NULL,
194 `email` varchar(200) DEFAULT NULL,
195 `activated` tinyint(1) DEFAULT NULL,
196 `username` varchar(40) DEFAULT NULL,
197 `password` varchar(100) DEFAULT NULL,
198 `role` varchar(20) DEFAULT NULL,
199 `confirm_hash` varchar(40) DEFAULT NULL,
200 `last_login` datetime DEFAULT NULL,
201 `created` datetime DEFAULT NULL,
202 `modified` datetime DEFAULT NULL,
204 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
205 /*!40101 SET character_set_client = @saved_cs_client */;
207 LOCK TABLES `users` WRITE;
208 /*!40000 ALTER TABLE `users` DISABLE KEYS */;
210 INSERT INTO `users` VALUES (1,'Admin','',1,'admin','9ff60bfc5939c7863518e202cba4dff81da316be','admin',NULL,NULL,NULL,NULL);
212 /*!40000 ALTER TABLE `users` ENABLE KEYS */;
216 -- Table structure for table `votes`
219 DROP TABLE IF EXISTS `votes`;
220 /*!40101 SET @saved_cs_client = @@character_set_client */;
221 /*!40101 SET character_set_client = utf8 */;
222 CREATE TABLE `votes` (
223 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
224 `translation_id` int(10) unsigned DEFAULT NULL,
225 `user_id` int(10) unsigned DEFAULT NULL,
226 `created` datetime DEFAULT NULL,
227 `modified` datetime DEFAULT NULL,
229 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
230 /*!40101 SET character_set_client = @saved_cs_client */;
231 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
233 /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
234 /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
235 /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
236 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
237 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
238 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
239 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;