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

51 lines
4.2 KiB
XML
Raw Normal View History

2006-12-29 06:10:54 +07:00
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="T_INVENTORYVALUE">
<column name="AD_PINSTANCE_ID" primaryKey="true" required="true" type="ID" size="10" autoIncrement="false"/>
<column name="M_WAREHOUSE_ID" primaryKey="true" required="true" type="ID" size="10" autoIncrement="false"/>
<column name="M_PRODUCT_ID" primaryKey="true" required="true" type="ID" size="10" autoIncrement="false"/>
<column name="M_ATTRIBUTESETINSTANCE_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"/>
<column name="M_PRICELIST_VERSION_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
2006-12-29 06:10:54 +07:00
<column name="DATEVALUE" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="C_CURRENCY_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="QTYONHAND" primaryKey="false" required="false" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="PRICEPO" primaryKey="false" required="false" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="PRICELIST" primaryKey="false" required="false" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="PRICESTD" primaryKey="false" required="false" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="PRICELIMIT" primaryKey="false" required="false" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="COSTSTANDARD" primaryKey="false" required="false" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="COST" primaryKey="false" required="false" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="PRICEPOAMT" primaryKey="false" required="false" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="PRICELISTAMT" primaryKey="false" required="false" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="PRICESTDAMT" primaryKey="false" required="false" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="PRICELIMITAMT" primaryKey="false" required="false" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="COSTSTANDARDAMT" primaryKey="false" required="false" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="COSTAMT" primaryKey="false" required="false" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="M_COSTELEMENT_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<foreign-key foreignTable="AD_PINSTANCE" name="ADPINSTANCE_TINVENTORYVALUE" onDelete="cascade">
2006-12-29 06:10:54 +07:00
<reference local="AD_PINSTANCE_ID" foreign="AD_PINSTANCE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_CURRENCY" name="CCURRENCY_TINVENTORYVALUE" onDelete="none">
2006-12-29 06:10:54 +07:00
<reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
</foreign-key>
<foreign-key foreignTable="M_ATTRIBUTESETINSTANCE" name="MASI_TINVENTORYVALUE" onDelete="none">
2006-12-29 06:10:54 +07:00
<reference local="M_ATTRIBUTESETINSTANCE_ID" foreign="M_ATTRIBUTESETINSTANCE_ID"/>
</foreign-key>
<foreign-key foreignTable="M_COSTELEMENT" name="MCOSTELEMENT_TINVENTORYVALUE" onDelete="none">
2006-12-29 06:10:54 +07:00
<reference local="M_COSTELEMENT_ID" foreign="M_COSTELEMENT_ID"/>
</foreign-key>
<foreign-key foreignTable="M_PRICELIST_VERSION" name="MPLVERSION_TINVENTORYVALUE" onDelete="none">
2006-12-29 06:10:54 +07:00
<reference local="M_PRICELIST_VERSION_ID" foreign="M_PRICELIST_VERSION_ID"/>
</foreign-key>
<foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_TINVENTORYVALUE" onDelete="cascade">
2006-12-29 06:10:54 +07:00
<reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
</foreign-key>
<foreign-key foreignTable="M_WAREHOUSE" name="MWAREHOUSE_TINVENTORYVALUE" onDelete="cascade">
2006-12-29 06:10:54 +07:00
<reference local="M_WAREHOUSE_ID" foreign="M_WAREHOUSE_ID"/>
</foreign-key>
</table>
</database>