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

72 lines
5.0 KiB
XML

<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="M_TRANSACTIONALLOCATION">
<column name="M_TRANSACTION_ID" primaryKey="true" required="true" type="ID" size="10" autoIncrement="false"/>
<column name="ALLOCATIONSTRATEGYTYPE" primaryKey="true" required="true" type="CHAR" size="1" 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="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
<column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="CURRENT_TIMESTAMP" autoIncrement="false"/>
<column name="CREATEDBY" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
<column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="CURRENT_TIMESTAMP" autoIncrement="false"/>
<column name="UPDATEDBY" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
<column name="M_PRODUCT_ID" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
<column name="M_ATTRIBUTESETINSTANCE_ID" primaryKey="false" required="true" type="ID" size="10" default="0" autoIncrement="false"/>
<column name="ISALLOCATED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="QTY" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="ISMANUAL" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="M_INOUTLINE_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="M_PRODUCTIONLINE_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="OUT_M_TRANSACTION_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="OUT_M_INOUTLINE_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="OUT_M_PRODUCTIONLINE_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="OUT_M_INVENTORYLINE_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<foreign-key foreignTable="M_ATTRIBUTESETINSTANCE" name="MATTRIBUTESETINST_MTRXALLOC">
<reference local="M_ATTRIBUTESETINSTANCE_ID" foreign="M_ATTRIBUTESETINSTANCE_ID"/>
</foreign-key>
<foreign-key foreignTable="M_INOUTLINE" name="MINOUTLINEOUT_MTRXALLOC">
<reference local="OUT_M_INOUTLINE_ID" foreign="M_INOUTLINE_ID"/>
</foreign-key>
<foreign-key foreignTable="M_INOUTLINE" name="MINOUTLINE_MTRXALLOC">
<reference local="M_INOUTLINE_ID" foreign="M_INOUTLINE_ID"/>
</foreign-key>
<foreign-key foreignTable="M_INVENTORYLINE" name="MINVENTORYLINEOUT_MTRXALLOC">
<reference local="OUT_M_INVENTORYLINE_ID" foreign="M_INVENTORYLINE_ID"/>
</foreign-key>
<foreign-key foreignTable="M_INVENTORYLINE" name="MINVENTORYLINE_MTRXALLOC">
<reference local="M_INVENTORYLINE_ID" foreign="M_INVENTORYLINE_ID"/>
</foreign-key>
<foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_MTRXALLOC">
<reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
</foreign-key>
<foreign-key foreignTable="M_PRODUCTIONLINE" name="MPRODUCTIONLINEOUT_MTRXALLOC">
<reference local="OUT_M_PRODUCTIONLINE_ID" foreign="M_PRODUCTIONLINE_ID"/>
</foreign-key>
<foreign-key foreignTable="M_PRODUCTIONLINE" name="MPRODUCTIONLINE_MTRXALLOC">
<reference local="M_PRODUCTIONLINE_ID" foreign="M_PRODUCTIONLINE_ID"/>
</foreign-key>
<foreign-key foreignTable="M_TRANSACTION" name="MTRANSACTIONOUT_MTRXALLOC">
<reference local="OUT_M_TRANSACTION_ID" foreign="M_TRANSACTION_ID"/>
</foreign-key>
<foreign-key foreignTable="M_TRANSACTION" name="MTTRANSACTION_MTRXALLOC">
<reference local="M_TRANSACTION_ID" foreign="M_TRANSACTION_ID"/>
</foreign-key>
<index name="M_TRANSACTIONALLOCATION_PRD">
<index-column name="M_PRODUCT_ID"/>
<index-column name="M_ATTRIBUTESETINSTANCE_ID"/>
<index-column name="ISALLOCATED"/>
</index>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsAllocated in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsManual in ('Y','N')]]></rule>
</check>
</table>
</database>