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

112 lines
8.4 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="R_REQUESTACTION">
<column name="R_REQUESTACTION_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"/>
2006-12-29 06:10:54 +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"/>
<column name="CREATEDBY" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
2006-12-29 06:10:54 +07:00
<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="R_REQUEST_ID" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
<column name="R_GROUP_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="R_CATEGORY_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="R_STATUS_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="R_RESOLUTION_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="SALESREP_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="AD_ROLE_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
2006-12-29 06:10:54 +07:00
<column name="ISESCALATED" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<column name="ISINVOICED" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<column name="CONFIDENTIALTYPE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<column name="ISSELFSERVICE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<column name="PRIORITY" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<column name="PRIORITYUSER" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<column name="C_BPARTNER_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="AD_USER_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="C_ORDER_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="C_INVOICE_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="C_PAYMENT_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="M_PRODUCT_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="C_PROJECT_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
2006-12-29 06:10:54 +07:00
<column name="SUMMARY" primaryKey="false" required="false" type="VARCHAR" size="2000" autoIncrement="false"/>
<column name="DATENEXTACTION" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="C_ACTIVITY_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="R_REQUESTTYPE_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="A_ASSET_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="M_INOUT_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="M_RMA_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
2006-12-29 06:10:54 +07:00
<column name="NULLCOLUMNS" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/>
<column name="TASKSTATUS" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<column name="DATECOMPLETEPLAN" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="QTYPLAN" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
<column name="QTYSPENT" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
2006-12-29 06:10:54 +07:00
<column name="STARTDATE" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="ENDDATE" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="DATESTARTPLAN" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="QTYINVOICED" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
<column name="M_PRODUCTSPENT_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
2006-12-29 06:10:54 +07:00
<foreign-key foreignTable="AD_ROLE" name="ADROLE_RREQUESTACTION">
<reference local="AD_ROLE_ID" foreign="AD_ROLE_ID"/>
</foreign-key>
<foreign-key foreignTable="AD_USER" name="ADUSERSR_RREQUESTACTION">
<reference local="SALESREP_ID" foreign="AD_USER_ID"/>
</foreign-key>
2007-03-01 12:59:56 +07:00
<foreign-key foreignTable="AD_USER" name="ADUSER_RREQUESTACTION">
<reference local="AD_USER_ID" foreign="AD_USER_ID"/>
</foreign-key>
2006-12-29 06:10:54 +07:00
<foreign-key foreignTable="A_ASSET" name="AASSET_RREQUESTACTION">
<reference local="A_ASSET_ID" foreign="A_ASSET_ID"/>
</foreign-key>
<foreign-key foreignTable="C_ACTIVITY" name="CACTIVITY_RREQUESTACTION">
<reference local="C_ACTIVITY_ID" foreign="C_ACTIVITY_ID"/>
</foreign-key>
<foreign-key foreignTable="C_BPARTNER" name="CBPARTNER_RREQUESTACTION">
<reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
</foreign-key>
<foreign-key foreignTable="C_INVOICE" name="CINVOICE_RREQUESTACTION">
<reference local="C_INVOICE_ID" foreign="C_INVOICE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_ORDER" name="CORDER_RREQUESTACTION">
<reference local="C_ORDER_ID" foreign="C_ORDER_ID"/>
</foreign-key>
<foreign-key foreignTable="C_PAYMENT" name="CPAYMENT_RREQUESTACTION">
<reference local="C_PAYMENT_ID" foreign="C_PAYMENT_ID"/>
</foreign-key>
<foreign-key foreignTable="C_PROJECT" name="CPROJECT_RREQUESTACTION">
<reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
</foreign-key>
<foreign-key foreignTable="M_INOUT" name="MINOUT_MREQUESTACTION">
<reference local="M_INOUT_ID" foreign="M_INOUT_ID"/>
</foreign-key>
<foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_RREQUESTACTION">
<reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
</foreign-key>
<foreign-key foreignTable="M_RMA" name="MRMA_RREQUESTACTION">
<reference local="M_RMA_ID" foreign="M_RMA_ID"/>
</foreign-key>
<foreign-key foreignTable="R_CATEGORY" name="RCATEGORY_RREQUESTACTION">
<reference local="R_CATEGORY_ID" foreign="R_CATEGORY_ID"/>
</foreign-key>
<foreign-key foreignTable="R_GROUP" name="RGROUP_RREQUESTACTION">
<reference local="R_GROUP_ID" foreign="R_GROUP_ID"/>
</foreign-key>
<foreign-key foreignTable="R_REQUEST" name="RREQUEST_RREQUESTACTION">
<reference local="R_REQUEST_ID" foreign="R_REQUEST_ID"/>
</foreign-key>
<foreign-key foreignTable="R_REQUESTTYPE" name="RREQUESTTYPE_RREQUESTACTION">
<reference local="R_REQUESTTYPE_ID" foreign="R_REQUESTTYPE_ID"/>
</foreign-key>
<foreign-key foreignTable="R_RESOLUTION" name="RRESOLUTION_RREQUESTACTION">
<reference local="R_RESOLUTION_ID" foreign="R_RESOLUTION_ID"/>
</foreign-key>
<foreign-key foreignTable="R_STATUS" name="RSTATUS_RREQUESTACTION">
<reference local="R_STATUS_ID" foreign="R_STATUS_ID"/>
</foreign-key>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
</table>
</database>