Add DedupeRule, DedupeRuleGroup and DedupeException APIv4 entities
[civicrm-core.git] / xml / schema / Dedupe / DedupeException.xml
1 <?xml version="1.0" encoding="utf-8" ?>
2 <table>
3 <base>CRM/Dedupe</base>
4 <class>DedupeException</class>
5 <name>civicrm_dedupe_exception</name>
6 <comment>Dedupe exceptions</comment>
7 <add>3.3</add>
8 <field>
9 <name>id</name>
10 <title>Dedupe Exception ID</title>
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Unique dedupe exception id</comment>
14 <html>
15 <type>Number</type>
16 </html>
17 <add>3.3</add>
18 </field>
19 <primaryKey>
20 <name>id</name>
21 <autoincrement>true</autoincrement>
22 </primaryKey>
23 <field>
24 <name>contact_id1</name>
25 <title>First Dupe Contact ID</title>
26 <type>int unsigned</type>
27 <comment>FK to Contact ID</comment>
28 <html>
29 <label>First Dupe Contact</label>
30 </html>
31 <add>3.3</add>
32 <required>TRUE</required>
33 </field>
34 <foreignKey>
35 <name>contact_id1</name>
36 <table>civicrm_contact</table>
37 <key>id</key>
38 <add>3.3</add>
39 <onDelete>CASCADE</onDelete>
40 </foreignKey>
41 <field>
42 <name>contact_id2</name>
43 <title>Second Dupe Contact ID</title>
44 <type>int unsigned</type>
45 <comment>FK to Contact ID</comment>
46 <html>
47 <label>Second Dupe Contact</label>
48 </html>
49 <add>3.3</add>
50 <required>TRUE</required>
51 </field>
52 <foreignKey>
53 <name>contact_id2</name>
54 <table>civicrm_contact</table>
55 <key>id</key>
56 <add>3.3</add>
57 <onDelete>CASCADE</onDelete>
58 </foreignKey>
59 <index>
60 <name>UI_contact_id1_contact_id2</name>
61 <fieldName>contact_id1</fieldName>
62 <fieldName>contact_id2</fieldName>
63 <unique>true</unique>
64 <add>3.3</add>
65 </index>
66 </table>