Merge pull request #8983 from KarinG/CRM-19309
[civicrm-core.git] / xml / schema / Core / MappingField.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Core</base>
5 <class>MappingField</class>
6 <name>civicrm_mapping_field</name>
7 <comment>Individual field mappings for Mapping</comment>
8 <add>1.2</add>
9 <field>
10 <name>id</name>
11 <type>int unsigned</type>
12 <title>Mapping Field ID</title>
13 <required>true</required>
14 <comment>Mapping Field ID</comment>
15 <add>1.2</add>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>true</autoincrement>
20 <add>1.2</add>
21 </primaryKey>
22 <field>
23 <name>mapping_id</name>
24 <type>int unsigned</type>
25 <title>Mapping ID</title>
26 <required>true</required>
27 <comment>Mapping to which this field belongs</comment>
28 <add>1.2</add>
29 </field>
30 <foreignKey>
31 <name>mapping_id</name>
32 <table>civicrm_mapping</table>
33 <key>id</key>
34 <add>1.2</add>
35 </foreignKey>
36 <field>
37 <name>name</name>
38 <type>varchar</type>
39 <length>255</length>
40 <comment>Mapping field key</comment>
41 <add>1.2</add>
42 </field>
43 <field>
44 <name>contact_type</name>
45 <type>varchar</type>
46 <length>64</length>
47 <comment>Contact Type in mapping</comment>
48 <html>
49 <type>Select</type>
50 </html>
51 <add>1.2</add>
52 </field>
53 <field>
54 <name>column_number</name>
55 <type>int unsigned</type>
56 <required>true</required>
57 <comment>Column number for mapping set</comment>
58 <add>1.2</add>
59 </field>
60 <field>
61 <name>location_type_id</name>
62 <type>int unsigned</type>
63 <title>Location type ID</title>
64 <comment>Location type of this mapping, if required</comment>
65 <add>1.2</add>
66 </field>
67 <foreignKey>
68 <name>location_type_id</name>
69 <table>civicrm_location_type</table>
70 <key>id</key>
71 <add>1.2</add>
72 </foreignKey>
73 <field>
74 <name>phone_type</name>
75 <type>varchar</type>
76 <length>64</length>
77 <comment>Phone type, if required</comment>
78 <add>1.2</add>
79 <drop>2.2</drop>
80 </field>
81 <field>
82 <name>phone_type_id</name>
83 <type>int unsigned</type>
84 <title>Phone type ID</title>
85 <comment>Which type of phone does this number belongs.</comment>
86 <add>2.2</add>
87 </field>
88 <field>
89 <name>im_provider_id</name>
90 <type>int unsigned</type>
91 <title>IM provider ID</title>
92 <comment>Which type of IM Provider does this name belong.</comment>
93 <add>3.0</add>
94 <pseudoconstant>
95 <optionGroupName>instant_messenger_service</optionGroupName>
96 </pseudoconstant>
97 <html>
98 <type>Select</type>
99 </html>
100 </field>
101 <field>
102 <name>website_type_id</name>
103 <type>int unsigned</type>
104 <title>Website type ID</title>
105 <comment>Which type of website does this site belong</comment>
106 <add>3.2</add>
107 <pseudoconstant>
108 <optionGroupName>website_type</optionGroupName>
109 </pseudoconstant>
110 <html>
111 <type>Select</type>
112 </html>
113 </field>
114 <field>
115 <name>relationship_type_id</name>
116 <type>int unsigned</type>
117 <title>Relationship type ID</title>
118 <comment>Relationship type, if required</comment>
119 <add>1.2</add>
120 </field>
121 <foreignKey>
122 <name>relationship_type_id</name>
123 <table>civicrm_relationship_type</table>
124 <key>id</key>
125 <add>1.2</add>
126 </foreignKey>
127 <field>
128 <name>relationship_direction</name>
129 <type>varchar</type>
130 <length>6</length>
131 <add>1.7</add>
132 </field>
133 <field>
134 <name>grouping</name>
135 <type>int unsigned</type>
136 <default>1</default>
137 <comment>Used to group mapping_field records into related sets (e.g. for criteria sets in search builder
138 mappings).
139 </comment>
140 <add>1.5</add>
141 </field>
142 <field>
143 <name>operator</name>
144 <type>varchar</type>
145 <length>16</length>
146 <type>enum</type>
147 <comment>SQL WHERE operator for search-builder mapping fields (search criteria).</comment>
148 <pseudoconstant>
149 <callback>CRM_Core_SelectValues::getSearchBuilderOperators</callback>
150 </pseudoconstant>
151 <add>1.5</add>
152 <html>
153 <type>Select</type>
154 </html>
155 </field>
156 <field>
157 <name>value</name>
158 <type>varchar</type>
159 <length>255</length>
160 <comment>SQL WHERE value for search-builder mapping fields.</comment>
161 <add>1.5</add>
162 </field>
163 </table>