Location: PHPKode > projects > Porque - PHP object automation > porque-0.1.3/examples/sample.xml
<db name="porque">
	<table name="product">
	 <column name="id" type="pk-auto"/>
	 <column name="title" type="string" precision="60"/>
	 <column name="description" type="string" precision="6000"/>
	 <column name="type" type="ref" ref="product_group" visibility="both" rightname="products"/>
	</table>
	
	<table name="product_group">
	 <column name="id" type="pk-auto"/>
	 <column name="name" type="string" precision="100"/>
	 <column name="managers" type="refmn" ref="person" visibility="both" rightname="product_groups"/>
	</table>
	
	<table name="person">
	 <column name="id" type="pk-auto"/>
	 <column name="name" type="string" precision="20"/>
	 <column name="birthday" type="date"/>
	 <column name="contract" type="flag"/>
	</table>
	
	<table name="events">
	 <column name="id" type="pk-auto"/>
	 <column name="title" type="string" precision="50">
	   <check action="objmethod:check_title"/>
	 </column>
	 <column name="startsat" type="datetime"/>
	 <column name="endsat" type="datetime"/>
	 <column name="hightime" type="time"/>
	 <column name="approval" type="date"/>
	</table>
</db>
Return current item: Porque - PHP object automation