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