Merge pull request #23282 from eileenmcnaughton/import_default_location_type
[civicrm-core.git] / xml / schema / Core / UFMatch.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Core</base>
5 <class>UFMatch</class>
6 <name>civicrm_uf_match</name>
7 <comment>The mapping from an user framework (UF) object to a CRM object.</comment>
8 <add>1.1</add>
9 <log>true</log>
10 <field>
11 <name>id</name>
12 <title>UF Match ID</title>
13 <type>int unsigned</type>
14 <required>true</required>
15 <comment>System generated ID.</comment>
16 <html>
17 <type>Number</type>
18 </html>
19 <add>1.1</add>
20 </field>
21 <primaryKey>
22 <name>id</name>
23 <autoincrement>true</autoincrement>
24 </primaryKey>
25 <field>
26 <name>domain_id</name>
27 <title>Domain ID</title>
28 <type>int unsigned</type>
29 <required>true</required>
30 <comment>Which Domain is this match entry for</comment>
31 <pseudoconstant>
32 <table>civicrm_domain</table>
33 <keyColumn>id</keyColumn>
34 <labelColumn>name</labelColumn>
35 </pseudoconstant>
36 <html>
37 <label>Domain</label>
38 </html>
39 <add>3.0</add>
40 </field>
41 <foreignKey>
42 <name>domain_id</name>
43 <table>civicrm_domain</table>
44 <key>id</key>
45 <add>3.0</add>
46 </foreignKey>
47 <field>
48 <name>uf_id</name>
49 <title>CMS ID</title>
50 <type>int unsigned</type>
51 <required>true</required>
52 <comment>UF ID</comment>
53 <add>1.1</add>
54 </field>
55 <index>
56 <name>I_civicrm_uf_match_uf_id</name>
57 <fieldName>uf_id</fieldName>
58 <add>3.3</add>
59 </index>
60 <field>
61 <name>uf_name</name>
62 <title>CMS Unique Identifier</title>
63 <type>varchar</type>
64 <length>128</length>
65 <comment>UF Name</comment>
66 <add>1.9.kabissa</add>
67 </field>
68 <field>
69 <name>contact_id</name>
70 <title>Contact ID</title>
71 <type>int unsigned</type>
72 <comment>FK to Contact ID</comment>
73 <html>
74 <label>Contact</label>
75 </html>
76 <add>1.1</add>
77 </field>
78 <foreignKey>
79 <name>contact_id</name>
80 <table>civicrm_contact</table>
81 <key>id</key>
82 <add>1.1</add>
83 <onDelete>CASCADE</onDelete>
84 </foreignKey>
85 <field>
86 <name>language</name>
87 <title>Preferred Language</title>
88 <type>varchar</type>
89 <length>5</length>
90 <comment>UI language preferred by the given user/contact</comment>
91 <add>2.1</add>
92 </field>
93 <index>
94 <name>UI_uf_name_domain_id</name>
95 <fieldName>uf_name</fieldName>
96 <fieldName>domain_id</fieldName>
97 <unique>true</unique>
98 <add>2.1</add>
99 </index>
100 <index>
101 <name>UI_contact_domain_id</name>
102 <fieldName>contact_id</fieldName>
103 <fieldName>domain_id</fieldName>
104 <unique>true</unique>
105 <add>1.6</add>
106 </index>
107 </table>