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

<table>
  <base>CRM/Friend</base>
  <class>Friend</class>
  <name>civicrm_tell_friend</name>
  <add>2.0</add>
  <field>
    <name>id</name>
    <title>Friend ID</title>
    <type>int unsigned</type>
    <required>true</required>
    <comment>Friend ID</comment>
    <html>
      <type>Number</type>
    </html>
    <add>2.0</add>
  </field>
  <primaryKey>
    <name>id</name>
    <autoincrement>true</autoincrement>
  </primaryKey>
  <field>
    <name>entity_table</name>
    <title>Entity Table</title>
    <type>varchar</type>
    <length>64</length>
    <required>true</required>
    <comment>Name of table where item being referenced is stored.</comment>
    <add>2.0</add>
  </field>
  <field>
    <name>entity_id</name>
    <title>Entity ID</title>
    <type>int unsigned</type>
    <required>true</required>
    <comment>Foreign key to the referenced item.</comment>
    <add>2.0</add>
  </field>
  <dynamicForeignKey>
    <idColumn>entity_id</idColumn>
    <typeColumn>entity_table</typeColumn>
    <add>2.0</add>
  </dynamicForeignKey>
  <field>
    <name>title</name>
    <title>Title</title>
    <type>varchar</type>
    <length>255</length>
    <localizable>true</localizable>
    <html>
      <type>Text</type>
    </html>
    <add>2.0</add>
  </field>
  <field>
    <name>intro</name>
    <title>Intro</title>
    <type>text</type>
    <localizable>true</localizable>
    <comment>Introductory message to contributor or participant displayed on the Tell a Friend form.</comment>
    <html>
      <type>Text</type>
    </html>
    <add>2.0</add>
  </field>
  <field>
    <name>suggested_message</name>
    <title>Suggested Message</title>
    <type>text</type>
    <localizable>true</localizable>
    <comment>Suggested message to friends, provided as default on the Tell A Friend form.</comment>
    <html>
      <type>Text</type>
    </html>
    <add>2.0</add>
  </field>
  <field>
    <name>general_link</name>
    <title>General Link</title>
    <type>varchar</type>
    <length>255</length>
    <import>true</import>
    <comment>URL for general info about the organization - included in the email sent to friends.</comment>
    <html>
      <type>Text</type>
    </html>
    <add>2.0</add>
  </field>
  <field>
    <name>thankyou_title</name>
    <title>Thank You Title</title>
    <type>varchar</type>
    <length>255</length>
    <localizable>true</localizable>
    <comment>Text for Tell a Friend thank you page header and HTML title.</comment>
    <html>
      <type>Text</type>
    </html>
    <add>2.0</add>
  </field>
  <field>
    <name>thankyou_text</name>
    <title>Thank You Text</title>
    <type>text</type>
    <localizable>true</localizable>
    <comment>Thank you message displayed on success page.</comment>
    <add>2.0</add>
    <html>
      <type>Text</type>
    </html>
  </field>
  <field>
    <name>is_active</name>
    <title>Enabled?</title>
    <type>boolean</type>
    <default>1</default>
    <required>true</required>
    <add>2.0</add>
    <html>
      <type>CheckBox</type>
      <label>Enabled</label>
    </html>
  </field>
</table>
