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

49 lines
4.0 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_INVOICEGL">
<column name="AD_PINSTANCE_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="FACT_ACCT_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="GRANDTOTAL" 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="PERCENT" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
2006-12-29 06:10:54 +07:00
<column name="APAR" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<column name="AMTSOURCEBALANCE" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="AMTACCTBALANCE" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="C_CONVERSIONTYPEREVAL_ID" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
<column name="AMTREVALDR" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="AMTREVALCR" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
2006-12-29 06:10:54 +07:00
<column name="DATEREVAL" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="AMTREVALDRDIFF" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="AMTREVALCRDIFF" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
<column name="C_DOCTYPEREVAL_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
2006-12-29 06:10:54 +07:00
<column name="ISALLCURRENCIES" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<foreign-key foreignTable="AD_PINSTANCE" name="ADPINSTANCE_TINVOICEGL" 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_CONVERSIONTYPE" name="CCONVERSIONTYPE_TINVOICEGL" onDelete="none">
2006-12-29 06:10:54 +07:00
<reference local="C_CONVERSIONTYPEREVAL_ID" foreign="C_CONVERSIONTYPE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_DOCTYPE" name="CDOCTYPE_TINVOICEGL" onDelete="none">
2006-12-29 06:10:54 +07:00
<reference local="C_DOCTYPEREVAL_ID" foreign="C_DOCTYPE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_INVOICE" name="CINVOICE_TINVOICEGL" onDelete="cascade">
2006-12-29 06:10:54 +07:00
<reference local="C_INVOICE_ID" foreign="C_INVOICE_ID"/>
</foreign-key>
<foreign-key foreignTable="FACT_ACCT" name="FACTACCT_TINVOICEGL" onDelete="cascade">
2006-12-29 06:10:54 +07:00
<reference local="FACT_ACCT_ID" foreign="FACT_ACCT_ID"/>
</foreign-key>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
</table>
</database>