]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - metadata/email_cacheMetaData.php
Release 6.4.1
[Github/sugarcrm.git] / metadata / email_cacheMetaData.php
1 <?php
2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4  * SugarCRM Community Edition is a customer relationship management program developed by
5  * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
6  * 
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.
13  * 
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
17  * details.
18  * 
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
22  * 02110-1301 USA.
23  * 
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.
26  * 
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.
30  * 
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  ********************************************************************************/
37
38 /*********************************************************************************
39
40  * Description:
41  * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. All Rights
42  * Reserved. Contributor(s): ______________________________________..
43  *********************************************************************************/
44
45 /**
46  * Relationship table linking emails with 1 or more SugarBeans
47  */
48 $dictionary['email_cache'] = array(
49         'table' => 'email_cache',
50         'fields' => array(
51                 'ie_id' => array(
52                         'name'          => 'ie_id',
53                         'type'          => 'id',
54                         'required'      => 'true',
55                 ),
56                 'mbox' => array(
57                         'name'          => 'mbox',
58                         'type'          => 'varchar',
59                         'len'           => 60,
60                         'required'      => true,
61                 ),
62                 'subject' => array(
63                         'name'          => 'subject',
64                         'type'          => 'varchar',
65                         'len'           => 255,
66                         'required'      => false,
67                 ),
68                 'fromaddr' => array(
69                         'name'          => 'fromaddr',
70                         'type'          => 'varchar',
71                         'len'           => 100,
72                         'required'      => false,
73                 ),
74                 'toaddr' => array(
75                         'name'          => 'toaddr',
76                         'type'          => 'varchar',
77                         'len'           => 255,
78                         'required'      => false,
79                 ),
80                 'senddate' => array(
81                         'name'          => 'senddate',
82                         'type'          => 'datetime',
83                         'required'      => false,
84                 ),
85                 'message_id' => array(
86                         'name'          => 'message_id',
87                         'type'          => 'varchar',
88                         'len'           => 255,
89                         'required'      => false,
90                 ),
91                 'mailsize' => array(
92                         'name'          => 'mailsize',
93                         'type'          => 'uint',
94                         'len'           => 16,
95                         'required'      => true,
96                 ),
97                 'imap_uid' => array(
98                         'name'          => 'imap_uid',
99                         'type'          => 'uint',
100                         'len'           => 32,
101                         'required'      => true,
102                 ),
103                 'msgno' => array(
104                         'name'          => 'msgno',
105                         'type'          => 'uint',
106                         'len'           => 32,
107                         'required'      => false,
108                 ),
109                 'recent' => array(
110                         'name'          => 'recent',
111                         'type'          => 'tinyint',
112                         'len'           => 1,
113                         'required'      => true,
114                 ),
115                 'flagged' => array(
116                         'name'          => 'flagged',
117                         'type'          => 'tinyint',
118                         'len'           => 1,
119                         'required'      => true,
120                 ),
121                 'answered' => array(
122                         'name'          => 'answered',
123                         'type'          => 'tinyint',
124                         'len'           => 1,
125                         'required'      => true,
126                 ),
127                 'deleted' => array(
128                         'name'          => 'deleted',
129                         'type'          => 'tinyint',
130                         'len'           => 1,
131                         'required'      => false,
132                 ),
133                 'seen' => array(
134                         'name'          => 'seen',
135                         'type'          => 'tinyint',
136                         'len'           => 1,
137                         'required'      => true,
138                 ),
139                 'draft' => array(
140                         'name'          => 'draft',
141                         'type'          => 'tinyint',
142                         'len'           => 1,
143                         'required'      => true,
144                 ),
145         ),
146         'indices' => array(
147                 array(
148                         'name'                  => 'idx_ie_id',
149                         'type'                  => 'index',
150                         'fields'                => array(
151                                 'ie_id',
152                         ),
153                 ),
154                 array(
155                         'name'                  => 'idx_mail_date',
156                         'type'                  => 'index',
157                         'fields'                => array(
158                                 'ie_id',
159                                 'mbox',
160                                 'senddate',
161                         )
162                 ),
163                 array(
164                         'name'                  => 'idx_mail_from',
165                         'type'                  => 'index',
166                         'fields'                => array(
167                                 'ie_id',
168                                 'mbox',
169                                 'fromaddr',
170                         )
171                 ),
172                 array(
173                         'name'                  => 'idx_mail_subj',
174                         'type'                  => 'index',
175                         'fields'                => array(
176                                 'subject',
177                         )
178                 ),
179                 array(
180                         'name'                  => 'idx_mail_to',
181                         'type'                  => 'index',
182                         'fields'                => array(
183                                 'toaddr',
184                         )
185                 ),
186
187         ),
188 );