<?xml version="1.0" encoding="iso-8859-1" ?>

<table>
  <base>CRM/Mailing/Event</base>
  <class>MailingEventConfirm</class>
  <name>civicrm_mailing_event_confirm</name>
  <comment>Tracks when a subscription event is confirmed by email</comment>
  <archive>true</archive>
  <component>CiviMail</component>
  <title>Mailing Opt-In Confirmation</title>
  <field>
    <name>id</name>
    <title>Mailing Confirmation ID</title>
    <type>int unsigned</type>
    <required>true</required>
    <html>
      <label>ID</label>
      <type>Number</type>
    </html>
  </field>
  <primaryKey>
    <name>id</name>
    <autoincrement>true</autoincrement>
  </primaryKey>
  <field>
    <name>event_subscribe_id</name>
    <title>Mailing Subscribe ID</title>
    <type>int unsigned</type>
    <required>true</required>
    <comment>FK to civicrm_mailing_event_subscribe</comment>
    <html>
      <label>Mailing Subscribe</label>
    </html>
  </field>
  <foreignKey>
    <name>event_subscribe_id</name>
    <table>civicrm_mailing_event_subscribe</table>
    <key>id</key>
    <onDelete>CASCADE</onDelete>
  </foreignKey>
  <field>
    <name>time_stamp</name>
    <title>Confirm Timestamp</title>
    <type>timestamp</type>
    <default>CURRENT_TIMESTAMP</default>
    <required>true</required>
    <comment>When this confirmation event occurred.</comment>
  </field>
</table>
