Commit | Line | Data |
---|---|---|
6a488035 TO |
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> | |
8f069c03 EM |
10 | <name>id</name> |
11 | <type>int unsigned</type> | |
e61e47ad | 12 | <title>Saved Search ID</title> |
8f069c03 | 13 | <required>true</required> |
e61e47ad | 14 | <comment>Saved Search ID</comment> |
8f069c03 | 15 | <add>1.1</add> |
6a488035 TO |
16 | </field> |
17 | <primaryKey> | |
8f069c03 EM |
18 | <name>id</name> |
19 | <autoincrement>false</autoincrement> | |
6a488035 TO |
20 | </primaryKey> |
21 | <field> | |
8f069c03 EM |
22 | <name>query</name> |
23 | <title>SQL Query</title> | |
24 | <type>text</type> | |
25 | <import>true</import> | |
26 | <comment>SQL query for this search</comment> | |
27 | <add>1.1</add> | |
28 | <drop>1.5</drop> | |
6a488035 TO |
29 | </field> |
30 | <field> | |
8f069c03 EM |
31 | <name>form_values</name> |
32 | <title>Submitted Form Values</title> | |
33 | <type>text</type> | |
34 | <import>true</import> | |
35 | <comment>Submitted form values for this search</comment> | |
36 | <add>1.1</add> | |
6a488035 | 37 | </field> |
8f069c03 EM |
38 | <field> |
39 | <name>is_active</name> | |
40 | <type>boolean</type> | |
e61e47ad | 41 | <title>Saved Search Enabled</title> |
8f069c03 EM |
42 | <comment>Is this entry active?</comment> |
43 | <add>1.1</add> | |
44 | <drop>1.5</drop> | |
6a488035 TO |
45 | </field> |
46 | <field> | |
8f069c03 EM |
47 | <name>mapping_id</name> |
48 | <type>int unsigned</type> | |
e61e47ad | 49 | <title>Mapping ID</title> |
8f069c03 EM |
50 | <comment>Foreign key to civicrm_mapping used for saved search-builder searches.</comment> |
51 | <add>1.5</add> | |
6a488035 TO |
52 | </field> |
53 | <foreignKey> | |
8f069c03 EM |
54 | <name>mapping_id</name> |
55 | <table>civicrm_mapping</table> | |
56 | <key>id</key> | |
57 | <add>1.5</add> | |
6a488035 TO |
58 | </foreignKey> |
59 | <field> | |
8f069c03 EM |
60 | <name>search_custom_id</name> |
61 | <type>int unsigned</type> | |
6ffccb86 | 62 | <title>Option Value ID</title> |
8f069c03 EM |
63 | <comment>Foreign key to civicrm_option value table used for saved custom searches.</comment> |
64 | <add>2.0</add> | |
6a488035 TO |
65 | </field> |
66 | <field> | |
8f069c03 EM |
67 | <name>where_clause</name> |
68 | <type>text</type> | |
e61e47ad | 69 | <title>Where Clause</title> |
8f069c03 EM |
70 | <comment>the sql where clause if a saved search acl</comment> |
71 | <add>1.6</add> | |
6a488035 TO |
72 | </field> |
73 | <field> | |
8f069c03 EM |
74 | <name>select_tables</name> |
75 | <type>text</type> | |
e61e47ad | 76 | <title>Select Tables</title> |
8f069c03 EM |
77 | <comment>the tables to be included in a select data</comment> |
78 | <add>1.6</add> | |
6a488035 TO |
79 | </field> |
80 | <field> | |
8f069c03 EM |
81 | <name>where_tables</name> |
82 | <type>text</type> | |
e61e47ad | 83 | <title>Where Tables</title> |
8f069c03 EM |
84 | <comment>the tables to be included in the count statement</comment> |
85 | <add>1.6</add> | |
6a488035 TO |
86 | </field> |
87 | </table> |