commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / xml / schema / Contact / Group.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Contact</base>
5 <class>Group</class>
6 <name>civicrm_group</name>
7 <comment>Provide grouping of related contacts</comment>
8 <add>1.1</add>
9 <log>true</log>
10 <field>
11 <name>id</name>
12 <type>int unsigned</type>
13 <title>Group ID</title>
14 <required>true</required>
15 <comment>Group ID</comment>
16 <add>1.1</add>
17 </field>
18 <primaryKey>
19 <name>id</name>
20 <autoincrement>true</autoincrement>
21 </primaryKey>
22 <field>
23 <name>name</name>
24 <type>varchar</type>
25 <title>Group Name</title>
26 <length>64</length>
27 <comment>Internal name of Group.</comment>
28 <add>1.1</add>
29 </field>
30 <field>
31 <name>title</name>
32 <type>varchar</type>
33 <title>Group Title</title>
34 <length>64</length>
35 <localizable>true</localizable>
36 <comment>Name of Group.</comment>
37 <add>1.1</add>
38 </field>
39 <field>
40 <name>description</name>
41 <type>text</type>
42 <title>Group Description</title>
43 <html>
44 <type>TextArea</type>
45 <rows>2</rows>
46 <cols>60</cols>
47 </html>
48 <comment>Optional verbose description of the group.</comment>
49 <add>1.1</add>
50 </field>
51 <field>
52 <name>source</name>
53 <type>varchar</type>
54 <title>Group Source</title>
55 <length>64</length>
56 <comment>Module or process which created this group.</comment>
57 <add>1.1</add>
58 </field>
59 <field>
60 <name>saved_search_id</name>
61 <type>int unsigned</type>
62 <title>Saved Search ID</title>
63 <comment>FK to saved search table.</comment>
64 <add>1.1</add>
65 </field>
66 <foreignKey>
67 <name>saved_search_id</name>
68 <table>civicrm_saved_search</table>
69 <key>id</key>
70 <add>1.1</add>
71 <onDelete>SET NULL</onDelete>
72 </foreignKey>
73 <field>
74 <name>is_active</name>
75 <type>boolean</type>
76 <title>Group Enabled</title>
77 <comment>Is this entry active?</comment>
78 <add>1.1</add>
79 </field>
80 <field>
81 <name>visibility</name>
82 <type>varchar</type>
83 <length>24</length>
84 <title>Group Visibility Setting</title>
85 <default>'User and User Admin Only'</default>
86 <comment>In what context(s) is this field visible.</comment>
87 <pseudoconstant>
88 <callback>CRM_Core_SelectValues::groupVisibility</callback>
89 </pseudoconstant>
90 <add>1.2</add>
91 <html>
92 <type>Select</type>
93 </html>
94 </field>
95 <field>
96 <name>where_clause</name>
97 <type>text</type>
98 <title>Group Where Clause</title>
99 <comment>the sql where clause if a saved search acl</comment>
100 <add>1.6</add>
101 </field>
102 <field>
103 <name>select_tables</name>
104 <type>text</type>
105 <title>Tables For Select Clause</title>
106 <comment>the tables to be included in a select data</comment>
107 <add>1.6</add>
108 </field>
109 <field>
110 <name>where_tables</name>
111 <type>text</type>
112 <title>Tables For Where Clause</title>
113 <comment>the tables to be included in the count statement</comment>
114 <add>1.6</add>
115 </field>
116 <field>
117 <name>group_type</name>
118 <type>varchar</type>
119 <title>Group Type</title>
120 <length>128</length>
121 <comment>FK to group type</comment>
122 <pseudoconstant>
123 <optionGroupName>group_type</optionGroupName>
124 </pseudoconstant>
125 <add>1.9</add>
126 </field>
127 <field>
128 <name>cache_date</name>
129 <type>timestamp</type>
130 <title>Group Cache Date</title>
131 <required>false</required>
132 <comment>Date when we created the cache for a smart group</comment>
133 <add>2.1</add>
134 </field>
135 <field>
136 <name>refresh_date</name>
137 <type>timestamp</type>
138 <title>Next Group Refresh Time</title>
139 <required>false</required>
140 <comment>Date and time when we need to refresh the cache next.</comment>
141 <add>4.3</add>
142 </field>
143 <field>
144 <name>parents</name>
145 <type>text</type>
146 <title>Group Parents</title>
147 <comment>IDs of the parent(s)</comment>
148 <add>2.1</add>
149 </field>
150 <field>
151 <name>children</name>
152 <type>text</type>
153 <title>Group Children</title>
154 <comment>IDs of the child(ren)</comment>
155 <add>2.1</add>
156 </field>
157 <field>
158 <name>is_hidden</name>
159 <type>boolean</type>
160 <title>Group is Hidden</title>
161 <default>0</default>
162 <comment>Is this group hidden?</comment>
163 <add>2.2</add>
164 </field>
165 <field>
166 <name>is_reserved</name>
167 <type>boolean</type>
168 <title>Group is Reserved</title>
169 <default>0</default>
170 <add>4.2</add>
171 </field>
172 <index>
173 <name>index_group_type</name>
174 <fieldName>group_type</fieldName>
175 <add>1.9</add>
176 </index>
177 <index>
178 <name>UI_title</name>
179 <fieldName>title</fieldName>
180 <unique>true</unique>
181 <add>2.1</add>
182 </index>
183 <index>
184 <name>UI_name</name>
185 <fieldName>name</fieldName>
186 <unique>true</unique>
187 <add>2.1</add>
188 </index>
189 <field>
190 <name>created_id</name>
191 <type>int unsigned</type>
192 <title>Group Created By</title>
193 <comment>FK to contact table.</comment>
194 <add>4.3</add>
195 </field>
196 <foreignKey>
197 <name>created_id</name>
198 <table>civicrm_contact</table>
199 <key>id</key>
200 <add>4.3</add>
201 <onDelete>SET NULL</onDelete>
202 </foreignKey>
203 <field>
204 <name>modified_id</name>
205 <type>int unsigned</type>
206 <title>Group Modified By</title>
207 <comment>FK to contact table.</comment>
208 <add>4.5</add>
209 </field>
210 <foreignKey>
211 <name>modified_id</name>
212 <table>civicrm_contact</table>
213 <key>id</key>
214 <add>4.5</add>
215 <onDelete>SET NULL</onDelete>
216 </foreignKey>
217 </table>