Import from SVN (r45945, r596)
[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>
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 </field>
87 <field>
88 <name>website_type_id</name>
89 <type>int unsigned</type>
90 <comment>Which type of website does this site belong</comment>
91 <add>3.2</add>
92 </field>
93 <field>
94 <name>relationship_type_id</name>
95 <type>int unsigned</type>
96 <comment>Relationship type, if required</comment>
97 <add>1.2</add>
98 </field>
99 <foreignKey>
100 <name>relationship_type_id</name>
101 <table>civicrm_relationship_type</table>
102 <key>id</key>
103 <add>1.2</add>
104 </foreignKey>
105 <field>
106 <name>relationship_direction</name>
107 <type>varchar</type>
108 <length>6</length>
109 <add>1.7</add>
110 </field>
111 <field>
112 <name>grouping</name>
113 <type>int unsigned</type>
114 <default>1</default>
115 <comment>Used to group mapping_field records into related sets (e.g. for criteria sets in search builder mappings).</comment>
116 <add>1.5</add>
117 </field>
118 <field>
119 <name>operator</name>
120 <type>enum</type>
121 <values>&#61;, !&#61;, &#62;, &#60;, &#62;&#61;, &#60;&#61;,
122 IN, NOT IN, LIKE, NOT LIKE, IS NULL, IS NOT NULL</values>
123 <comment>SQL WHERE operator for search-builder mapping fields (search criteria).</comment>
124 <add>1.5</add>
125 </field>
126 <field>
127 <name>value</name>
128 <type>varchar</type>
129 <length>255</length>
130 <comment>SQL WHERE value for search-builder mapping fields.</comment>
131 <add>1.5</add>
132 </field>
133</table>