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