core-jgi/db/ddlutils/model/I_INVENTORY.xml

58 lines
4.6 KiB
XML

<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="I_INVENTORY">
<column name="I_INVENTORY_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<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"/>
<column name="CREATEDBY" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="UPDATED" primaryKey="false" required="false" type="TIMESTAMP" size="7" default="CURRENT_TIMESTAMP" autoIncrement="false"/>
<column name="UPDATEDBY" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<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"/>
<column name="M_PRODUCT_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<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"/>
<column name="M_LOCATOR_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="M_WAREHOUSE_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<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"/>
<column name="M_INVENTORY_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="M_INVENTORYLINE_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="QTYBOOK" primaryKey="false" required="false" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="QTYCOUNT" primaryKey="false" required="false" type="NUMERIC" default="0" autoIncrement="false"/>
<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>