database/model/tables/I_ELEMENTVALUE.xml
author Carlos Romero <carlos.romero@openbravo.com>
Tue, 06 Nov 2007 08:33:31 +0000
changeset 0 0247c26f10c6
child 94 4e7ba7b8a4ad
permissions -rw-r--r--
Modified PostgreSQL post script in order to include C_DEBT_PAYMENT_GENERATE modification tules
carlos@0
     1
<?xml version="1.0"?>
carlos@0
     2
<database name="TABLE I_ELEMENTVALUE">
carlos@0
     3
    <table name="I_ELEMENTVALUE" primaryKey="I_ELEMENTVALUE_KEY">
carlos@0
     4
      <column name="I_ELEMENTVALUE_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
     5
      <column name="AD_CLIENT_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
     6
      <column name="AD_ORG_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
     7
      <column name="ISACTIVE" primaryKey="false" required="false" type="CHAR" size="1" default="Y" autoIncrement="false"/>
carlos@0
     8
      <column name="CREATEDBY" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
     9
      <column name="CREATED" primaryKey="false" required="false" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
carlos@0
    10
      <column name="UPDATED" primaryKey="false" required="false" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
carlos@0
    11
      <column name="UPDATEDBY" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    12
      <column name="C_ELEMENT_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    13
      <column name="ELEMENTNAME" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false"/>
carlos@0
    14
      <column name="C_ELEMENTVALUE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    15
      <column name="VALUE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false"/>
carlos@0
    16
      <column name="NAME" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false"/>
carlos@0
    17
      <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false"/>
carlos@0
    18
      <column name="ACCOUNTTYPE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
carlos@0
    19
      <column name="ACCOUNTSIGN" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
carlos@0
    20
      <column name="ISDOCCONTROLLED" primaryKey="false" required="false" type="CHAR" size="1" default="N" autoIncrement="false"/>
carlos@0
    21
      <column name="ISSUMMARY" primaryKey="false" required="false" type="CHAR" size="1" default="N" autoIncrement="false"/>
carlos@0
    22
      <column name="PARENTVALUE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false"/>
carlos@0
    23
      <column name="PARENTELEMENTVALUE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    24
      <column name="POSTACTUAL" primaryKey="false" required="false" type="CHAR" size="1" default="Y" autoIncrement="false"/>
carlos@0
    25
      <column name="POSTBUDGET" primaryKey="false" required="false" type="CHAR" size="1" default="Y" autoIncrement="false"/>
carlos@0
    26
      <column name="POSTSTATISTICAL" primaryKey="false" required="false" type="CHAR" size="1" default="Y" autoIncrement="false"/>
carlos@0
    27
      <column name="POSTENCUMBRANCE" primaryKey="false" required="false" type="CHAR" size="1" default="Y" autoIncrement="false"/>
carlos@0
    28
      <column name="DEFAULT_ACCOUNT" primaryKey="false" required="false" type="NVARCHAR" size="30" autoIncrement="false"/>
carlos@0
    29
      <column name="AD_COLUMN_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    30
      <column name="PROCESSING" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
carlos@0
    31
      <column name="PROCESSED" primaryKey="false" required="false" type="CHAR" size="1" default="N" autoIncrement="false"/>
carlos@0
    32
      <column name="I_ERRORMSG" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false"/>
carlos@0
    33
      <column name="I_ISIMPORTED" primaryKey="false" required="false" type="CHAR" size="1" default="N" autoIncrement="false"/>
carlos@0
    34
      <column name="ELEMENTLEVEL" primaryKey="false" required="false" type="VARCHAR" size="2" autoIncrement="false"/>
carlos@0
    35
      <column name="OPERANDS" primaryKey="false" required="false" type="NVARCHAR" size="1000" autoIncrement="false"/>
carlos@0
    36
      <check name="I_ELEMENTVALUE_ISACTIVE_CHECK" condition="IsActive in ('Y','N')"/> 
carlos@0
    37
      <check name="IELEMVAL_ISDOCCONTROL_CHECK" condition="IsDocControlled in ('Y','N')"/>
carlos@0
    38
      <check name="IELEMVALUE_POSTACTUAL_CHECK" condition="PostActual in ('Y','N')"/>
carlos@0
    39
      <check name="IELEMVALUE_POSTBUDGET_CHECK" condition="PostBudget in ('Y','N')"/>
carlos@0
    40
      <check name="IELEMVALUE_POSTSTATIST_CHECK" condition="PostStatistical in ('Y','N')"/>
carlos@0
    41
      <check name="IELEMVALUE_POSTENCUMBR_CHECK" condition="PostEncumbrance in ('Y','N')"/>
carlos@0
    42
      <check name="IELEMVALUE_PROCESSED_CHECK" condition="Processed in ('Y','N')"/> 
carlos@0
    43
      <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_IELEMENTVALUE">
carlos@0
    44
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
carlos@0
    45
      </foreign-key>
carlos@0
    46
      <foreign-key foreignTable="AD_COLUMN" name="ADCOLUMN_IELEMENTVALUE">
carlos@0
    47
        <reference local="AD_COLUMN_ID" foreign="AD_COLUMN_ID"/>
carlos@0
    48
      </foreign-key>
carlos@0
    49
      <foreign-key foreignTable="AD_ORG" name="ADORG_IELEMENTVALUE">
carlos@0
    50
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
carlos@0
    51
      </foreign-key>
carlos@0
    52
      <foreign-key foreignTable="C_ELEMENT" name="CELEMENT_IELEMENTVALUE">
carlos@0
    53
        <reference local="C_ELEMENT_ID" foreign="C_ELEMENT_ID"/>
carlos@0
    54
      </foreign-key>
carlos@0
    55
      <foreign-key foreignTable="C_ELEMENTVALUE" name="CEVALUEPARENT_IELEMENTVALUE">
carlos@0
    56
        <reference local="PARENTELEMENTVALUE_ID" foreign="C_ELEMENTVALUE_ID"/>
carlos@0
    57
      </foreign-key>
carlos@0
    58
      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUE_IELEMENTVALUE">
carlos@0
    59
        <reference local="C_ELEMENTVALUE_ID" foreign="C_ELEMENTVALUE_ID"/>
carlos@0
    60
      </foreign-key>
carlos@0
    61
    </table>
carlos@0
    62
</database>