<?xml version="1.0" encoding="UTF-8"?>
<model package="fileattach" baseClass="xPDOObject" platform="sqlsrv" phpdoc-package="fileattach" version="1.1">

	<object class="FileItem" table="files" extends="xPDOSimpleObject">
		<field key="name" dbtype="nvarchar" precision="255" phptype="string" null="false" default="" index="index"/>
		<field key="internal_name" dbtype="nvarchar" precision="255" phptype="string" null="false" default=""/>
		<field key="path" dbtype="nvarchar" precision="100" phptype="string" null="false" default=""/>
		<field key="description" dbtype="nvarchar" precision="255" phptype="string" null="false" default=""/>
		<field key="hash" dbtype="nvarchar" precision="50" phptype="string" null="false" default=""/>

    		<field key="private" dbtype="bit" phptype="boolean" null="false" default="0" />
    		<field key="download" dbtype="int" precision="10" phptype="integer" attributes="unsigned" null="false" default="0"/>

    		<field key="docid" dbtype="int" precision="10" phptype="integer" null="false" default="0" index="index" />
    		<field key="uid" dbtype="int" precision="10" phptype="integer" null="false" default="0" index="index" />
    		<field key="rank" dbtype="int" precision="10" phptype="integer" attributes="unsigned" null="false" default="0" />

		<index alias="name" name="name" primary="false" unique="false" type="BTREE">
		    <column key="name" length="" collation="A" null="false"/>
		</index>
    		<index alias="docid" name="docid" primary="false" unique="false" type="BTREE">
        	    <column key="docid" length="" collation="A" null="false" />
    		</index>
    		<index alias="uid" name="uid" primary="false" unique="false" type="BTREE">
        	    <column key="uid" length="" collation="A" null="false" />
    		</index>

    		<aggregate alias="Document" class="modResource" local="docid" foreign="id" cardinality="one" owner="foreign" />
	</object>

	<object class="FileAttachMediaSource" extends="modMediaSource">
	</object>
</model>