2001-05-25 05:28:42 +02:00
< ? php
2008-06-07 19:45:33 +02:00
/**
2013-06-12 18:57:44 +02:00
* EGroupware - Calendar setup
2008-06-07 19:45:33 +02:00
*
* @ link http :// www . egroupware . org
* @ package calendar
* @ author Ralf Becker < RalfBecker - AT - outdoor - training . de >
* @ license http :// opensource . org / licenses / gpl - license . php GPL - GNU General Public License
* @ version $Id $
*/
2001-05-25 05:28:42 +02:00
2008-06-07 19:45:33 +02:00
$phpgw_baseline = array (
'egw_cal' => array (
'fd' => array (
2012-09-21 15:13:48 +02:00
'cal_id' => array ( 'type' => 'auto' , 'nullable' => False , 'comment' => 'calendar id' ),
2018-12-04 10:48:59 +01:00
'cal_uid' => array ( 'type' => 'ascii' , 'precision' => '255' , 'nullable' => False , 'comment' => 'unique id of event(-series)' ),
2013-06-12 18:57:44 +02:00
'cal_owner' => array ( 'type' => 'int' , 'meta' => 'user' , 'precision' => '4' , 'nullable' => False , 'comment' => 'event owner / calendar' ),
2015-07-11 15:56:50 +02:00
'cal_category' => array ( 'type' => 'ascii' , 'meta' => 'category' , 'precision' => '64' , 'comment' => 'category id(s)' ),
2013-06-12 18:57:44 +02:00
'cal_modified' => array ( 'type' => 'int' , 'meta' => 'timestamp' , 'precision' => '8' , 'comment' => 'ts of last modification' ),
2012-09-21 15:13:48 +02:00
'cal_priority' => array ( 'type' => 'int' , 'precision' => '2' , 'nullable' => False , 'default' => '2' , 'comment' => 'priority: 1=Low, 2=Normal, 3=High' ),
2009-07-23 18:14:22 +02:00
'cal_public' => array ( 'type' => 'int' , 'precision' => '2' , 'nullable' => False , 'default' => '1' , 'comment' => '1=public, 0=private event' ),
2012-09-21 15:13:48 +02:00
'cal_title' => array ( 'type' => 'varchar' , 'precision' => '255' , 'nullable' => False , 'comment' => 'title of event' ),
'cal_description' => array ( 'type' => 'varchar' , 'precision' => '16384' , 'comment' => 'description' ),
'cal_location' => array ( 'type' => 'varchar' , 'precision' => '255' , 'comment' => 'location' ),
2009-07-23 18:14:22 +02:00
'cal_reference' => array ( 'type' => 'int' , 'precision' => '4' , 'nullable' => False , 'default' => '0' , 'comment' => 'cal_id of series for exception' ),
2013-06-12 18:57:44 +02:00
'cal_modifier' => array ( 'type' => 'int' , 'meta' => 'user' , 'precision' => '4' , 'comment' => 'user who last modified event' ),
2009-07-23 18:14:22 +02:00
'cal_non_blocking' => array ( 'type' => 'int' , 'precision' => '2' , 'default' => '0' , 'comment' => '1 for non-blocking events' ),
2008-06-07 19:45:33 +02:00
'cal_special' => array ( 'type' => 'int' , 'precision' => '2' , 'default' => '0' ),
2009-07-23 18:14:22 +02:00
'cal_etag' => array ( 'type' => 'int' , 'precision' => '4' , 'default' => '0' , 'comment' => 'etag for optimistic locking' ),
2013-06-12 18:57:44 +02:00
'cal_creator' => array ( 'type' => 'int' , 'meta' => 'user' , 'precision' => '4' , 'nullable' => False , 'comment' => 'creating user' ),
'cal_created' => array ( 'type' => 'int' , 'meta' => 'timestamp' , 'precision' => '8' , 'nullable' => False , 'comment' => 'creation time of event' ),
'cal_recurrence' => array ( 'type' => 'int' , 'meta' => 'timestamp' , 'precision' => '8' , 'nullable' => False , 'default' => '0' , 'comment' => 'cal_start of original recurrence for exception' ),
2010-04-22 18:09:36 +02:00
'tz_id' => array ( 'type' => 'int' , 'precision' => '4' , 'comment' => 'key into egw_cal_timezones' ),
2018-12-04 10:48:59 +01:00
'cal_deleted' => array ( 'type' => 'int' , 'meta' => 'timestamp' , 'precision' => '8' , 'comment' => 'ts when event was deleted' ),
'caldav_name' => array ( 'type' => 'ascii' , 'precision' => '260' , 'comment' => 'name part of CalDAV URL, if specified by client' ),
2013-06-12 18:57:44 +02:00
'range_start' => array ( 'type' => 'int' , 'meta' => 'timestamp' , 'precision' => '8' , 'nullable' => False , 'comment' => 'startdate (of range)' ),
'range_end' => array ( 'type' => 'int' , 'meta' => 'timestamp' , 'precision' => '8' , 'comment' => 'enddate (of range, UNTIL of RRULE)' )
2008-06-07 19:45:33 +02:00
),
'pk' => array ( 'cal_id' ),
'fk' => array (),
2013-02-25 13:05:36 +01:00
'ix' => array ( 'cal_uid' , 'cal_owner' , 'cal_modified' , 'cal_reference' , 'cal_deleted' , 'caldav_name' ),
2008-06-07 19:45:33 +02:00
'uc' => array ()
),
'egw_cal_repeats' => array (
'fd' => array (
'cal_id' => array ( 'type' => 'int' , 'precision' => '4' , 'nullable' => False ),
'recur_type' => array ( 'type' => 'int' , 'precision' => '2' , 'nullable' => False ),
'recur_interval' => array ( 'type' => 'int' , 'precision' => '2' , 'default' => '1' ),
2012-08-12 11:49:54 +02:00
'recur_data' => array ( 'type' => 'int' , 'precision' => '2' , 'default' => '1' )
2001-05-25 05:28:42 +02:00
),
2008-06-07 19:45:33 +02:00
'pk' => array ( 'cal_id' ),
'fk' => array (),
'ix' => array (),
'uc' => array ()
),
'egw_cal_user' => array (
'fd' => array (
'cal_id' => array ( 'type' => 'int' , 'precision' => '4' , 'nullable' => False ),
2015-07-11 15:56:50 +02:00
'cal_recur_date' => array ( 'type' => 'int' , 'meta' => 'timestamp' , 'precision' => '8' , 'nullable' => False , 'default' => '0' ),
'cal_user_type' => array ( 'type' => 'ascii' , 'precision' => '1' , 'nullable' => False , 'default' => 'u' , 'comment' => 'u=user, g=group, c=contact, r=resource, e=email' ),
2015-08-17 16:07:25 +02:00
'cal_user_id' => array ( 'type' => 'ascii' , 'meta' => array ( " cal_user_type='u' " => 'account' ), 'precision' => '32' , 'nullable' => False , 'comment' => 'id or md5(email-address) for type=e' ),
2015-07-11 15:56:50 +02:00
'cal_status' => array ( 'type' => 'ascii' , 'precision' => '1' , 'default' => 'A' , 'comment' => 'U=unknown, A=accepted, R=rejected, T=tentative' ),
2009-11-04 16:00:08 +01:00
'cal_quantity' => array ( 'type' => 'int' , 'precision' => '4' , 'default' => '1' , 'comment' => 'only for certain types (eg. resources)' ),
2015-07-11 15:56:50 +02:00
'cal_role' => array ( 'type' => 'ascii' , 'precision' => '64' , 'default' => 'REQ-PARTICIPANT' , 'comment' => 'CHAIR, REQ-PARTICIPANT, OPT-PARTICIPANT, NON-PARTICIPANT, X-CAT-$cat_id' ),
'cal_user_modified' => array ( 'type' => 'timestamp' , 'default' => 'current_timestamp' , 'comment' => 'automatic timestamp of last update' ),
2015-08-17 16:07:25 +02:00
'cal_user_auto' => array ( 'type' => 'auto' , 'nullable' => False ),
'cal_user_attendee' => array ( 'type' => 'varchar' , 'precision' => '255' , 'comment' => 'email or json object with attr. cn, url, ...' )
2001-05-25 05:28:42 +02:00
),
2015-07-11 15:56:50 +02:00
'pk' => array ( 'cal_user_auto' ),
2008-06-07 19:45:33 +02:00
'fk' => array (),
2012-01-04 22:42:46 +01:00
'ix' => array ( 'cal_user_modified' , array ( 'cal_user_type' , 'cal_user_id' )),
2015-07-11 15:56:50 +02:00
'uc' => array ( array ( 'cal_id' , 'cal_recur_date' , 'cal_user_type' , 'cal_user_id' ))
2008-06-07 19:45:33 +02:00
),
'egw_cal_extra' => array (
'fd' => array (
'cal_id' => array ( 'type' => 'int' , 'precision' => '4' , 'nullable' => False ),
2024-03-26 11:40:51 +01:00
'cal_extra_name' => array ( 'type' => 'varchar' , 'meta' => 'cfname' , 'precision' => '64' , 'nullable' => False ),
2016-05-06 14:40:10 +02:00
'cal_extra_value' => array ( 'type' => 'varchar' , 'meta' => 'cfvalue' , 'precision' => '16384' , 'nullable' => False , 'default' => '' )
2001-09-04 05:17:49 +02:00
),
2008-06-07 19:45:33 +02:00
'pk' => array ( 'cal_id' , 'cal_extra_name' ),
'fk' => array (),
'ix' => array (),
'uc' => array ()
),
'egw_cal_dates' => array (
'fd' => array (
'cal_id' => array ( 'type' => 'int' , 'precision' => '4' , 'nullable' => False ),
2013-06-12 18:57:44 +02:00
'cal_start' => array ( 'type' => 'int' , 'meta' => 'timestamp' , 'precision' => '8' , 'nullable' => False , 'comment' => 'starttime in server time' ),
'cal_end' => array ( 'type' => 'int' , 'meta' => 'timestamp' , 'precision' => '8' , 'nullable' => False , 'comment' => 'endtime in server time' ),
2012-08-11 12:01:02 +02:00
'recur_exception' => array ( 'type' => 'bool' , 'nullable' => False , 'default' => '' , 'comment' => 'date is an exception' )
2005-11-09 00:15:14 +01:00
),
2008-06-07 19:45:33 +02:00
'pk' => array ( 'cal_id' , 'cal_start' ),
'fk' => array (),
2012-08-11 12:01:02 +02:00
'ix' => array ( array ( 'recur_exception' , 'cal_id' )),
2008-06-07 19:45:33 +02:00
'uc' => array ()
2009-10-31 15:47:16 +01:00
),
'egw_cal_timezones' => array (
'fd' => array (
'tz_id' => array ( 'type' => 'auto' , 'nullable' => False ),
2015-07-11 15:56:50 +02:00
'tz_tzid' => array ( 'type' => 'ascii' , 'precision' => '128' , 'nullable' => False ),
2009-10-31 15:47:16 +01:00
'tz_alias' => array ( 'type' => 'int' , 'precision' => '4' , 'comment' => 'tz_id for data' ),
'tz_latitude' => array ( 'type' => 'int' , 'precision' => '4' ),
'tz_longitude' => array ( 'type' => 'int' , 'precision' => '4' ),
2015-07-11 15:56:50 +02:00
'tz_component' => array ( 'type' => 'ascii' , 'precision' => '8192' , 'comment' => 'iCal VTIMEZONE component' )
2009-10-31 15:47:16 +01:00
),
'pk' => array ( 'tz_id' ),
'fk' => array (),
'ix' => array ( 'tz_alias' ),
'uc' => array ( 'tz_tzid' )
2008-06-07 19:45:33 +02:00
)
);