src-db/database/model/tables/AD_TEST.xml
author Gorka Ion Damián <gorkaion.damian@openbravo.com>
Fri, 10 Oct 2008 10:15:14 +0000
changeset 1788 5d8538e39f1d
child 2737 ff21b65482bf
permissions -rw-r--r--
Some tables have been renamed or deleted due to changes in the used prefixes.

Modified tables are: (old name, new name)
TEST AD_TEST
T_REPLENISH deleted
T_SELECTION2 C_SELECTION2
T_SELECTION C_SELECTION
T_SPOOL deleted
gorkaion@1788
     1
<?xml version="1.0"?>
gorkaion@1788
     2
  <database name="TABLE AD_TEST">
gorkaion@1788
     3
    <table name="AD_TEST">
gorkaion@1788
     4
      <column name="AD_TEST_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@1788
     5
        <default/>
gorkaion@1788
     6
        <onCreateDefault/>
gorkaion@1788
     7
      </column>
gorkaion@1788
     8
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@1788
     9
        <default/>
gorkaion@1788
    10
        <onCreateDefault/>
gorkaion@1788
    11
      </column>
gorkaion@1788
    12
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@1788
    13
        <default/>
gorkaion@1788
    14
        <onCreateDefault/>
gorkaion@1788
    15
      </column>
gorkaion@1788
    16
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
gorkaion@1788
    17
        <default><![CDATA[Y]]></default>
gorkaion@1788
    18
        <onCreateDefault/>
gorkaion@1788
    19
      </column>
gorkaion@1788
    20
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
gorkaion@1788
    21
        <default><![CDATA[SYSDATE]]></default>
gorkaion@1788
    22
        <onCreateDefault/>
gorkaion@1788
    23
      </column>
gorkaion@1788
    24
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@1788
    25
        <default/>
gorkaion@1788
    26
        <onCreateDefault/>
gorkaion@1788
    27
      </column>
gorkaion@1788
    28
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
gorkaion@1788
    29
        <default><![CDATA[SYSDATE]]></default>
gorkaion@1788
    30
        <onCreateDefault/>
gorkaion@1788
    31
      </column>
gorkaion@1788
    32
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@1788
    33
        <default/>
gorkaion@1788
    34
        <onCreateDefault/>
gorkaion@1788
    35
      </column>
gorkaion@1788
    36
      <column name="NAME" primaryKey="false" required="true" type="NVARCHAR" size="60" autoIncrement="false">
gorkaion@1788
    37
        <default/>
gorkaion@1788
    38
        <onCreateDefault/>
gorkaion@1788
    39
      </column>
gorkaion@1788
    40
      <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
gorkaion@1788
    41
        <default/>
gorkaion@1788
    42
        <onCreateDefault/>
gorkaion@1788
    43
      </column>
gorkaion@1788
    44
      <column name="HELP" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false">
gorkaion@1788
    45
        <default/>
gorkaion@1788
    46
        <onCreateDefault/>
gorkaion@1788
    47
      </column>
gorkaion@1788
    48
      <column name="T_INTEGER" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
gorkaion@1788
    49
        <default/>
gorkaion@1788
    50
        <onCreateDefault/>
gorkaion@1788
    51
      </column>
gorkaion@1788
    52
      <column name="T_NUMBER" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
gorkaion@1788
    53
        <default><![CDATA[0]]></default>
gorkaion@1788
    54
        <onCreateDefault/>
gorkaion@1788
    55
      </column>
gorkaion@1788
    56
      <column name="T_DATE" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
gorkaion@1788
    57
        <default/>
gorkaion@1788
    58
        <onCreateDefault/>
gorkaion@1788
    59
      </column>
gorkaion@1788
    60
      <column name="T_DATETIME" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
gorkaion@1788
    61
        <default/>
gorkaion@1788
    62
        <onCreateDefault/>
gorkaion@1788
    63
      </column>
gorkaion@1788
    64
      <column name="C_UOM_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@1788
    65
        <default/>
gorkaion@1788
    66
        <onCreateDefault/>
gorkaion@1788
    67
      </column>
gorkaion@1788
    68
      <column name="T_QTY" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
gorkaion@1788
    69
        <default><![CDATA[0]]></default>
gorkaion@1788
    70
        <onCreateDefault/>
gorkaion@1788
    71
      </column>
gorkaion@1788
    72
      <column name="C_CURRENCY_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@1788
    73
        <default/>
gorkaion@1788
    74
        <onCreateDefault/>
gorkaion@1788
    75
      </column>
gorkaion@1788
    76
      <column name="T_AMOUNT" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
gorkaion@1788
    77
        <default><![CDATA[0]]></default>
gorkaion@1788
    78
        <onCreateDefault/>
gorkaion@1788
    79
      </column>
gorkaion@1788
    80
      <column name="C_LOCATION_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@1788
    81
        <default/>
gorkaion@1788
    82
        <onCreateDefault/>
gorkaion@1788
    83
      </column>
gorkaion@1788
    84
      <column name="ACCOUNT_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@1788
    85
        <default/>
gorkaion@1788
    86
        <onCreateDefault/>
gorkaion@1788
    87
      </column>
gorkaion@1788
    88
      <column name="M_PRODUCT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@1788
    89
        <default/>
gorkaion@1788
    90
        <onCreateDefault/>
gorkaion@1788
    91
      </column>
gorkaion@1788
    92
      <column name="C_BPARTNER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@1788
    93
        <default/>
gorkaion@1788
    94
        <onCreateDefault/>
gorkaion@1788
    95
      </column>
gorkaion@1788
    96
      <column name="M_LOCATOR_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@1788
    97
        <default/>
gorkaion@1788
    98
        <onCreateDefault/>
gorkaion@1788
    99
      </column>
gorkaion@1788
   100
      <column name="PROCESSING" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
gorkaion@1788
   101
        <default/>
gorkaion@1788
   102
        <onCreateDefault/>
gorkaion@1788
   103
      </column>
gorkaion@1788
   104
      <column name="PROCESSED" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
gorkaion@1788
   105
        <default><![CDATA[N]]></default>
gorkaion@1788
   106
        <onCreateDefault/>
gorkaion@1788
   107
      </column>
gorkaion@1788
   108
      <column name="C_DEBT_PAYMENT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@1788
   109
        <default/>
gorkaion@1788
   110
        <onCreateDefault/>
gorkaion@1788
   111
      </column>
gorkaion@1788
   112
      <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_TEST">
gorkaion@1788
   113
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
gorkaion@1788
   114
      </foreign-key>
gorkaion@1788
   115
      <foreign-key foreignTable="AD_ORG" name="ADORG_TEST">
gorkaion@1788
   116
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
gorkaion@1788
   117
      </foreign-key>
gorkaion@1788
   118
      <foreign-key foreignTable="C_BPARTNER" name="CBPARTNER_TEST">
gorkaion@1788
   119
        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
gorkaion@1788
   120
      </foreign-key>
gorkaion@1788
   121
      <foreign-key foreignTable="C_CURRENCY" name="CCURRENCY_TEST">
gorkaion@1788
   122
        <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
gorkaion@1788
   123
      </foreign-key>
gorkaion@1788
   124
      <foreign-key foreignTable="C_DEBT_PAYMENT" name="CDEBT_PAYMENT_TEST">
gorkaion@1788
   125
        <reference local="C_DEBT_PAYMENT_ID" foreign="C_DEBT_PAYMENT_ID"/>
gorkaion@1788
   126
      </foreign-key>
gorkaion@1788
   127
      <foreign-key foreignTable="C_LOCATION" name="CLOCATION_TEST">
gorkaion@1788
   128
        <reference local="C_LOCATION_ID" foreign="C_LOCATION_ID"/>
gorkaion@1788
   129
      </foreign-key>
gorkaion@1788
   130
      <foreign-key foreignTable="C_UOM" name="CUOM_TEST">
gorkaion@1788
   131
        <reference local="C_UOM_ID" foreign="C_UOM_ID"/>
gorkaion@1788
   132
      </foreign-key>
gorkaion@1788
   133
      <foreign-key foreignTable="M_LOCATOR" name="MLOCATOR_TEST">
gorkaion@1788
   134
        <reference local="M_LOCATOR_ID" foreign="M_LOCATOR_ID"/>
gorkaion@1788
   135
      </foreign-key>
gorkaion@1788
   136
      <foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_TEST">
gorkaion@1788
   137
        <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
gorkaion@1788
   138
      </foreign-key>
gorkaion@1788
   139
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_ACCOUNT_TEST">
gorkaion@1788
   140
        <reference local="ACCOUNT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
gorkaion@1788
   141
      </foreign-key>
gorkaion@1788
   142
      <check name="TEST_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
gorkaion@1788
   143
      <check name="TEST_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
gorkaion@1788
   144
    </table>
gorkaion@1788
   145
  </database>