Refactored out of CRM_Core_PseudoConstant: IMProvider(), pcm(), preferredCommunicatio...
[civicrm-core.git] / xml / schema / Core / MappingField.xml
CommitLineData
6a488035
TO
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 <required>true</required>
13 <comment>Mapping Field ID</comment>
14 <add>1.2</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 <add>1.2</add>
20 </primaryKey>
21 <field>
22 <name>mapping_id</name>
23 <type>int unsigned</type>
24 <required>true</required>
25 <comment>Mapping to which this field belongs</comment>
26 <add>1.2</add>
27 </field>
28 <foreignKey>
29 <name>mapping_id</name>
30 <table>civicrm_mapping</table>
31 <key>id</key>
32 <add>1.2</add>
33 </foreignKey>
34 <field>
35 <name>name</name>
36 <type>varchar</type>
37 <length>255</length>
38 <comment>Mapping field key</comment>
39 <add>1.2</add>
40 </field>
41 <field>
42 <name>contact_type</name>
43 <type>varchar</type>
44 <length>64</length>
45 <comment>Contact Type in mapping</comment>
46 <add>1.2</add>
47 </field>
48 <field>
49 <name>column_number</name>
50 <type>int unsigned</type>
51 <required>true</required>
52 <comment>Column number for mapping set</comment>
53 <add>1.2</add>
54 </field>
55 <field>
56 <name>location_type_id</name>
57 <type>int unsigned</type>
58 <comment>Location type of this mapping, if required</comment>
59 <add>1.2</add>
60 </field>
61 <foreignKey>
62 <name>location_type_id</name>
63 <table>civicrm_location_type</table>
64 <key>id</key>
65 <add>1.2</add>
66 </foreignKey>
67 <field>
68 <name>phone_type</name>
69 <type>varchar</type>
70 <length>64</length>
71 <comment>Phone type, if required</comment>
72 <add>1.2</add>
73 <drop>2.2</drop>
74 </field>
75 <field>
76 <name>phone_type_id</name>
77 <type>int unsigned</type>
78 <comment>Which type of phone does this number belongs.</comment>
79 <add>2.2</add>
80 </field>
81 <field>
e7e657f0
AS
82 <name>im_provider_id</name>
83 <type>int unsigned</type>
84 <comment>Which type of IM Provider does this name belong.</comment>
85 <add>3.0</add>
86 <pseudoconstant>
87 <optionGroupName>instant_messenger_service</optionGroupName>
88 </pseudoconstant>
6a488035
TO
89 </field>
90 <field>
91 <name>website_type_id</name>
92 <type>int unsigned</type>
93 <comment>Which type of website does this site belong</comment>
94 <add>3.2</add>
cbf48754
AS
95 <pseudoconstant>
96 <optionGroupName>website_type</optionGroupName>
97 </pseudoconstant>
6a488035
TO
98 </field>
99 <field>
100 <name>relationship_type_id</name>
101 <type>int unsigned</type>
102 <comment>Relationship type, if required</comment>
103 <add>1.2</add>
104 </field>
105 <foreignKey>
106 <name>relationship_type_id</name>
107 <table>civicrm_relationship_type</table>
108 <key>id</key>
109 <add>1.2</add>
110 </foreignKey>
111 <field>
112 <name>relationship_direction</name>
113 <type>varchar</type>
114 <length>6</length>
115 <add>1.7</add>
116 </field>
117 <field>
118 <name>grouping</name>
119 <type>int unsigned</type>
011aeb62 120 <default>1</default>
6a488035
TO
121 <comment>Used to group mapping_field records into related sets (e.g. for criteria sets in search builder mappings).</comment>
122 <add>1.5</add>
123 </field>
124 <field>
125 <name>operator</name>
126 <type>enum</type>
127 <values>&#61;, !&#61;, &#62;, &#60;, &#62;&#61;, &#60;&#61;,
128 IN, NOT IN, LIKE, NOT LIKE, IS NULL, IS NOT NULL</values>
129 <comment>SQL WHERE operator for search-builder mapping fields (search criteria).</comment>
130 <add>1.5</add>
131 </field>
132 <field>
133 <name>value</name>
134 <type>varchar</type>
135 <length>255</length>
136 <comment>SQL WHERE value for search-builder mapping fields.</comment>
137 <add>1.5</add>
138 </field>
139</table>