Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Core</base> | |
5 | <class>CustomGroup</class> | |
6 | <name>civicrm_custom_group</name> | |
186e0984 EM |
7 | <comment>All extended (custom) properties are associated with a group. These are logical sets of related data. |
8 | </comment> | |
6a488035 TO |
9 | <add>1.1</add> |
10 | <log>true</log> | |
186e0984 EM |
11 | <field> |
12 | <name>id</name> | |
13 | <type>int unsigned</type> | |
56b7523d | 14 | <title>Custom Group ID</title> |
186e0984 EM |
15 | <required>true</required> |
16 | <comment>Unique Custom Group ID</comment> | |
17 | <add>1.1</add> | |
6a488035 TO |
18 | </field> |
19 | <primaryKey> | |
186e0984 EM |
20 | <name>id</name> |
21 | <autoincrement>true</autoincrement> | |
6a488035 TO |
22 | </primaryKey> |
23 | <field> | |
186e0984 EM |
24 | <name>name</name> |
25 | <type>varchar</type> | |
56b7523d | 26 | <title>Custom Group Name</title> |
186e0984 EM |
27 | <length>64</length> |
28 | <comment>Variable name/programmatic handle for this group.</comment> | |
29 | <add>1.1</add> | |
30 | </field> | |
31 | <field> | |
32 | <name>title</name> | |
33 | <type>varchar</type> | |
56b7523d | 34 | <title>Custom Group Title</title> |
186e0984 EM |
35 | <length>64</length> |
36 | <required>true</required> | |
37 | <localizable>true</localizable> | |
38 | <comment>Friendly Name.</comment> | |
39 | <add>1.1</add> | |
40 | </field> | |
41 | <field> | |
42 | <name>extends</name> | |
43 | <type>varchar</type> | |
56b7523d | 44 | <title>Custom Group Extends</title> |
186e0984 EM |
45 | <length>255</length> |
46 | <default>'Contact'</default> | |
47 | <comment>Type of object this group extends (can add other options later e.g. contact_address, etc.).</comment> | |
48 | <add>1.1</add> | |
49 | </field> | |
50 | <field> | |
51 | <name>extends_entity_column_name</name> | |
52 | <type>varchar</type> | |
53 | <length>64</length> | |
54 | <comment>linking custom group for dynamic object</comment> | |
55 | <add>1.6</add> | |
56 | <drop>2.2</drop> | |
57 | </field> | |
58 | <field> | |
59 | <name>extends_entity_column_id</name> | |
60 | <type>int unsigned</type> | |
56b7523d | 61 | <title>Custom Group Subtype List</title> |
186e0984 EM |
62 | <default>NULL</default> |
63 | <comment>FK to civicrm_option_value.id (for option group custom_data_type.)</comment> | |
233319bf | 64 | <pseudoconstant> |
65 | <optionGroupName>custom_data_type</optionGroupName> | |
66 | </pseudoconstant> | |
186e0984 | 67 | <add>2.2</add> |
233319bf | 68 | <html> |
69 | <type>Select</type> | |
70 | </html> | |
186e0984 EM |
71 | </field> |
72 | <field> | |
73 | <name>extends_entity_column_value</name> | |
74 | <type>varchar</type> | |
56b7523d | 75 | <title>Custom Group Subtype</title> |
186e0984 EM |
76 | <length>255</length> |
77 | <comment>linking custom group for dynamic object</comment> | |
2a5c9b4d | 78 | <serialize>SEPARATOR_BOOKEND</serialize> |
186e0984 EM |
79 | <add>1.6</add> |
80 | </field> | |
81 | <field> | |
82 | <name>style</name> | |
83 | <type>varchar</type> | |
56b7523d | 84 | <title>Custom Group Style</title> |
186e0984 EM |
85 | <length>15</length> |
86 | <comment>Visual relationship between this form and its parent.</comment> | |
87 | <pseudoconstant> | |
88 | <callback>CRM_Core_SelectValues::customGroupStyle</callback> | |
89 | </pseudoconstant> | |
90 | <add>1.1</add> | |
91 | <html> | |
92 | <type>Select</type> | |
93 | </html> | |
94 | </field> | |
95 | <field> | |
96 | <name>collapse_display</name> | |
9752268e | 97 | <type>boolean</type> |
56b7523d | 98 | <title>Collapse Custom Group?</title> |
186e0984 EM |
99 | <default>0</default> |
100 | <comment>Will this group be in collapsed or expanded mode on initial display ?</comment> | |
101 | <add>1.1</add> | |
102 | </field> | |
103 | <field> | |
104 | <name>help_pre</name> | |
105 | <type>text</type> | |
56b7523d | 106 | <title>Custom Group Pre Text</title> |
186e0984 EM |
107 | <localizable>true</localizable> |
108 | <comment>Description and/or help text to display before fields in form.</comment> | |
109 | <html> | |
110 | <type>TextArea</type> | |
111 | <rows>4</rows> | |
112 | <cols>80</cols> | |
113 | </html> | |
114 | <add>1.1</add> | |
115 | </field> | |
116 | <field> | |
117 | <name>help_post</name> | |
118 | <type>text</type> | |
56b7523d | 119 | <title>Custom Group Post Text</title> |
186e0984 EM |
120 | <localizable>true</localizable> |
121 | <comment>Description and/or help text to display after fields in form.</comment> | |
122 | <html> | |
123 | <type>TextArea</type> | |
124 | <rows>4</rows> | |
125 | <cols>80</cols> | |
126 | </html> | |
127 | <add>1.1</add> | |
128 | </field> | |
129 | <field> | |
130 | <name>weight</name> | |
131 | <type>int</type> | |
7ecddde4 | 132 | <title>Order</title> |
186e0984 EM |
133 | <required>true</required> |
134 | <default>1</default> | |
135 | <comment>Controls display order when multiple extended property groups are setup for the same class.</comment> | |
136 | <add>1.1</add> | |
137 | </field> | |
138 | <field> | |
139 | <name>is_active</name> | |
140 | <type>boolean</type> | |
56b7523d | 141 | <title>Custom Group Is Active?</title> |
186e0984 | 142 | <comment>Is this property active?</comment> |
c0c9c8bf | 143 | <default>1</default> |
186e0984 EM |
144 | <add>1.1</add> |
145 | </field> | |
146 | <field> | |
147 | <name>table_name</name> | |
148 | <type>varchar</type> | |
149 | <length>255</length> | |
150 | <comment>Name of the table that holds the values for this group.</comment> | |
151 | <add>2.0</add> | |
152 | </field> | |
153 | <field> | |
154 | <name>is_multiple</name> | |
155 | <type>boolean</type> | |
56b7523d | 156 | <title>Supports Multiple Records</title> |
186e0984 | 157 | <comment>Does this group hold multiple values?</comment> |
c0c9c8bf | 158 | <default>0</default> |
186e0984 EM |
159 | <add>2.0</add> |
160 | </field> | |
161 | <field> | |
162 | <name>min_multiple</name> | |
163 | <type>int unsigned</type> | |
56b7523d | 164 | <title>Minimum Multiple Records</title> |
186e0984 EM |
165 | <comment>minimum number of multiple records (typically 0?)</comment> |
166 | <add>2.2</add> | |
167 | </field> | |
168 | <field> | |
169 | <name>max_multiple</name> | |
170 | <type>int unsigned</type> | |
56b7523d | 171 | <title>Maximum Multiple Records</title> |
186e0984 EM |
172 | <comment>maximum number of multiple records, if 0 - no max</comment> |
173 | <add>2.2</add> | |
174 | </field> | |
175 | <field> | |
176 | <name>collapse_adv_display</name> | |
9752268e | 177 | <type>boolean</type> |
56b7523d | 178 | <title>Collapse Group Display</title> |
186e0984 EM |
179 | <default>0</default> |
180 | <comment>Will this group be in collapsed or expanded mode on advanced search display ?</comment> | |
181 | <add>3.0</add> | |
6a488035 TO |
182 | </field> |
183 | <index> | |
184 | <name>UI_title_extends</name> | |
185 | <fieldName>title</fieldName> | |
186 | <fieldName>extends</fieldName> | |
187 | <unique>true</unique> | |
188 | <add>2.1</add> | |
189 | </index> | |
190 | <index> | |
191 | <name>UI_name_extends</name> | |
192 | <fieldName>name</fieldName> | |
193 | <fieldName>extends</fieldName> | |
194 | <unique>true</unique> | |
195 | <add>2.1</add> | |
196 | </index> | |
197 | <field> | |
198 | <name>created_id</name> | |
199 | <type>int unsigned</type> | |
56b7523d | 200 | <title>Custom Group Created By</title> |
6a488035 TO |
201 | <comment>FK to civicrm_contact, who created this custom group</comment> |
202 | <add>3.0</add> | |
203 | </field> | |
204 | <foreignKey> | |
205 | <name>created_id</name> | |
206 | <table>civicrm_contact</table> | |
207 | <key>id</key> | |
208 | <add>3.0</add> | |
209 | <onDelete>SET NULL</onDelete> | |
210 | </foreignKey> | |
211 | <field> | |
212 | <name>created_date</name> | |
213 | <type>datetime</type> | |
214 | <title>Custom Group Created Date</title> | |
215 | <comment>Date and time this custom group was created.</comment> | |
216 | <add>3.0</add> | |
217 | </field> | |
3c7d2158 | 218 | <field> |
d06700a7 RN |
219 | <name>is_reserved</name> |
220 | <type>boolean</type> | |
56b7523d | 221 | <title>Reserved Group?</title> |
d06700a7 RN |
222 | <default>0</default> |
223 | <comment>Is this a reserved Custom Group?</comment> | |
3c7d2158 | 224 | <add>4.4</add> |
225 | </field> | |
460931ca JP |
226 | <field> |
227 | <name>is_public</name> | |
228 | <type>boolean</type> | |
229 | <title>Custom Group Is Public?</title> | |
230 | <default>1</default> | |
231 | <comment>Is this property public?</comment> | |
232 | <add>4.7</add> | |
233 | </field> | |
2af06525 CW |
234 | <field> |
235 | <name>icon</name> | |
236 | <title>Icon</title> | |
237 | <type>varchar</type> | |
238 | <length>255</length> | |
239 | <default>NULL</default> | |
240 | <comment>crm-i icon class</comment> | |
241 | <add>5.28</add> | |
242 | </field> | |
6a488035 | 243 | </table> |