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

<table>
  <base>CRM/Price</base>
  <class>PriceField</class>
  <name>civicrm_price_field</name>
  <add>1.8</add>
  <log>true</log>
  <component>CiviContribute</component>
  <paths>
    <add>civicrm/admin/price/field/edit?reset=1&amp;action=add&amp;sid=[price_set_id]</add>
    <update>civicrm/admin/price/field/edit?reset=1&amp;action=update&amp;sid=[price_set_id]&amp;fid=[id]</update>
    <delete>civicrm/admin/price/field/edit?reset=1&amp;action=delete&amp;sid=[price_set_id]&amp;fid=[id]</delete>
    <preview>civicrm/admin/price/field/edit?reset=1&amp;action=preview&amp;sid=[price_set_id]&amp;fid=[id]</preview>
    <browse>civicrm/admin/price/field</browse>
  </paths>
  <field>
    <name>id</name>
    <title>Price Field ID</title>
    <type>int unsigned</type>
    <required>true</required>
    <comment>Price Field</comment>
    <html>
      <type>Number</type>
    </html>
    <add>1.8</add>
  </field>
  <primaryKey>
    <name>id</name>
    <autoincrement>true</autoincrement>
  </primaryKey>
  <field>
    <name>price_set_id</name>
    <title>Price Set ID</title>
    <type>int unsigned</type>
    <required>true</required>
    <comment>FK to civicrm_price_set</comment>
    <pseudoconstant>
      <table>civicrm_price_set</table>
      <keyColumn>id</keyColumn>
      <nameColumn>name</nameColumn>
      <labelColumn>title</labelColumn>
    </pseudoconstant>
    <html>
      <type>EntityRef</type>
      <label>Price Set</label>
    </html>
    <add>1.8</add>
  </field>
  <foreignKey>
    <name>price_set_id</name>
    <table>civicrm_price_set</table>
    <key>id</key>
    <add>1.8</add>
  </foreignKey>
  <field>
    <name>name</name>
    <type>varchar</type>
    <title>Name</title>
    <length>255</length>
    <required>true</required>
    <comment>Variable name/programmatic handle for this field.</comment>
    <add>1.8</add>
    <html>
      <type>Text</type>
    </html>
  </field>
  <index>
    <name>index_name</name>
    <fieldName>name</fieldName>
    <add>1.8</add>
  </index>
  <field>
    <name>label</name>
    <type>varchar</type>
    <title>Label</title>
    <length>255</length>
    <required>true</required>
    <localizable>true</localizable>
    <comment>Text for form field label (also friendly name for administering this field).</comment>
    <html>
      <type>Text</type>
    </html>
    <add>1.8</add>
  </field>
  <field>
    <name>html_type</name>
    <type>varchar</type>
    <length>12</length>
    <required>true</required>
    <pseudoconstant>
      <callback>CRM_Price_BAO_PriceField::htmlTypes</callback>
    </pseudoconstant>
    <add>1.8</add>
    <html>
      <type>Select</type>
      <label>Html Type</label>
    </html>
  </field>
  <field>
    <name>is_enter_qty</name>
    <title>Price Field Quantity Required?</title>
    <type>boolean</type>
    <default>0</default>
    <required>true</required>
    <comment>Enter a quantity for this field?</comment>
    <add>1.8</add>
    <html>
      <type>CheckBox</type>
    </html>
  </field>
  <field>
    <name>help_pre</name>
    <title>Price Field Pre Text</title>
    <type>text</type>
    <localizable>true</localizable>
    <comment>Description and/or help text to display before this field.</comment>
    <html>
      <type>TextArea</type>
      <rows>4</rows>
      <cols>80</cols>
    </html>
    <add>1.8</add>
  </field>
  <field>
    <name>help_post</name>
    <title>Price Field Post Text</title>
    <type>text</type>
    <localizable>true</localizable>
    <comment>Description and/or help text to display after this field.</comment>
    <html>
      <type>TextArea</type>
      <rows>4</rows>
      <cols>80</cols>
    </html>
    <add>1.8</add>
  </field>
  <field>
    <name>weight</name>
    <title>Order</title>
    <type>int</type>
    <default>1</default>
    <comment>Order in which the fields should appear</comment>
    <add>1.8</add>
    <html>
      <type>Select</type>
    </html>
  </field>
  <field>
    <name>is_display_amounts</name>
    <title>Price Field Show Amounts?</title>
    <type>boolean</type>
    <default>1</default>
    <required>true</required>
    <comment>Should the price be displayed next to the label for each option?</comment>
    <html>
      <type>CheckBox</type>
    </html>
  </field>
  <field>
    <name>options_per_line</name>
    <title>Price Field Options per Row</title>
    <type>int unsigned</type>
    <default>1</default>
    <comment>number of options per line for checkbox and radio</comment>
    <add>1.8</add>
    <html>
      <type>Text</type>
    </html>
  </field>
  <field>
    <name>is_active</name>
    <title>Price Field Is Active?</title>
    <type>boolean</type>
    <comment>Is this price field active</comment>
    <default>1</default>
    <required>true</required>
    <add>1.8</add>
    <html>
      <type>CheckBox</type>
      <label>Enabled</label>
    </html>
  </field>
  <field>
    <name>is_required</name>
    <title>Price Field is Required?</title>
    <type>boolean</type>
    <comment>Is this price field required (value must be > 1)</comment>
    <default>1</default>
    <required>true</required>
    <add>1.8</add>
    <html>
      <type>CheckBox</type>
    </html>
  </field>
  <field>
    <name>active_on</name>
    <title>Price Field Start Date</title>
    <type>datetime</type>
    <default>NULL</default>
    <comment>If non-zero, do not show this field before the date specified</comment>
    <add>1.8</add>
    <html>
      <type>Select Date</type>
      <formatType>activityDateTime</formatType>
    </html>
  </field>
  <field>
    <name>expire_on</name>
    <title>Price Field End Date</title>
    <type>datetime</type>
    <default>NULL</default>
    <comment>If non-zero, do not show this field after the date specified</comment>
    <add>1.8</add>
    <html>
      <type>Select Date</type>
      <formatType>activityDateTime</formatType>
    </html>
  </field>
  <field>
    <name>javascript</name>
    <title>Price Field Javascript</title>
    <type>varchar</type>
    <length>255</length>
    <comment>Optional scripting attributes for field</comment>
    <add>1.8</add>
    <html>
      <type>Text</type>
    </html>
  </field>
  <field>
    <name>visibility_id</name>
    <title>Price Field Visibility</title>
    <type>int unsigned</type>
    <default>1</default>
    <comment>Implicit FK to civicrm_option_group with name = 'visibility'</comment>
    <add>3.2</add>
    <pseudoconstant>
      <optionGroupName>visibility</optionGroupName>
    </pseudoconstant>
    <html>
      <type>Select</type>
    </html>
  </field>
</table>
