Commit | Line | Data |
---|---|---|
6a488035 TO |
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> | |
8f069c03 EM |
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> | |
6a488035 TO |
17 | </field> |
18 | <primaryKey> | |
8f069c03 EM |
19 | <name>id</name> |
20 | <autoincrement>true</autoincrement> | |
6a488035 TO |
21 | </primaryKey> |
22 | <field> | |
8f069c03 EM |
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> | |
6a488035 | 29 | </field> |
6a488035 | 30 | <field> |
8f069c03 EM |
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> | |
6a488035 TO |
38 | </field> |
39 | <field> | |
8f069c03 EM |
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> | |
6a488035 | 65 | </field> |
8f069c03 EM |
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> | |
6a488035 | 73 | <field> |
8f069c03 EM |
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> | |
6a488035 TO |
101 | </field> |
102 | <field> | |
8f069c03 EM |
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> | |
6a488035 TO |
108 | </field> |
109 | <field> | |
8f069c03 EM |
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> | |
6a488035 TO |
115 | </field> |
116 | <field> | |
8f069c03 EM |
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 | <add>1.9</add> | |
6a488035 TO |
123 | </field> |
124 | <field> | |
8f069c03 EM |
125 | <name>cache_date</name> |
126 | <type>datetime</type> | |
127 | <title>Group Cache Date</title> | |
128 | <comment>Date when we created the cache for a smart group</comment> | |
129 | <add>2.1</add> | |
6a488035 TO |
130 | </field> |
131 | <field> | |
8f069c03 EM |
132 | <name>refresh_date</name> |
133 | <type>datetime</type> | |
134 | <title>Next Group Refresh Time</title> | |
135 | <comment>Date and time when we need to refresh the cache next.</comment> | |
136 | <add>4.3</add> | |
6a488035 TO |
137 | </field> |
138 | <field> | |
139 | <name>parents</name> | |
140 | <type>text</type> | |
141 | <title>Group Parents</title> | |
142 | <comment>IDs of the parent(s)</comment> | |
143 | <add>2.1</add> | |
144 | </field> | |
145 | <field> | |
146 | <name>children</name> | |
147 | <type>text</type> | |
148 | <title>Group Children</title> | |
149 | <comment>IDs of the child(ren)</comment> | |
150 | <add>2.1</add> | |
151 | </field> | |
152 | <field> | |
153 | <name>is_hidden</name> | |
154 | <type>boolean</type> | |
155 | <title>Group is Hidden</title> | |
156 | <default>0</default> | |
157 | <comment>Is this group hidden?</comment> | |
158 | <add>2.2</add> | |
159 | </field> | |
160 | <field> | |
161 | <name>is_reserved</name> | |
162 | <type>boolean</type> | |
163 | <title>Group is Reserved</title> | |
164 | <default>0</default> | |
165 | <add>4.2</add> | |
166 | </field> | |
167 | <index> | |
168 | <name>index_group_type</name> | |
169 | <fieldName>group_type</fieldName> | |
170 | <add>1.9</add> | |
171 | </index> | |
172 | <index> | |
173 | <name>UI_title</name> | |
174 | <fieldName>title</fieldName> | |
175 | <unique>true</unique> | |
176 | <add>2.1</add> | |
177 | </index> | |
178 | <index> | |
179 | <name>UI_name</name> | |
180 | <fieldName>name</fieldName> | |
181 | <unique>true</unique> | |
182 | <add>2.1</add> | |
183 | </index> | |
184 | <field> | |
8f069c03 EM |
185 | <name>created_id</name> |
186 | <type>int unsigned</type> | |
187 | <title>Group Created By</title> | |
188 | <comment>FK to contact table.</comment> | |
189 | <add>4.3</add> | |
6a488035 TO |
190 | </field> |
191 | <foreignKey> | |
8f069c03 EM |
192 | <name>created_id</name> |
193 | <table>civicrm_contact</table> | |
194 | <key>id</key> | |
195 | <add>4.3</add> | |
196 | <onDelete>SET NULL</onDelete> | |
6a488035 | 197 | </foreignKey> |
d0dfb649 | 198 | <field> |
8f069c03 EM |
199 | <name>modified_id</name> |
200 | <type>int unsigned</type> | |
201 | <title>Group Modified By</title> | |
202 | <comment>FK to contact table.</comment> | |
203 | <add>4.5</add> | |
d0dfb649 PJ |
204 | </field> |
205 | <foreignKey> | |
8f069c03 EM |
206 | <name>modified_id</name> |
207 | <table>civicrm_contact</table> | |
208 | <key>id</key> | |
209 | <add>4.5</add> | |
210 | <onDelete>SET NULL</onDelete> | |
d0dfb649 | 211 | </foreignKey> |
6a488035 | 212 | </table> |