src-db/database/model/tables/FACT_ACCT.xml
author Asier Lostalé <asier.lostale@openbravo.com>
Wed, 14 Jan 2009 15:00:49 +0000
changeset 2586 683779f1e610
parent 1605 8a0fe0193bef
child 3237 20a02b5e1722
permissions -rw-r--r--
Merged reflist branch back

Now columns for reference list values are varchar2(60) instead of char
carlos@0
     1
<?xml version="1.0"?>
adrian@94
     2
  <database name="TABLE FACT_ACCT">
carlos@0
     3
    <table name="FACT_ACCT" primaryKey="FACT_ACCT_KEY">
juanpablo@1605
     4
      <column name="FACT_ACCT_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
     5
        <default/>
antonio@735
     6
        <onCreateDefault/>
antonio@735
     7
      </column>
juanpablo@1605
     8
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
     9
        <default/>
antonio@735
    10
        <onCreateDefault/>
antonio@735
    11
      </column>
juanpablo@1605
    12
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    13
        <default/>
antonio@735
    14
        <onCreateDefault/>
antonio@735
    15
      </column>
antonio@735
    16
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    17
        <default><![CDATA[Y]]></default>
antonio@735
    18
        <onCreateDefault/>
antonio@735
    19
      </column>
antonio@735
    20
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    21
        <default><![CDATA[SYSDATE]]></default>
antonio@735
    22
        <onCreateDefault/>
antonio@735
    23
      </column>
juanpablo@1605
    24
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    25
        <default/>
antonio@735
    26
        <onCreateDefault/>
antonio@735
    27
      </column>
antonio@735
    28
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    29
        <default><![CDATA[SYSDATE]]></default>
antonio@735
    30
        <onCreateDefault/>
antonio@735
    31
      </column>
juanpablo@1605
    32
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    33
        <default/>
antonio@735
    34
        <onCreateDefault/>
antonio@735
    35
      </column>
juanpablo@1605
    36
      <column name="C_ACCTSCHEMA_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    37
        <default/>
antonio@735
    38
        <onCreateDefault/>
antonio@735
    39
      </column>
juanpablo@1605
    40
      <column name="ACCOUNT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    41
        <default/>
antonio@735
    42
        <onCreateDefault/>
antonio@735
    43
      </column>
antonio@735
    44
      <column name="DATETRX" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    45
        <default/>
antonio@735
    46
        <onCreateDefault/>
antonio@735
    47
      </column>
antonio@735
    48
      <column name="DATEACCT" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    49
        <default/>
antonio@735
    50
        <onCreateDefault/>
antonio@735
    51
      </column>
juanpablo@1605
    52
      <column name="C_PERIOD_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    53
        <default/>
antonio@735
    54
        <onCreateDefault/>
antonio@735
    55
      </column>
juanpablo@1605
    56
      <column name="AD_TABLE_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    57
        <default/>
antonio@735
    58
        <onCreateDefault/>
antonio@735
    59
      </column>
juanpablo@1605
    60
      <column name="RECORD_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    61
        <default/>
antonio@735
    62
        <onCreateDefault/>
antonio@735
    63
      </column>
juanpablo@1605
    64
      <column name="LINE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    65
        <default/>
antonio@735
    66
        <onCreateDefault/>
antonio@735
    67
      </column>
juanpablo@1605
    68
      <column name="GL_CATEGORY_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    69
        <default/>
antonio@735
    70
        <onCreateDefault/>
antonio@735
    71
      </column>
juanpablo@1605
    72
      <column name="C_TAX_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    73
        <default/>
antonio@735
    74
        <onCreateDefault/>
antonio@735
    75
      </column>
juanpablo@1605
    76
      <column name="M_LOCATOR_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    77
        <default/>
antonio@735
    78
        <onCreateDefault/>
antonio@735
    79
      </column>
asier@2586
    80
      <column name="POSTINGTYPE" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
    81
        <default/>
antonio@735
    82
        <onCreateDefault/>
antonio@735
    83
      </column>
juanpablo@1605
    84
      <column name="C_CURRENCY_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    85
        <default/>
antonio@735
    86
        <onCreateDefault/>
antonio@735
    87
      </column>
antonio@735
    88
      <column name="AMTSOURCEDR" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
antonio@735
    89
        <default><![CDATA[0]]></default>
antonio@735
    90
        <onCreateDefault/>
antonio@735
    91
      </column>
antonio@735
    92
      <column name="AMTSOURCECR" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
antonio@735
    93
        <default><![CDATA[0]]></default>
antonio@735
    94
        <onCreateDefault/>
antonio@735
    95
      </column>
antonio@735
    96
      <column name="AMTACCTDR" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
antonio@735
    97
        <default><![CDATA[0]]></default>
antonio@735
    98
        <onCreateDefault/>
antonio@735
    99
      </column>
antonio@735
   100
      <column name="AMTACCTCR" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
antonio@735
   101
        <default><![CDATA[0]]></default>
antonio@735
   102
        <onCreateDefault/>
antonio@735
   103
      </column>
juanpablo@1605
   104
      <column name="C_UOM_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   105
        <default/>
antonio@735
   106
        <onCreateDefault/>
antonio@735
   107
      </column>
antonio@735
   108
      <column name="QTY" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   109
        <default><![CDATA[0]]></default>
antonio@735
   110
        <onCreateDefault/>
antonio@735
   111
      </column>
juanpablo@1605
   112
      <column name="M_PRODUCT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   113
        <default/>
antonio@735
   114
        <onCreateDefault/>
antonio@735
   115
      </column>
juanpablo@1605
   116
      <column name="C_BPARTNER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   117
        <default/>
antonio@735
   118
        <onCreateDefault/>
antonio@735
   119
      </column>
juanpablo@1605
   120
      <column name="AD_ORGTRX_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   121
        <default/>
antonio@735
   122
        <onCreateDefault/>
antonio@735
   123
      </column>
juanpablo@1605
   124
      <column name="C_LOCFROM_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   125
        <default/>
antonio@735
   126
        <onCreateDefault/>
antonio@735
   127
      </column>
juanpablo@1605
   128
      <column name="C_LOCTO_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   129
        <default/>
antonio@735
   130
        <onCreateDefault/>
antonio@735
   131
      </column>
juanpablo@1605
   132
      <column name="C_SALESREGION_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   133
        <default/>
antonio@735
   134
        <onCreateDefault/>
antonio@735
   135
      </column>
juanpablo@1605
   136
      <column name="C_PROJECT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   137
        <default/>
antonio@735
   138
        <onCreateDefault/>
antonio@735
   139
      </column>
juanpablo@1605
   140
      <column name="C_CAMPAIGN_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   141
        <default/>
antonio@735
   142
        <onCreateDefault/>
antonio@735
   143
      </column>
juanpablo@1605
   144
      <column name="C_ACTIVITY_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   145
        <default/>
antonio@735
   146
        <onCreateDefault/>
antonio@735
   147
      </column>
juanpablo@1605
   148
      <column name="USER1_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   149
        <default/>
antonio@735
   150
        <onCreateDefault/>
antonio@735
   151
      </column>
juanpablo@1605
   152
      <column name="USER2_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   153
        <default/>
antonio@735
   154
        <onCreateDefault/>
antonio@735
   155
      </column>
antonio@735
   156
      <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
antonio@735
   157
        <default/>
antonio@735
   158
        <onCreateDefault/>
antonio@735
   159
      </column>
juanpablo@1605
   160
      <column name="A_ASSET_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   161
        <default/>
antonio@735
   162
        <onCreateDefault/>
antonio@735
   163
      </column>
juanpablo@1605
   164
      <column name="FACT_ACCT_GROUP_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   165
        <default/>
antonio@735
   166
        <onCreateDefault/>
antonio@735
   167
      </column>
antonio@735
   168
      <column name="SEQNO" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   169
        <default/>
antonio@735
   170
        <onCreateDefault/>
antonio@735
   171
      </column>
antonio@735
   172
      <column name="FACTACCTTYPE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
   173
        <default><![CDATA[N]]></default>
antonio@735
   174
        <onCreateDefault/>
antonio@735
   175
      </column>
antonio@735
   176
      <column name="DOCBASETYPE" primaryKey="false" required="false" type="CHAR" size="3" autoIncrement="false">
antonio@735
   177
        <default/>
antonio@735
   178
        <onCreateDefault/>
antonio@735
   179
      </column>
antonio@735
   180
      <column name="ACCTVALUE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false">
antonio@735
   181
        <default/>
antonio@735
   182
        <onCreateDefault/>
antonio@735
   183
      </column>
antonio@735
   184
      <column name="ACCTDESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
antonio@735
   185
        <default/>
antonio@735
   186
        <onCreateDefault/>
antonio@735
   187
      </column>
juanpablo@1605
   188
      <column name="RECORD_ID2" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   189
        <default/>
antonio@735
   190
        <onCreateDefault/>
antonio@735
   191
      </column>
carlos@0
   192
      <foreign-key foreignTable="A_ASSET" name="AASSET_FACTACCT">
carlos@0
   193
        <reference local="A_ASSET_ID" foreign="A_ASSET_ID"/>
carlos@0
   194
      </foreign-key>
carlos@0
   195
      <foreign-key foreignTable="AD_CLIENT" name="AC_CLIENT_FACT_ACCT">
carlos@0
   196
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
carlos@0
   197
      </foreign-key>
antonio@410
   198
      <foreign-key foreignTable="AD_ORG" name="AD_ORG_FACT_ACCT">
antonio@410
   199
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
carlos@0
   200
      </foreign-key>
carlos@0
   201
      <foreign-key foreignTable="AD_ORG" name="AD_ORGTRX_FACT_ACCT">
carlos@0
   202
        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
carlos@0
   203
      </foreign-key>
antonio@410
   204
      <foreign-key foreignTable="AD_TABLE" name="ADTABLE_FACTACCT">
antonio@410
   205
        <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
gorkaion@238
   206
      </foreign-key>
carlos@0
   207
      <foreign-key foreignTable="C_BPARTNER" name="C_BUSPARTNER_FACT_ACCT">
carlos@0
   208
        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
carlos@0
   209
      </foreign-key>
carlos@0
   210
      <foreign-key foreignTable="C_CURRENCY" name="C_CURRENCY_FACT_ACCT">
carlos@0
   211
        <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
carlos@0
   212
      </foreign-key>
adrian@170
   213
      <foreign-key foreignTable="C_LOCATION" name="C_LOCATIONFROM_FACT_ACCT">
adrian@170
   214
        <reference local="C_LOCFROM_ID" foreign="C_LOCATION_ID"/>
carlos@0
   215
      </foreign-key>
carlos@0
   216
      <foreign-key foreignTable="C_LOCATION" name="C_LOCATIONTO_FACT_ACCT">
carlos@0
   217
        <reference local="C_LOCTO_ID" foreign="C_LOCATION_ID"/>
carlos@0
   218
      </foreign-key>
carlos@0
   219
      <foreign-key foreignTable="C_PROJECT" name="C_PROJECT_FACT_ACCT">
carlos@0
   220
        <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
carlos@0
   221
      </foreign-key>
carlos@0
   222
      <foreign-key foreignTable="C_SALESREGION" name="C_SALESREGION_FACTACCT">
carlos@0
   223
        <reference local="C_SALESREGION_ID" foreign="C_SALESREGION_ID"/>
carlos@0
   224
      </foreign-key>
carlos@0
   225
      <foreign-key foreignTable="C_UOM" name="C_UOM_FACT_ACCT">
carlos@0
   226
        <reference local="C_UOM_ID" foreign="C_UOM_ID"/>
carlos@0
   227
      </foreign-key>
antonio@410
   228
      <foreign-key foreignTable="C_ACCTSCHEMA" name="CACCTSCHEMA_FACTACCT" onDelete="cascade">
antonio@410
   229
        <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
antonio@410
   230
      </foreign-key>
antonio@410
   231
      <foreign-key foreignTable="C_ACTIVITY" name="CACTIVITY_FACTACCT">
antonio@410
   232
        <reference local="C_ACTIVITY_ID" foreign="C_ACTIVITY_ID"/>
antonio@410
   233
      </foreign-key>
antonio@410
   234
      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUE_FACTACCT">
antonio@410
   235
        <reference local="ACCOUNT_ID" foreign="C_ELEMENTVALUE_ID"/>
antonio@410
   236
      </foreign-key>
antonio@410
   237
      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUEUSER1_FACTACCT">
antonio@410
   238
        <reference local="USER1_ID" foreign="C_ELEMENTVALUE_ID"/>
antonio@410
   239
      </foreign-key>
antonio@410
   240
      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUEUSER2_FACTACCT">
antonio@410
   241
        <reference local="USER2_ID" foreign="C_ELEMENTVALUE_ID"/>
antonio@410
   242
      </foreign-key>
antonio@410
   243
      <foreign-key foreignTable="C_PERIOD" name="CPERIOD_FACTACCT">
antonio@410
   244
        <reference local="C_PERIOD_ID" foreign="C_PERIOD_ID"/>
antonio@410
   245
      </foreign-key>
antonio@410
   246
      <foreign-key foreignTable="C_TAX" name="CTAX_FACTACCT">
antonio@410
   247
        <reference local="C_TAX_ID" foreign="C_TAX_ID"/>
antonio@410
   248
      </foreign-key>
carlos@0
   249
      <foreign-key foreignTable="GL_CATEGORY" name="GLCATEGORY_FACTACCT">
carlos@0
   250
        <reference local="GL_CATEGORY_ID" foreign="GL_CATEGORY_ID"/>
carlos@0
   251
      </foreign-key>
antonio@410
   252
      <foreign-key foreignTable="M_PRODUCT" name="M_PRODUCT_FACT_ACCT">
antonio@410
   253
        <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
antonio@410
   254
      </foreign-key>
carlos@0
   255
      <foreign-key foreignTable="M_LOCATOR" name="MLOCATOR_FACTACCT">
carlos@0
   256
        <reference local="M_LOCATOR_ID" foreign="M_LOCATOR_ID"/>
carlos@0
   257
      </foreign-key>
adrian@170
   258
      <foreign-key foreignTable="C_CAMPAIGN" name="SO_CAMPAIGN_FACT_ACCT">
adrian@170
   259
        <reference local="C_CAMPAIGN_ID" foreign="C_CAMPAIGN_ID"/>
adrian@170
   260
      </foreign-key>
adrian@94
   261
      <index name="FACT_ACCT_ACCOUNT" unique="false">
carlos@0
   262
        <index-column name="AD_CLIENT_ID"/>
carlos@0
   263
        <index-column name="AD_ORG_ID"/>
carlos@0
   264
        <index-column name="C_ACCTSCHEMA_ID"/>
carlos@0
   265
        <index-column name="ACCOUNT_ID"/>
carlos@0
   266
      </index>
adrian@94
   267
      <index name="FACT_ACCT_DATEACCT" unique="false">
carlos@0
   268
        <index-column name="DATEACCT"/>
carlos@0
   269
      </index>
adrian@94
   270
      <index name="FACT_ACCT_GROUP" unique="false">
carlos@0
   271
        <index-column name="FACT_ACCT_GROUP_ID"/>
carlos@0
   272
      </index>
adrian@94
   273
      <index name="FACT_ACCT_TABLE_RECORD_ID" unique="false">
carlos@0
   274
        <index-column name="AD_TABLE_ID"/>
carlos@0
   275
        <index-column name="RECORD_ID"/>
carlos@0
   276
      </index>
ivan@258
   277
      <check name="FACT_ACCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
carlos@0
   278
    </table>
adrian@94
   279
  </database>