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

<table>
  <base>CRM/Core</base>
  <class>Mapping</class>
  <name>civicrm_mapping</name>
  <comment>Store field mappings in import or export for reuse</comment>
  <labelField>name</labelField>
  <title>Field Mapping</title>
  <paths>
    <add>civicrm/admin/mapping/edit?reset=1&amp;action=add</add>
    <browse>civicrm/admin/mapping?reset=1</browse>
    <update>civicrm/admin/mapping/edit?reset=1&amp;action=update&amp;id=[id]</update>
  </paths>
  <add>1.2</add>
  <field>
    <name>id</name>
    <type>int unsigned</type>
    <title>Mapping ID</title>
    <required>true</required>
    <comment>Mapping ID</comment>
    <html>
      <type>Number</type>
    </html>
    <add>1.2</add>
  </field>
  <primaryKey>
    <name>id</name>
    <autoincrement>true</autoincrement>
    <add>1.2</add>
  </primaryKey>
  <field>
    <name>name</name>
    <title>Mapping Name</title>
    <required>true</required>
    <type>varchar</type>
    <length>64</length>
    <comment>Unique name of Mapping</comment>
    <add>1.2</add>
  </field>
  <field>
    <name>description</name>
    <title>Description</title>
    <type>varchar</type>
    <length>255</length>
    <comment>Description of Mapping.</comment>
    <add>1.2</add>
  </field>
  <field>
    <name>mapping_type_id</name>
    <type>int unsigned</type>
    <title>Mapping Type</title>
    <comment>Mapping Type</comment>
    <add>2.1</add>
    <pseudoconstant>
      <optionGroupName>mapping_type</optionGroupName>
    </pseudoconstant>
    <html>
      <type>Select</type>
    </html>
  </field>
  <index>
    <name>UI_name</name>
    <fieldName>name</fieldName>
    <unique>true</unique>
    <add>1.2</add>
  </index>
</table>
