2006-12-29 05:56:28 +07:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
|
|
|
|
<database name="default" defaultIdMethod="none">
|
|
|
|
<table name="I_INVENTORY">
|
2007-01-23 23:59:13 +07:00
|
|
|
<column name="I_INVENTORY_ID" primaryKey="true" required="true" type="ID" size="10" autoIncrement="false"/>
|
|
|
|
<column name="AD_CLIENT_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
|
|
|
|
<column name="AD_ORG_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
|
2006-12-29 05:56:28 +07:00
|
|
|
<column name="ISACTIVE" primaryKey="false" required="false" type="CHAR" size="1" default="Y" autoIncrement="false"/>
|
|
|
|
<column name="CREATED" primaryKey="false" required="false" type="TIMESTAMP" size="7" default="CURRENT_TIMESTAMP" autoIncrement="false"/>
|
2007-01-23 23:59:13 +07:00
|
|
|
<column name="CREATEDBY" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
|
2006-12-29 05:56:28 +07:00
|
|
|
<column name="UPDATED" primaryKey="false" required="false" type="TIMESTAMP" size="7" default="CURRENT_TIMESTAMP" autoIncrement="false"/>
|
2007-01-23 23:59:13 +07:00
|
|
|
<column name="UPDATEDBY" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
|
2006-12-29 05:56:28 +07:00
|
|
|
<column name="I_ISIMPORTED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
|
|
|
|
<column name="I_ERRORMSG" primaryKey="false" required="false" type="VARCHAR" size="2000" autoIncrement="false"/>
|
2007-01-23 23:59:13 +07:00
|
|
|
<column name="M_PRODUCT_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
|
2006-12-29 05:56:28 +07:00
|
|
|
<column name="UPC" primaryKey="false" required="false" type="VARCHAR" size="30" autoIncrement="false"/>
|
|
|
|
<column name="VALUE" primaryKey="false" required="false" type="VARCHAR" size="40" autoIncrement="false"/>
|
|
|
|
<column name="LOT" primaryKey="false" required="false" type="VARCHAR" size="20" autoIncrement="false"/>
|
|
|
|
<column name="SERNO" primaryKey="false" required="false" type="VARCHAR" size="20" autoIncrement="false"/>
|
2007-01-23 23:59:13 +07:00
|
|
|
<column name="M_LOCATOR_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
|
|
|
|
<column name="M_WAREHOUSE_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
|
2006-12-29 05:56:28 +07:00
|
|
|
<column name="WAREHOUSEVALUE" primaryKey="false" required="false" type="VARCHAR" size="40" autoIncrement="false"/>
|
|
|
|
<column name="LOCATORVALUE" primaryKey="false" required="false" type="VARCHAR" size="40" autoIncrement="false"/>
|
|
|
|
<column name="X" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
|
|
|
|
<column name="Y" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
|
|
|
|
<column name="Z" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
|
2007-01-23 23:59:13 +07:00
|
|
|
<column name="M_INVENTORY_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
|
|
|
|
<column name="M_INVENTORYLINE_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
|
|
|
|
<column name="QTYBOOK" primaryKey="false" required="false" type="DECIMAL" size="22" default="0" autoIncrement="false"/>
|
|
|
|
<column name="QTYCOUNT" primaryKey="false" required="false" type="DECIMAL" size="22" default="0" autoIncrement="false"/>
|
2006-12-29 05:56:28 +07:00
|
|
|
<column name="MOVEMENTDATE" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false"/>
|
|
|
|
<column name="DESCRIPTION" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/>
|
|
|
|
<column name="PROCESSING" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
|
|
|
|
<column name="PROCESSED" primaryKey="false" required="false" type="CHAR" size="1" default="N" autoIncrement="false"/>
|
|
|
|
<foreign-key foreignTable="M_INVENTORY" name="MINVENTORY_IINVENTORY">
|
|
|
|
<reference local="M_INVENTORY_ID" foreign="M_INVENTORY_ID"/>
|
|
|
|
</foreign-key>
|
|
|
|
<foreign-key foreignTable="M_INVENTORYLINE" name="MINVENTORYLINE_IINVENTORY">
|
|
|
|
<reference local="M_INVENTORYLINE_ID" foreign="M_INVENTORYLINE_ID"/>
|
|
|
|
</foreign-key>
|
|
|
|
<foreign-key foreignTable="M_LOCATOR" name="MLOCATOR_IINVENTORY">
|
|
|
|
<reference local="M_LOCATOR_ID" foreign="M_LOCATOR_ID"/>
|
|
|
|
</foreign-key>
|
|
|
|
<foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_IINVENTORY">
|
|
|
|
<reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
|
|
|
|
</foreign-key>
|
|
|
|
<foreign-key foreignTable="M_WAREHOUSE" name="MWAREHOUSE_IINVENTORY">
|
|
|
|
<reference local="M_WAREHOUSE_ID" foreign="M_WAREHOUSE_ID"/>
|
|
|
|
</foreign-key>
|
|
|
|
<check>
|
|
|
|
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
|
|
|
|
</check>
|
|
|
|
<check>
|
|
|
|
<rule><![CDATA[Processed in ('Y','N')]]></rule>
|
|
|
|
</check>
|
|
|
|
</table>
|
|
|
|
</database>
|