2001-05-31 00:00:51 +02:00
|
|
|
<?php
|
2007-05-22 15:40:35 +02:00
|
|
|
/**
|
2011-04-11 11:29:39 +02:00
|
|
|
* EGroupware - InfoLog - Setup
|
2007-05-22 15:40:35 +02:00
|
|
|
*
|
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
|
|
|
* @package infolog
|
|
|
|
* @subpackage setup
|
2017-10-20 16:31:41 +02:00
|
|
|
* @copyright (c) 2003-17 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
2007-05-22 15:40:35 +02:00
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
*/
|
2001-05-31 00:00:51 +02:00
|
|
|
|
2011-03-08 20:18:07 +01:00
|
|
|
$phpgw_baseline = array(
|
|
|
|
'egw_infolog' => array(
|
|
|
|
'fd' => array(
|
2012-09-21 13:26:43 +02:00
|
|
|
'info_id' => array('type' => 'auto','nullable' => False,'comment' => 'id of the infolog-entry'),
|
|
|
|
'info_type' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => 'task','comment' => 'infolog-type e.g. task, phone, email or note'),
|
|
|
|
'info_from' => array('type' => 'varchar','precision' => '255','comment' => 'text of the primary link'),
|
|
|
|
'info_subject' => array('type' => 'varchar','precision' => '255','comment' => 'title of the infolog-entry'),
|
2016-06-20 14:13:16 +02:00
|
|
|
'info_des' => array('type' => 'longtext','comment' => 'desciption of the infolog-entry'),
|
2013-06-12 18:57:44 +02:00
|
|
|
'info_owner' => array('type' => 'int','meta' => 'account','precision' => '4','nullable' => False,'comment' => 'owner of the entry, can be account or group'),
|
2015-07-11 15:56:50 +02:00
|
|
|
'info_access' => array('type' => 'ascii','precision' => '10','default' => 'public','comment' => 'public or privat'),
|
2013-06-12 18:57:44 +02:00
|
|
|
'info_cat' => array('type' => 'int','meta' => 'category','precision' => '4','nullable' => False,'default' => '0','comment' => 'category id'),
|
|
|
|
'info_datemodified' => array('type' => 'int','meta' => 'timestamp','precision' => '8','nullable' => False,'comment' => 'timestamp of the last mofification'),
|
|
|
|
'info_startdate' => array('type' => 'int','meta' => 'timestamp','precision' => '8','nullable' => False,'default' => '0','comment' => 'timestamp of the startdate'),
|
|
|
|
'info_enddate' => array('type' => 'int','meta' => 'timestamp','precision' => '8','nullable' => False,'default' => '0','comment' => 'timestamp of the enddate'),
|
2012-09-21 13:26:43 +02:00
|
|
|
'info_id_parent' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0','comment' => 'id of the parent infolog'),
|
|
|
|
'info_planned_time' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0','comment' => 'pm-field: planned time'),
|
|
|
|
'info_replanned_time' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0','comment' => 'pm-field: replanned time'),
|
|
|
|
'info_used_time' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0','comment' => 'pm-field: used time'),
|
|
|
|
'info_status' => array('type' => 'varchar','precision' => '40','default' => 'done','comment' => 'status e.g. ongoing, done ...'),
|
2015-07-11 15:56:50 +02:00
|
|
|
'info_confirm' => array('type' => 'ascii','precision' => '10','default' => 'not'),
|
2013-06-12 18:57:44 +02:00
|
|
|
'info_modifier' => array('type' => 'int','meta' => 'user','precision' => '4','nullable' => False,'default' => '0','comment' => 'account id of the last modifier'),
|
2012-09-21 13:26:43 +02:00
|
|
|
'info_link_id' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0','comment' => 'id of the primary link'),
|
|
|
|
'info_priority' => array('type' => 'int','precision' => '2','default' => '1','comment' => '0=Low, 1=Normal, 2=High, 3=Urgent'),
|
|
|
|
'pl_id' => array('type' => 'int','precision' => '4','comment' => 'pm-field: id of the pricelist'),
|
|
|
|
'info_price' => array('type' => 'float','precision' => '8','comment' => 'pm-field: price-field'),
|
2013-06-12 18:57:44 +02:00
|
|
|
'info_percent' => array('type' => 'int','meta' => 'percent','precision' => '2','default' => '0','comment' => 'percentage of completion'),
|
|
|
|
'info_datecompleted' => array('type' => 'int','meta' => 'timestamp','precision' => '8','comment' => 'timestamp of completion'),
|
2012-09-21 13:26:43 +02:00
|
|
|
'info_location' => array('type' => 'varchar','precision' => '255','comment' => 'textfield location'),
|
|
|
|
'info_custom_from' => array('type' => 'int','precision' => '1','comment' => 'tick-box to show infolog_from'),
|
2015-07-11 15:56:50 +02:00
|
|
|
'info_uid' => array('type' => 'ascii','precision' => '128','comment' => 'unique id of the infolog-entry'),
|
|
|
|
'caldav_name' => array('type' => 'ascii','precision' => '128','comment' => 'name part of CalDAV URL, if specified by client'),
|
2011-04-11 11:29:39 +02:00
|
|
|
'info_etag' => array('type' => 'int','precision' => '4','default' => '0','comment' => 'etag, not yet used'),
|
2013-06-12 18:57:44 +02:00
|
|
|
'info_created' => array('type' => 'int','meta' => 'timestamp','precision' => '8','comment' => 'timestamp of the creation date'),
|
|
|
|
'info_creator' => array('type' => 'int','meta' => 'user','precision' => '4','comment' => 'account id of the creator')
|
2002-09-01 20:59:01 +02:00
|
|
|
),
|
2011-03-08 20:18:07 +01:00
|
|
|
'pk' => array('info_id'),
|
|
|
|
'fk' => array(),
|
2016-09-11 13:03:54 +02:00
|
|
|
'ix' => array('caldav_name','info_owner','info_datemodified','info_id_parent'),
|
2011-03-08 20:18:07 +01:00
|
|
|
'uc' => array()
|
|
|
|
),
|
|
|
|
'egw_infolog_extra' => array(
|
|
|
|
'fd' => array(
|
|
|
|
'info_id' => array('type' => 'int','precision' => '4','nullable' => False),
|
2013-06-12 18:57:44 +02:00
|
|
|
'info_extra_name' => array('type' => 'varchar','meta' => 'cfname','precision' => '64','nullable' => False),
|
2015-07-11 15:56:50 +02:00
|
|
|
'info_extra_value' => array('type' => 'varchar','meta' => 'cfvalue','precision' => '16384','nullable' => False)
|
2011-03-08 20:18:07 +01:00
|
|
|
),
|
|
|
|
'pk' => array('info_id','info_extra_name'),
|
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
2016-09-11 13:03:54 +02:00
|
|
|
),
|
|
|
|
'egw_infolog_users' => array(
|
|
|
|
'fd' => array(
|
|
|
|
'info_res_id' => array('type' => 'auto','nullable' => False,'comment' => 'auto id'),
|
|
|
|
'info_id' => array('type' => 'int','precision' => '4','nullable' => False),
|
2017-10-20 16:31:41 +02:00
|
|
|
'account_id' => array('type' => 'ascii','meta' => 'account','precision' => '32','nullable' => False,'comment' => 'account_id or md5 of lowercased email'),
|
2016-09-11 13:03:54 +02:00
|
|
|
'info_res_deleted' => array('type' => 'bool','comment' => 'NULL or true, not false!'),
|
|
|
|
'info_res_modified' => array('type' => 'timestamp','meta' => 'timestamp','default' => 'current_timestamp','comment' => 'last modification time'),
|
|
|
|
'info_res_modifier' => array('type' => 'int','meta' => 'user','precision' => '4','comment' => 'modifying user'),
|
|
|
|
'info_res_status' => array('type' => 'varchar','precision' => '16','default' => 'NEEDS-ACTION','comment' => 'attendee status'),
|
|
|
|
'info_res_attendee' => array('type' => 'varchar','precision' => '255','comment' => 'attendee email or json object with attr. cn, url, ...')
|
|
|
|
),
|
|
|
|
'pk' => array('info_res_id'),
|
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array('account_id'),
|
|
|
|
'uc' => array(array('info_id','account_id'))
|
2011-03-08 20:18:07 +01:00
|
|
|
)
|
|
|
|
);
|