diff --git a/phpgwapi/setup/tables_current.inc.php b/phpgwapi/setup/tables_current.inc.php index 667e449bd8..9ebc3e6cc0 100644 --- a/phpgwapi/setup/tables_current.inc.php +++ b/phpgwapi/setup/tables_current.inc.php @@ -282,67 +282,67 @@ $phpgw_baseline = array( 'fd' => array( 'contact_id' => array('type' => 'auto','nullable' => False), 'contact_tid' => array('type' => 'char','precision' => '1','default' => 'n'), - 'contact_owner' => array('type' => 'int','precision' => '8','nullable' => False), - 'contact_private' => array('type' => 'int','precision' => '1','default' => '0'), - 'cat_id' => array('type' => 'varchar','precision' => '255'), - 'n_family' => array('type' => 'varchar','precision' => '64'), - 'n_given' => array('type' => 'varchar','precision' => '64'), + 'contact_owner' => array('type' => 'int','precision' => '8','nullable' => False,'comment' => 'account or group id of the adressbook'), + 'contact_private' => array('type' => 'int','precision' => '1','default' => '0','comment' => 'privat or personal'), + 'cat_id' => array('type' => 'varchar','precision' => '255','comment' => 'Category(s)'), + 'n_family' => array('type' => 'varchar','precision' => '64','comment' => 'Family name'), + 'n_given' => array('type' => 'varchar','precision' => '64','comment' => 'Given Name'), 'n_middle' => array('type' => 'varchar','precision' => '64'), - 'n_prefix' => array('type' => 'varchar','precision' => '64'), - 'n_suffix' => array('type' => 'varchar','precision' => '64'), - 'n_fn' => array('type' => 'varchar','precision' => '128'), - 'n_fileas' => array('type' => 'varchar','precision' => '255'), - 'contact_bday' => array('type' => 'varchar','precision' => '12'), - 'org_name' => array('type' => 'varchar','precision' => '128'), - 'org_unit' => array('type' => 'varchar','precision' => '64'), - 'contact_title' => array('type' => 'varchar','precision' => '64'), - 'contact_role' => array('type' => 'varchar','precision' => '64'), - 'contact_assistent' => array('type' => 'varchar','precision' => '64'), - 'contact_room' => array('type' => 'varchar','precision' => '64'), - 'adr_one_street' => array('type' => 'varchar','precision' => '64'), - 'adr_one_street2' => 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'), - 'contact_label' => array('type' => 'text'), - 'adr_two_street' => array('type' => 'varchar','precision' => '64'), - 'adr_two_street2' => 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'), - 'tel_work' => array('type' => 'varchar','precision' => '40'), - 'tel_cell' => array('type' => 'varchar','precision' => '40'), - 'tel_fax' => array('type' => 'varchar','precision' => '40'), - 'tel_assistent' => array('type' => 'varchar','precision' => '40'), + 'n_prefix' => array('type' => 'varchar','precision' => '64','comment' => 'Prefix'), + 'n_suffix' => array('type' => 'varchar','precision' => '64','comment' => 'Suffix'), + 'n_fn' => array('type' => 'varchar','precision' => '128','comment' => 'Full name'), + 'n_fileas' => array('type' => 'varchar','precision' => '255','comment' => 'sort as'), + 'contact_bday' => array('type' => 'varchar','precision' => '12','comment' => 'Birtday'), + 'org_name' => array('type' => 'varchar','precision' => '128','comment' => 'Organisation'), + 'org_unit' => array('type' => 'varchar','precision' => '64','comment' => 'Department'), + 'contact_title' => array('type' => 'varchar','precision' => '64','comment' => 'jobtittle'), + 'contact_role' => array('type' => 'varchar','precision' => '64','comment' => 'role'), + 'contact_assistent' => array('type' => 'varchar','precision' => '64','comment' => 'Name of the Assistent (for phone number)'), + 'contact_room' => array('type' => 'varchar','precision' => '64','comment' => 'room'), + 'adr_one_street' => array('type' => 'varchar','precision' => '64','comment' => 'street (business)'), + 'adr_one_street2' => array('type' => 'varchar','precision' => '64','comment' => 'street (business) - 2. line'), + 'adr_one_locality' => array('type' => 'varchar','precision' => '64','comment' => 'city (business)'), + 'adr_one_region' => array('type' => 'varchar','precision' => '64','comment' => 'region (business)'), + 'adr_one_postalcode' => array('type' => 'varchar','precision' => '64','comment' => 'postalcode (business)'), + 'adr_one_countryname' => array('type' => 'varchar','precision' => '64','comment' => 'countryname (business)'), + 'contact_label' => array('type' => 'text','comment' => 'currently not used'), + 'adr_two_street' => array('type' => 'varchar','precision' => '64','comment' => 'street (private)'), + 'adr_two_street2' => array('type' => 'varchar','precision' => '64','comment' => 'street (private) - 2. line'), + 'adr_two_locality' => array('type' => 'varchar','precision' => '64','comment' => 'city (private)'), + 'adr_two_region' => array('type' => 'varchar','precision' => '64','comment' => 'region (private)'), + 'adr_two_postalcode' => array('type' => 'varchar','precision' => '64','comment' => 'postalcode (private)'), + 'adr_two_countryname' => array('type' => 'varchar','precision' => '64','comment' => 'countryname (private)'), + 'tel_work' => array('type' => 'varchar','precision' => '40','comment' => 'phone-number (business)'), + 'tel_cell' => array('type' => 'varchar','precision' => '40','comment' => 'mobil phone (business)'), + 'tel_fax' => array('type' => 'varchar','precision' => '40','comment' => 'fax-number (business)'), + 'tel_assistent' => array('type' => 'varchar','precision' => '40','comment' => 'phone-number assistent'), 'tel_car' => array('type' => 'varchar','precision' => '40'), - 'tel_pager' => array('type' => 'varchar','precision' => '40'), - 'tel_home' => array('type' => 'varchar','precision' => '40'), - 'tel_fax_home' => array('type' => 'varchar','precision' => '40'), - 'tel_cell_private' => array('type' => 'varchar','precision' => '40'), - 'tel_other' => array('type' => 'varchar','precision' => '40'), - 'tel_prefer' => array('type' => 'varchar','precision' => '32'), - 'contact_email' => array('type' => 'varchar','precision' => '128'), - 'contact_email_home' => array('type' => 'varchar','precision' => '128'), - 'contact_url' => array('type' => 'varchar','precision' => '128'), - 'contact_url_home' => array('type' => 'varchar','precision' => '128'), - 'contact_freebusy_uri' => array('type' => 'varchar','precision' => '128'), - 'contact_calendar_uri' => array('type' => 'varchar','precision' => '128'), - 'contact_note' => array('type' => 'text'), - 'contact_tz' => array('type' => 'varchar','precision' => '8'), - 'contact_geo' => array('type' => 'varchar','precision' => '32'), - 'contact_pubkey' => array('type' => 'text'), - 'contact_created' => array('type' => 'int','precision' => '8'), - 'contact_creator' => array('type' => 'int','precision' => '4','nullable' => False), - 'contact_modified' => array('type' => 'int','precision' => '8','nullable' => False), - 'contact_modifier' => array('type' => 'int','precision' => '4'), - 'contact_jpegphoto' => array('type' => 'blob'), - 'account_id' => array('type' => 'int','precision' => '4'), - 'contact_etag' => array('type' => 'int','precision' => '4','default' => '0'), - 'contact_uid' => array('type' => 'varchar','precision' => '255'), - 'adr_one_countrycode' => array('type' => 'varchar','precision' => '2'), - 'adr_two_countrycode' => array('type' => 'varchar','precision' => '2'), + 'tel_pager' => array('type' => 'varchar','precision' => '40','comment' => 'pager'), + 'tel_home' => array('type' => 'varchar','precision' => '40','comment' => 'phone-number (private)'), + 'tel_fax_home' => array('type' => 'varchar','precision' => '40','comment' => 'fax-number (private)'), + 'tel_cell_private' => array('type' => 'varchar','precision' => '40','comment' => 'mobil phone (private)'), + 'tel_other' => array('type' => 'varchar','precision' => '40','comment' => 'other phone'), + 'tel_prefer' => array('type' => 'varchar','precision' => '32','comment' => 'prefered phone-number'), + 'contact_email' => array('type' => 'varchar','precision' => '128','comment' => 'email address (business)'), + 'contact_email_home' => array('type' => 'varchar','precision' => '128','comment' => 'email address (private)'), + 'contact_url' => array('type' => 'varchar','precision' => '128','comment' => 'website (business)'), + 'contact_url_home' => array('type' => 'varchar','precision' => '128','comment' => 'website (private)'), + 'contact_freebusy_uri' => array('type' => 'varchar','precision' => '128','comment' => 'freebusy-url for calendar of the contact'), + 'contact_calendar_uri' => array('type' => 'varchar','precision' => '128','comment' => 'url for users calendar - currently not used'), + 'contact_note' => array('type' => 'text','comment' => 'notes field'), + 'contact_tz' => array('type' => 'varchar','precision' => '8','comment' => 'timezone difference'), + 'contact_geo' => array('type' => 'varchar','precision' => '32','comment' => 'currently not used'), + 'contact_pubkey' => array('type' => 'text','comment' => 'public key'), + 'contact_created' => array('type' => 'int','precision' => '8','comment' => 'timestamp of the creation'), + 'contact_creator' => array('type' => 'int','precision' => '4','nullable' => False,'comment' => 'account id of the creator'), + 'contact_modified' => array('type' => 'int','precision' => '8','nullable' => False,'comment' => 'timestamp of the last modified'), + 'contact_modifier' => array('type' => 'int','precision' => '4','comment' => 'account id of the last modified'), + 'contact_jpegphoto' => array('type' => 'blob','comment' => 'photo of the contact (attachment)'), + 'account_id' => array('type' => 'int','precision' => '4','comment' => 'account id'), + 'contact_etag' => array('type' => 'int','precision' => '4','default' => '0','comment' => 'etag of the changes'), + 'contact_uid' => array('type' => 'varchar','precision' => '255','comment' => 'unique id of the contact'), + 'adr_one_countrycode' => array('type' => 'varchar','precision' => '2','comment' => 'countrycode (business)'), + 'adr_two_countrycode' => array('type' => 'varchar','precision' => '2','comment' => 'countrycode (private)'), 'carddav_name' => array('type' => 'varchar','precision' => '64','comment' => 'name part of CardDAV URL, if specified by client') ), 'pk' => array('contact_id'),