root/tracslimtimerplugin/0.10/schema/timetracking.sql

Revision 2203, 2.7 kB (checked in by tst, 2 years ago)

TracSlimTimerPlugin:

Publishing version 0.1.0 minus docs to trac hacks

Line 
1 -- phpMyAdmin SQL Dump
2 -- version 2.9.1
3 -- http://www.phpmyadmin.net
4 --
5 -- Host: localhost
6 -- Generation Time: Apr 26, 2007 at 12:21 PM
7 -- Server version: 5.0.27
8 -- PHP Version: 5.2.0
9 --
10 -- Database: `timetracking`
11 --
12 CREATE DATABASE `timetracking` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
13 USE `timetracking`;
14
15 -- --------------------------------------------------------
16
17 --
18 -- Table structure for table `tasks`
19 --
20
21 CREATE TABLE `tasks` (
22   `task_id` int(10) unsigned NOT NULL auto_increment COMMENT 'The unique key for this task',
23   `src_id` bigint(20) unsigned default NULL COMMENT 'The ID of this task in the source (e.g. SlimTimer)',
24   `name` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'A textual summary of this task',
25   `tags` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'Any tags (metadata) for this task',
26   `owner` varchar(255) collate utf8_unicode_ci NOT NULL COMMENT 'The owner of this task',
27   `created` datetime default NULL COMMENT 'The time when the task was created',
28   `updated` datetime default NULL COMMENT 'The time when this task was last updated',
29   `time_worked` bigint(20) unsigned default NULL COMMENT 'The total time worked on this task in seconds',
30   `time_estimated` bigint(20) unsigned default NULL COMMENT 'Time estimated for this task in seconds',
31   `completed_on` datetime default NULL COMMENT 'The time when this task was completed (NULL if not completed)',
32   PRIMARY KEY  (`task_id`),
33   KEY `src_id` (`src_id`)
34 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Tasks for recording time against';
35
36 -- --------------------------------------------------------
37
38 --
39 -- Table structure for table `times`
40 --
41
42 CREATE TABLE `times` (
43   `time_id` int(10) unsigned NOT NULL auto_increment COMMENT 'The unique key for this time entry',
44   `src_id` bigint(20) unsigned default NULL COMMENT 'The ID of this entry in the source (e.g. SlimTimer)',
45   `user` varchar(255) collate utf8_unicode_ci NOT NULL COMMENT 'Some string identifying the user (e.g. the trac username)',
46   `start_time` datetime default NULL COMMENT 'The start of this time slice',
47   `end_time` datetime default NULL COMMENT 'The end of this time slice',
48   `duration` bigint(20) unsigned default NULL COMMENT 'The duration of this time slice in seconds',
49   `tags` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'Tags (metadata) for this time slice',
50   `comments` text collate utf8_unicode_ci COMMENT 'A comment about this time slice',
51   `task_id` int(10) unsigned default NULL COMMENT 'Link to task',
52   PRIMARY KEY  (`time_id`),
53   KEY `start_time` (`start_time`),
54   KEY `user` (`user`)
55 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Recorded time slices';
Note: See TracBrowser for help on using the browser.