2000-12-19 23:40:54 +01:00
|
|
|
<?php
|
2003-08-28 16:31:11 +02:00
|
|
|
/**************************************************************************\
|
2004-08-09 14:40:51 +02:00
|
|
|
* eGroupWare *
|
|
|
|
* http://www.egroupware.org *
|
2003-08-28 16:31:11 +02:00
|
|
|
* -------------------------------------------- *
|
|
|
|
* This program is free software; you can redistribute it and/or modify it *
|
|
|
|
* under the terms of the GNU General Public License as published by the *
|
|
|
|
* Free Software Foundation; either version 2 of the License, or (at your *
|
|
|
|
* option) any later version. *
|
|
|
|
\**************************************************************************/
|
2000-12-19 23:40:54 +01:00
|
|
|
|
2003-08-28 16:31:11 +02:00
|
|
|
// $Id$
|
|
|
|
// $Source$
|
2000-12-19 23:40:54 +01:00
|
|
|
|
2001-05-18 20:01:15 +02:00
|
|
|
$phpgw_baseline = array(
|
2005-11-02 12:45:52 +01:00
|
|
|
'egw_config' => array(
|
2001-05-18 20:01:15 +02:00
|
|
|
'fd' => array(
|
2004-06-27 12:02:57 +02:00
|
|
|
'config_app' => array('type' => 'varchar','precision' => '50','nullable' => False),
|
2003-08-28 16:31:11 +02:00
|
|
|
'config_name' => array('type' => 'varchar','precision' => '255','nullable' => False),
|
|
|
|
'config_value' => array('type' => 'text')
|
2001-05-18 20:01:15 +02:00
|
|
|
),
|
2004-06-27 12:02:57 +02:00
|
|
|
'pk' => array('config_app','config_name'),
|
2001-05-18 20:01:15 +02:00
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
2004-06-27 12:02:57 +02:00
|
|
|
'uc' => array()
|
2001-05-18 20:01:15 +02:00
|
|
|
),
|
2005-11-02 12:45:52 +01:00
|
|
|
'egw_applications' => array(
|
2001-05-18 20:01:15 +02:00
|
|
|
'fd' => array(
|
2003-08-28 16:31:11 +02:00
|
|
|
'app_id' => array('type' => 'auto','precision' => '4','nullable' => False),
|
|
|
|
'app_name' => array('type' => 'varchar','precision' => '25','nullable' => False),
|
|
|
|
'app_enabled' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'app_order' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'app_tables' => array('type' => 'text','nullable' => False),
|
|
|
|
'app_version' => array('type' => 'varchar','precision' => '20','nullable' => False,'default' => '0.0')
|
2001-05-18 20:01:15 +02:00
|
|
|
),
|
2001-10-17 05:43:56 +02:00
|
|
|
'pk' => array('app_id'),
|
2001-05-18 20:01:15 +02:00
|
|
|
'fk' => array(),
|
2004-06-27 12:02:57 +02:00
|
|
|
'ix' => array(array('app_enabled','app_order')),
|
2001-05-18 20:01:15 +02:00
|
|
|
'uc' => array('app_name')
|
|
|
|
),
|
2005-11-02 12:45:52 +01:00
|
|
|
'egw_acl' => array(
|
2001-05-18 20:01:15 +02:00
|
|
|
'fd' => array(
|
2004-06-27 12:02:57 +02:00
|
|
|
'acl_appname' => array('type' => 'varchar','precision' => '50','nullable' => False),
|
|
|
|
'acl_location' => array('type' => 'varchar','precision' => '255','nullable' => False),
|
|
|
|
'acl_account' => array('type' => 'int','precision' => '4','nullable' => False),
|
2003-08-28 16:31:11 +02:00
|
|
|
'acl_rights' => array('type' => 'int','precision' => '4')
|
2001-05-18 20:01:15 +02:00
|
|
|
),
|
2004-06-27 12:02:57 +02:00
|
|
|
'pk' => array('acl_appname','acl_location','acl_account'),
|
2001-05-18 20:01:15 +02:00
|
|
|
'fk' => array(),
|
2004-06-27 12:02:57 +02:00
|
|
|
'ix' => array('acl_account',array('acl_location','acl_account'),array('acl_appname','acl_account')),
|
2001-05-18 20:01:15 +02:00
|
|
|
'uc' => array()
|
|
|
|
),
|
2005-11-02 12:45:52 +01:00
|
|
|
'egw_accounts' => array(
|
2001-05-18 20:01:15 +02:00
|
|
|
'fd' => array(
|
2004-06-27 12:02:57 +02:00
|
|
|
'account_id' => array('type' => 'auto','nullable' => False),
|
2004-02-02 23:52:06 +01:00
|
|
|
'account_lid' => array('type' => 'varchar','precision' => '25','nullable' => False),
|
2004-01-16 14:44:05 +01:00
|
|
|
'account_pwd' => array('type' => 'varchar','precision' => '100','nullable' => False),
|
2003-09-25 03:33:59 +02:00
|
|
|
'account_firstname' => array('type' => 'varchar','precision' => '50'),
|
|
|
|
'account_lastname' => array('type' => 'varchar','precision' => '50'),
|
|
|
|
'account_lastlogin' => array('type' => 'int','precision' => '4'),
|
|
|
|
'account_lastloginfrom' => array('type' => 'varchar','precision' => '255'),
|
|
|
|
'account_lastpwd_change' => array('type' => 'int','precision' => '4'),
|
2003-08-28 16:31:11 +02:00
|
|
|
'account_status' => array('type' => 'char','precision' => '1','nullable' => False,'default' => 'A'),
|
2003-09-25 03:33:59 +02:00
|
|
|
'account_expires' => array('type' => 'int','precision' => '4'),
|
|
|
|
'account_type' => array('type' => 'char','precision' => '1'),
|
|
|
|
'person_id' => array('type' => 'int','precision' => '4'),
|
2004-07-04 19:27:42 +02:00
|
|
|
'account_primary_group' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'),
|
|
|
|
'account_email' => array('type' => 'varchar','precision' => '100')
|
2001-05-18 20:01:15 +02:00
|
|
|
),
|
|
|
|
'pk' => array('account_id'),
|
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array('account_lid')
|
|
|
|
),
|
2005-11-13 08:49:56 +01:00
|
|
|
'egw_preferences' => array(
|
2001-05-18 20:01:15 +02:00
|
|
|
'fd' => array(
|
2003-05-01 11:19:50 +02:00
|
|
|
'preference_owner' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'preference_app' => array('type' => 'varchar','precision' => '25','nullable' => False),
|
|
|
|
'preference_value' => array('type' => 'text','nullable' => False)
|
2001-05-18 20:01:15 +02:00
|
|
|
),
|
2003-05-01 11:19:50 +02:00
|
|
|
'pk' => array('preference_owner','preference_app'),
|
2001-05-18 20:01:15 +02:00
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
|
|
|
),
|
2005-11-13 10:16:31 +01:00
|
|
|
'egw_sessions' => array(
|
2001-05-18 20:01:15 +02:00
|
|
|
'fd' => array(
|
2004-06-27 12:02:57 +02:00
|
|
|
'session_id' => array('type' => 'varchar','precision' => '128','nullable' => False),
|
|
|
|
'session_lid' => array('type' => 'varchar','precision' => '128'),
|
2005-10-01 11:12:46 +02:00
|
|
|
'session_ip' => array('type' => 'varchar','precision' => '40'),
|
2005-11-13 10:16:31 +01:00
|
|
|
'session_logintime' => array('type' => 'int','precision' => '8'),
|
|
|
|
'session_dla' => array('type' => 'int','precision' => '8'),
|
2003-08-28 16:31:11 +02:00
|
|
|
'session_action' => array('type' => 'varchar','precision' => '255'),
|
|
|
|
'session_flags' => array('type' => 'char','precision' => '2')
|
2001-05-18 20:01:15 +02:00
|
|
|
),
|
2005-11-13 10:16:31 +01:00
|
|
|
'pk' => array('session_id'),
|
2001-05-18 20:01:15 +02:00
|
|
|
'fk' => array(),
|
2004-06-27 12:02:57 +02:00
|
|
|
'ix' => array(array('session_flags','session_dla')),
|
2005-11-13 10:16:31 +01:00
|
|
|
'uc' => array()
|
2001-05-18 20:01:15 +02:00
|
|
|
),
|
2005-11-13 10:16:31 +01:00
|
|
|
'egw_app_sessions' => array(
|
2001-05-18 20:01:15 +02:00
|
|
|
'fd' => array(
|
2004-06-27 12:02:57 +02:00
|
|
|
'sessionid' => array('type' => 'varchar','precision' => '128','nullable' => False),
|
|
|
|
'loginid' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'app' => array('type' => 'varchar','precision' => '25','nullable' => False),
|
|
|
|
'location' => array('type' => 'varchar','precision' => '128','nullable' => False),
|
2003-10-04 16:06:15 +02:00
|
|
|
'content' => array('type' => 'longtext'),
|
2005-11-13 10:16:31 +01:00
|
|
|
'session_dla' => array('type' => 'int','precision' => '8')
|
2001-05-18 20:01:15 +02:00
|
|
|
),
|
2004-06-27 12:02:57 +02:00
|
|
|
'pk' => array('sessionid','loginid','app','location'),
|
2001-05-18 20:01:15 +02:00
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
|
|
|
),
|
2005-11-13 10:47:05 +01:00
|
|
|
'egw_access_log' => array(
|
2001-05-18 20:01:15 +02:00
|
|
|
'fd' => array(
|
2003-05-18 21:18:58 +02:00
|
|
|
'sessionid' => array('type' => 'char','precision' => '32','nullable' => False),
|
2005-10-01 11:12:46 +02:00
|
|
|
'loginid' => array('type' => 'varchar','precision' => '64','nullable' => False),
|
|
|
|
'ip' => array('type' => 'varchar','precision' => '40','nullable' => False),
|
2003-05-18 21:18:58 +02:00
|
|
|
'li' => array('type' => 'int','precision' => '4','nullable' => False),
|
2005-10-01 11:12:46 +02:00
|
|
|
'lo' => array('type' => 'int','precision' => '4','default' => '0'),
|
2003-05-18 21:18:58 +02:00
|
|
|
'account_id' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0')
|
2001-05-18 20:01:15 +02:00
|
|
|
),
|
|
|
|
'pk' => array(),
|
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
|
|
|
),
|
2005-11-13 07:58:38 +01:00
|
|
|
'egw_hooks' => array(
|
2001-05-18 20:01:15 +02:00
|
|
|
'fd' => array(
|
2003-08-28 16:31:11 +02:00
|
|
|
'hook_id' => array('type' => 'auto','nullable' => False),
|
|
|
|
'hook_appname' => array('type' => 'varchar','precision' => '255'),
|
|
|
|
'hook_location' => array('type' => 'varchar','precision' => '255'),
|
|
|
|
'hook_filename' => array('type' => 'varchar','precision' => '255')
|
2001-05-18 20:01:15 +02:00
|
|
|
),
|
|
|
|
'pk' => array('hook_id'),
|
|
|
|
'ix' => array(),
|
|
|
|
'fk' => array(),
|
|
|
|
'uc' => array()
|
|
|
|
),
|
2005-11-04 19:35:09 +01:00
|
|
|
'egw_languages' => array(
|
2001-05-18 20:01:15 +02:00
|
|
|
'fd' => array(
|
2003-11-28 00:57:31 +01:00
|
|
|
'lang_id' => array('type' => 'varchar','precision' => '5','nullable' => False),
|
2004-07-10 12:59:37 +02:00
|
|
|
'lang_name' => array('type' => 'varchar','precision' => '50','nullable' => False)
|
2001-05-18 20:01:15 +02:00
|
|
|
),
|
|
|
|
'pk' => array('lang_id'),
|
|
|
|
'fk' => array(),
|
2004-07-10 12:59:37 +02:00
|
|
|
'ix' => array(),
|
2001-05-18 20:01:15 +02:00
|
|
|
'uc' => array()
|
|
|
|
),
|
2005-11-04 19:35:09 +01:00
|
|
|
'egw_lang' => array(
|
2001-05-18 20:01:15 +02:00
|
|
|
'fd' => array(
|
2003-08-28 16:31:11 +02:00
|
|
|
'lang' => array('type' => 'varchar','precision' => '5','nullable' => False,'default' => ''),
|
2005-11-04 19:35:09 +01:00
|
|
|
'app_name' => array('type' => 'varchar','precision' => '32','nullable' => False,'default' => 'common'),
|
|
|
|
'message_id' => array('type' => 'varchar','precision' => '128','nullable' => False,'default' => ''),
|
2001-05-18 20:01:15 +02:00
|
|
|
'content' => array('type' => 'text')
|
|
|
|
),
|
2004-06-27 12:02:57 +02:00
|
|
|
'pk' => array('lang','app_name','message_id'),
|
2001-05-18 20:01:15 +02:00
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
|
|
|
),
|
2005-11-13 11:13:16 +01:00
|
|
|
'egw_nextid' => array(
|
2001-05-18 20:01:15 +02:00
|
|
|
'fd' => array(
|
2003-08-28 16:31:11 +02:00
|
|
|
'id' => array('type' => 'int','precision' => '4','nullable' => True),
|
|
|
|
'appname' => array('type' => 'varchar','precision' => '25','nullable' => False)
|
2001-05-18 20:01:15 +02:00
|
|
|
),
|
2005-11-13 11:13:16 +01:00
|
|
|
'pk' => array('appname'),
|
2001-05-18 20:01:15 +02:00
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
2005-11-13 11:13:16 +01:00
|
|
|
'uc' => array()
|
2001-05-18 20:01:15 +02:00
|
|
|
),
|
2005-11-05 23:58:51 +01:00
|
|
|
'egw_categories' => array(
|
2001-05-18 20:01:15 +02:00
|
|
|
'fd' => array(
|
2003-08-28 16:31:11 +02:00
|
|
|
'cat_id' => array('type' => 'auto','precision' => '4','nullable' => False),
|
2004-01-25 07:15:02 +01:00
|
|
|
'cat_main' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'),
|
|
|
|
'cat_parent' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'),
|
|
|
|
'cat_level' => array('type' => 'int','precision' => '2','nullable' => False,'default' => '0'),
|
|
|
|
'cat_owner' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'),
|
2003-08-28 16:31:11 +02:00
|
|
|
'cat_access' => array('type' => 'varchar','precision' => '7'),
|
|
|
|
'cat_appname' => array('type' => 'varchar','precision' => '50','nullable' => False),
|
|
|
|
'cat_name' => array('type' => 'varchar','precision' => '150','nullable' => False),
|
|
|
|
'cat_description' => array('type' => 'varchar','precision' => '255','nullable' => False),
|
2003-05-02 01:22:57 +02:00
|
|
|
'cat_data' => array('type' => 'text'),
|
2004-01-25 07:15:02 +01:00
|
|
|
'last_mod' => array('type' => 'int','precision' => '8','nullable' => False)
|
2001-05-18 20:01:15 +02:00
|
|
|
),
|
|
|
|
'pk' => array('cat_id'),
|
|
|
|
'fk' => array(),
|
2004-06-27 12:02:57 +02:00
|
|
|
'ix' => array(array('cat_appname','cat_owner','cat_parent','cat_level')),
|
2001-05-18 20:01:15 +02:00
|
|
|
'uc' => array()
|
2001-07-05 09:38:52 +02:00
|
|
|
),
|
2005-11-13 13:05:35 +01:00
|
|
|
'egw_addressbook' => array(
|
2001-07-05 09:38:52 +02:00
|
|
|
'fd' => array(
|
|
|
|
'id' => array('type' => 'auto','nullable' => False),
|
2004-01-25 07:15:02 +01:00
|
|
|
'lid' => array('type' => 'varchar','precision' => '32'),
|
|
|
|
'tid' => array('type' => 'char','precision' => '1'),
|
|
|
|
'owner' => array('type' => 'int','precision' => '8'),
|
|
|
|
'access' => array('type' => 'varchar','precision' => '7'),
|
|
|
|
'cat_id' => array('type' => 'varchar','precision' => '32'),
|
|
|
|
'fn' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'n_family' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'n_given' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'n_middle' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'n_prefix' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'n_suffix' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'sound' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'bday' => array('type' => 'varchar','precision' => '32'),
|
|
|
|
'note' => array('type' => 'text'),
|
|
|
|
'tz' => array('type' => 'varchar','precision' => '8'),
|
|
|
|
'geo' => array('type' => 'varchar','precision' => '32'),
|
|
|
|
'url' => array('type' => 'varchar','precision' => '128'),
|
|
|
|
'pubkey' => array('type' => 'text'),
|
|
|
|
'org_name' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'org_unit' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'title' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'adr_one_street' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'adr_one_locality' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'adr_one_region' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'adr_one_postalcode' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'adr_one_countryname' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'adr_one_type' => array('type' => 'varchar','precision' => '32'),
|
|
|
|
'label' => array('type' => 'text'),
|
|
|
|
'adr_two_street' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'adr_two_locality' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'adr_two_region' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'adr_two_postalcode' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'adr_two_countryname' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'adr_two_type' => array('type' => 'varchar','precision' => '32'),
|
2003-08-28 16:31:11 +02:00
|
|
|
'tel_work' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
|
|
|
|
'tel_home' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
|
|
|
|
'tel_voice' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
|
|
|
|
'tel_fax' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
|
|
|
|
'tel_msg' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
|
|
|
|
'tel_cell' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
|
|
|
|
'tel_pager' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
|
|
|
|
'tel_bbs' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
|
|
|
|
'tel_modem' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
|
|
|
|
'tel_car' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
|
|
|
|
'tel_isdn' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
|
|
|
|
'tel_video' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => '+1 (000) 000-0000'),
|
2004-01-25 07:15:02 +01:00
|
|
|
'tel_prefer' => array('type' => 'varchar','precision' => '32'),
|
|
|
|
'email' => array('type' => 'varchar','precision' => '64'),
|
2004-06-27 12:02:57 +02:00
|
|
|
'email_type' => array('type' => 'varchar','precision' => '32','default' => 'INTERNET'),
|
2004-01-25 07:15:02 +01:00
|
|
|
'email_home' => array('type' => 'varchar','precision' => '64'),
|
2004-06-27 12:02:57 +02:00
|
|
|
'email_home_type' => array('type' => 'varchar','precision' => '32','default' => 'INTERNET'),
|
2004-01-25 07:15:02 +01:00
|
|
|
'last_mod' => array('type' => 'int','precision' => '8','nullable' => False)
|
2001-07-05 09:38:52 +02:00
|
|
|
),
|
|
|
|
'pk' => array('id'),
|
|
|
|
'fk' => array(),
|
2006-03-14 14:34:43 +01:00
|
|
|
'ix' => array(array('tid','owner','access','n_family','n_given'),array('tid','cat_id','owner','access','n_family')),
|
2001-07-05 09:38:52 +02:00
|
|
|
'uc' => array()
|
|
|
|
),
|
2005-11-13 13:05:35 +01:00
|
|
|
'egw_addressbook_extra' => array(
|
2001-07-05 09:38:52 +02:00
|
|
|
'fd' => array(
|
2004-06-27 12:02:57 +02:00
|
|
|
'contact_id' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'contact_owner' => array('type' => 'int','precision' => '8'),
|
|
|
|
'contact_name' => array('type' => 'varchar','precision' => '255','nullable' => False),
|
|
|
|
'contact_value' => array('type' => 'text')
|
2001-07-05 09:38:52 +02:00
|
|
|
),
|
2004-06-27 12:02:57 +02:00
|
|
|
'pk' => array('contact_id','contact_name'),
|
2001-07-05 09:38:52 +02:00
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
2001-08-05 08:48:42 +02:00
|
|
|
),
|
2005-11-02 12:45:52 +01:00
|
|
|
'egw_log' => array(
|
2001-08-05 08:48:42 +02:00
|
|
|
'fd' => array(
|
2003-08-28 16:31:11 +02:00
|
|
|
'log_id' => array('type' => 'auto','precision' => '4','nullable' => False),
|
|
|
|
'log_date' => array('type' => 'timestamp','nullable' => False),
|
|
|
|
'log_user' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'log_app' => array('type' => 'varchar','precision' => '50','nullable' => False),
|
|
|
|
'log_severity' => array('type' => 'char','precision' => '1','nullable' => False)
|
2001-09-28 21:48:28 +02:00
|
|
|
),
|
2001-08-05 08:48:42 +02:00
|
|
|
'pk' => array('log_id'),
|
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
|
|
|
),
|
2005-11-02 12:45:52 +01:00
|
|
|
'egw_log_msg' => array(
|
2001-08-05 08:48:42 +02:00
|
|
|
'fd' => array(
|
2003-08-28 16:31:11 +02:00
|
|
|
'log_msg_log_id' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'log_msg_seq_no' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'log_msg_date' => array('type' => 'timestamp','nullable' => False),
|
|
|
|
'log_msg_tx_fid' => array('type' => 'varchar','precision' => '4','nullable' => True),
|
|
|
|
'log_msg_tx_id' => array('type' => 'varchar','precision' => '4','nullable' => True),
|
|
|
|
'log_msg_severity' => array('type' => 'char','precision' => '1','nullable' => False),
|
|
|
|
'log_msg_code' => array('type' => 'varchar','precision' => '30','nullable' => False),
|
|
|
|
'log_msg_msg' => array('type' => 'text','nullable' => False),
|
|
|
|
'log_msg_parms' => array('type' => 'text','nullable' => False),
|
|
|
|
'log_msg_file' => array('type' => 'varchar','precision' => '255','nullable' => False),
|
|
|
|
'log_msg_line' => array('type' => 'int','precision' => '4','nullable' => False)
|
2001-09-28 21:48:28 +02:00
|
|
|
),
|
2003-08-28 16:31:11 +02:00
|
|
|
'pk' => array('log_msg_log_id','log_msg_seq_no'),
|
2001-08-05 08:48:42 +02:00
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
2001-08-13 19:09:03 +02:00
|
|
|
),
|
2005-11-13 12:55:07 +01:00
|
|
|
'egw_interserv' => array(
|
2001-08-13 19:09:03 +02:00
|
|
|
'fd' => array(
|
2003-08-28 16:31:11 +02:00
|
|
|
'server_id' => array('type' => 'auto','nullable' => False),
|
|
|
|
'server_name' => array('type' => 'varchar','precision' => '64','nullable' => True),
|
|
|
|
'server_host' => array('type' => 'varchar','precision' => '255','nullable' => True),
|
|
|
|
'server_url' => array('type' => 'varchar','precision' => '255','nullable' => True),
|
|
|
|
'trust_level' => array('type' => 'int','precision' => '4'),
|
|
|
|
'trust_rel' => array('type' => 'int','precision' => '4'),
|
|
|
|
'username' => array('type' => 'varchar','precision' => '64','nullable' => True),
|
|
|
|
'password' => array('type' => 'varchar','precision' => '255','nullable' => True),
|
|
|
|
'admin_name' => array('type' => 'varchar','precision' => '255','nullable' => True),
|
|
|
|
'admin_email' => array('type' => 'varchar','precision' => '255','nullable' => True),
|
|
|
|
'server_mode' => array('type' => 'varchar','precision' => '16','nullable' => False,'default' => 'xmlrpc'),
|
|
|
|
'server_security' => array('type' => 'varchar','precision' => '16','nullable' => True)
|
2001-08-13 19:09:03 +02:00
|
|
|
),
|
|
|
|
'pk' => array('server_id'),
|
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
2001-09-28 21:48:28 +02:00
|
|
|
),
|
2005-02-26 14:58:53 +01:00
|
|
|
'egw_vfs' => array(
|
2001-09-28 21:48:28 +02:00
|
|
|
'fd' => array(
|
2005-02-26 14:58:53 +01:00
|
|
|
'vfs_file_id' => array('type' => 'auto','nullable' => False),
|
|
|
|
'vfs_owner_id' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'vfs_createdby_id' => array('type' => 'int','precision' => '4'),
|
|
|
|
'vfs_modifiedby_id' => array('type' => 'int','precision' => '4'),
|
|
|
|
'vfs_created' => array('type' => 'date','nullable' => False,'default' => '1970-01-01'),
|
|
|
|
'vfs_modified' => array('type' => 'date'),
|
|
|
|
'vfs_size' => array('type' => 'int','precision' => '4'),
|
|
|
|
'vfs_mime_type' => array('type' => 'varchar','precision' => '64'),
|
|
|
|
'vfs_deleteable' => array('type' => 'char','precision' => '1','default' => 'Y'),
|
|
|
|
'vfs_comment' => array('type' => 'varchar','precision' => '255'),
|
|
|
|
'vfs_app' => array('type' => 'varchar','precision' => '25'),
|
2006-01-06 06:05:20 +01:00
|
|
|
'vfs_directory' => array('type' => 'varchar','precision' => '233'),
|
|
|
|
'vfs_name' => array('type' => 'varchar','precision' => '100','nullable' => False),
|
2005-02-26 14:58:53 +01:00
|
|
|
'vfs_link_directory' => array('type' => 'varchar','precision' => '255'),
|
|
|
|
'vfs_link_name' => array('type' => 'varchar','precision' => '128'),
|
|
|
|
'vfs_version' => array('type' => 'varchar','precision' => '30','nullable' => False,'default' => '0.0.0.0'),
|
|
|
|
'vfs_content' => array('type' => 'text')
|
2001-09-28 21:48:28 +02:00
|
|
|
),
|
2005-02-26 14:58:53 +01:00
|
|
|
'pk' => array('vfs_file_id'),
|
2001-09-28 21:48:28 +02:00
|
|
|
'fk' => array(),
|
2005-11-04 19:35:09 +01:00
|
|
|
'ix' => array(array('vfs_directory','vfs_name')),
|
2001-09-28 21:48:28 +02:00
|
|
|
'uc' => array()
|
2001-10-06 04:35:37 +02:00
|
|
|
),
|
2005-11-13 11:52:08 +01:00
|
|
|
'egw_history_log' => array(
|
2001-10-06 04:35:37 +02:00
|
|
|
'fd' => array(
|
2003-08-28 16:31:11 +02:00
|
|
|
'history_id' => array('type' => 'auto','precision' => '4','nullable' => False),
|
|
|
|
'history_record_id' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'history_appname' => array('type' => 'varchar','precision' => '64','nullable' => False),
|
|
|
|
'history_owner' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'history_status' => array('type' => 'char','precision' => '2','nullable' => False),
|
|
|
|
'history_new_value' => array('type' => 'text','nullable' => False),
|
|
|
|
'history_timestamp' => array('type' => 'timestamp','nullable' => False,'default' => 'current_timestamp'),
|
|
|
|
'history_old_value' => array('type' => 'text','nullable' => False)
|
2001-10-06 04:35:37 +02:00
|
|
|
),
|
|
|
|
'pk' => array('history_id'),
|
|
|
|
'fk' => array(),
|
2004-06-27 12:02:57 +02:00
|
|
|
'ix' => array(array('history_appname','history_record_id','history_status','history_timestamp')),
|
2001-10-06 04:35:37 +02:00
|
|
|
'uc' => array()
|
2003-04-28 01:18:37 +02:00
|
|
|
),
|
2005-05-23 20:57:58 +02:00
|
|
|
'egw_async' => array(
|
2003-04-28 01:18:37 +02:00
|
|
|
'fd' => array(
|
2004-07-23 02:46:01 +02:00
|
|
|
'async_id' => array('type' => 'varchar','precision' => '255','nullable' => False),
|
|
|
|
'async_next' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'async_times' => array('type' => 'varchar','precision' => '255','nullable' => False),
|
|
|
|
'async_method' => array('type' => 'varchar','precision' => '80','nullable' => False),
|
|
|
|
'async_data' => array('type' => 'text','nullable' => False),
|
|
|
|
'async_account_id' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0')
|
2003-04-28 01:18:37 +02:00
|
|
|
),
|
2004-07-23 02:46:01 +02:00
|
|
|
'pk' => array('async_id'),
|
2003-04-28 01:18:37 +02:00
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
2005-02-28 00:30:55 +01:00
|
|
|
),
|
|
|
|
'egw_api_content_history' => array(
|
|
|
|
'fd' => array(
|
2005-03-30 09:36:17 +02:00
|
|
|
'sync_appname' => array('type' => 'varchar','precision' => '60','nullable' => False),
|
2005-02-28 00:30:55 +01:00
|
|
|
'sync_contentid' => array('type' => 'varchar','precision' => '60','nullable' => False),
|
2005-03-30 09:36:17 +02:00
|
|
|
'sync_added' => array('type' => 'timestamp'),
|
|
|
|
'sync_modified' => array('type' => 'timestamp'),
|
|
|
|
'sync_deleted' => array('type' => 'timestamp'),
|
|
|
|
'sync_id' => array('type' => 'auto','nullable' => False),
|
|
|
|
'sync_guid' => array('type' => 'varchar','precision' => '120','nullable' => False),
|
|
|
|
'sync_changedby' => array('type' => 'int','precision' => '4','nullable' => False)
|
2005-02-28 00:30:55 +01:00
|
|
|
),
|
|
|
|
'pk' => array('sync_id'),
|
|
|
|
'fk' => array(),
|
2005-03-30 09:36:17 +02:00
|
|
|
'ix' => array('sync_added','sync_modified','sync_deleted','sync_guid','sync_changedby',array('sync_appname','sync_contentid')),
|
2005-02-28 00:30:55 +01:00
|
|
|
'uc' => array()
|
2005-05-17 16:51:08 +02:00
|
|
|
),
|
|
|
|
'phpgw_vfs2_mimetypes' => array(
|
|
|
|
'fd' => array(
|
|
|
|
'mime_id' => array('type' => 'auto','nullable' => False),
|
2005-10-01 11:12:46 +02:00
|
|
|
'extension' => array('type' => 'varchar','precision' => '10','nullable' => False),
|
|
|
|
'mime' => array('type' => 'varchar','precision' => '50','nullable' => False),
|
|
|
|
'mime_magic' => array('type' => 'varchar','precision' => '255','nullable' => True),
|
|
|
|
'friendly' => array('type' => 'varchar','precision' => '50','nullable' => False),
|
2005-05-17 16:51:08 +02:00
|
|
|
'image' => array('type' => 'blob'),
|
2005-10-01 11:12:46 +02:00
|
|
|
'proper_id' => array('type' => 'varchar','precision' => '4')
|
2005-05-17 16:51:08 +02:00
|
|
|
),
|
|
|
|
'pk' => array('mime_id'),
|
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
|
|
|
),
|
|
|
|
'phpgw_vfs2_files' => array(
|
|
|
|
'fd' => array(
|
|
|
|
'file_id' => array('type' => 'auto','nullable' => False),
|
2005-10-01 11:12:46 +02:00
|
|
|
'mime_id' => array('type' => 'int','precision' => '4'),
|
|
|
|
'owner_id' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'createdby_id' => array('type' => 'int','precision' => '4'),
|
|
|
|
'modifiedby_id' => array('type' => 'int','precision' => '4'),
|
2005-11-04 19:35:09 +01:00
|
|
|
'created' => array('type' => 'timestamp','nullable' => False,'default' => '1970-01-01 00:00:00'),
|
|
|
|
'modified' => array('type' => 'timestamp'),
|
2005-10-01 11:12:46 +02:00
|
|
|
'size' => array('type' => 'int','precision' => '8'),
|
|
|
|
'deleteable' => array('type' => 'char','precision' => '1','default' => 'Y'),
|
|
|
|
'comment' => array('type' => 'varchar','precision' => '255'),
|
|
|
|
'app' => array('type' => 'varchar','precision' => '25'),
|
|
|
|
'directory' => array('type' => 'varchar','precision' => '255'),
|
2005-11-04 19:35:09 +01:00
|
|
|
'name' => array('type' => 'varchar','precision' => '64','nullable' => False),
|
2005-10-01 11:12:46 +02:00
|
|
|
'link_directory' => array('type' => 'varchar','precision' => '255'),
|
|
|
|
'link_name' => array('type' => 'varchar','precision' => '128'),
|
|
|
|
'version' => array('type' => 'varchar','precision' => '30','nullable' => False,'default' => '0.0.0.0'),
|
2005-05-17 16:51:08 +02:00
|
|
|
'content' => array('type' => 'longtext'),
|
2005-10-01 11:12:46 +02:00
|
|
|
'is_backup' => array('type' => 'varchar','precision' => '1','nullable' => False,'default' => 'N'),
|
|
|
|
'shared' => array('type' => 'varchar','precision' => '1','nullable' => False,'default' => 'N'),
|
|
|
|
'proper_id' => array('type' => 'varchar','precision' => '45')
|
2005-05-17 16:51:08 +02:00
|
|
|
),
|
|
|
|
'pk' => array('file_id'),
|
2005-11-04 19:35:09 +01:00
|
|
|
'fk' => array(),
|
2005-05-17 16:51:08 +02:00
|
|
|
'ix' => array(array('directory','name')),
|
|
|
|
'uc' => array()
|
|
|
|
),
|
|
|
|
'phpgw_vfs2_customfields' => array(
|
|
|
|
'fd' => array(
|
|
|
|
'customfield_id' => array('type' => 'auto','nullable' => False),
|
2005-10-01 11:12:46 +02:00
|
|
|
'customfield_name' => array('type' => 'varchar','precision' => '60','nullable' => False),
|
|
|
|
'customfield_description' => array('type' => 'varchar','precision' => '255','nullable' => True),
|
|
|
|
'customfield_type' => array('type' => 'varchar','precision' => '20','nullable' => False),
|
|
|
|
'customfield_precision' => array('type' => 'int','precision' => '4','nullable' => True),
|
|
|
|
'customfield_active' => array('type' => 'varchar','precision' => '1','nullable' => False,'default' => 'N')
|
2005-05-17 16:51:08 +02:00
|
|
|
),
|
|
|
|
'pk' => array('customfield_id'),
|
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
|
|
|
),
|
|
|
|
'phpgw_vfs2_quota' => array(
|
|
|
|
'fd' => array(
|
2005-10-01 11:12:46 +02:00
|
|
|
'account_id' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'quota' => array('type' => 'int','precision' => '4','nullable' => False)
|
2005-05-17 16:51:08 +02:00
|
|
|
),
|
|
|
|
'pk' => array('account_id'),
|
2005-11-02 12:45:52 +01:00
|
|
|
'fk' => array('account_id' => array('egw_accounts' => 'account_id')),
|
2005-05-17 16:51:08 +02:00
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
|
|
|
),
|
|
|
|
'phpgw_vfs2_shares' => array(
|
|
|
|
'fd' => array(
|
2005-10-01 11:12:46 +02:00
|
|
|
'account_id' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'file_id' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'acl_rights' => array('type' => 'int','precision' => '4','nullable' => False)
|
2005-05-17 16:51:08 +02:00
|
|
|
),
|
|
|
|
'pk' => array('account_id','file_id'),
|
2005-11-02 12:45:52 +01:00
|
|
|
'fk' => array('account_id' => array('egw_accounts' => 'account_id'),'file_id' => array('phpgw_vfs2_files' => 'file_id')),
|
2005-05-17 16:51:08 +02:00
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
|
|
|
),
|
|
|
|
'phpgw_vfs2_versioning' => array(
|
|
|
|
'fd' => array(
|
2005-10-01 11:12:46 +02:00
|
|
|
'version_id' => array('type' => 'auto','nullable' => False),
|
|
|
|
'file_id' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'operation' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'modifiedby_id' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'modified' => array('type' => 'timestamp','nullable' => False),
|
|
|
|
'version' => array('type' => 'varchar','precision' => '30','nullable' => False),
|
|
|
|
'comment' => array('type' => 'varchar','precision' => '255','nullable' => True),
|
|
|
|
'backup_file_id' => array('type' => 'int','precision' => '4','nullable' => True),
|
|
|
|
'backup_content' => array('type' => 'longtext','nullable' => True),
|
|
|
|
'src' => array('type' => 'varchar','precision' => '255','nullable' => True),
|
|
|
|
'dest' => array('type' => 'varchar','precision' => '255','nullable' => True)
|
2005-05-17 16:51:08 +02:00
|
|
|
),
|
|
|
|
'pk' => array('version_id'),
|
|
|
|
'fk' => array('file_id' => array('phpgw_vfs2_files' => 'file_id')),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
|
|
|
),
|
|
|
|
'phpgw_vfs2_customfields_data' => array(
|
|
|
|
'fd' => array(
|
2005-10-01 11:12:46 +02:00
|
|
|
'file_id' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'customfield_id' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'data' => array('type' => 'longtext','nullable' => True)
|
2005-05-17 16:51:08 +02:00
|
|
|
),
|
|
|
|
'pk' => array('file_id','customfield_id'),
|
|
|
|
'fk' => array('file_id' => array('phpgw_vfs2_files' => 'file_id'),'customfield_id' => array('phpgw_vfs2_customfields' => 'customfield_id')),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
|
|
|
),
|
|
|
|
'phpgw_vfs2_prefixes' => array(
|
|
|
|
'fd' => array(
|
2005-10-01 11:12:46 +02:00
|
|
|
'prefix_id' => array('type' => 'auto','nullable' => False),
|
|
|
|
'prefix' => array('type' => 'varchar','precision' => '8','nullable' => False),
|
|
|
|
'owner_id' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'prefix_description' => array('type' => 'varchar','precision' => '30','nullable' => True),
|
|
|
|
'prefix_type' => array('type' => 'varchar','precision' => '1','nullable' => False,'default' => 'p')
|
2005-05-17 16:51:08 +02:00
|
|
|
),
|
|
|
|
'pk' => array('prefix_id'),
|
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
|
|
|
),
|
2005-06-19 16:22:34 +02:00
|
|
|
'egw_contentmap' => array(
|
|
|
|
'fd' => array(
|
2005-11-04 19:35:09 +01:00
|
|
|
'map_id' => array('type' => 'varchar','precision' => '128','nullable' => False),
|
2006-01-08 10:03:01 +01:00
|
|
|
'map_guid' => array('type' => 'varchar','precision' => '100','nullable' => False),
|
|
|
|
'map_locuid' => array('type' => 'varchar','precision' => '100','nullable' => False),
|
2005-10-01 11:12:46 +02:00
|
|
|
'map_timestamp' => array('type' => 'timestamp','nullable' => False),
|
|
|
|
'map_expired' => array('type' => 'bool','nullable' => False)
|
2005-06-19 16:22:34 +02:00
|
|
|
),
|
2005-11-04 19:35:09 +01:00
|
|
|
'pk' => array('map_id','map_guid','map_locuid'),
|
2005-06-19 16:22:34 +02:00
|
|
|
'fk' => array(),
|
2005-11-04 19:35:09 +01:00
|
|
|
'ix' => array('map_expired',array('map_id','map_locuid')),
|
2005-06-19 16:22:34 +02:00
|
|
|
'uc' => array()
|
|
|
|
),
|
|
|
|
'egw_syncmldevinfo' => array(
|
|
|
|
'fd' => array(
|
2005-10-01 11:12:46 +02:00
|
|
|
'dev_id' => array('type' => 'varchar','precision' => '255','nullable' => False),
|
|
|
|
'dev_dtdversion' => array('type' => 'varchar','precision' => '10','nullable' => False),
|
|
|
|
'dev_numberofchanges' => array('type' => 'bool','nullable' => False),
|
|
|
|
'dev_largeobjs' => array('type' => 'bool','nullable' => False),
|
|
|
|
'dev_swversion' => array('type' => 'varchar','precision' => '100','nullable' => False),
|
|
|
|
'dev_oem' => array('type' => 'varchar','precision' => '100','nullable' => False),
|
|
|
|
'dev_model' => array('type' => 'varchar','precision' => '100','nullable' => False),
|
|
|
|
'dev_manufacturer' => array('type' => 'varchar','precision' => '100','nullable' => False),
|
|
|
|
'dev_devicetype' => array('type' => 'varchar','precision' => '100','nullable' => False),
|
|
|
|
'dev_deviceid' => array('type' => 'varchar','precision' => '100','nullable' => False),
|
|
|
|
'dev_datastore' => array('type' => 'text','nullable' => False)
|
2005-06-19 16:22:34 +02:00
|
|
|
),
|
|
|
|
'pk' => array('dev_id'),
|
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
|
|
|
),
|
|
|
|
'egw_syncmlsummary' => array(
|
|
|
|
'fd' => array(
|
2005-10-01 11:12:46 +02:00
|
|
|
'dev_id' => array('type' => 'varchar','precision' => '255','nullable' => False),
|
|
|
|
'sync_path' => array('type' => 'varchar','precision' => '100','nullable' => False),
|
|
|
|
'sync_serverts' => array('type' => 'varchar','precision' => '20','nullable' => False),
|
|
|
|
'sync_clientts' => array('type' => 'varchar','precision' => '20','nullable' => False)
|
2005-06-19 16:22:34 +02:00
|
|
|
),
|
|
|
|
'pk' => array(array('dev_id','sync_path')),
|
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(),
|
|
|
|
'uc' => array()
|
2005-10-01 22:18:41 +02:00
|
|
|
),
|
|
|
|
'egw_links' => array(
|
|
|
|
'fd' => array(
|
|
|
|
'link_id' => array('type' => 'auto','nullable' => False),
|
|
|
|
'link_app1' => array('type' => 'varchar','precision' => '25','nullable' => False),
|
|
|
|
'link_id1' => array('type' => 'varchar','precision' => '50','nullable' => False),
|
|
|
|
'link_app2' => array('type' => 'varchar','precision' => '25','nullable' => False),
|
|
|
|
'link_id2' => array('type' => 'varchar','precision' => '50','nullable' => False),
|
|
|
|
'link_remark' => array('type' => 'varchar','precision' => '50'),
|
|
|
|
'link_lastmod' => array('type' => 'int','precision' => '4','nullable' => False),
|
|
|
|
'link_owner' => array('type' => 'int','precision' => '4','nullable' => False)
|
|
|
|
),
|
|
|
|
'pk' => array('link_id'),
|
|
|
|
'fk' => array(),
|
|
|
|
'ix' => array(array('link_app1','link_id1','link_lastmod'),array('link_app2','link_id2','link_lastmod')),
|
|
|
|
'uc' => array()
|
2005-11-04 19:35:09 +01:00
|
|
|
)
|
2001-05-18 20:01:15 +02:00
|
|
|
);
|