Refactored admin_team_edit.php to use ttAdmin class.
[timetracker.git] / mysql.sql
index 502884d..cc4ffb0 100644 (file)
--- a/mysql.sql
+++ b/mysql.sql
@@ -33,6 +33,12 @@ CREATE TABLE `tt_teams` (
   `workday_minutes` smallint(4) default 480,                 # number of work minutes in a regular working day
   `custom_logo` tinyint(4) default 0,                        # whether to use a custom logo or not
   `config` text default NULL,                                # miscellaneous team configuration settings
+  `created` datetime default NULL,                           # creation timestamp
+  `created_ip` varchar(45) default NULL,                     # creator ip
+  `created_by` int(11) default NULL,                         # creator user_id
+  `modified` datetime default NULL,                          # modification timestamp
+  `modified_ip` varchar(45) default NULL,                    # modifier ip
+  `modified_by` int(11) default NULL,                        # modifier user_id
   `status` tinyint(4) default 1,                             # team status
   PRIMARY KEY (`id`)
 );
@@ -171,7 +177,6 @@ create index task_idx on tt_project_task_binds(task_id);
 #
 CREATE TABLE `tt_log` (
   `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)
@@ -251,6 +256,7 @@ CREATE TABLE `tt_fav_reports` (
   `show_client` tinyint(4) NOT NULL default 0,           # whether to show client column
   `show_invoice` tinyint(4) NOT NULL default 0,          # whether to show invoice column
   `show_paid` tinyint(4) NOT NULL default 0,             # whether to show paid column
+  `show_ip` tinyint(4) NOT NULL default 0,               # whether to show ip column
   `show_project` tinyint(4) NOT NULL default 0,          # whether to show project column
   `show_start` tinyint(4) NOT NULL default 0,            # whether to show start field
   `show_duration` tinyint(4) NOT NULL default 0,         # whether to show duration field
@@ -446,4 +452,4 @@ CREATE TABLE `tt_site_config` (
   PRIMARY KEY  (`param_name`)
 );
 
-INSERT INTO `tt_site_config` (`param_name`, `param_value`, `created`) VALUES ('version_db', '1.17.59', now()); # TODO: change when structure changes.
+INSERT INTO `tt_site_config` (`param_name`, `param_value`, `created`) VALUES ('version_db', '1.17.65', now()); # TODO: change when structure changes.