X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mysql.sql;h=d6e1d2d321032c47f39ae04ae135ecd75b9b8fde;hb=0e191e482cfe8660d293b6e0791935c945193b01;hp=a450cadb31edc4609685d34fa24f70cb61d46791;hpb=a4314b66a96faca049fe6b383302b58a47d93848;p=timetracker.git diff --git a/mysql.sql b/mysql.sql index a450cadb..d6e1d2d3 100644 --- a/mysql.sql +++ b/mysql.sql @@ -31,7 +31,7 @@ CREATE TABLE `tt_teams` ( `plugins` varchar(255) default NULL, # a list of enabled plugins for team `lock_spec` varchar(255) default NULL, # Cron specification for record locking, # for example: "0 10 * * 1" for "weekly on Mon at 10:00". - `workday_hours` smallint(6) DEFAULT '8', # number of work hours in a regular day + `workday_hours` decimal(5,2) DEFAULT '8.00', # number of work hours in a regular day `custom_logo` tinyint(4) default '0', # whether to use a custom logo or not `status` tinyint(4) default '1', # team status PRIMARY KEY (`id`) @@ -340,6 +340,7 @@ CREATE TABLE `tt_expense_items` ( `name` text NOT NULL, # expense item name (what is an expense for) `cost` decimal(10,2) default '0.00', # item cost (including taxes, etc.) `invoice_id` int(11) default NULL, # invoice id + `paid` tinyint(4) default '0', # whether the item is paid `status` tinyint(4) default '1', # item status PRIMARY KEY (`id`) ); @@ -373,7 +374,7 @@ CREATE TABLE `tt_monthly_quotas` ( `team_id` int(11) NOT NULL, # team id `year` smallint(5) UNSIGNED NOT NULL, # quota year `month` tinyint(3) UNSIGNED NOT NULL, # quota month - `quota` smallint(5) UNSIGNED NOT NULL, # number of work hours in specified month and year + `quota` decimal(5,2) NOT NULL, # number of work hours in specified month and year PRIMARY KEY (`team_id`,`year`,`month`) );