X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mysql.sql;h=c14045c7db64743e9540f5aa64eacbca4cafb945;hb=cabf2460445f26eded09e7d2c9c8cda97e8db593;hp=56c217a3a6d0c964b5d2eeb05c60e689d3703374;hpb=4a23c8efa5cd0af46cef4a602b5897f9b8e14636;p=timetracker.git diff --git a/mysql.sql b/mysql.sql index 56c217a3..c14045c7 100644 --- a/mysql.sql +++ b/mysql.sql @@ -576,6 +576,26 @@ create unique index currency_idx on tt_work_currencies(`name`); INSERT INTO `tt_work_currencies` (`id`, `name`) VALUES ('1', 'USD'), ('2', 'CAD'), ('3', 'AUD'), ('4', 'EUR'), ('5', 'NZD'); +# +# 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); + + # # Structure for table tt_site_config. This table stores configuration data # for Time Tracker site as a whole.