Merge pull request #11183 from jmcclelland/CRM-18048
[civicrm-core.git] / xml / schema / Core / CustomGroup.xml
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>
7 <comment>All extended (custom) properties are associated with a group. These are logical sets of related data.
8 </comment>
9 <add>1.1</add>
10 <log>true</log>
11 <field>
12 <name>id</name>
13 <type>int unsigned</type>
14 <title>Custom Group ID</title>
15 <required>true</required>
16 <comment>Unique Custom Group ID</comment>
17 <add>1.1</add>
18 </field>
19 <primaryKey>
20 <name>id</name>
21 <autoincrement>true</autoincrement>
22 </primaryKey>
23 <field>
24 <name>name</name>
25 <type>varchar</type>
26 <title>Custom Group Name</title>
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>
34 <title>Custom Group Title</title>
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>
44 <title>Custom Group Extends</title>
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>
61 <title>Custom Group Subtype List</title>
62 <default>NULL</default>
63 <comment>FK to civicrm_option_value.id (for option group custom_data_type.)</comment>
64 <add>2.2</add>
65 </field>
66 <field>
67 <name>extends_entity_column_value</name>
68 <type>varchar</type>
69 <title>Custom Group Subtype</title>
70 <length>255</length>
71 <comment>linking custom group for dynamic object</comment>
72 <serialize>SEPARATOR_BOOKEND</serialize>
73 <add>1.6</add>
74 </field>
75 <field>
76 <name>style</name>
77 <type>varchar</type>
78 <title>Custom Group Style</title>
79 <length>15</length>
80 <comment>Visual relationship between this form and its parent.</comment>
81 <pseudoconstant>
82 <callback>CRM_Core_SelectValues::customGroupStyle</callback>
83 </pseudoconstant>
84 <add>1.1</add>
85 <html>
86 <type>Select</type>
87 </html>
88 </field>
89 <field>
90 <name>collapse_display</name>
91 <type>int unsigned</type>
92 <title>Collapse Custom Group?</title>
93 <default>0</default>
94 <comment>Will this group be in collapsed or expanded mode on initial display ?</comment>
95 <add>1.1</add>
96 </field>
97 <field>
98 <name>help_pre</name>
99 <type>text</type>
100 <title>Custom Group Pre Text</title>
101 <localizable>true</localizable>
102 <comment>Description and/or help text to display before fields in form.</comment>
103 <html>
104 <type>TextArea</type>
105 <rows>4</rows>
106 <cols>80</cols>
107 </html>
108 <add>1.1</add>
109 </field>
110 <field>
111 <name>help_post</name>
112 <type>text</type>
113 <title>Custom Group Post Text</title>
114 <localizable>true</localizable>
115 <comment>Description and/or help text to display after fields in form.</comment>
116 <html>
117 <type>TextArea</type>
118 <rows>4</rows>
119 <cols>80</cols>
120 </html>
121 <add>1.1</add>
122 </field>
123 <field>
124 <name>weight</name>
125 <type>int</type>
126 <title>Order</title>
127 <required>true</required>
128 <default>1</default>
129 <comment>Controls display order when multiple extended property groups are setup for the same class.</comment>
130 <add>1.1</add>
131 </field>
132 <field>
133 <name>is_active</name>
134 <type>boolean</type>
135 <title>Custom Group Is Active?</title>
136 <comment>Is this property active?</comment>
137 <add>1.1</add>
138 </field>
139 <field>
140 <name>table_name</name>
141 <type>varchar</type>
142 <length>255</length>
143 <comment>Name of the table that holds the values for this group.</comment>
144 <add>2.0</add>
145 </field>
146 <field>
147 <name>is_multiple</name>
148 <type>boolean</type>
149 <title>Supports Multiple Records</title>
150 <comment>Does this group hold multiple values?</comment>
151 <add>2.0</add>
152 </field>
153 <field>
154 <name>min_multiple</name>
155 <type>int unsigned</type>
156 <title>Minimum Multiple Records</title>
157 <comment>minimum number of multiple records (typically 0?)</comment>
158 <add>2.2</add>
159 </field>
160 <field>
161 <name>max_multiple</name>
162 <type>int unsigned</type>
163 <title>Maximum Multiple Records</title>
164 <comment>maximum number of multiple records, if 0 - no max</comment>
165 <add>2.2</add>
166 </field>
167 <field>
168 <name>collapse_adv_display</name>
169 <type>int unsigned</type>
170 <title>Collapse Group Display</title>
171 <default>0</default>
172 <comment>Will this group be in collapsed or expanded mode on advanced search display ?</comment>
173 <add>3.0</add>
174 </field>
175 <index>
176 <name>UI_title_extends</name>
177 <fieldName>title</fieldName>
178 <fieldName>extends</fieldName>
179 <unique>true</unique>
180 <add>2.1</add>
181 </index>
182 <index>
183 <name>UI_name_extends</name>
184 <fieldName>name</fieldName>
185 <fieldName>extends</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>Custom Group Created By</title>
193 <comment>FK to civicrm_contact, who created this custom group</comment>
194 <add>3.0</add>
195 </field>
196 <foreignKey>
197 <name>created_id</name>
198 <table>civicrm_contact</table>
199 <key>id</key>
200 <add>3.0</add>
201 <onDelete>SET NULL</onDelete>
202 </foreignKey>
203 <field>
204 <name>created_date</name>
205 <type>datetime</type>
206 <title>Custom Group Created Date</title>
207 <comment>Date and time this custom group was created.</comment>
208 <add>3.0</add>
209 </field>
210 <field>
211 <name>is_reserved</name>
212 <type>boolean</type>
213 <title>Reserved Group?</title>
214 <default>0</default>
215 <comment>Is this a reserved Custom Group?</comment>
216 <add>4.4</add>
217 </field>
218 <field>
219 <name>is_public</name>
220 <type>boolean</type>
221 <title>Custom Group Is Public?</title>
222 <default>1</default>
223 <comment>Is this property public?</comment>
224 <add>4.7</add>
225 </field>
226 </table>