<?xml version="1.0" encoding="utf-8" ?>
<table>
  <base>CRM/Dedupe</base>
  <class>DedupeException</class>
  <name>civicrm_dedupe_exception</name>
  <comment>Dedupe exceptions</comment>
  <add>3.3</add>
  <field>
    <name>id</name>
    <title>Dedupe Exception ID</title>
    <type>int unsigned</type>
    <required>true</required>
    <comment>Unique dedupe exception id</comment>
    <html>
      <type>Number</type>
    </html>
    <add>3.3</add>
  </field>
  <primaryKey>
    <name>id</name>
    <autoincrement>true</autoincrement>
  </primaryKey>
  <field>
    <name>contact_id1</name>
    <title>First Dupe Contact ID</title>
    <type>int unsigned</type>
    <comment>FK to Contact ID</comment>
    <html>
      <label>First Dupe Contact</label>
    </html>
    <add>3.3</add>
    <required>TRUE</required>
  </field>
  <foreignKey>
    <name>contact_id1</name>
    <table>civicrm_contact</table>
    <key>id</key>
    <add>3.3</add>
    <onDelete>CASCADE</onDelete>
  </foreignKey>
  <field>
    <name>contact_id2</name>
    <title>Second Dupe Contact ID</title>
    <type>int unsigned</type>
    <comment>FK to Contact ID</comment>
    <html>
      <label>Second Dupe Contact</label>
    </html>
    <add>3.3</add>
    <required>TRUE</required>
  </field>
  <foreignKey>
    <name>contact_id2</name>
    <table>civicrm_contact</table>
    <key>id</key>
    <add>3.3</add>
    <onDelete>CASCADE</onDelete>
  </foreignKey>
  <index>
    <name>UI_contact_id1_contact_id2</name>
    <fieldName>contact_id1</fieldName>
    <fieldName>contact_id2</fieldName>
    <unique>true</unique>
    <add>3.3</add>
  </index>
 </table>
