database/model/tables/I_ELEMENTVALUE.xml
author Iván Perdomo <ivan.perdomo@openbravo.com>
Wed, 19 Dec 2007 10:11:41 +0000
changeset 258 a4855f55d8a1
parent 238 006d2d0fdea6
child 410 ec5115414c8c
permissions -rw-r--r--
Enclose check constraints in CDATA
carlos@0
     1
<?xml version="1.0"?>
adrian@94
     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"/>
adrian@94
    34
      <column name="ELEMENTLEVEL" primaryKey="false" required="false" type="VARCHAR" size="2" autoIncrement="false"/>
adrian@94
    35
      <column name="OPERANDS" primaryKey="false" required="false" type="NVARCHAR" size="1000" autoIncrement="false"/>
carlos@0
    36
      <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_IELEMENTVALUE">
carlos@0
    37
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
carlos@0
    38
      </foreign-key>
carlos@0
    39
      <foreign-key foreignTable="AD_COLUMN" name="ADCOLUMN_IELEMENTVALUE">
carlos@0
    40
        <reference local="AD_COLUMN_ID" foreign="AD_COLUMN_ID"/>
carlos@0
    41
      </foreign-key>
carlos@0
    42
      <foreign-key foreignTable="AD_ORG" name="ADORG_IELEMENTVALUE">
carlos@0
    43
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
carlos@0
    44
      </foreign-key>
gorkaion@238
    45
      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUE_IELEMENTVALUE">
gorkaion@238
    46
        <reference local="C_ELEMENTVALUE_ID" foreign="C_ELEMENTVALUE_ID"/>
gorkaion@238
    47
      </foreign-key>
carlos@0
    48
      <foreign-key foreignTable="C_ELEMENT" name="CELEMENT_IELEMENTVALUE">
carlos@0
    49
        <reference local="C_ELEMENT_ID" foreign="C_ELEMENT_ID"/>
carlos@0
    50
      </foreign-key>
carlos@0
    51
      <foreign-key foreignTable="C_ELEMENTVALUE" name="CEVALUEPARENT_IELEMENTVALUE">
carlos@0
    52
        <reference local="PARENTELEMENTVALUE_ID" foreign="C_ELEMENTVALUE_ID"/>
carlos@0
    53
      </foreign-key>
ivan@258
    54
      <check name="IELEMVALUE_POSTACTUAL_CHECK"><![CDATA[POSTACTUAL IN ('Y', 'N')]]></check>
ivan@258
    55
      <check name="IELEMVALUE_POSTBUDGET_CHECK"><![CDATA[POSTBUDGET IN ('Y', 'N')]]></check>
ivan@258
    56
      <check name="IELEMVALUE_POSTENCUMBR_CHECK"><![CDATA[POSTENCUMBRANCE IN ('Y', 'N')]]></check>
ivan@258
    57
      <check name="IELEMVALUE_POSTSTATIST_CHECK"><![CDATA[POSTSTATISTICAL IN ('Y', 'N')]]></check>
ivan@258
    58
      <check name="IELEMVALUE_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
ivan@258
    59
      <check name="IELEMVAL_ISDOCCONTROL_CHECK"><![CDATA[ISDOCCONTROLLED IN ('Y', 'N')]]></check>
ivan@258
    60
      <check name="I_ELEMENTVALUE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
carlos@0
    61
    </table>
adrian@94
    62
  </database>