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

<table>
  <base>CRM/Core</base>
  <class>LocBlock</class>
  <name>civicrm_loc_block</name>
  <comment>Define location specific properties</comment>
  <add>2.0</add>
  <log>true</log>
  <title>Location</title>
  <icon>fa-map-o</icon>
  <field>
    <name>id</name>
    <title>Location Block ID</title>
    <type>int unsigned</type>
    <required>true</required>
    <comment>Unique ID</comment>
    <html>
      <type>Number</type>
    </html>
    <add>2.0</add>
  </field>
  <primaryKey>
    <name>id</name>
    <autoincrement>true</autoincrement>
  </primaryKey>
  <field>
    <name>address_id</name>
    <title>Address ID</title>
    <type>int unsigned</type>
    <html>
      <label>Address</label>
    </html>
    <add>2.0</add>
  </field>
  <foreignKey>
    <name>address_id</name>
    <table>civicrm_address</table>
    <key>id</key>
    <add>2.0</add>
    <onDelete>SET NULL</onDelete>
  </foreignKey>
  <field>
    <name>email_id</name>
    <title>Email ID</title>
    <type>int unsigned</type>
    <html>
      <label>Email</label>
    </html>
    <add>2.0</add>
  </field>
  <foreignKey>
    <name>email_id</name>
    <table>civicrm_email</table>
    <key>id</key>
    <add>2.0</add>
    <onDelete>SET NULL</onDelete>
  </foreignKey>
  <field>
    <name>phone_id</name>
    <title>Phone ID</title>
    <type>int unsigned</type>
    <html>
      <label>Phone</label>
    </html>
    <add>2.0</add>
  </field>
  <foreignKey>
    <name>phone_id</name>
    <table>civicrm_phone</table>
    <key>id</key>
    <add>2.0</add>
    <onDelete>SET NULL</onDelete>
  </foreignKey>
  <field>
    <name>im_id</name>
    <title>IM ID</title>
    <type>int unsigned</type>
    <html>
      <label>Instant Messenger</label>
    </html>
    <add>2.0</add>
  </field>
  <foreignKey>
    <name>im_id</name>
    <table>civicrm_im</table>
    <key>id</key>
    <add>2.0</add>
    <onDelete>SET NULL</onDelete>
  </foreignKey>
  <field>
    <name>address_2_id</name>
    <title>Address 2 ID</title>
    <type>int unsigned</type>
    <html>
      <label>Address 2</label>
    </html>
    <add>2.0</add>
  </field>
  <foreignKey>
    <name>address_2_id</name>
    <table>civicrm_address</table>
    <key>id</key>
    <add>2.0</add>
    <onDelete>SET NULL</onDelete>
  </foreignKey>
  <field>
    <name>email_2_id</name>
    <type>int unsigned</type>
    <title>Email 2 ID</title>
    <html>
      <label>Email 2</label>
    </html>
    <add>2.0</add>
  </field>
  <foreignKey>
    <name>email_2_id</name>
    <table>civicrm_email</table>
    <key>id</key>
    <add>2.0</add>
    <onDelete>SET NULL</onDelete>
  </foreignKey>
  <field>
    <name>phone_2_id</name>
    <type>int unsigned</type>
    <title>Phone 2 ID</title>
    <html>
      <label>Phone 2</label>
    </html>
    <add>2.0</add>
  </field>
  <foreignKey>
    <name>phone_2_id</name>
    <table>civicrm_phone</table>
    <key>id</key>
    <add>2.0</add>
    <onDelete>SET NULL</onDelete>
  </foreignKey>
  <field>
    <name>im_2_id</name>
    <type>int unsigned</type>
    <title>IM 2 ID</title>
    <html>
      <label>Instant Messenger 2</label>
    </html>
    <add>2.0</add>
  </field>
  <foreignKey>
    <name>im_2_id</name>
    <table>civicrm_im</table>
    <key>id</key>
    <add>2.0</add>
    <onDelete>SET NULL</onDelete>
  </foreignKey>
</table>
