Merge pull request #18435 from eileenmcnaughton/ms
[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 <title>Field Name (or unique reference)</title>
39 <type>varchar</type>
40 <length>255</length>
41 <comment>Mapping field key</comment>
42 <add>1.2</add>
43 </field>
44 <field>
45 <name>contact_type</name>
46 <title>Contact Type</title>
47 <type>varchar</type>
48 <length>64</length>
49 <comment>Contact Type in mapping</comment>
50 <html>
51 <type>Select</type>
52 </html>
53 <add>1.2</add>
54 </field>
55 <field>
56 <name>column_number</name>
57 <title>Column Number to map to</title>
58 <type>int unsigned</type>
59 <required>true</required>
60 <comment>Column number for mapping set</comment>
61 <add>1.2</add>
62 </field>
63 <field>
64 <name>location_type_id</name>
65 <type>int unsigned</type>
66 <title>Location type ID</title>
67 <comment>Location type of this mapping, if required</comment>
68 <add>1.2</add>
69 <pseudoconstant>
70 <table>civicrm_location_type</table>
71 <keyColumn>id</keyColumn>
72 <labelColumn>display_name</labelColumn>
73 </pseudoconstant>
74 </field>
75 <foreignKey>
76 <name>location_type_id</name>
77 <table>civicrm_location_type</table>
78 <key>id</key>
79 <add>1.2</add>
80 </foreignKey>
81 <field>
82 <name>phone_type_id</name>
83 <title>Phone Type</title>
84 <type>int unsigned</type>
85 <title>Phone type ID</title>
86 <comment>Which type of phone does this number belongs.</comment>
87 <add>2.2</add>
88 </field>
89 <field>
90 <name>im_provider_id</name>
91 <type>int unsigned</type>
92 <title>IM provider ID</title>
93 <comment>Which type of IM Provider does this name belong.</comment>
94 <add>3.0</add>
95 <pseudoconstant>
96 <optionGroupName>instant_messenger_service</optionGroupName>
97 </pseudoconstant>
98 <html>
99 <type>Select</type>
100 </html>
101 </field>
102 <field>
103 <name>website_type_id</name>
104 <type>int unsigned</type>
105 <title>Website type ID</title>
106 <comment>Which type of website does this site belong</comment>
107 <add>3.2</add>
108 <pseudoconstant>
109 <optionGroupName>website_type</optionGroupName>
110 </pseudoconstant>
111 <html>
112 <type>Select</type>
113 </html>
114 </field>
115 <field>
116 <name>relationship_type_id</name>
117 <type>int unsigned</type>
118 <title>Relationship type ID</title>
119 <comment>Relationship type, if required</comment>
120 <add>1.2</add>
121 </field>
122 <foreignKey>
123 <name>relationship_type_id</name>
124 <table>civicrm_relationship_type</table>
125 <key>id</key>
126 <add>1.2</add>
127 </foreignKey>
128 <field>
129 <name>relationship_direction</name>
130 <title>Relationship Direction</title>
131 <type>varchar</type>
132 <length>6</length>
133 <add>1.7</add>
134 </field>
135 <field>
136 <name>grouping</name>
137 <title>Field Grouping</title>
138 <type>int unsigned</type>
139 <default>1</default>
140 <comment>Used to group mapping_field records into related sets (e.g. for criteria sets in search builder
141 mappings).</comment>
142 <add>1.5</add>
143 </field>
144 <field>
145 <name>operator</name>
146 <type>varchar</type>
147 <title>Operator</title>
148 <length>16</length>
149 <type>enum</type>
150 <comment>SQL WHERE operator for search-builder mapping fields (search criteria).</comment>
151 <pseudoconstant>
152 <callback>CRM_Core_SelectValues::getSearchBuilderOperators</callback>
153 </pseudoconstant>
154 <add>1.5</add>
155 <html>
156 <type>Select</type>
157 </html>
158 </field>
159 <field>
160 <name>value</name>
161 <title>Search builder where clause</title>
162 <type>varchar</type>
163 <length>255</length>
164 <comment>SQL WHERE value for search-builder mapping fields.</comment>
165 <add>1.5</add>
166 </field>
167 </table>