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

40 lines
3.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_REPLENISH">
<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"/>
<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"/>
<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"/>
<column name="C_BPARTNER_ID" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
<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"/>
<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"/>
<foreign-key foreignTable="AD_PINSTANCE" name="ADPINSTANCE_TREPLENISH" 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_DOCTYPE" name="CDOCTYPE_TREPLENISH" onDelete="none">
2006-12-29 06:10:54 +07:00
<reference local="C_DOCTYPE_ID" foreign="C_DOCTYPE_ID"/>
</foreign-key>
<foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_TREPLENISH" 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="MWAREHOUSESOURCE_TREPLENISH" onDelete="setnull">
2006-12-29 06:10:54 +07:00
<reference local="M_WAREHOUSESOURCE_ID" foreign="M_WAREHOUSE_ID"/>
</foreign-key>
<foreign-key foreignTable="M_WAREHOUSE" name="MWAREHOUSE_TREPLENISH" onDelete="cascade">
2007-03-01 12:59:56 +07:00
<reference local="M_WAREHOUSE_ID" foreign="M_WAREHOUSE_ID"/>
</foreign-key>
2006-12-29 06:10:54 +07:00
</table>
</database>