Location: PHPKode > projects > DIY Blog > diy-blog/lib/creole/test/etc/db/model/creoletest-schema.xml
<?xml version="1.0"?>
<!--Autogenerated by CreoleToXMLSchema!-->
<database name="creoletest">
  <table name="products">
    <column name="ProductID" type="INTEGER" required="true" primaryKey="true"/>
    <column name="ProductName" type="VARCHAR" size="40" required="true" default=""/>
    <column name="SupplierID" type="INTEGER"/>
    <column name="CategoryID" type="INTEGER"/>
    <column name="QuantityPerUnit" type="VARCHAR" size="20"/>
    <column name="UnitPrice" type="DECIMAL" size="12" scale="2"/>
    <column name="UnitsInStock" type="INTEGER"/>
    <column name="UnitsOnOrder" type="INTEGER"/>
    <column name="ReorderLevel" type="INTEGER"/>
    <column name="Discontinued" type="BOOLEAN" required="true" default="false"/>
    <column name="Notes" type="LONGVARCHAR"/>
    <column name="OrderDate" type="DATE"/>
  </table>
  <table name="blobtest">
    <column name="BlobID" type="INTEGER" required="true" primaryKey="true"/>
	<column name="BlobName" type="VARCHAR" size="30" required="true"/>
    <column name="BlobData" type="BLOB" required="true"/>
  </table>
  <table name="clobtest">
    <column name="ClobID" type="INTEGER" required="true" primaryKey="true"/>
	<column name="ClobName" type="VARCHAR" size="30" required="true"/>
    <column name="ClobData" type="CLOB" required="true"/>
  </table>
  <table name="idgentest" idMethod="native">
    <column name="ID" type="INTEGER" required="true" primaryKey="true" autoIncrement="true"/>
	<column name="Name" type="VARCHAR" size="40" required="true" default=""/>
  </table>
  <table name="temporaltest">
  	<column name="ID" type="INTEGER" required="true" primaryKey="true"/>
	<column name="timecol" type="TIME" />
	<column name="datecol" type="DATE" />
	<column name="timestampcol" type="TIMESTAMP"/>
  </table>
  <table name="temporaltest">
  	<column name="ID" type="INTEGER" required="true" primaryKey="true"/>
	<column name="timecol" type="TIME" />
	<column name="datecol" type="DATE" />
	<column name="timestampcol" type="TIMESTAMP"/>
  </table>
  <table name="indexes">
  	<column name="ProductName" type="VARCHAR" size="50"/>
  	<column name="SupplierID" type="INTEGER"/>
  	<column name="CategoryID" type="INTEGER"/>
  	<column name="UnitPrice" type="DECIMAL" size="12" scale="2"/>
  	<index name="ProductNameIDX">
		<index-column name="ProductName"/>  
	</index>
	<index name="ComplexIDX">
		<index-column name="SupplierID"/>
		<index-column name="CategoryID"/>
		<index-column name="UnitPrice"/>
	</index>
	<unique name="UniqueComplexIDX">
		<unique-column name="SupplierID"/>
		<unique-column name="CategoryID"/>
		<unique-column name="UnitPrice"/>
	</unique>
  </table>
  <table name="fk_test">
  	<column name="UniqueCol1" type="INTEGER"/>
  	<column name="UniqueCol2" type="INTEGER"/>
  	<unique>
		<unique-column name="UniqueCol1"/>  
	</unique>
	<unique>
		<unique-column name="UniqueCol2"/>  
	</unique>
  </table>
  <table name="ref_table">
  	<column name="RefID1" type="INTEGER" primaryKey="true"/>
  	<column name="RefID2" type="INTEGER" primaryKey="true"/>
  	<foreign-key foreignTable="fk_test" name="refid1">
	  	<reference foreign="UniqueCol1" local="RefID1"/>
	</foreign-key>
	<foreign-key foreignTable="fk_test" name="refid1">
	  	<reference foreign="UniqueCol2" local="RefID2"/>
	</foreign-key>
  </table>
</database>
Return current item: DIY Blog