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

<table>
  <base>CRM/Event/Cart</base>
  <class>Cart</class>
  <useBao>1</useBao>
  <name>civicrm_event_carts</name>
  <component>CiviEvent</component>
  <field>
    <name>id</name>
    <title>Cart ID</title>
    <uniqueName>cart_id</uniqueName>
    <type>int unsigned</type>
    <required>true</required>
    <comment>Cart ID</comment>
    <html>
      <type>Number</type>
    </html>
    <add>4.1</add>
  </field>
  <primaryKey>
    <name>id</name>
    <autoincrement>true</autoincrement>
  </primaryKey>
  <field>
    <name>user_id</name>
    <title>Created By Contact ID</title>
    <type>int unsigned</type>
    <comment>FK to civicrm_contact who created this cart</comment>
    <html>
      <label>Created By</label>
    </html>
    <add>4.1</add>
  </field>
  <field>
    <name>completed</name>
    <title>Complete?</title>
    <type>boolean</type>
    <default>0</default>
    <required>true</required>
    <add>4.1</add>
  </field>
  <foreignKey>
    <name>user_id</name>
    <table>civicrm_contact</table>
    <key>id</key>
    <add>4.1</add>
    <onDelete>SET NULL</onDelete>
  </foreignKey>
</table>

