2005-12-19 05:23:14 +01:00
|
|
|
<?php
|
2006-08-26 18:32:29 +02:00
|
|
|
/**
|
|
|
|
* TimeSheet - setup current tables
|
|
|
|
*
|
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
|
|
|
* @package timesheet
|
|
|
|
* @subpackage setup
|
2014-02-25 10:34:10 +01:00
|
|
|
* @copyright (c) 2005-14 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
2006-08-26 18:32:29 +02:00
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
2009-03-23 10:53:03 +01:00
|
|
|
* @version $Id$
|
2006-08-26 18:32:29 +02:00
|
|
|
*/
|
2005-12-19 05:23:14 +01:00
|
|
|
|
2009-03-23 10:53:03 +01:00
|
|
|
$phpgw_baseline = array(
|
|
|
|
'egw_timesheet' => array(
|
|
|
|
'fd' => array(
|
2012-09-21 13:57:35 +02:00
|
|
|
'ts_id' => array('type' => 'auto','nullable' => False,'comment' => 'id of the timesheet entry'),
|
2014-02-25 10:34:10 +01:00
|
|
|
'ts_project' => array('type' => 'varchar','precision' => '255','comment' => 'project title'),
|
|
|
|
'ts_title' => array('type' => 'varchar','precision' => '255','nullable' => False,'comment' => 'title of the timesheet entry'),
|
|
|
|
'ts_description' => array('type' => 'varchar','precision' => '16384','comment' => 'description of the timesheet entry'),
|
2013-06-12 18:57:44 +02:00
|
|
|
'ts_start' => array('type' => 'int','meta' => 'timestamp','precision' => '8','nullable' => False,'comment' => 'timestamp of the startdate'),
|
2012-09-21 13:57:35 +02:00
|
|
|
'ts_duration' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0','comment' => 'duration of the timesheet-entry'),
|
|
|
|
'ts_quantity' => array('type' => 'float','precision' => '8','nullable' => False,'comment' => 'quantity'),
|
|
|
|
'ts_unitprice' => array('type' => 'float','precision' => '4','comment' => 'unitprice'),
|
2013-06-12 18:57:44 +02:00
|
|
|
'cat_id' => array('type' => 'int','meta' => 'category','precision' => '4','default' => '0','comment' => 'category'),
|
|
|
|
'ts_owner' => array('type' => 'int','meta' => 'user','precision' => '4','nullable' => False,'comment' => 'owner of the timesheet'),
|
|
|
|
'ts_modified' => array('type' => 'int','meta' => 'timestamp','precision' => '8','nullable' => False,'comment' => 'date modified ot the timesheet'),
|
|
|
|
'ts_modifier' => array('type' => 'int','meta' => 'user','precision' => '4','nullable' => False,'comment' => 'account id of the last modifier'),
|
2012-09-21 13:57:35 +02:00
|
|
|
'pl_id' => array('type' => 'int','precision' => '4','default' => '0','comment' => 'id of the linked project'),
|
2017-01-18 12:46:39 +01:00
|
|
|
'ts_status' => array('type' => 'int','precision' => '4','comment' => 'status of the timesheet-entry'),
|
|
|
|
'ts_created' => array('type' => 'int','meta' => 'timestamp','precision' => '8','nullable' => False,'comment' => 'Creation date of the timesheet')
|
2007-03-08 12:25:09 +01:00
|
|
|
),
|
2009-03-23 10:53:03 +01:00
|
|
|
'pk' => array('ts_id'),
|
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array('ts_project','ts_owner','ts_status'),
|
|
|
|
'uc' => array()
|
|
|
|
),
|
|
|
|
'egw_timesheet_extra' => array(
|
|
|
|
'fd' => array(
|
|
|
|
'ts_id' => array('type' => 'int','precision' => '4','nullable' => False),
|
2017-01-18 12:46:39 +01:00
|
|
|
'ts_extra_name' => array('type' => 'varchar','meta' => 'cfname','precision' => '64','nullable' => False),
|
|
|
|
'ts_extra_value' => array('type' => 'varchar','meta' => 'cfvalue','precision' => '16384','nullable' => False,'default' => '')
|
2009-03-23 10:53:03 +01:00
|
|
|
),
|
|
|
|
'pk' => array('ts_id','ts_extra_name'),
|
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
|
|
|
)
|
|
|
|
);
|