Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Core</base> | |
5 | <class>UFField</class> | |
6 | <name>civicrm_uf_field</name> | |
7 | <comment>User Framework fields and their properties.</comment> | |
8 | <add>1.1</add> | |
9 | <log>true</log> | |
10 | <field> | |
4cc2ccac | 11 | <name>id</name> |
4cc6314b | 12 | <title>Profile Field ID</title> |
4cc2ccac EM |
13 | <type>int unsigned</type> |
14 | <required>true</required> | |
15 | <comment>Unique table ID</comment> | |
0481e12c A |
16 | <html> |
17 | <type>Number</type> | |
18 | </html> | |
4cc2ccac | 19 | <add>1.1</add> |
6a488035 TO |
20 | </field> |
21 | <primaryKey> | |
4cc2ccac EM |
22 | <name>id</name> |
23 | <autoincrement>true</autoincrement> | |
6a488035 TO |
24 | </primaryKey> |
25 | <field> | |
4cc2ccac | 26 | <name>uf_group_id</name> |
4cc6314b | 27 | <title>Profile ID</title> |
4cc2ccac EM |
28 | <type>int unsigned</type> |
29 | <required>true</required> | |
30 | <comment>Which form does this field belong to.</comment> | |
31 | <add>1.1</add> | |
32 | <pseudoconstant> | |
33 | <table>civicrm_uf_group</table> | |
34 | <keyColumn>id</keyColumn> | |
35 | <labelColumn>title</labelColumn> | |
36 | </pseudoconstant> | |
37 | <html> | |
38 | <type>Select</type> | |
57e94608 | 39 | <label>Profile</label> |
4cc2ccac | 40 | </html> |
6a488035 TO |
41 | </field> |
42 | <foreignKey> | |
4cc2ccac EM |
43 | <name>uf_group_id</name> |
44 | <table>civicrm_uf_group</table> | |
45 | <key>id</key> | |
46 | <add>1.1</add> | |
47 | <onDelete>CASCADE</onDelete> | |
6a488035 TO |
48 | </foreignKey> |
49 | <field> | |
4cc2ccac | 50 | <name>field_name</name> |
4cc6314b | 51 | <title>Profile Field Name</title> |
4cc2ccac EM |
52 | <type>varchar</type> |
53 | <length>64</length> | |
54 | <required>true</required> | |
55 | <comment>Name for CiviCRM field which is being exposed for sharing.</comment> | |
ffb9cdec CW |
56 | <pseudoconstant> |
57 | <callback>CRM_Core_BAO_UFField::getAvailableFieldTitles</callback> | |
58 | </pseudoconstant> | |
4cc2ccac | 59 | <add>1.1</add> |
6a488035 TO |
60 | </field> |
61 | <field> | |
4cc2ccac | 62 | <name>is_active</name> |
4cc6314b | 63 | <title>Profile Field Is Active</title> |
4cc2ccac EM |
64 | <type>boolean</type> |
65 | <default>1</default> | |
66 | <comment>Is this field currently shareable? If false, hide the field for all sharing contexts.</comment> | |
67 | <add>1.1</add> | |
6a488035 TO |
68 | </field> |
69 | <field> | |
4cc2ccac | 70 | <name>is_view</name> |
4cc6314b | 71 | <title>Profile Is View Only</title> |
4cc2ccac EM |
72 | <type>boolean</type> |
73 | <default>0</default> | |
74 | <comment>the field is view only and not editable in user forms.</comment> | |
75 | <add>1.1</add> | |
6a488035 TO |
76 | </field> |
77 | <field> | |
4cc2ccac | 78 | <name>is_required</name> |
4cc6314b | 79 | <title>Profile Field Is Required</title> |
4cc2ccac EM |
80 | <type>boolean</type> |
81 | <default>0</default> | |
82 | <comment>Is this field required when included in a user or registration form?</comment> | |
83 | <add>1.1</add> | |
6a488035 TO |
84 | </field> |
85 | <field> | |
4cc2ccac | 86 | <name>weight</name> |
7ecddde4 | 87 | <title>Order</title> |
4cc2ccac EM |
88 | <type>int</type> |
89 | <required>true</required> | |
90 | <default>1</default> | |
91 | <comment>Controls field display order when user framework fields are displayed in registration and account editing forms.</comment> | |
92 | <add>1.1</add> | |
6a488035 TO |
93 | </field> |
94 | <field> | |
4cc2ccac | 95 | <name>help_post</name> |
4cc6314b | 96 | <title>Profile Field Post Help</title> |
4cc2ccac EM |
97 | <type>text</type> |
98 | <localizable>true</localizable> | |
99 | <comment>Description and/or help text to display after this field.</comment> | |
100 | <add>1.1</add> | |
6a488035 TO |
101 | </field> |
102 | <field> | |
4cc2ccac | 103 | <name>help_pre</name> |
4cc6314b | 104 | <title>Profile Field Pre Help</title> |
4cc2ccac EM |
105 | <type>text</type> |
106 | <localizable>true</localizable> | |
107 | <comment>Description and/or help text to display before this field.</comment> | |
108 | <add>3.2</add> | |
6a488035 | 109 | </field> |
4cc2ccac EM |
110 | <field> |
111 | <name>visibility</name> | |
4cc6314b | 112 | <title>Profile Field Visibility</title> |
4cc2ccac EM |
113 | <type>varchar</type> |
114 | <length>32</length> | |
115 | <default>'User and User Admin Only'</default> | |
116 | <comment>In what context(s) is this field visible.</comment> | |
117 | <pseudoconstant> | |
118 | <callback>CRM_Core_SelectValues::ufVisibility</callback> | |
119 | </pseudoconstant> | |
120 | <add>1.1</add> | |
121 | <html> | |
122 | <type>Select</type> | |
123 | </html> | |
124 | </field> | |
4cc2ccac EM |
125 | <field> |
126 | <name>in_selector</name> | |
4cc6314b | 127 | <title>Profile Field Is a Filter</title> |
4cc2ccac EM |
128 | <type>boolean</type> |
129 | <default>0</default> | |
130 | <comment>Is this field included as a column in the selector table?</comment> | |
131 | <add>1.2</add> | |
6a488035 TO |
132 | </field> |
133 | <field> | |
4cc2ccac | 134 | <name>is_searchable</name> |
4cc6314b | 135 | <title>Profile Field Is Searchable</title> |
4cc2ccac EM |
136 | <type>boolean</type> |
137 | <default>0</default> | |
138 | <comment>Is this field included search form of profile?</comment> | |
139 | <add>1.4</add> | |
6a488035 TO |
140 | </field> |
141 | <field> | |
4cc2ccac | 142 | <name>location_type_id</name> |
1c0d6845 | 143 | <title>Location Type ID</title> |
4cc2ccac EM |
144 | <type>int unsigned</type> |
145 | <comment>Location type of this mapping, if required</comment> | |
57e94608 | 146 | <html> |
1c0d6845 | 147 | <label>Location Type</label> |
57e94608 | 148 | </html> |
4cc2ccac | 149 | <add>1.3</add> |
6a488035 TO |
150 | </field> |
151 | <foreignKey> | |
4cc2ccac EM |
152 | <name>location_type_id</name> |
153 | <table>civicrm_location_type</table> | |
154 | <key>id</key> | |
155 | <add>1.3</add> | |
156 | <onDelete>SET NULL</onDelete> | |
6a488035 | 157 | </foreignKey> |
6a488035 | 158 | <field> |
4cc2ccac | 159 | <name>phone_type_id</name> |
4cc6314b | 160 | <title>Profile Field Phone Type</title> |
4cc2ccac | 161 | <type>int unsigned</type> |
047c5009 | 162 | <comment>Phone Type ID, if required</comment> |
4cc2ccac | 163 | <add>2.2</add> |
b9bf5852 PN |
164 | <pseudoconstant> |
165 | <optionGroupName>phone_type</optionGroupName> | |
166 | </pseudoconstant> | |
6a488035 | 167 | </field> |
887e764d PN |
168 | <field> |
169 | <name>website_type_id</name> | |
4cc6314b | 170 | <title>Profile Field Website Type</title> |
887e764d | 171 | <type>int unsigned</type> |
047c5009 | 172 | <comment>Website Type ID, if required</comment> |
887e764d | 173 | <add>4.5</add> |
b9bf5852 PN |
174 | <pseudoconstant> |
175 | <optionGroupName>website_type</optionGroupName> | |
176 | </pseudoconstant> | |
887e764d | 177 | </field> |
6a488035 | 178 | <field> |
4cc2ccac | 179 | <name>label</name> |
4cc6314b | 180 | <title>Profile Field Label</title> |
4cc2ccac EM |
181 | <type>varchar</type> |
182 | <length>255</length> | |
183 | <required>true</required> | |
184 | <localizable>true</localizable> | |
185 | <comment>To save label for fields.</comment> | |
186 | <add>1.4</add> | |
6a488035 TO |
187 | </field> |
188 | <field> | |
4cc2ccac | 189 | <name>field_type</name> |
4cc6314b | 190 | <title>Profile Field Type</title> |
4cc2ccac EM |
191 | <type>varchar</type> |
192 | <length>255</length> | |
193 | <comment>This field saves field type (ie individual,household.. field etc).</comment> | |
194 | <add>1.4</add> | |
6a488035 TO |
195 | </field> |
196 | <field> | |
197 | <name>is_reserved</name> | |
4cc6314b | 198 | <title>Profile Field Is Reserved</title> |
6a488035 TO |
199 | <type>boolean</type> |
200 | <comment>Is this field reserved for use by some other CiviCRM functionality?</comment> | |
201 | <add>3.0</add> | |
202 | </field> | |
203 | <field> | |
204 | <name>is_multi_summary</name> | |
4cc6314b | 205 | <title>Profile Field Supports Multiple</title> |
6a488035 TO |
206 | <type>boolean</type> |
207 | <default>0</default> | |
208 | <comment>Include in multi-record listing?</comment> | |
209 | <add>4.3</add> | |
210 | </field> | |
887e764d PN |
211 | <index> |
212 | <name>IX_website_type_id</name> | |
4cc6314b | 213 | <title>Profile Field Website Type</title> |
887e764d PN |
214 | <fieldName>website_type_id</fieldName> |
215 | <add>4.5</add> | |
216 | </index> | |
6a488035 | 217 | </table> |