80 lines
5.9 KiB
XML
80 lines
5.9 KiB
XML
<?xml version="1.0"?>
|
|
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
|
|
<database name="default" defaultIdMethod="none">
|
|
<table name="GL_JOURNAL">
|
|
<column name="GL_JOURNAL_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"/>
|
|
<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="C_ACCTSCHEMA_ID" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
|
|
<column name="C_DOCTYPE_ID" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
|
|
<column name="DOCUMENTNO" primaryKey="false" required="true" type="VARCHAR" size="30" autoIncrement="false"/>
|
|
<column name="DOCSTATUS" primaryKey="false" required="true" type="CHAR" size="2" autoIncrement="false"/>
|
|
<column name="DOCACTION" primaryKey="false" required="true" type="CHAR" size="2" autoIncrement="false"/>
|
|
<column name="ISAPPROVED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
|
|
<column name="ISPRINTED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
|
|
<column name="DESCRIPTION" primaryKey="false" required="true" type="VARCHAR" size="255" autoIncrement="false"/>
|
|
<column name="POSTINGTYPE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false"/>
|
|
<column name="GL_BUDGET_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
|
|
<column name="GL_CATEGORY_ID" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
|
|
<column name="DATEDOC" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false"/>
|
|
<column name="DATEACCT" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false"/>
|
|
<column name="C_PERIOD_ID" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
|
|
<column name="C_CURRENCY_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
|
|
<column name="CURRENCYRATE" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
|
|
<column name="GL_JOURNALBATCH_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
|
|
<column name="TOTALDR" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
|
|
<column name="TOTALCR" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
|
|
<column name="CONTROLAMT" primaryKey="false" required="false" type="DECIMAL" default="0" autoIncrement="false"/>
|
|
<column name="PROCESSING" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
|
|
<column name="PROCESSED" primaryKey="false" required="false" type="CHAR" size="1" default="N" autoIncrement="false"/>
|
|
<column name="POSTED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
|
|
<column name="C_CONVERSIONTYPE_ID" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
|
|
<foreign-key foreignTable="C_ACCTSCHEMA" name="C_ACCTSCHEMA_GL_JOURNAL" onDelete="none">
|
|
<reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
|
|
</foreign-key>
|
|
<foreign-key foreignTable="C_CONVERSIONTYPE" name="CCONVERSIONTYPE_GLJOURNAL" onDelete="none">
|
|
<reference local="C_CONVERSIONTYPE_ID" foreign="C_CONVERSIONTYPE_ID"/>
|
|
</foreign-key>
|
|
<foreign-key foreignTable="C_CURRENCY" name="CCURRENCY_GLJOURNAL" onDelete="none">
|
|
<reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
|
|
</foreign-key>
|
|
<foreign-key foreignTable="C_DOCTYPE" name="CDOCTYPE_GLJOURNAL" onDelete="none">
|
|
<reference local="C_DOCTYPE_ID" foreign="C_DOCTYPE_ID"/>
|
|
</foreign-key>
|
|
<foreign-key foreignTable="C_PERIOD" name="C_PERIOD_JOURNAL" onDelete="none">
|
|
<reference local="C_PERIOD_ID" foreign="C_PERIOD_ID"/>
|
|
</foreign-key>
|
|
<foreign-key foreignTable="GL_BUDGET" name="GLBUDGET_GLJOURNAL" onDelete="none">
|
|
<reference local="GL_BUDGET_ID" foreign="GL_BUDGET_ID"/>
|
|
</foreign-key>
|
|
<foreign-key foreignTable="GL_CATEGORY" name="GLCATEGORY_GLJOURNAL" onDelete="none">
|
|
<reference local="GL_CATEGORY_ID" foreign="GL_CATEGORY_ID"/>
|
|
</foreign-key>
|
|
<foreign-key foreignTable="GL_JOURNALBATCH" name="GLJOURNALBATCH_GLJOURNAL" onDelete="cascade">
|
|
<reference local="GL_JOURNALBATCH_ID" foreign="GL_JOURNALBATCH_ID"/>
|
|
</foreign-key>
|
|
<unique name="GL_JOURNAL_DOCNO">
|
|
<unique-column name="AD_ORG_ID"/>
|
|
<unique-column name="C_PERIOD_ID"/>
|
|
<unique-column name="DOCUMENTNO"/>
|
|
</unique>
|
|
<check>
|
|
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
|
|
</check>
|
|
<check>
|
|
<rule><![CDATA[IsApproved in ('Y','N')]]></rule>
|
|
</check>
|
|
<check>
|
|
<rule><![CDATA[IsPrinted in ('Y','N')]]></rule>
|
|
</check>
|
|
<check>
|
|
<rule><![CDATA[Processed in ('Y','N')]]></rule>
|
|
</check>
|
|
</table>
|
|
</database>
|