database/model/tables/FACT_ACCT.xml
author Antonio Moreno <antonio.moreno@openbravo.com>
Tue, 22 Apr 2008 13:22:11 +0000
changeset 735 daced7e311c9
parent 410 ec5115414c8c
permissions -rw-r--r--
Structure after exporting from PostgreSQL with new dbsourcemanager
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">
antonio@735
     4
      <column name="FACT_ACCT_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
     5
        <default/>
antonio@735
     6
        <onCreateDefault/>
antonio@735
     7
      </column>
antonio@735
     8
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
     9
        <default/>
antonio@735
    10
        <onCreateDefault/>
antonio@735
    11
      </column>
antonio@735
    12
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" 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>
antonio@735
    24
      <column name="CREATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" 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>
antonio@735
    32
      <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
    33
        <default/>
antonio@735
    34
        <onCreateDefault/>
antonio@735
    35
      </column>
antonio@735
    36
      <column name="C_ACCTSCHEMA_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
    37
        <default/>
antonio@735
    38
        <onCreateDefault/>
antonio@735
    39
      </column>
antonio@735
    40
      <column name="ACCOUNT_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" 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>
antonio@735
    52
      <column name="C_PERIOD_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
    53
        <default/>
antonio@735
    54
        <onCreateDefault/>
antonio@735
    55
      </column>
antonio@735
    56
      <column name="AD_TABLE_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
    57
        <default/>
antonio@735
    58
        <onCreateDefault/>
antonio@735
    59
      </column>
antonio@735
    60
      <column name="RECORD_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
    61
        <default/>
antonio@735
    62
        <onCreateDefault/>
antonio@735
    63
      </column>
antonio@735
    64
      <column name="LINE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
    65
        <default/>
antonio@735
    66
        <onCreateDefault/>
antonio@735
    67
      </column>
antonio@735
    68
      <column name="GL_CATEGORY_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
    69
        <default/>
antonio@735
    70
        <onCreateDefault/>
antonio@735
    71
      </column>
antonio@735
    72
      <column name="GL_BUDGET_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
    73
        <default/>
antonio@735
    74
        <onCreateDefault/>
antonio@735
    75
      </column>
antonio@735
    76
      <column name="C_TAX_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
    77
        <default/>
antonio@735
    78
        <onCreateDefault/>
antonio@735
    79
      </column>
antonio@735
    80
      <column name="M_LOCATOR_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
    81
        <default/>
antonio@735
    82
        <onCreateDefault/>
antonio@735
    83
      </column>
antonio@735
    84
      <column name="POSTINGTYPE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    85
        <default/>
antonio@735
    86
        <onCreateDefault/>
antonio@735
    87
      </column>
antonio@735
    88
      <column name="C_CURRENCY_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
    89
        <default/>
antonio@735
    90
        <onCreateDefault/>
antonio@735
    91
      </column>
antonio@735
    92
      <column name="AMTSOURCEDR" 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="AMTSOURCECR" 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="AMTACCTDR" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
antonio@735
   101
        <default><![CDATA[0]]></default>
antonio@735
   102
        <onCreateDefault/>
antonio@735
   103
      </column>
antonio@735
   104
      <column name="AMTACCTCR" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
antonio@735
   105
        <default><![CDATA[0]]></default>
antonio@735
   106
        <onCreateDefault/>
antonio@735
   107
      </column>
antonio@735
   108
      <column name="C_UOM_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   109
        <default/>
antonio@735
   110
        <onCreateDefault/>
antonio@735
   111
      </column>
antonio@735
   112
      <column name="QTY" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   113
        <default><![CDATA[0]]></default>
antonio@735
   114
        <onCreateDefault/>
antonio@735
   115
      </column>
antonio@735
   116
      <column name="M_PRODUCT_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   117
        <default/>
antonio@735
   118
        <onCreateDefault/>
antonio@735
   119
      </column>
antonio@735
   120
      <column name="C_BPARTNER_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   121
        <default/>
antonio@735
   122
        <onCreateDefault/>
antonio@735
   123
      </column>
antonio@735
   124
      <column name="AD_ORGTRX_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   125
        <default/>
antonio@735
   126
        <onCreateDefault/>
antonio@735
   127
      </column>
antonio@735
   128
      <column name="C_LOCFROM_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   129
        <default/>
antonio@735
   130
        <onCreateDefault/>
antonio@735
   131
      </column>
antonio@735
   132
      <column name="C_LOCTO_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   133
        <default/>
antonio@735
   134
        <onCreateDefault/>
antonio@735
   135
      </column>
antonio@735
   136
      <column name="C_SALESREGION_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   137
        <default/>
antonio@735
   138
        <onCreateDefault/>
antonio@735
   139
      </column>
antonio@735
   140
      <column name="C_PROJECT_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   141
        <default/>
antonio@735
   142
        <onCreateDefault/>
antonio@735
   143
      </column>
antonio@735
   144
      <column name="C_CAMPAIGN_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   145
        <default/>
antonio@735
   146
        <onCreateDefault/>
antonio@735
   147
      </column>
antonio@735
   148
      <column name="C_ACTIVITY_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   149
        <default/>
antonio@735
   150
        <onCreateDefault/>
antonio@735
   151
      </column>
antonio@735
   152
      <column name="USER1_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   153
        <default/>
antonio@735
   154
        <onCreateDefault/>
antonio@735
   155
      </column>
antonio@735
   156
      <column name="USER2_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   157
        <default/>
antonio@735
   158
        <onCreateDefault/>
antonio@735
   159
      </column>
antonio@735
   160
      <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
antonio@735
   161
        <default/>
antonio@735
   162
        <onCreateDefault/>
antonio@735
   163
      </column>
antonio@735
   164
      <column name="A_ASSET_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   165
        <default/>
antonio@735
   166
        <onCreateDefault/>
antonio@735
   167
      </column>
antonio@735
   168
      <column name="FACT_ACCT_GROUP_ID" 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="SEQNO" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   173
        <default/>
antonio@735
   174
        <onCreateDefault/>
antonio@735
   175
      </column>
antonio@735
   176
      <column name="FACTACCTTYPE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
   177
        <default><![CDATA[N]]></default>
antonio@735
   178
        <onCreateDefault/>
antonio@735
   179
      </column>
antonio@735
   180
      <column name="DOCBASETYPE" primaryKey="false" required="false" type="CHAR" size="3" autoIncrement="false">
antonio@735
   181
        <default/>
antonio@735
   182
        <onCreateDefault/>
antonio@735
   183
      </column>
antonio@735
   184
      <column name="ACCTVALUE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false">
antonio@735
   185
        <default/>
antonio@735
   186
        <onCreateDefault/>
antonio@735
   187
      </column>
antonio@735
   188
      <column name="ACCTDESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
antonio@735
   189
        <default/>
antonio@735
   190
        <onCreateDefault/>
antonio@735
   191
      </column>
antonio@735
   192
      <column name="RECORD_ID2" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   193
        <default/>
antonio@735
   194
        <onCreateDefault/>
antonio@735
   195
      </column>
carlos@0
   196
      <foreign-key foreignTable="A_ASSET" name="AASSET_FACTACCT">
carlos@0
   197
        <reference local="A_ASSET_ID" foreign="A_ASSET_ID"/>
carlos@0
   198
      </foreign-key>
carlos@0
   199
      <foreign-key foreignTable="AD_CLIENT" name="AC_CLIENT_FACT_ACCT">
carlos@0
   200
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
carlos@0
   201
      </foreign-key>
antonio@410
   202
      <foreign-key foreignTable="AD_ORG" name="AD_ORG_FACT_ACCT">
antonio@410
   203
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
carlos@0
   204
      </foreign-key>
carlos@0
   205
      <foreign-key foreignTable="AD_ORG" name="AD_ORGTRX_FACT_ACCT">
carlos@0
   206
        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
carlos@0
   207
      </foreign-key>
antonio@410
   208
      <foreign-key foreignTable="AD_TABLE" name="ADTABLE_FACTACCT">
antonio@410
   209
        <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
gorkaion@238
   210
      </foreign-key>
carlos@0
   211
      <foreign-key foreignTable="C_BPARTNER" name="C_BUSPARTNER_FACT_ACCT">
carlos@0
   212
        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
carlos@0
   213
      </foreign-key>
carlos@0
   214
      <foreign-key foreignTable="C_CURRENCY" name="C_CURRENCY_FACT_ACCT">
carlos@0
   215
        <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
carlos@0
   216
      </foreign-key>
adrian@170
   217
      <foreign-key foreignTable="C_LOCATION" name="C_LOCATIONFROM_FACT_ACCT">
adrian@170
   218
        <reference local="C_LOCFROM_ID" foreign="C_LOCATION_ID"/>
carlos@0
   219
      </foreign-key>
carlos@0
   220
      <foreign-key foreignTable="C_LOCATION" name="C_LOCATIONTO_FACT_ACCT">
carlos@0
   221
        <reference local="C_LOCTO_ID" foreign="C_LOCATION_ID"/>
carlos@0
   222
      </foreign-key>
carlos@0
   223
      <foreign-key foreignTable="C_PROJECT" name="C_PROJECT_FACT_ACCT">
carlos@0
   224
        <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
carlos@0
   225
      </foreign-key>
carlos@0
   226
      <foreign-key foreignTable="C_SALESREGION" name="C_SALESREGION_FACTACCT">
carlos@0
   227
        <reference local="C_SALESREGION_ID" foreign="C_SALESREGION_ID"/>
carlos@0
   228
      </foreign-key>
carlos@0
   229
      <foreign-key foreignTable="C_UOM" name="C_UOM_FACT_ACCT">
carlos@0
   230
        <reference local="C_UOM_ID" foreign="C_UOM_ID"/>
carlos@0
   231
      </foreign-key>
antonio@410
   232
      <foreign-key foreignTable="C_ACCTSCHEMA" name="CACCTSCHEMA_FACTACCT" onDelete="cascade">
antonio@410
   233
        <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
antonio@410
   234
      </foreign-key>
antonio@410
   235
      <foreign-key foreignTable="C_ACTIVITY" name="CACTIVITY_FACTACCT">
antonio@410
   236
        <reference local="C_ACTIVITY_ID" foreign="C_ACTIVITY_ID"/>
antonio@410
   237
      </foreign-key>
antonio@410
   238
      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUE_FACTACCT">
antonio@410
   239
        <reference local="ACCOUNT_ID" foreign="C_ELEMENTVALUE_ID"/>
antonio@410
   240
      </foreign-key>
antonio@410
   241
      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUEUSER1_FACTACCT">
antonio@410
   242
        <reference local="USER1_ID" foreign="C_ELEMENTVALUE_ID"/>
antonio@410
   243
      </foreign-key>
antonio@410
   244
      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUEUSER2_FACTACCT">
antonio@410
   245
        <reference local="USER2_ID" foreign="C_ELEMENTVALUE_ID"/>
antonio@410
   246
      </foreign-key>
antonio@410
   247
      <foreign-key foreignTable="C_PERIOD" name="CPERIOD_FACTACCT">
antonio@410
   248
        <reference local="C_PERIOD_ID" foreign="C_PERIOD_ID"/>
antonio@410
   249
      </foreign-key>
antonio@410
   250
      <foreign-key foreignTable="C_TAX" name="CTAX_FACTACCT">
antonio@410
   251
        <reference local="C_TAX_ID" foreign="C_TAX_ID"/>
antonio@410
   252
      </foreign-key>
carlos@0
   253
      <foreign-key foreignTable="GL_BUDGET" name="GLBUDGET_FACTACCT">
carlos@0
   254
        <reference local="GL_BUDGET_ID" foreign="GL_BUDGET_ID"/>
carlos@0
   255
      </foreign-key>
carlos@0
   256
      <foreign-key foreignTable="GL_CATEGORY" name="GLCATEGORY_FACTACCT">
carlos@0
   257
        <reference local="GL_CATEGORY_ID" foreign="GL_CATEGORY_ID"/>
carlos@0
   258
      </foreign-key>
antonio@410
   259
      <foreign-key foreignTable="M_PRODUCT" name="M_PRODUCT_FACT_ACCT">
antonio@410
   260
        <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
antonio@410
   261
      </foreign-key>
carlos@0
   262
      <foreign-key foreignTable="M_LOCATOR" name="MLOCATOR_FACTACCT">
carlos@0
   263
        <reference local="M_LOCATOR_ID" foreign="M_LOCATOR_ID"/>
carlos@0
   264
      </foreign-key>
adrian@170
   265
      <foreign-key foreignTable="C_CAMPAIGN" name="SO_CAMPAIGN_FACT_ACCT">
adrian@170
   266
        <reference local="C_CAMPAIGN_ID" foreign="C_CAMPAIGN_ID"/>
adrian@170
   267
      </foreign-key>
adrian@94
   268
      <index name="FACT_ACCT_ACCOUNT" unique="false">
carlos@0
   269
        <index-column name="AD_CLIENT_ID"/>
carlos@0
   270
        <index-column name="AD_ORG_ID"/>
carlos@0
   271
        <index-column name="C_ACCTSCHEMA_ID"/>
carlos@0
   272
        <index-column name="ACCOUNT_ID"/>
carlos@0
   273
      </index>
adrian@94
   274
      <index name="FACT_ACCT_DATEACCT" unique="false">
carlos@0
   275
        <index-column name="DATEACCT"/>
carlos@0
   276
      </index>
adrian@94
   277
      <index name="FACT_ACCT_GROUP" unique="false">
carlos@0
   278
        <index-column name="FACT_ACCT_GROUP_ID"/>
carlos@0
   279
      </index>
adrian@94
   280
      <index name="FACT_ACCT_TABLE_RECORD_ID" unique="false">
carlos@0
   281
        <index-column name="AD_TABLE_ID"/>
carlos@0
   282
        <index-column name="RECORD_ID"/>
carlos@0
   283
      </index>
ivan@258
   284
      <check name="FACT_ACCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
carlos@0
   285
    </table>
adrian@94
   286
  </database>