CRM-20459: Actively deprecate CRM_Core_OptionGroup::getValue
[civicrm-core.git] / xml / schema / Core / CustomGroup.xml
CommitLineData
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>
97 <type>int unsigned</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
EM
142 <comment>Is this property active?</comment>
143 <add>1.1</add>
144 </field>
145 <field>
146 <name>table_name</name>
147 <type>varchar</type>
148 <length>255</length>
149 <comment>Name of the table that holds the values for this group.</comment>
150 <add>2.0</add>
151 </field>
152 <field>
153 <name>is_multiple</name>
154 <type>boolean</type>
56b7523d 155 <title>Supports Multiple Records</title>
186e0984
EM
156 <comment>Does this group hold multiple values?</comment>
157 <add>2.0</add>
158 </field>
159 <field>
160 <name>min_multiple</name>
161 <type>int unsigned</type>
56b7523d 162 <title>Minimum Multiple Records</title>
186e0984
EM
163 <comment>minimum number of multiple records (typically 0?)</comment>
164 <add>2.2</add>
165 </field>
166 <field>
167 <name>max_multiple</name>
168 <type>int unsigned</type>
56b7523d 169 <title>Maximum Multiple Records</title>
186e0984
EM
170 <comment>maximum number of multiple records, if 0 - no max</comment>
171 <add>2.2</add>
172 </field>
173 <field>
174 <name>collapse_adv_display</name>
175 <type>int unsigned</type>
56b7523d 176 <title>Collapse Group Display</title>
186e0984
EM
177 <default>0</default>
178 <comment>Will this group be in collapsed or expanded mode on advanced search display ?</comment>
179 <add>3.0</add>
6a488035
TO
180 </field>
181 <index>
182 <name>UI_title_extends</name>
183 <fieldName>title</fieldName>
184 <fieldName>extends</fieldName>
185 <unique>true</unique>
186 <add>2.1</add>
187 </index>
188 <index>
189 <name>UI_name_extends</name>
190 <fieldName>name</fieldName>
191 <fieldName>extends</fieldName>
192 <unique>true</unique>
193 <add>2.1</add>
194 </index>
195 <field>
196 <name>created_id</name>
197 <type>int unsigned</type>
56b7523d 198 <title>Custom Group Created By</title>
6a488035
TO
199 <comment>FK to civicrm_contact, who created this custom group</comment>
200 <add>3.0</add>
201 </field>
202 <foreignKey>
203 <name>created_id</name>
204 <table>civicrm_contact</table>
205 <key>id</key>
206 <add>3.0</add>
207 <onDelete>SET NULL</onDelete>
208 </foreignKey>
209 <field>
210 <name>created_date</name>
211 <type>datetime</type>
212 <title>Custom Group Created Date</title>
213 <comment>Date and time this custom group was created.</comment>
214 <add>3.0</add>
215 </field>
3c7d2158 216 <field>
d06700a7
RN
217 <name>is_reserved</name>
218 <type>boolean</type>
56b7523d 219 <title>Reserved Group?</title>
d06700a7
RN
220 <default>0</default>
221 <comment>Is this a reserved Custom Group?</comment>
3c7d2158 222 <add>4.4</add>
223 </field>
460931ca
JP
224 <field>
225 <name>is_public</name>
226 <type>boolean</type>
227 <title>Custom Group Is Public?</title>
228 <default>1</default>
229 <comment>Is this property public?</comment>
230 <add>4.7</add>
231 </field>
6a488035 232</table>