2006-12-29 06:05:52 +07:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
|
|
|
|
<database name="default" defaultIdMethod="none">
|
|
|
|
<table name="M_TRANSACTIONALLOCATION">
|
2007-01-23 23:59:13 +07:00
|
|
|
<column name="M_TRANSACTION_ID" primaryKey="true" required="true" type="ID" size="10" autoIncrement="false"/>
|
2006-12-29 06:05:52 +07:00
|
|
|
<column name="ALLOCATIONSTRATEGYTYPE" primaryKey="true" required="true" type="CHAR" size="1" autoIncrement="false"/>
|
2007-01-23 23:59:13 +07:00
|
|
|
<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"/>
|
2006-12-29 06:05:52 +07:00
|
|
|
<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"/>
|
2007-01-23 23:59:13 +07:00
|
|
|
<column name="CREATEDBY" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
|
2006-12-29 06:05:52 +07:00
|
|
|
<column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="CURRENT_TIMESTAMP" autoIncrement="false"/>
|
2007-01-23 23:59:13 +07:00
|
|
|
<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"/>
|
2006-12-29 06:05:52 +07:00
|
|
|
<column name="ISALLOCATED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
|
2007-02-01 23:50:31 +07:00
|
|
|
<column name="QTY" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
|
2006-12-29 06:05:52 +07:00
|
|
|
<column name="ISMANUAL" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
|
2007-01-23 23:59:13 +07:00
|
|
|
<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"/>
|
2007-03-22 06:56:13 +07:00
|
|
|
<foreign-key foreignTable="M_ATTRIBUTESETINSTANCE" name="MATTRIBUTESETINST_MTRXALLOC" onDelete="none">
|
2006-12-29 06:05:52 +07:00
|
|
|
<reference local="M_ATTRIBUTESETINSTANCE_ID" foreign="M_ATTRIBUTESETINSTANCE_ID"/>
|
|
|
|
</foreign-key>
|
2007-03-22 06:56:13 +07:00
|
|
|
<foreign-key foreignTable="M_INOUTLINE" name="MINOUTLINEOUT_MTRXALLOC" onDelete="none">
|
2007-03-01 12:59:56 +07:00
|
|
|
<reference local="OUT_M_INOUTLINE_ID" foreign="M_INOUTLINE_ID"/>
|
2006-12-29 06:05:52 +07:00
|
|
|
</foreign-key>
|
2007-04-02 17:15:26 +07:00
|
|
|
<foreign-key foreignTable="M_INOUTLINE" name="MINOUTLINE_MTRXALLOC" onDelete="none">
|
|
|
|
<reference local="M_INOUTLINE_ID" foreign="M_INOUTLINE_ID"/>
|
2006-12-29 06:05:52 +07:00
|
|
|
</foreign-key>
|
2007-03-22 06:56:13 +07:00
|
|
|
<foreign-key foreignTable="M_INVENTORYLINE" name="MINVENTORYLINEOUT_MTRXALLOC" onDelete="none">
|
2007-03-01 12:59:56 +07:00
|
|
|
<reference local="OUT_M_INVENTORYLINE_ID" foreign="M_INVENTORYLINE_ID"/>
|
|
|
|
</foreign-key>
|
2007-04-02 17:15:26 +07:00
|
|
|
<foreign-key foreignTable="M_INVENTORYLINE" name="MINVENTORYLINE_MTRXALLOC" onDelete="none">
|
|
|
|
<reference local="M_INVENTORYLINE_ID" foreign="M_INVENTORYLINE_ID"/>
|
|
|
|
</foreign-key>
|
2007-03-22 06:56:13 +07:00
|
|
|
<foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_MTRXALLOC" onDelete="none">
|
2006-12-29 06:05:52 +07:00
|
|
|
<reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
|
|
|
|
</foreign-key>
|
2007-03-22 06:56:13 +07:00
|
|
|
<foreign-key foreignTable="M_PRODUCTIONLINE" name="MPRODUCTIONLINEOUT_MTRXALLOC" onDelete="none">
|
2006-12-29 06:05:52 +07:00
|
|
|
<reference local="OUT_M_PRODUCTIONLINE_ID" foreign="M_PRODUCTIONLINE_ID"/>
|
|
|
|
</foreign-key>
|
2007-03-22 06:56:13 +07:00
|
|
|
<foreign-key foreignTable="M_PRODUCTIONLINE" name="MPRODUCTIONLINE_MTRXALLOC" onDelete="none">
|
2006-12-29 06:05:52 +07:00
|
|
|
<reference local="M_PRODUCTIONLINE_ID" foreign="M_PRODUCTIONLINE_ID"/>
|
|
|
|
</foreign-key>
|
2007-03-22 06:56:13 +07:00
|
|
|
<foreign-key foreignTable="M_TRANSACTION" name="MTRANSACTIONOUT_MTRXALLOC" onDelete="none">
|
2007-03-01 12:59:56 +07:00
|
|
|
<reference local="OUT_M_TRANSACTION_ID" foreign="M_TRANSACTION_ID"/>
|
|
|
|
</foreign-key>
|
2007-04-02 17:15:26 +07:00
|
|
|
<foreign-key foreignTable="M_TRANSACTION" name="MTTRANSACTION_MTRXALLOC" onDelete="cascade">
|
|
|
|
<reference local="M_TRANSACTION_ID" foreign="M_TRANSACTION_ID"/>
|
|
|
|
</foreign-key>
|
2006-12-29 06:05:52 +07:00
|
|
|
<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>
|