| 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 | <add>1.1</add> |
| 17 | </field> |
| 18 | <primaryKey> |
| 19 | <name>id</name> |
| 20 | <autoincrement>true</autoincrement> |
| 21 | </primaryKey> |
| 22 | <field> |
| 23 | <name>domain_id</name> |
| 24 | <title>UF Match Domain ID</title> |
| 25 | <type>int unsigned</type> |
| 26 | <required>true</required> |
| 27 | <comment>Which Domain is this match entry for</comment> |
| 28 | <pseudoconstant> |
| 29 | <table>civicrm_domain</table> |
| 30 | <keyColumn>id</keyColumn> |
| 31 | <labelColumn>name</labelColumn> |
| 32 | </pseudoconstant> |
| 33 | <add>3.0</add> |
| 34 | </field> |
| 35 | <foreignKey> |
| 36 | <name>domain_id</name> |
| 37 | <table>civicrm_domain</table> |
| 38 | <key>id</key> |
| 39 | <add>3.0</add> |
| 40 | </foreignKey> |
| 41 | <field> |
| 42 | <name>uf_id</name> |
| 43 | <title>CMS ID</title> |
| 44 | <type>int unsigned</type> |
| 45 | <required>true</required> |
| 46 | <comment>UF ID</comment> |
| 47 | <add>1.1</add> |
| 48 | </field> |
| 49 | <index> |
| 50 | <name>I_civicrm_uf_match_uf_id</name> |
| 51 | <fieldName>uf_id</fieldName> |
| 52 | <add>3.3</add> |
| 53 | </index> |
| 54 | <field> |
| 55 | <name>uf_name</name> |
| 56 | <title>CMS Unique Identifier</title> |
| 57 | <type>varchar</type> |
| 58 | <length>128</length> |
| 59 | <comment>UF Name</comment> |
| 60 | <add>1.9.kabissa</add> |
| 61 | </field> |
| 62 | <field> |
| 63 | <name>contact_id</name> |
| 64 | <title>CiviCRM Contact ID</title> |
| 65 | <type>int unsigned</type> |
| 66 | <comment>FK to Contact ID</comment> |
| 67 | <add>1.1</add> |
| 68 | </field> |
| 69 | <foreignKey> |
| 70 | <name>contact_id</name> |
| 71 | <table>civicrm_contact</table> |
| 72 | <key>id</key> |
| 73 | <add>1.1</add> |
| 74 | <onDelete>CASCADE</onDelete> |
| 75 | </foreignKey> |
| 76 | <field> |
| 77 | <name>email</name> |
| 78 | <type>varchar</type> |
| 79 | <length>64</length> |
| 80 | <rule>email</rule> |
| 81 | <comment>Email address</comment> |
| 82 | <add>1.1</add> |
| 83 | <drop>2.0</drop> |
| 84 | </field> |
| 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_id_domain_id</name> |
| 95 | <fieldName>uf_id</fieldName> |
| 96 | <fieldName>domain_id</fieldName> |
| 97 | <unique>true</unique> |
| 98 | <add>1.5</add> |
| 99 | <drop>1.7</drop> |
| 100 | </index> |
| 101 | <index> |
| 102 | <name>UI_uf_name_domain_id</name> |
| 103 | <fieldName>uf_name</fieldName> |
| 104 | <fieldName>domain_id</fieldName> |
| 105 | <unique>true</unique> |
| 106 | <add>2.1</add> |
| 107 | </index> |
| 108 | <index> |
| 109 | <name>UI_contact_domain_id</name> |
| 110 | <fieldName>contact_id</fieldName> |
| 111 | <fieldName>domain_id</fieldName> |
| 112 | <unique>true</unique> |
| 113 | <add>1.6</add> |
| 114 | </index> |
| 115 | </table> |