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