+#
+# Structure for table tt_work_categories.
+# This table keeps work categories supported by remote work plugin.
+#
+CREATE TABLE `tt_work_categories` (
+ `id` int(10) unsigned NOT NULL, # Category id.
+ `parents` text default NULL, # Comma-separated list of parent ids associated with this category.
+ `name` varchar(64) NOT NULL, # English category name.
+ `name_localized` text default NULL, # Comma-separated list of localized category names in other languages.
+ # Example: es:Codificación,ru:Кодирование.
+ PRIMARY KEY (`id`)
+);
+
+# Insert some default categories. Table content to be updated at run time, though.
+INSERT INTO `tt_work_categories` (`id`, `parents`, `name`, `name_localized`) VALUES ('1', NULL, 'Coding', 'es:Codificación,ru:Кодирование');
+INSERT INTO `tt_work_categories` (`id`, `parents`, `name`, `name_localized`) VALUES ('2', NULL, 'Other', 'es:Otra,ru:Другое');
+INSERT INTO `tt_work_categories` (`id`, `parents`, `name`, `name_localized`) VALUES ('3', '1', 'PHP', NULL);
+INSERT INTO `tt_work_categories` (`id`, `parents`, `name`, `name_localized`) VALUES ('4', '1', 'C/C++', NULL);
+
+