CRM-13497 - Move rows and cols
[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>
7 <comment>All extended (custom) properties are associated with a group. These are logical sets of related data.</comment>
8 <add>1.1</add>
9 <log>true</log>
10 <field>
11 <name>id</name>
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Unique Custom Group ID</comment>
15 <add>1.1</add>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>true</autoincrement>
20 </primaryKey>
21 <field>
22 <name>name</name>
23 <type>varchar</type>
24 <length>64</length>
25 <comment>Variable name/programmatic handle for this group.</comment>
26 <add>1.1</add>
27 </field>
28 <field>
29 <name>title</name>
30 <type>varchar</type>
31 <length>64</length>
32 <required>true</required>
33 <localizable>true</localizable>
34 <comment>Friendly Name.</comment>
35 <add>1.1</add>
36 </field>
37 <field>
38 <name>extends</name>
39 <type>varchar</type>
40 <length>255</length>
41 <default>'Contact'</default>
42 <comment>Type of object this group extends (can add other options later e.g. contact_address, etc.).</comment>
43 <add>1.1</add>
44 </field>
45 <field>
46 <name>extends_entity_column_name</name>
47 <type>varchar</type>
48 <length>64</length>
49 <comment>linking custom group for dynamic object</comment>
50 <add>1.6</add>
51 <drop>2.2</drop>
52 </field>
53 <field>
54 <name>extends_entity_column_id</name>
55 <type>int unsigned</type>
56 <default>NULL</default>
57 <comment>FK to civicrm_option_value.id (for option group custom_data_type.)</comment>
58 <add>2.2</add>
59 </field>
60 <field>
61 <name>extends_entity_column_value</name>
62 <type>varchar</type>
63 <length>255</length>
64 <comment>linking custom group for dynamic object</comment>
65 <add>1.6</add>
66 </field>
3c7d2158 67
6a488035
TO
68 <field>
69 <name>style</name>
70 <type>enum</type>
71 <values>Tab, Inline</values>
72 <comment>Visual relationship between this form and its parent.</comment>
73 <add>1.1</add>
74 </field>
75 <field>
76 <name>collapse_display</name>
77 <type>int unsigned</type>
78 <default>0</default>
79 <comment>Will this group be in collapsed or expanded mode on initial display ?</comment>
80 <add>1.1</add>
81 </field>
82 <field>
83 <name>help_pre</name>
84 <type>text</type>
85 <localizable>true</localizable>
86 <comment>Description and/or help text to display before fields in form.</comment>
7deea513 87 <html>
88 <type>TextArea</type>
817807ab 89 <rows>4</rows>
90 <cols>80</cols>
7deea513 91 </html>
817807ab 92 <add>1.1</add>
6a488035
TO
93 </field>
94 <field>
95 <name>help_post</name>
96 <type>text</type>
97 <localizable>true</localizable>
98 <comment>Description and/or help text to display after fields in form.</comment>
7deea513 99 <html>
100 <type>TextArea</type>
817807ab 101 <rows>4</rows>
102 <cols>80</cols>
7deea513 103 </html>
6a488035
TO
104 <add>1.1</add>
105 </field>
106 <field>
107 <name>weight</name>
108 <type>int</type>
109 <required>true</required>
110 <default>1</default>
111 <comment>Controls display order when multiple extended property groups are setup for the same class.</comment>
112 <add>1.1</add>
113 </field>
114 <field>
115 <name>is_active</name>
116 <type>boolean</type>
117 <comment>Is this property active?</comment>
118 <add>1.1</add>
119 </field>
120 <field>
121 <name>table_name</name>
122 <type>varchar</type>
123 <length>255</length>
124 <comment>Name of the table that holds the values for this group.</comment>
125 <add>2.0</add>
126 </field>
127 <field>
128 <name>is_multiple</name>
129 <type>boolean</type>
130 <comment>Does this group hold multiple values?</comment>
131 <add>2.0</add>
132 </field>
133 <field>
134 <name>min_multiple</name>
135 <type>int unsigned</type>
136 <comment>minimum number of multiple records (typically 0?)</comment>
137 <add>2.2</add>
138 </field>
139 <field>
140 <name>max_multiple</name>
141 <type>int unsigned</type>
142 <comment>maximum number of multiple records, if 0 - no max</comment>
143 <add>2.2</add>
144 </field>
145 <field>
146 <name>collapse_adv_display</name>
147 <type>int unsigned</type>
148 <default>0</default>
149 <comment>Will this group be in collapsed or expanded mode on advanced search display ?</comment>
150 <add>3.0</add>
151 </field>
152 <index>
153 <name>UI_title_extends</name>
154 <fieldName>title</fieldName>
155 <fieldName>extends</fieldName>
156 <unique>true</unique>
157 <add>2.1</add>
158 </index>
159 <index>
160 <name>UI_name_extends</name>
161 <fieldName>name</fieldName>
162 <fieldName>extends</fieldName>
163 <unique>true</unique>
164 <add>2.1</add>
165 </index>
166 <field>
167 <name>created_id</name>
168 <type>int unsigned</type>
169 <comment>FK to civicrm_contact, who created this custom group</comment>
170 <add>3.0</add>
171 </field>
172 <foreignKey>
173 <name>created_id</name>
174 <table>civicrm_contact</table>
175 <key>id</key>
176 <add>3.0</add>
177 <onDelete>SET NULL</onDelete>
178 </foreignKey>
179 <field>
180 <name>created_date</name>
181 <type>datetime</type>
182 <title>Custom Group Created Date</title>
183 <comment>Date and time this custom group was created.</comment>
184 <add>3.0</add>
185 </field>
3c7d2158 186 <field>
d06700a7
RN
187 <name>is_reserved</name>
188 <type>boolean</type>
189 <default>0</default>
190 <comment>Is this a reserved Custom Group?</comment>
3c7d2158 191 <add>4.4</add>
192 </field>
6a488035
TO
193</table>
194
195