2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4 * SugarCRM is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
7 * This program is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU Affero General Public License version 3 as published by the
9 * Free Software Foundation with the addition of the following permission added
10 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
14 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
19 * You should have received a copy of the GNU Affero General Public License along with
20 * this program; if not, see http://www.gnu.org/licenses or write to the Free
21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
27 * The interactive user interfaces in modified source and object code versions
28 * of this program must display Appropriate Legal Notices, as required under
29 * Section 5 of the GNU Affero General Public License version 3.
31 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32 * these Appropriate Legal Notices must retain the display of the "Powered by
33 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34 * technical reasons, the Appropriate Legal Notices must display the words
35 * "Powered by SugarCRM".
36 ********************************************************************************/
38 $dictionary['User'] = array(
48 'name' => 'user_name',
49 'vname' => 'LBL_USER_NAME',
50 'type' => 'user_name',
51 'dbType' => 'varchar',
53 'importable' => 'required',
56 'name' => 'user_hash',
57 'vname' => 'LBL_USER_HASH',
60 'reportable' => false,
61 'importable' => 'false',
63 'system_generated_password' => array(
64 'name' => 'system_generated_password',
65 'vname' => 'LBL_SYSTEM_GENERATED_PASSWORD',
68 'reportable' => false,
69 'massupdate' => false,
72 'pwd_last_changed' => array(
73 'name' => 'pwd_last_changed',
74 'vname' => 'LBL_PSW_MODIFIED',
77 'massupdate' => false,
80 * authenticate_id is used by authentication plugins so they may place a quick lookup key for looking up a given user after authenticating through the plugin
82 'authenticate_id' => array(
83 'name' => 'authenticate_id',
84 'vname' => 'LBL_AUTHENTICATE_ID',
87 'reportable' => false,
88 'importable' => 'false',
91 * sugar_login will force the user to use sugar authentication
92 * regardless of what authentication the system is configured to use
94 'sugar_login' => array(
95 'name' => 'sugar_login',
96 'vname' => 'LBL_SUGAR_LOGIN',
99 'reportable' => false,
100 'massupdate' => false,
101 'importable' => false,
103 'first_name' => array(
104 'name' => 'first_name',
105 'vname' => 'LBL_FIRST_NAME',
106 'dbType' => 'varchar',
110 'last_name' => array(
111 'name' => 'last_name',
112 'vname' => 'LBL_LAST_NAME',
113 'dbType' => 'varchar',
116 'importable' => 'required',
119 'full_name' => array(
120 'name' => 'full_name',
121 'rname' => 'full_name',
122 'vname' => 'LBL_NAME',
128 'source' => 'non-db',
129 'sort_on' => 'last_name',
130 'sort_on2' => 'first_name',
131 'db_concat_fields' => array(
140 'vname' => 'LBL_NAME',
142 'source' => 'non-db',
144 'db_concat_fields' => array(
148 'importable' => 'false',
150 'reports_to_id' => array(
151 'name' => 'reports_to_id',
152 'vname' => 'LBL_REPORTS_TO_ID',
156 'reports_to_name' => array(
157 'name' => 'reports_to_name',
158 'vname' => 'LBL_REPORTS_TO_NAME',
160 'reportable' => false,
161 'source' => 'non-db',
163 'id_name' => 'reports_to_id',
165 'duplicate_merge' => 'disabled',
168 'name' => 'is_admin',
169 'vname' => 'LBL_IS_ADMIN',
173 'external_auth_only' => array(
174 'name' => 'external_auth_only',
175 'vname' => 'LBL_EXT_AUTHENTICATE',
177 'reportable' => false,
178 'massupdate' => false,
181 'receive_notifications' => array(
182 'name' => 'receive_notifications',
183 'vname' => 'LBL_RECEIVE_NOTIFICATIONS',
186 'massupdate' => false,
188 'description' => array(
189 'name' => 'description',
190 'vname' => 'LBL_DESCRIPTION',
193 'date_entered' => array(
194 'name' => 'date_entered',
195 'vname' => 'LBL_DATE_ENTERED',
196 'type' => 'datetime',
199 'date_modified' => array(
200 'name' => 'date_modified',
201 'vname' => 'LBL_DATE_MODIFIED',
202 'type' => 'datetime',
205 'modified_user_id' => array(
206 'name' => 'modified_user_id',
207 'rname' => 'user_name',
208 'id_name' => 'modified_user_id',
209 'vname' => 'LBL_MODIFIED_BY_ID',
210 'type' => 'assigned_user_name',
215 'modified_by_name' => array(
216 'name' => 'modified_by_name',
217 'vname' => 'LBL_MODIFIED_BY',
219 'source' => 'non-db',
221 'created_by' => array(
222 'name' => 'created_by',
223 'rname' => 'user_name',
224 'id_name' => 'modified_user_id',
225 'vname' => 'LBL_ASSIGNED_TO',
226 'type' => 'assigned_user_name',
231 'created_by_name' => array(
232 'name' => 'created_by_name',
234 'source' => 'non-db',
235 'importable' => 'false',
239 'vname' => 'LBL_TITLE',
243 'department' => array(
244 'name' => 'department',
245 'vname' => 'LBL_DEPARTMENT',
249 'phone_home' => array(
250 'name' => 'phone_home',
251 'vname' => 'LBL_HOME_PHONE',
253 'dbType' => 'varchar',
256 'phone_mobile' => array(
257 'name' => 'phone_mobile',
258 'vname' => 'LBL_MOBILE_PHONE',
260 'dbType' => 'varchar',
263 'phone_work' => array(
264 'name' => 'phone_work',
265 'vname' => 'LBL_WORK_PHONE',
267 'dbType' => 'varchar',
270 'phone_other' => array(
271 'name' => 'phone_other',
272 'vname' => 'LBL_OTHER_PHONE',
274 'dbType' => 'varchar',
277 'phone_fax' => array(
278 'name' => 'phone_fax',
279 'vname' => 'LBL_FAX_PHONE',
281 'dbType' => 'varchar',
286 'vname' => 'LBL_STATUS',
289 'options' => 'user_status_dom',
290 'importable' => 'required',
292 'address_street' => array(
293 'name' => 'address_street',
294 'vname' => 'LBL_ADDRESS_STREET',
298 'address_city' => array(
299 'name' => 'address_city',
300 'vname' => 'LBL_ADDRESS_CITY',
304 'address_state' => array(
305 'name' => 'address_state',
306 'vname' => 'LBL_ADDRESS_STATE',
310 'address_country' => array(
311 'name' => 'address_country',
312 'vname' => 'LBL_ADDRESS_COUNTRY',
316 'address_postalcode' => array(
317 'name' => 'address_postalcode',
318 'vname' => 'LBL_ADDRESS_POSTALCODE',
324 'vname' => 'LBL_DELETED',
327 'reportable' => false,
329 'portal_only' => array(
330 'name' => 'portal_only',
331 'vname' => 'LBL_PORTAL_ONLY_USER',
333 'massupdate' => false,
336 'employee_status' => array(
337 'name' => 'employee_status',
338 'vname' => 'LBL_EMPLOYEE_STATUS',
340 'options' => 'employee_status_dom',
343 'messenger_id' => array(
344 'name' => 'messenger_id',
345 'vname' => 'LBL_MESSENGER_ID',
349 'messenger_type' => array(
350 'name' => 'messenger_type',
351 'vname' => 'LBL_MESSENGER_TYPE',
353 'options' => 'messenger_type_dom',
359 'relationship' => 'calls_users',
360 'source' => 'non-db',
361 'vname' => 'LBL_CALLS'
364 'name' => 'meetings',
366 'relationship' => 'meetings_users',
367 'source' => 'non-db',
368 'vname' => 'LBL_MEETINGS'
370 'contacts_sync' => array(
371 'name' => 'contacts',
373 'relationship' => 'contacts_users',
374 'source' => 'non-db',
375 'vname' => 'LBL_CONTACTS_SYNC'
377 'reports_to_link' => array(
378 'name' => 'reports_to_link',
380 'relationship' => 'user_direct_reports',
381 'link_type' => 'one',
383 'source' => 'non-db',
384 'vname' => 'LBL_REPORTS_TO',
388 'vname' => 'LBL_EMAIL',
391 'name' => 'getEmailAddressWidget',
394 'source' => 'non-db',
396 'merge_filter' => 'enabled',
399 'email_addresses' => array(
400 'name' => 'email_addresses',
402 'relationship' => 'users_email_addresses',
403 'module' => 'EmailAddress',
404 'bean_name' => 'EmailAddress',
405 'source' => 'non-db',
406 'vname' => 'LBL_EMAIL_ADDRESSES',
407 'reportable' => false,
410 'email_addresses_primary' => array(
411 'name' => 'email_addresses_primary',
413 'relationship' => 'users_email_addresses_primary',
414 'source' => 'non-db',
415 'vname' => 'LBL_EMAIL_ADDRESS_PRIMARY',
416 'duplicate_merge' => 'disabled',
420 'name' => 'aclroles',
422 'relationship' => 'acl_roles_users',
423 'source' => 'non-db',
425 'vname' => 'LBL_ROLES',
428 'name' => 'is_group',
429 'vname' => 'LBL_GROUP_USER',
431 'massupdate' => false,
433 /* to support Meetings SubPanels */
434 'c_accept_status_fields' => array(
435 'name' => 'c_accept_status_fields',
437 'relationship_fields' => array(
438 'id' => 'accept_status_id',
439 'accept_status' => 'accept_status_name'
441 'vname' => 'LBL_LIST_ACCEPT_STATUS',
444 'link_type' => 'relationship_info',
445 'source' => 'non-db',
446 'importable' => 'false',
447 'studio' => array('listview' => false),
449 'm_accept_status_fields' => array(
450 'name' => 'm_accept_status_fields',
452 'relationship_fields' => array(
453 'id' => 'accept_status_id',
454 'accept_status' => 'accept_status_name'
456 'vname' => 'LBL_LIST_ACCEPT_STATUS',
458 'link' => 'meetings',
459 'link_type' => 'relationship_info',
460 'source' => 'non-db',
461 'importable' => 'false',
462 'studio' => array('listview' => false),
464 'accept_status_id' => array(
465 'name' => 'accept_status_id',
467 'source' => 'non-db',
468 'vname' => 'LBL_LIST_ACCEPT_STATUS',
469 'importable' => 'false',
470 'studio' => array('listview' => false),
472 'accept_status_name' => array(
473 'name' => 'accept_status_name',
475 'source' => 'non-db',
476 'vname' => 'LBL_LIST_ACCEPT_STATUS',
477 'options' => 'dom_meeting_accept_status',
478 'massupdate' => false,
480 'prospect_lists' => array(
481 'name' => 'prospect_lists',
483 'relationship' => 'prospect_list_users',
484 'module' => 'ProspectLists',
485 'source' => 'non-db',
486 'vname' => 'LBL_PROSPECT_LIST',
489 'name' => 'holidays',
491 'relationship' => 'users_holidays',
492 'source' => 'non-db',
494 'vname' => 'LBL_HOLIDAYS',
500 'relationship' => 'eapm_assigned_user',
501 'vname' => 'LBL_ASSIGNED_TO_USER',
515 'name' => 'idx_user_name',
527 'relationships' => array (
528 'user_direct_reports' => array('lhs_module'=> 'Users', 'lhs_table'=> 'users', 'lhs_key' => 'id', 'rhs_module'=> 'Users', 'rhs_table'=> 'users', 'rhs_key' => 'reports_to_id', 'relationship_type'=>'one-to-many'),
529 'users_users_signatures' =>
531 'lhs_module'=> 'Users',
532 'lhs_table'=> 'users',
534 'rhs_module'=> 'UserSignature',
535 'rhs_table'=> 'users_signatures',
536 'rhs_key' => 'user_id',
537 'relationship_type'=>'one-to-many'
539 'users_email_addresses' =>
541 'lhs_module'=> "Users", 'lhs_table'=> 'users', 'lhs_key' => 'id',
542 'rhs_module'=> 'EmailAddresses', 'rhs_table'=> 'email_addresses', 'rhs_key' => 'id',
543 'relationship_type'=>'many-to-many',
544 'join_table'=> 'email_addr_bean_rel', 'join_key_lhs'=>'bean_id', 'join_key_rhs'=>'email_address_id',
545 'relationship_role_column'=>'bean_module',
546 'relationship_role_column_value'=>"Users"
548 'users_email_addresses_primary' =>
549 array('lhs_module'=> "Users", 'lhs_table'=> 'users', 'lhs_key' => 'id',
550 'rhs_module'=> 'EmailAddresses', 'rhs_table'=> 'email_addresses', 'rhs_key' => 'id',
551 'relationship_type'=>'many-to-many',
552 'join_table'=> 'email_addr_bean_rel', 'join_key_lhs'=>'bean_id', 'join_key_rhs'=>'email_address_id',
553 'relationship_role_column'=>'primary_address',
554 'relationship_role_column_value'=>'1'