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

79 lines
5.6 KiB
XML
Raw Normal View History

2006-12-29 05:22:58 +07:00
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_ACCTSCHEMA">
<column name="C_ACCTSCHEMA_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 05:22:58 +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 05:22:58 +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 05:22:58 +07:00
<column name="NAME" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="DESCRIPTION" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/>
<column name="GAAP" primaryKey="false" required="true" type="CHAR" size="2" autoIncrement="false"/>
<column name="ISACCRUAL" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
<column name="COSTINGMETHOD" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false"/>
<column name="C_CURRENCY_ID" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
2006-12-29 05:22:58 +07:00
<column name="AUTOPERIODCONTROL" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="C_PERIOD_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
<column name="PERIOD_OPENHISTORY" primaryKey="false" required="false" type="DECIMAL" size="10" autoIncrement="false"/>
<column name="PERIOD_OPENFUTURE" primaryKey="false" required="false" type="DECIMAL" size="10" autoIncrement="false"/>
2006-12-29 05:22:58 +07:00
<column name="SEPARATOR" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false"/>
<column name="HASALIAS" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
<column name="HASCOMBINATION" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
<column name="ISTRADEDISCOUNTPOSTED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="ISDISCOUNTCORRECTSTAX" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="M_COSTTYPE_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
2006-12-29 05:22:58 +07:00
<column name="COSTINGLEVEL" primaryKey="false" required="true" type="CHAR" size="1" default="C" autoIncrement="false"/>
<column name="ISADJUSTCOGS" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="AD_ORGONLY_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
2007-02-09 13:47:16 +07:00
<column name="ISPOSTSERVICES" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="ISEXPLICITCOSTADJUSTMENT" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
2006-12-29 05:22:58 +07:00
<column name="COMMITMENTTYPE" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="PROCESSING" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<column name="TAXCORRECTIONTYPE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<foreign-key foreignTable="AD_CLIENT" name="AD_CLIENT_C_ACCTSCHEMA">
<reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
</foreign-key>
<foreign-key foreignTable="AD_ORG" name="AD_ORG_C_ACCTSCHEMA">
<reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
</foreign-key>
<foreign-key foreignTable="C_CURRENCY" name="C_CURRENCY_C_ACCTSCHEMA">
<reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
</foreign-key>
<foreign-key foreignTable="C_PERIOD" name="CPERIOD_CACCTSCHEMA">
<reference local="C_PERIOD_ID" foreign="C_PERIOD_ID"/>
</foreign-key>
<foreign-key foreignTable="M_COSTTYPE" name="MCOSTTYPE_CACCTSCHEMA">
<reference local="M_COSTTYPE_ID" foreign="M_COSTTYPE_ID"/>
</foreign-key>
<unique name="C_ACCTSCHEMA_NAME">
<unique-column name="AD_CLIENT_ID"/>
<unique-column name="NAME"/>
</unique>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsAccrual in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[AutoPeriodControl in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[HasAlias in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[HasCombination in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsTradeDiscountPosted in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsDiscountCorrectsTax in ('Y','N')]]></rule>
</check>
</table>
</database>