Merge pull request #18327 from civicrm/5.29
[civicrm-core.git] / xml / schema / Contact / SavedSearch.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
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>
8 <add>1.1</add>
9 <field>
10 <name>id</name>
11 <type>int unsigned</type>
12 <title>Saved Search ID</title>
13 <required>true</required>
14 <comment>Saved Search ID</comment>
15 <add>1.1</add>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>false</autoincrement>
20 </primaryKey>
21 <field>
22 <name>form_values</name>
23 <title>Submitted Form Values</title>
24 <type>text</type>
25 <import>true</import>
26 <comment>Submitted form values for this search</comment>
27 <serialize>PHP</serialize>
28 <add>1.1</add>
29 </field>
30 <field>
31 <name>mapping_id</name>
32 <type>int unsigned</type>
33 <title>Mapping ID</title>
34 <comment>Foreign key to civicrm_mapping used for saved search-builder searches.</comment>
35 <add>1.5</add>
36 </field>
37 <foreignKey>
38 <name>mapping_id</name>
39 <table>civicrm_mapping</table>
40 <key>id</key>
41 <onDelete>SET NULL</onDelete>
42 <add>1.5</add>
43 </foreignKey>
44 <field>
45 <name>search_custom_id</name>
46 <type>int unsigned</type>
47 <title>Option Value ID</title>
48 <comment>Foreign key to civicrm_option value table used for saved custom searches.</comment>
49 <add>2.0</add>
50 </field>
51 <field>
52 <name>where_clause</name>
53 <type>text</type>
54 <title>Where Clause</title>
55 <comment>the sql where clause if a saved search acl</comment>
56 <add>1.6</add>
57 <drop>5.24</drop>
58 </field>
59 <field>
60 <name>select_tables</name>
61 <type>text</type>
62 <title>Select Tables</title>
63 <comment>the tables to be included in a select data</comment>
64 <serialize>PHP</serialize>
65 <add>1.6</add>
66 <drop>5.24</drop>
67 </field>
68 <field>
69 <name>where_tables</name>
70 <type>text</type>
71 <title>Where Tables</title>
72 <comment>the tables to be included in the count statement</comment>
73 <serialize>PHP</serialize>
74 <add>1.6</add>
75 <drop>5.24</drop>
76 </field>
77 <field>
78 <name>api_entity</name>
79 <type>varchar</type>
80 <title>Entity Name</title>
81 <length>255</length>
82 <comment>Entity name for API based search</comment>
83 <add>5.24</add>
84 </field>
85 <field>
86 <name>api_params</name>
87 <type>text</type>
88 <title>API Parameters</title>
89 <comment>Parameters for API based search</comment>
90 <serialize>JSON</serialize>
91 <add>5.24</add>
92 </field>
93 </table>