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_REPLENISH">
|
2007-01-23 23:59:13 +07:00
|
|
|
<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="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
|
|
|
|
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
|
2007-02-01 23:50:31 +07:00
|
|
|
<column name="QTYONHAND" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
|
|
|
|
<column name="QTYRESERVED" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
|
|
|
|
<column name="QTYORDERED" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
|
2006-12-29 06:10:54 +07:00
|
|
|
<column name="REPLENISHTYPE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false"/>
|
2007-02-01 23:50:31 +07:00
|
|
|
<column name="LEVEL_MIN" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
|
|
|
|
<column name="LEVEL_MAX" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
|
2007-01-23 23:59:13 +07:00
|
|
|
<column name="C_BPARTNER_ID" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
|
2007-02-01 23:50:31 +07:00
|
|
|
<column name="ORDER_MIN" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
|
|
|
|
<column name="ORDER_PACK" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
|
|
|
|
<column name="QTYTOORDER" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
|
2006-12-29 06:10:54 +07:00
|
|
|
<column name="REPLENISHMENTCREATE" primaryKey="false" required="false" type="CHAR" size="3" autoIncrement="false"/>
|
2007-01-23 23:59:13 +07:00
|
|
|
<column name="M_WAREHOUSESOURCE_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
|
|
|
|
<column name="C_DOCTYPE_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
|
2006-12-29 06:10:54 +07:00
|
|
|
<foreign-key foreignTable="AD_PINSTANCE" name="ADPINSTANCE_TREPLENISH">
|
|
|
|
<reference local="AD_PINSTANCE_ID" foreign="AD_PINSTANCE_ID"/>
|
|
|
|
</foreign-key>
|
|
|
|
<foreign-key foreignTable="C_DOCTYPE" name="CDOCTYPE_TREPLENISH">
|
|
|
|
<reference local="C_DOCTYPE_ID" foreign="C_DOCTYPE_ID"/>
|
|
|
|
</foreign-key>
|
|
|
|
<foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_TREPLENISH">
|
|
|
|
<reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
|
|
|
|
</foreign-key>
|
|
|
|
<foreign-key foreignTable="M_WAREHOUSE" name="MWAREHOUSE_TREPLENISH">
|
|
|
|
<reference local="M_WAREHOUSE_ID" foreign="M_WAREHOUSE_ID"/>
|
|
|
|
</foreign-key>
|
|
|
|
<foreign-key foreignTable="M_WAREHOUSE" name="MWAREHOUSESOURCE_TREPLENISH">
|
|
|
|
<reference local="M_WAREHOUSESOURCE_ID" foreign="M_WAREHOUSE_ID"/>
|
|
|
|
</foreign-key>
|
|
|
|
</table>
|
|
|
|
</database>
|