<object name="vistrail">
  <layout>
    <xml name="vistrail" nodeType="xs:element"/>
    <sql table="vistrail"/>
  </layout>

  <property name="id" type="long" primaryKey="true">
    <xml nodeType="xs:attribute" type="xs:int"/>
    <sql type="int" autoInc="true" global="true" globalName="entity_id"/>
  </property>
  
  <property name="entity_type" type="str">
    <sql type="char(16)" global="true" globalName="entity_type"/>
  </property>

  <property name="version" type="str">
    <xml nodeType="xs:attribute" type="xs:string"/>
    <sql type="char(16)"/>
  </property>

  <property name="name" type="str">
    <xml nodeType="xs:attribute" type="xs:string"/>
    <sql type="varchar(255)"/>
  </property>

  <property name="last_modified" type="datetime">
    <sql type="datetime"/>
  </property>

  <property name="dbHost" type="str">
    <xml nodeType="xs:attribute" type="xs:string"/>
  </property>
  
  <property name="dbPort" type="int">
    <xml nodeType="xs:attribute" type="xs:int"/>
  </property>
  
  <property name="dbName" type="str">
    <xml nodeType="xs:attribute" type="xs:string"/>
  </property>
  
  <property ref="true" object="action" type="list" mapping="one-to-many">
    <xml nodeType="xs:element"/>
  </property>

  <property ref="true" object="tag" type="list" mapping="one-to-many"
	    index="name">
    <xml nodeType="xs:element"/>
  </property>

  <property ref="true" object="abstraction" type="list" mapping="one-to-many">
    <xml nodeType="xs:element"/>
  </property>
</object>
