- `id` bigint NOT NULL auto_increment, # time record id
- `timestamp` timestamp NOT NULL, # modification timestamp
- `user_id` int(11) NOT NULL, # user id
- `date` date NOT NULL, # date the record is for
- `start` time default NULL, # record start time (for example, 09:00)
- `duration` time default NULL, # record duration (for example, 1 hour)
- `client_id` int(11) default NULL, # client id
- `project_id` int(11) default NULL, # project id
- `task_id` int(11) default NULL, # task id
- `invoice_id` int(11) default NULL, # invoice id
- `comment` text, # user provided comment for time record
- `billable` tinyint(4) default '0', # whether the record is billable or not
- `paid` tinyint(4) default '0', # whether the record is paid
- `status` tinyint(4) default '1', # time record status
+ `id` bigint NOT NULL auto_increment, # time record id
+ `timestamp` timestamp default CURRENT_TIMESTAMP, # modification timestamp
+ `user_id` int(11) NOT NULL, # user id
+ `date` date NOT NULL, # date the record is for
+ `start` time default NULL, # record start time (for example, 09:00)
+ `duration` time default NULL, # record duration (for example, 1 hour)
+ `client_id` int(11) default NULL, # client id
+ `project_id` int(11) default NULL, # project id
+ `task_id` int(11) default NULL, # task id
+ `invoice_id` int(11) default NULL, # invoice id
+ `comment` text, # user provided comment for time record
+ `billable` tinyint(4) default 0, # whether the record is billable or not
+ `paid` tinyint(4) default 0, # whether the record is paid
+ `status` tinyint(4) default 1, # time record status