1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
4 <base>CRM/Contact
</base>
5 <class>SavedSearch
</class>
6 <name>civicrm_saved_search
</name>
7 <comment>Users can save their complex SQL queries and use them later.
</comment>
11 <type>int unsigned
</type>
12 <title>Saved Search ID
</title>
13 <required>true
</required>
14 <comment>Saved Search ID
</comment>
22 <autoincrement>false
</autoincrement>
27 <title>Saved Search Name
</title>
30 <default>NULL
</default>
31 <comment>Unique name of saved search
</comment>
39 <fieldName>name
</fieldName>
46 <title>Saved Search Label
</title>
49 <default>NULL
</default>
50 <comment>Administrative label for search
</comment>
58 <name>form_values
</name>
59 <title>Submitted Form Values
</title>
62 <comment>Submitted form values for this search
</comment>
63 <serialize>PHP
</serialize>
68 <name>mapping_id
</name>
69 <type>int unsigned
</type>
70 <title>Mapping ID
</title>
71 <comment>Foreign key to civicrm_mapping used for saved search-builder searches.
</comment>
73 <label>Mapping
</label>
78 <name>mapping_id
</name>
79 <table>civicrm_mapping
</table>
81 <onDelete>SET NULL
</onDelete>
86 <name>search_custom_id
</name>
87 <type>int unsigned
</type>
88 <title>Option Value ID
</title>
89 <comment>Foreign key to civicrm_option value table used for saved custom searches.
</comment>
94 <name>where_clause
</name>
96 <title>Where Clause
</title>
97 <comment>the sql where clause if a saved search acl
</comment>
103 <name>select_tables
</name>
105 <title>Select Tables
</title>
106 <comment>the tables to be included in a select data
</comment>
107 <serialize>PHP
</serialize>
113 <name>where_tables
</name>
115 <title>Where Tables
</title>
116 <comment>the tables to be included in the count statement
</comment>
117 <serialize>PHP
</serialize>
123 <name>api_entity
</name>
125 <title>Entity Name
</title>
127 <comment>Entity name for API based search
</comment>
132 <name>api_params
</name>
134 <title>API Parameters
</title>
135 <comment>Parameters for API based search
</comment>
136 <serialize>JSON
</serialize>
140 <name>created_id
</name>
141 <type>int unsigned
</type>
142 <title>Created By Contact ID
</title>
143 <comment>FK to contact table.
</comment>
145 <label>Created By
</label>
150 <name>created_id
</name>
151 <table>civicrm_contact
</table>
154 <onDelete>SET NULL
</onDelete>
157 <name>modified_id
</name>
158 <type>int unsigned
</type>
159 <title>Modified By Contact ID
</title>
160 <comment>FK to contact table.
</comment>
162 <label>Modified By
</label>
164 <readonly>true
</readonly>
168 <name>modified_id
</name>
169 <table>civicrm_contact
</table>
172 <onDelete>SET NULL
</onDelete>
175 <name>expires_date
</name>
176 <type>timestamp
</type>
177 <title>Search Expiry Date
</title>
178 <required>false
</required>
179 <comment>Optional date after which the search is not needed
</comment>
183 <name>created_date
</name>
184 <type>timestamp
</type>
185 <comment>When the search was created.
</comment>
186 <required>true
</required>
187 <default>CURRENT_TIMESTAMP
</default>
191 <name>modified_date
</name>
192 <type>timestamp
</type>
193 <comment>When the search was last modified.
</comment>
194 <required>true
</required>
195 <default>CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
</default>
197 <readonly>true
</readonly>
200 <name>description
</name>
202 <title>Saved Search Description
</title>
204 <type>TextArea
</type>