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

80 lines
6.7 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_AGING">
<column name="AD_PINSTANCE_ID" primaryKey="true" required="true" type="ID" size="10" autoIncrement="false"/>
<column name="C_BPARTNER_ID" primaryKey="true" required="true" type="ID" size="10" autoIncrement="false"/>
<column name="C_CURRENCY_ID" primaryKey="true" required="true" type="ID" size="10" autoIncrement="false"/>
<column name="C_INVOICE_ID" primaryKey="true" required="true" type="ID" size="10" autoIncrement="false"/>
<column name="C_INVOICEPAYSCHEDULE_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"/>
2006-12-29 06:10:54 +07:00
<column name="STATEMENTDATE" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="DUEDATE" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="DAYSDUE" primaryKey="false" required="false" type="DECIMAL" size="10" default="0" autoIncrement="false"/>
2006-12-29 06:10:54 +07:00
<column name="ISLISTINVOICES" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="ISSOTRX" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
<column name="C_BP_GROUP_ID" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
<column name="INVOICEDAMT" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="OPENAMT" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="PASTDUE91_PLUS" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="PASTDUE61_90" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="PASTDUE61_PLUS" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="PASTDUE31_60" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="PASTDUE31_PLUS" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="PASTDUE1_30" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="PASTDUE8_30" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="PASTDUE1_7" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="PASTDUEAMT" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="DUEAMT" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="DUE0" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="DUE0_7" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="DUE1_7" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="DUE8_30" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="DUE0_30" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="DUE31_PLUS" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="DUE31_60" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="DUE61_PLUS" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="DUE61_90" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="DUE91_PLUS" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="C_PROJECT_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="C_CAMPAIGN_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="C_ACTIVITY_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<foreign-key foreignTable="AD_PINSTANCE" name="ADPINSTANCE_TAGING" 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_ACTIVITY" name="CACTIVITY_TAGING" onDelete="none">
2006-12-29 06:10:54 +07:00
<reference local="C_ACTIVITY_ID" foreign="C_ACTIVITY_ID"/>
</foreign-key>
<foreign-key foreignTable="C_BPARTNER" name="CBPARTNER_TAGING" onDelete="cascade">
2006-12-29 06:10:54 +07:00
<reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
</foreign-key>
<foreign-key foreignTable="C_BP_GROUP" name="CBPGROUP_TAGING" onDelete="none">
2006-12-29 06:10:54 +07:00
<reference local="C_BP_GROUP_ID" foreign="C_BP_GROUP_ID"/>
</foreign-key>
<foreign-key foreignTable="C_CAMPAIGN" name="CCAMPAIGN_TAGING" onDelete="none">
2006-12-29 06:10:54 +07:00
<reference local="C_CAMPAIGN_ID" foreign="C_CAMPAIGN_ID"/>
</foreign-key>
<foreign-key foreignTable="C_CURRENCY" name="CCURRENCY_TAGING" onDelete="none">
2006-12-29 06:10:54 +07:00
<reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
</foreign-key>
<foreign-key foreignTable="C_PROJECT" name="CPROJECT_TAGING" onDelete="none">
2006-12-29 06:10:54 +07:00
<reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
</foreign-key>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsListInvoices in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsSOTrx in ('Y','N')]]></rule>
</check>
</table>
</database>