* adempiere model files

This commit is contained in:
Heng Sin Low 2006-12-28 22:37:29 +00:00
parent 888abd9258
commit 17dd9a78db
20 changed files with 993 additions and 0 deletions

View File

@ -0,0 +1,43 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_ELEMENT">
<column name="C_ELEMENT_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<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="VFORMAT" primaryKey="false" required="false" type="VARCHAR" size="40" autoIncrement="false"/>
<column name="ELEMENTTYPE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false"/>
<column name="ISBALANCING" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="ISNATURALACCOUNT" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
<column name="AD_TREE_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_CELEMENT">
<reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
</foreign-key>
<foreign-key foreignTable="AD_ORG" name="C_ELEMENTORG">
<reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
</foreign-key>
<foreign-key foreignTable="AD_TREE" name="ADTREE_CELEMENT">
<reference local="AD_TREE_ID" foreign="AD_TREE_ID"/>
</foreign-key>
<unique name="C_ELEMENT_NAME">
<unique-column name="AD_CLIENT_ID"/>
<unique-column name="NAME"/>
</unique>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsBalancing in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsNaturalAccount in ('Y','N')]]></rule>
</check>
</table>
</database>

View File

@ -0,0 +1,78 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_ELEMENTVALUE">
<column name="C_ELEMENTVALUE_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<column name="VALUE" primaryKey="false" required="true" type="VARCHAR" size="40" autoIncrement="false"/>
<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="ACCOUNTTYPE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false"/>
<column name="ACCOUNTSIGN" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false"/>
<column name="ISDOCCONTROLLED" primaryKey="false" required="false" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="C_ELEMENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="ISSUMMARY" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="VALIDFROM" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="VALIDTO" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="POSTACTUAL" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
<column name="POSTBUDGET" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
<column name="POSTENCUMBRANCE" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
<column name="POSTSTATISTICAL" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
<column name="ISBANKACCOUNT" primaryKey="false" required="false" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="C_BANKACCOUNT_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="ISFOREIGNCURRENCY" primaryKey="false" required="false" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="C_CURRENCY_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_CELEMENTVALUE">
<reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
</foreign-key>
<foreign-key foreignTable="AD_ORG" name="ADORG_CELEMENTVALUE">
<reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
</foreign-key>
<foreign-key foreignTable="C_BANKACCOUNT" name="CBANKACCOUNT_CELEMENTVALUE">
<reference local="C_BANKACCOUNT_ID" foreign="C_BANKACCOUNT_ID"/>
</foreign-key>
<foreign-key foreignTable="C_CURRENCY" name="CCURRENCY_CELEMENTVALUE">
<reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
</foreign-key>
<foreign-key foreignTable="C_ELEMENT" name="CELEMENT_CELEMENTVALUE">
<reference local="C_ELEMENT_ID" foreign="C_ELEMENT_ID"/>
</foreign-key>
<unique name="C_ELEMENTVALUE_VALUE">
<unique-column name="C_ELEMENT_ID"/>
<unique-column name="VALUE"/>
</unique>
<index name="C_ELEMENTVALUE_NAME">
<index-column name="NAME"/>
</index>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsDocControlled in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[PostActual in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[PostBudget in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[PostEncumbrance in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[PostStatistical in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsBankAccount in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsForeignCurrency in ('Y','N')]]></rule>
</check>
</table>
</database>

View File

@ -0,0 +1,30 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_ELEMENTVALUE_TRL">
<column name="C_ELEMENTVALUE_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_LANGUAGE" primaryKey="true" required="true" type="VARCHAR" size="6" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<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="ISTRANSLATED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<foreign-key foreignTable="AD_LANGUAGE" name="ADLANGUAGE_CELEMENTVALUETRL">
<reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
</foreign-key>
<foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUE_CEVALUETRL">
<reference local="C_ELEMENTVALUE_ID" foreign="C_ELEMENTVALUE_ID"/>
</foreign-key>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsTranslated in ('Y','N')]]></rule>
</check>
</table>
</database>

View File

@ -0,0 +1,27 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_GREETING">
<column name="C_GREETING_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<column name="NAME" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="GREETING" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="ISFIRSTNAMEONLY" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="ISDEFAULT" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsFirstNameOnly in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsDefault in ('Y','N')]]></rule>
</check>
</table>
</database>

View File

@ -0,0 +1,30 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_GREETING_TRL">
<column name="AD_LANGUAGE" primaryKey="true" required="true" type="VARCHAR" size="6" autoIncrement="false"/>
<column name="C_GREETING_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<column name="NAME" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="GREETING" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="ISTRANSLATED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<foreign-key foreignTable="AD_LANGUAGE" name="ADLANGUAGE_CGREETINGTRL">
<reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
</foreign-key>
<foreign-key foreignTable="C_GREETING" name="CGREETING_CGREETINGTRL">
<reference local="C_GREETING_ID" foreign="C_GREETING_ID"/>
</foreign-key>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsTranslated in ('Y','N')]]></rule>
</check>
</table>
</database>

View File

@ -0,0 +1,35 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_INTERORG_ACCT">
<column name="C_ACCTSCHEMA_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORGTO_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<column name="INTERCOMPANYDUETO_ACCT" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="INTERCOMPANYDUEFROM_ACCT" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<foreign-key foreignTable="AD_ORG" name="ADORGTO_CINTERORGACCT">
<reference local="AD_ORGTO_ID" foreign="AD_ORG_ID"/>
</foreign-key>
<foreign-key foreignTable="AD_ORG" name="ADORG_CINTERORGACCT">
<reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
</foreign-key>
<foreign-key foreignTable="C_ACCTSCHEMA" name="CACCTSCHEMA_CINTERORGACCT">
<reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
</foreign-key>
<foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_INTERCOMPANYDUETO_CINTERORG">
<reference local="INTERCOMPANYDUETO_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
</foreign-key>
<foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_INTERCOMPANYDUEFROM_CINTERO">
<reference local="INTERCOMPANYDUEFROM_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
</foreign-key>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
</table>
</database>

View File

@ -0,0 +1,180 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_INVOICE">
<column name="C_INVOICE_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<column name="ISSOTRX" primaryKey="false" required="true" type="CHAR" size="1" default="Y" 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="PROCESSING" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<column name="PROCESSED" primaryKey="false" required="true" 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_DOCTYPE_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="C_DOCTYPETARGET_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="C_ORDER_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="DESCRIPTION" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/>
<column name="ISAPPROVED" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
<column name="ISTRANSFERRED" 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="SALESREP_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="DATEINVOICED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="DATEPRINTED" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="DATEACCT" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="C_BPARTNER_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="C_BPARTNER_LOCATION_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="POREFERENCE" primaryKey="false" required="false" type="VARCHAR" size="20" autoIncrement="false"/>
<column name="ISDISCOUNTPRINTED" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
<column name="DATEORDERED" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="C_CURRENCY_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="PAYMENTRULE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false"/>
<column name="C_PAYMENTTERM_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="C_CHARGE_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="CHARGEAMT" primaryKey="false" required="false" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="TOTALLINES" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="GRANDTOTAL" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="M_PRICELIST_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="ISTAXINCLUDED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="C_CAMPAIGN_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="C_PROJECT_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="C_ACTIVITY_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="ISPAID" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="C_PAYMENT_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="C_CASHLINE_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="CREATEFROM" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<column name="GENERATETO" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<column name="SENDEMAIL" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="AD_USER_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="COPYFROM" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<column name="ISSELFSERVICE" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="AD_ORGTRX_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="USER1_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="USER2_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="C_CONVERSIONTYPE_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="ISPAYSCHEDULEVALID" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="REF_INVOICE_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="ISINDISPUTE" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="INVOICECOLLECTIONTYPE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<foreign-key foreignTable="AD_ORG" name="ADORGTRX_CINVOICE">
<reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
</foreign-key>
<foreign-key foreignTable="AD_ORG" name="ADORG_CINVOICE">
<reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
</foreign-key>
<foreign-key foreignTable="AD_USER" name="ADUSER_CINVOICE">
<reference local="AD_USER_ID" foreign="AD_USER_ID"/>
</foreign-key>
<foreign-key foreignTable="AD_USER" name="ADUSER_SR_CINVOICE">
<reference local="SALESREP_ID" foreign="AD_USER_ID"/>
</foreign-key>
<foreign-key foreignTable="C_ACTIVITY" name="CACTIVITY_CINVOICE">
<reference local="C_ACTIVITY_ID" foreign="C_ACTIVITY_ID"/>
</foreign-key>
<foreign-key foreignTable="C_BPARTNER" name="CBPARTNER_CINVOICE">
<reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
</foreign-key>
<foreign-key foreignTable="C_BPARTNER_LOCATION" name="C_BPLOCATION_CINVOICE">
<reference local="C_BPARTNER_LOCATION_ID" foreign="C_BPARTNER_LOCATION_ID"/>
</foreign-key>
<foreign-key foreignTable="C_CAMPAIGN" name="CCAMPAIGN_CINVOICE">
<reference local="C_CAMPAIGN_ID" foreign="C_CAMPAIGN_ID"/>
</foreign-key>
<foreign-key foreignTable="C_CASHLINE" name="CCASHLINE_CINVOICE">
<reference local="C_CASHLINE_ID" foreign="C_CASHLINE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_CHARGE" name="CCHARGE_CINVOICE">
<reference local="C_CHARGE_ID" foreign="C_CHARGE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_CONVERSIONTYPE" name="CCONVERSIONTYPE_CINVOICE">
<reference local="C_CONVERSIONTYPE_ID" foreign="C_CONVERSIONTYPE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_CURRENCY" name="CCURRENCY_CINVOICE">
<reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
</foreign-key>
<foreign-key foreignTable="C_DOCTYPE" name="CDOCTYPETARGET_CINVOICE">
<reference local="C_DOCTYPETARGET_ID" foreign="C_DOCTYPE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_DOCTYPE" name="CDOCTYPE_CINVOICE">
<reference local="C_DOCTYPE_ID" foreign="C_DOCTYPE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUEUSER1_CINVOICE">
<reference local="USER1_ID" foreign="C_ELEMENTVALUE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUEUSER2_CINVOICE">
<reference local="USER2_ID" foreign="C_ELEMENTVALUE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_INVOICE" name="CINVOICE_REF">
<reference local="REF_INVOICE_ID" foreign="C_INVOICE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_ORDER" name="CORDER_CINVOICE">
<reference local="C_ORDER_ID" foreign="C_ORDER_ID"/>
</foreign-key>
<foreign-key foreignTable="C_PAYMENT" name="CPAYMENT_CINVOICE">
<reference local="C_PAYMENT_ID" foreign="C_PAYMENT_ID"/>
</foreign-key>
<foreign-key foreignTable="C_PAYMENTTERM" name="CPAYMENTTERM_CINVOICE">
<reference local="C_PAYMENTTERM_ID" foreign="C_PAYMENTTERM_ID"/>
</foreign-key>
<foreign-key foreignTable="C_PROJECT" name="CPROJECT_CINVOICE">
<reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
</foreign-key>
<foreign-key foreignTable="M_PRICELIST" name="MPRICELIST_CINVOICE">
<reference local="M_PRICELIST_ID" foreign="M_PRICELIST_ID"/>
</foreign-key>
<index name="C_INVOICE_ORDER">
<index-column name="C_ORDER_ID"/>
</index>
<index name="C_INVOICE_BPARTNER">
<index-column name="C_BPARTNER_ID"/>
</index>
<unique name="C_INVOICE_DOCUMENTNO">
<unique-column name="DOCUMENTNO"/>
<unique-column name="C_DOCTYPE_ID"/>
<unique-column name="C_BPARTNER_ID"/>
</unique>
<index name="C_INVOICE_PAID">
<index-column name="AD_CLIENT_ID"/>
<index-column name="ISPAID"/>
</index>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsSOTrx in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[Processed in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsApproved in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsTransferred in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsPrinted in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsDiscountPrinted in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsTaxIncluded in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsPaid in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[CreateFrom in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[GenerateTo in ('Y','N')]]></rule>
</check>
</table>
</database>

View File

@ -0,0 +1,43 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_INVOICEBATCH">
<column name="C_INVOICEBATCH_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<column name="DOCUMENTNO" primaryKey="false" required="true" type="VARCHAR" size="30" autoIncrement="false"/>
<column name="DESCRIPTION" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/>
<column name="DATEDOC" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="ISSOTRX" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="SALESREP_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="C_CURRENCY_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="C_CONVERSIONTYPE_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="CONTROLAMT" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="DOCUMENTAMT" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="PROCESSING" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<column name="PROCESSED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<foreign-key foreignTable="AD_USER" name="ADUSER_CINVOICEBATCH">
<reference local="SALESREP_ID" foreign="AD_USER_ID"/>
</foreign-key>
<foreign-key foreignTable="C_CONVERSIONTYPE" name="CCONVENTIONTYPE_CINVOICEBATCH">
<reference local="C_CONVERSIONTYPE_ID" foreign="C_CONVERSIONTYPE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_CURRENCY" name="CCURRENCY_CINVOICEBATCH">
<reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
</foreign-key>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsSOTrx in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[Processed in ('Y','N')]]></rule>
</check>
</table>
</database>

View File

@ -0,0 +1,94 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_INVOICEBATCHLINE">
<column name="C_INVOICEBATCHLINE_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<column name="C_INVOICEBATCH_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="LINE" primaryKey="false" required="true" type="INTEGER" default="0" autoIncrement="false"/>
<column name="C_DOCTYPE_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="DOCUMENTNO" primaryKey="false" required="true" type="VARCHAR" size="30" autoIncrement="false"/>
<column name="DATEINVOICED" 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_BPARTNER_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="C_BPARTNER_LOCATION_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_USER_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="C_CHARGE_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="QTYENTERED" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="PRICEENTERED" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="ISTAXINCLUDED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="LINENETAMT" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="C_TAX_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="TAXAMT" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="LINETOTALAMT" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="C_PROJECT_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="C_ACTIVITY_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="AD_ORGTRX_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="USER1_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="USER2_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="PROCESSED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="C_INVOICE_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="C_INVOICELINE_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="DESCRIPTION" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/>
<foreign-key foreignTable="AD_ORG" name="ADORGTRX_CINVOICEBATCHLINE">
<reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
</foreign-key>
<foreign-key foreignTable="AD_ORG" name="ADORG_CINVOICEBATCHLINE">
<reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
</foreign-key>
<foreign-key foreignTable="AD_USER" name="ADUSER_CINVOICEBATCHLINE">
<reference local="AD_USER_ID" foreign="AD_USER_ID"/>
</foreign-key>
<foreign-key foreignTable="C_ACTIVITY" name="CACTIVITY_CINVOICEBATCHLINE">
<reference local="C_ACTIVITY_ID" foreign="C_ACTIVITY_ID"/>
</foreign-key>
<foreign-key foreignTable="C_BPARTNER" name="CBPARTNER_CINVOICEBATCHLINE">
<reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
</foreign-key>
<foreign-key foreignTable="C_BPARTNER_LOCATION" name="CBPLOCATION_CINVOICEBLINE">
<reference local="C_BPARTNER_LOCATION_ID" foreign="C_BPARTNER_LOCATION_ID"/>
</foreign-key>
<foreign-key foreignTable="C_CHARGE" name="CCHARGE_CINVOICEBATCHLINE">
<reference local="C_CHARGE_ID" foreign="C_CHARGE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_DOCTYPE" name="CDOCTYPE_CINVOICEBATCHLINE">
<reference local="C_DOCTYPE_ID" foreign="C_DOCTYPE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUEU1_CINVOICEBLINE">
<reference local="USER1_ID" foreign="C_ELEMENTVALUE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUEU2_CINVOICEBLINE">
<reference local="USER2_ID" foreign="C_ELEMENTVALUE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_INVOICE" name="CINVOICE_CINVOICEBATCHLINE">
<reference local="C_INVOICE_ID" foreign="C_INVOICE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_INVOICEBATCH" name="CINVOICEBATCH_CINVOICEBLINE">
<reference local="C_INVOICEBATCH_ID" foreign="C_INVOICEBATCH_ID"/>
</foreign-key>
<foreign-key foreignTable="C_INVOICELINE" name="CINVOICELINE_CINVOICEBLINE">
<reference local="C_INVOICELINE_ID" foreign="C_INVOICELINE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_PROJECT" name="CPROJECT_CINVOICEBATCHLINE">
<reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
</foreign-key>
<foreign-key foreignTable="C_TAX" name="CTAX_CINVOICEBATCHLINE">
<reference local="C_TAX_ID" foreign="C_TAX_ID"/>
</foreign-key>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsTaxIncluded in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[Processed in ('Y','N')]]></rule>
</check>
</table>
</database>

View File

@ -0,0 +1,121 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_INVOICELINE">
<column name="C_INVOICELINE_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<column name="C_INVOICE_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="C_ORDERLINE_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="M_INOUTLINE_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="LINE" primaryKey="false" required="true" type="INTEGER" autoIncrement="false"/>
<column name="DESCRIPTION" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/>
<column name="M_PRODUCT_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="QTYINVOICED" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="PRICELIST" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="PRICEACTUAL" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="PRICELIMIT" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="LINENETAMT" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="C_CHARGE_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="C_UOM_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="C_TAX_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="S_RESOURCEASSIGNMENT_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="A_ASSET_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="TAXAMT" primaryKey="false" required="false" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="M_ATTRIBUTESETINSTANCE_ID" primaryKey="false" required="false" type="ID" default="0" autoIncrement="false"/>
<column name="ISDESCRIPTION" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="ISPRINTED" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
<column name="LINETOTALAMT" primaryKey="false" required="false" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="REF_INVOICELINE_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="PROCESSED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="QTYENTERED" primaryKey="false" required="true" type="NUMERIC" autoIncrement="false"/>
<column name="PRICEENTERED" primaryKey="false" required="true" type="NUMERIC" autoIncrement="false"/>
<column name="C_PROJECT_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="C_PROJECTPHASE_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="C_PROJECTTASK_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="RRSTARTDATE" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="RRAMT" primaryKey="false" required="false" type="NUMERIC" autoIncrement="false"/>
<column name="C_CAMPAIGN_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="C_ACTIVITY_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="USER1_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="USER2_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="AD_ORGTRX_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<foreign-key foreignTable="AD_ORG" name="ADORGTRX_CINVOICELINE">
<reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
</foreign-key>
<foreign-key foreignTable="AD_ORG" name="ADORG_CINVOICELINE">
<reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
</foreign-key>
<foreign-key foreignTable="A_ASSET" name="AASSET_CINVOICELINE">
<reference local="A_ASSET_ID" foreign="A_ASSET_ID"/>
</foreign-key>
<foreign-key foreignTable="C_ACTIVITY" name="CACTIVITY_CINVOICELINE">
<reference local="C_ACTIVITY_ID" foreign="C_ACTIVITY_ID"/>
</foreign-key>
<foreign-key foreignTable="C_CAMPAIGN" name="CCAMPAIGN_CINVOICELINE">
<reference local="C_CAMPAIGN_ID" foreign="C_CAMPAIGN_ID"/>
</foreign-key>
<foreign-key foreignTable="C_CHARGE" name="CCHARGE_CINVOICELINE">
<reference local="C_CHARGE_ID" foreign="C_CHARGE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENRVALUEUSER2_CINVLINE">
<reference local="USER2_ID" foreign="C_ELEMENTVALUE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENRVALUEUSER1_CINVLINE">
<reference local="USER1_ID" foreign="C_ELEMENTVALUE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_INVOICE" name="CINVOICE_CINVOICELINE">
<reference local="C_INVOICE_ID" foreign="C_INVOICE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_INVOICELINE" name="CONVOICELINE_REF">
<reference local="REF_INVOICELINE_ID" foreign="C_INVOICELINE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_ORDERLINE" name="CORDERLINE_CINVOICELINE">
<reference local="C_ORDERLINE_ID" foreign="C_ORDERLINE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_PROJECT" name="CPROJECT_CINVOICELINE">
<reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
</foreign-key>
<foreign-key foreignTable="C_PROJECTPHASE" name="CPROJECTPHASE_CINVOICELINE">
<reference local="C_PROJECTPHASE_ID" foreign="C_PROJECTPHASE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_PROJECTTASK" name="CPROJECTTASK_CINVOICELINE">
<reference local="C_PROJECTTASK_ID" foreign="C_PROJECTTASK_ID"/>
</foreign-key>
<foreign-key foreignTable="C_TAX" name="CTAX_CINVOICELINE">
<reference local="C_TAX_ID" foreign="C_TAX_ID"/>
</foreign-key>
<foreign-key foreignTable="C_UOM" name="CUOM_CINVOICELINE">
<reference local="C_UOM_ID" foreign="C_UOM_ID"/>
</foreign-key>
<foreign-key foreignTable="M_ATTRIBUTESETINSTANCE" name="MATTRSETINST_CINVOICELINE">
<reference local="M_ATTRIBUTESETINSTANCE_ID" foreign="M_ATTRIBUTESETINSTANCE_ID"/>
</foreign-key>
<foreign-key foreignTable="M_INOUTLINE" name="MINOUTLINE_CINVOICELINE">
<reference local="M_INOUTLINE_ID" foreign="M_INOUTLINE_ID"/>
</foreign-key>
<foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_CINVOICELINE">
<reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
</foreign-key>
<foreign-key foreignTable="S_RESOURCEASSIGNMENT" name="SRESOURCEASSIGN_CINVOICELINE">
<reference local="S_RESOURCEASSIGNMENT_ID" foreign="S_RESOURCEASSIGNMENT_ID"/>
</foreign-key>
<index name="C_INVOICELINE_INVOICE">
<index-column name="C_INVOICE_ID"/>
</index>
<index name="C_INVOICELINE_PRODUCT">
<index-column name="M_PRODUCT_ID"/>
</index>
<index name="C_INVOICELINE_ORDERLINE">
<index-column name="C_ORDERLINE_ID"/>
</index>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
</table>
</database>

View File

@ -0,0 +1,38 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_INVOICEPAYSCHEDULE">
<column name="C_INVOICEPAYSCHEDULE_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<column name="C_INVOICE_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="C_PAYSCHEDULE_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="DUEDATE" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="DUEAMT" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="DISCOUNTDATE" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="DISCOUNTAMT" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="ISVALID" 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="PROCESSED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<foreign-key foreignTable="C_INVOICE" name="CINVOICE_CINVOICEPAYSCHED">
<reference local="C_INVOICE_ID" foreign="C_INVOICE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_PAYSCHEDULE" name="CPAYSCHEDULE_CINVOICEPAYSCHED">
<reference local="C_PAYSCHEDULE_ID" foreign="C_PAYSCHEDULE_ID"/>
</foreign-key>
<index name="C_INVOICEPAYSCHEDULE_INVOICE">
<index-column name="C_INVOICE_ID"/>
</index>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsValid in ('Y','N')]]></rule>
</check>
</table>
</database>

View File

@ -0,0 +1,34 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_INVOICESCHEDULE">
<column name="C_INVOICESCHEDULE_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<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="ISAMOUNT" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="AMT" primaryKey="false" required="false" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="INVOICEFREQUENCY" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false"/>
<column name="INVOICEWEEKDAY" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<column name="INVOICEWEEKDAYCUTOFF" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<column name="EVENINVOICEWEEK" primaryKey="false" required="false" type="CHAR" size="1" default="Y" autoIncrement="false"/>
<column name="INVOICEDAY" primaryKey="false" required="false" type="INTEGER" autoIncrement="false"/>
<column name="INVOICEDAYCUTOFF" primaryKey="false" required="false" type="INTEGER" autoIncrement="false"/>
<column name="ISDEFAULT" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsAmount in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[EvenInvoiceWeek in ('Y','N')]]></rule>
</check>
</table>
</database>

View File

@ -0,0 +1,28 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_INVOICETAX">
<column name="C_TAX_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="C_INVOICE_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<column name="TAXBASEAMT" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="TAXAMT" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="PROCESSED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="ISTAXINCLUDED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<foreign-key foreignTable="C_INVOICE" name="CINVOICE_CINVOICETAX">
<reference local="C_INVOICE_ID" foreign="C_INVOICE_ID"/>
</foreign-key>
<foreign-key foreignTable="C_TAX" name="CTAX_CINVOICETAX">
<reference local="C_TAX_ID" foreign="C_TAX_ID"/>
</foreign-key>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
</table>
</database>

View File

@ -0,0 +1,25 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_JOB">
<column name="C_JOB_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<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="HELP" primaryKey="false" required="false" type="VARCHAR" size="2000" autoIncrement="false"/>
<column name="C_JOBCATEGORY_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="ISEMPLOYEE" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<foreign-key foreignTable="C_JOBCATEGORY" name="CJOBCATEGORY_CJOB">
<reference local="C_JOBCATEGORY_ID" foreign="C_JOBCATEGORY_ID"/>
</foreign-key>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
</table>
</database>

View File

@ -0,0 +1,28 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_JOBASSIGNMENT">
<column name="C_JOBASSIGNMENT_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<column name="AD_USER_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="C_JOB_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="VALIDFROM" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="VALIDTO" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="DESCRIPTION" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/>
<foreign-key foreignTable="AD_USER" name="ADUSER_CJOBASSIGNMENT">
<reference local="AD_USER_ID" foreign="AD_USER_ID"/>
</foreign-key>
<foreign-key foreignTable="C_JOB" name="CJOB_CJOBASSIGNMENT">
<reference local="C_JOB_ID" foreign="C_JOB_ID"/>
</foreign-key>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
</table>
</database>

View File

@ -0,0 +1,20 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_JOBCATEGORY">
<column name="C_JOBCATEGORY_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<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="HELP" primaryKey="false" required="false" type="VARCHAR" size="2000" autoIncrement="false"/>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
</table>
</database>

View File

@ -0,0 +1,28 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_JOBREMUNERATION">
<column name="C_JOBREMUNERATION_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<column name="C_JOB_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="C_REMUNERATION_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="VALIDFROM" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="VALIDTO" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="DESCRIPTION" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/>
<foreign-key foreignTable="C_JOB" name="CJOB_CJOBREMUNERATION">
<reference local="C_JOB_ID" foreign="C_JOB_ID"/>
</foreign-key>
<foreign-key foreignTable="C_REMUNERATION" name="CREMUNERATION_CJOBREM">
<reference local="C_REMUNERATION_ID" foreign="C_REMUNERATION_ID"/>
</foreign-key>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
</table>
</database>

View File

@ -0,0 +1,36 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_LANDEDCOST">
<column name="C_LANDEDCOST_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<column name="DESCRIPTION" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/>
<column name="C_INVOICELINE_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="M_COSTELEMENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="M_INOUTLINE_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="M_INOUT_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="M_PRODUCT_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="LANDEDCOSTDISTRIBUTION" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false"/>
<column name="PROCESSING" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<foreign-key foreignTable="C_INVOICELINE" name="CINVOICELINE_CLANDEDCOST">
<reference local="C_INVOICELINE_ID" foreign="C_INVOICELINE_ID"/>
</foreign-key>
<foreign-key foreignTable="M_COSTELEMENT" name="CCOSTELEMENT_CLANDEDCOST">
<reference local="M_COSTELEMENT_ID" foreign="M_COSTELEMENT_ID"/>
</foreign-key>
<foreign-key foreignTable="M_INOUT" name="MINOUT_CLANDEDCOST">
<reference local="M_INOUT_ID" foreign="M_INOUT_ID"/>
</foreign-key>
<foreign-key foreignTable="M_INOUTLINE" name="MINOUTLINE_CLANDEDCOST">
<reference local="M_INOUTLINE_ID" foreign="M_INOUTLINE_ID"/>
</foreign-key>
<foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_CLANDEDCOST">
<reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
</foreign-key>
</table>
</database>

View File

@ -0,0 +1,32 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_LANDEDCOSTALLOCATION">
<column name="C_LANDEDCOSTALLOCATION_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<column name="C_INVOICELINE_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="M_PRODUCT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="M_ATTRIBUTESETINSTANCE_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="M_COSTELEMENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AMT" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="QTY" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<column name="BASE" primaryKey="false" required="true" type="NUMERIC" default="0" autoIncrement="false"/>
<foreign-key foreignTable="C_INVOICELINE" name="CINVOICELINE_CLANDEDCOSTALLOC">
<reference local="C_INVOICELINE_ID" foreign="C_INVOICELINE_ID"/>
</foreign-key>
<foreign-key foreignTable="M_ATTRIBUTESETINSTANCE" name="MASI_CLANDEDCOSTALLOCATION">
<reference local="M_ATTRIBUTESETINSTANCE_ID" foreign="M_ATTRIBUTESETINSTANCE_ID"/>
</foreign-key>
<foreign-key foreignTable="M_COSTELEMENT" name="MCOSTELEMENT_MLANDEDCOSTALLOC">
<reference local="M_COSTELEMENT_ID" foreign="M_COSTELEMENT_ID"/>
</foreign-key>
<foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_CLANDEDCOSTALLOC">
<reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
</foreign-key>
</table>
</database>

View File

@ -0,0 +1,43 @@
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_LOCATION">
<column name="C_LOCATION_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<column name="ADDRESS1" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="ADDRESS2" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="CITY" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="POSTAL" primaryKey="false" required="false" type="VARCHAR" size="10" autoIncrement="false"/>
<column name="POSTAL_ADD" primaryKey="false" required="false" type="VARCHAR" size="10" autoIncrement="false"/>
<column name="C_COUNTRY_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="C_REGION_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="C_CITY_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="REGIONNAME" primaryKey="false" required="false" type="VARCHAR" size="40" autoIncrement="false"/>
<column name="ADDRESS3" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="ADDRESS4" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
<foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_CLOCATION">
<reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
</foreign-key>
<foreign-key foreignTable="AD_ORG" name="ADORG_CLOCATION">
<reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
</foreign-key>
<foreign-key foreignTable="C_CITY" name="CCITY_CLOCATION">
<reference local="C_CITY_ID" foreign="C_CITY_ID"/>
</foreign-key>
<foreign-key foreignTable="C_COUNTRY" name="C_COUNTRY_LOCATION">
<reference local="C_COUNTRY_ID" foreign="C_COUNTRY_ID"/>
</foreign-key>
<foreign-key foreignTable="C_REGION" name="C_REGION_LOCATION">
<reference local="C_REGION_ID" foreign="C_REGION_ID"/>
</foreign-key>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
</table>
</database>