src-db/database/model/tables/A_ASSET.xml
author Asier Lostalé <asier.lostale@openbravo.com>
Mon, 05 May 2008 06:59:24 +0000
changeset 799 fef2c5e2feb7
parent 756 ae11e4610537
child 1605 8a0fe0193bef
permissions -rw-r--r--
Merged cleanup branch (r3931) with trunk
carlos@0
     1
<?xml version="1.0"?>
adrian@94
     2
  <database name="TABLE A_ASSET">
carlos@0
     3
    <table name="A_ASSET" primaryKey="A_ASSET_KEY">
antonio@735
     4
      <column name="A_ASSET_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="VALUE" primaryKey="false" required="true" type="NVARCHAR" size="40" autoIncrement="false">
antonio@735
    37
        <default/>
antonio@735
    38
        <onCreateDefault/>
antonio@735
    39
      </column>
antonio@735
    40
      <column name="NAME" primaryKey="false" required="true" type="NVARCHAR" size="60" autoIncrement="false">
antonio@735
    41
        <default/>
antonio@735
    42
        <onCreateDefault/>
antonio@735
    43
      </column>
antonio@735
    44
      <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
antonio@735
    45
        <default/>
antonio@735
    46
        <onCreateDefault/>
antonio@735
    47
      </column>
antonio@735
    48
      <column name="HELP" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false">
antonio@735
    49
        <default/>
antonio@735
    50
        <onCreateDefault/>
antonio@735
    51
      </column>
antonio@735
    52
      <column name="A_ASSET_GROUP_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
    53
        <default/>
antonio@735
    54
        <onCreateDefault/>
antonio@735
    55
      </column>
antonio@735
    56
      <column name="M_PRODUCT_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
    57
        <default/>
antonio@735
    58
        <onCreateDefault/>
antonio@735
    59
      </column>
antonio@735
    60
      <column name="SERNO" primaryKey="false" required="false" type="VARCHAR" size="20" autoIncrement="false">
antonio@735
    61
        <default/>
antonio@735
    62
        <onCreateDefault/>
antonio@735
    63
      </column>
antonio@735
    64
      <column name="LOT" primaryKey="false" required="false" type="VARCHAR" size="20" autoIncrement="false">
antonio@735
    65
        <default/>
antonio@735
    66
        <onCreateDefault/>
antonio@735
    67
      </column>
antonio@735
    68
      <column name="VERSIONNO" primaryKey="false" required="false" type="VARCHAR" size="20" autoIncrement="false">
antonio@735
    69
        <default/>
antonio@735
    70
        <onCreateDefault/>
antonio@735
    71
      </column>
antonio@735
    72
      <column name="GUARANTEEDATE" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    73
        <default/>
antonio@735
    74
        <onCreateDefault/>
antonio@735
    75
      </column>
antonio@735
    76
      <column name="ASSETSERVICEDATE" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    77
        <default/>
antonio@735
    78
        <onCreateDefault/>
antonio@735
    79
      </column>
antonio@735
    80
      <column name="ISOWNED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    81
        <default><![CDATA[Y]]></default>
antonio@735
    82
        <onCreateDefault/>
antonio@735
    83
      </column>
antonio@735
    84
      <column name="ASSETDEPRECIATIONDATE" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    85
        <default/>
antonio@735
    86
        <onCreateDefault/>
antonio@735
    87
      </column>
antonio@735
    88
      <column name="USELIFEYEARS" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
    89
        <default/>
antonio@735
    90
        <onCreateDefault/>
antonio@735
    91
      </column>
antonio@735
    92
      <column name="USELIFEMONTHS" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
    93
        <default/>
antonio@735
    94
        <onCreateDefault/>
antonio@735
    95
      </column>
antonio@735
    96
      <column name="LIFEUSEUNITS" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
    97
        <default/>
antonio@735
    98
        <onCreateDefault/>
antonio@735
    99
      </column>
antonio@735
   100
      <column name="USEUNITS" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   101
        <default/>
antonio@735
   102
        <onCreateDefault/>
antonio@735
   103
      </column>
antonio@735
   104
      <column name="ISDISPOSED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
   105
        <default><![CDATA[N]]></default>
antonio@735
   106
        <onCreateDefault/>
antonio@735
   107
      </column>
antonio@735
   108
      <column name="ASSETDISPOSALDATE" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
   109
        <default/>
antonio@735
   110
        <onCreateDefault/>
antonio@735
   111
      </column>
antonio@735
   112
      <column name="ISINPOSESSION" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
   113
        <default><![CDATA[Y]]></default>
antonio@735
   114
        <onCreateDefault/>
antonio@735
   115
      </column>
antonio@735
   116
      <column name="LOCATIONCOMMENT" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
antonio@735
   117
        <default/>
antonio@735
   118
        <onCreateDefault/>
antonio@735
   119
      </column>
antonio@735
   120
      <column name="M_LOCATOR_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="C_BPARTNER_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_BPARTNER_LOCATION_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_LOCATION_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="PROCESSING" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
   137
        <default/>
antonio@735
   138
        <onCreateDefault/>
antonio@735
   139
      </column>
antonio@735
   140
      <column name="ISDEPRECIATED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
   141
        <default><![CDATA[Y]]></default>
antonio@735
   142
        <onCreateDefault/>
antonio@735
   143
      </column>
antonio@735
   144
      <column name="ISFULLYDEPRECIATED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
   145
        <default><![CDATA[N]]></default>
antonio@735
   146
        <onCreateDefault/>
antonio@735
   147
      </column>
antonio@735
   148
      <column name="AD_USER_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="AMORTIZATIONENDDATE" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
   153
        <default/>
antonio@735
   154
        <onCreateDefault/>
antonio@735
   155
      </column>
antonio@735
   156
      <column name="AMORTIZATIONSTARTDATE" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
   157
        <default/>
antonio@735
   158
        <onCreateDefault/>
antonio@735
   159
      </column>
antonio@735
   160
      <column name="ANNUALAMORTIZATIONPORCENTAGE" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   161
        <default/>
antonio@735
   162
        <onCreateDefault/>
antonio@735
   163
      </column>
antonio@735
   164
      <column name="ASSETVALUEAMT" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   165
        <default/>
antonio@735
   166
        <onCreateDefault/>
antonio@735
   167
      </column>
antonio@735
   168
      <column name="C_CURRENCY_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   169
        <default/>
antonio@735
   170
        <onCreateDefault/>
antonio@735
   171
      </column>
antonio@735
   172
      <column name="DATECANCELLED" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
   173
        <default/>
antonio@735
   174
        <onCreateDefault/>
antonio@735
   175
      </column>
antonio@735
   176
      <column name="DATEPURCHASED" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
   177
        <default/>
antonio@735
   178
        <onCreateDefault/>
antonio@735
   179
      </column>
antonio@735
   180
      <column name="M_ATTRIBUTESETINSTANCE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   181
        <default/>
antonio@735
   182
        <onCreateDefault/>
antonio@735
   183
      </column>
antonio@735
   184
      <column name="RESIDUALASSETVALUEAMT" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   185
        <default/>
antonio@735
   186
        <onCreateDefault/>
antonio@735
   187
      </column>
antonio@735
   188
      <column name="ACCTVALUEAMT" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   189
        <default/>
antonio@735
   190
        <onCreateDefault/>
antonio@735
   191
      </column>
antonio@735
   192
      <column name="AMORTIZATIONTYPE" primaryKey="false" required="false" type="CHAR" size="2" autoIncrement="false">
antonio@735
   193
        <default/>
antonio@735
   194
        <onCreateDefault/>
antonio@735
   195
      </column>
antonio@735
   196
      <column name="AMORTIZATIONVALUEAMT" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   197
        <default/>
antonio@735
   198
        <onCreateDefault/>
antonio@735
   199
      </column>
antonio@735
   200
      <column name="ASSETSCHEDULE" primaryKey="false" required="false" type="CHAR" size="2" autoIncrement="false">
antonio@735
   201
        <default/>
antonio@735
   202
        <onCreateDefault/>
antonio@735
   203
      </column>
antonio@735
   204
      <column name="DOCUMENTNO" primaryKey="false" required="false" type="NVARCHAR" size="30" autoIncrement="false">
antonio@735
   205
        <default/>
antonio@735
   206
        <onCreateDefault/>
antonio@735
   207
      </column>
antonio@735
   208
      <column name="PROCESSED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
   209
        <default><![CDATA[N]]></default>
antonio@735
   210
        <onCreateDefault/>
antonio@735
   211
      </column>
antonio@735
   212
      <column name="PROFIT" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   213
        <default/>
antonio@735
   214
        <onCreateDefault/>
antonio@735
   215
      </column>
antonio@735
   216
      <column name="QTY" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   217
        <default/>
antonio@735
   218
        <onCreateDefault/>
antonio@735
   219
      </column>
antonio@735
   220
      <column name="AMORTIZATIONCALCTYPE" primaryKey="false" required="false" type="CHAR" size="2" autoIncrement="false">
antonio@735
   221
        <default/>
antonio@735
   222
        <onCreateDefault/>
antonio@735
   223
      </column>
antonio@735
   224
      <column name="DEPRECIATEDPLAN" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   225
        <default/>
antonio@735
   226
        <onCreateDefault/>
antonio@735
   227
      </column>
antonio@735
   228
      <column name="DEPRECIATEDPREVIOUSAMT" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   229
        <default><![CDATA[0]]></default>
antonio@735
   230
        <onCreateDefault/>
antonio@735
   231
      </column>
antonio@735
   232
      <column name="DEPRECIATEDVALUE" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   233
        <default/>
antonio@735
   234
        <onCreateDefault/>
antonio@735
   235
      </column>
antonio@410
   236
      <foreign-key foreignTable="M_ATTRIBUTESETINSTANCE" name="A_ASSET_ATTRIBUTESETINSTANCE">
antonio@410
   237
        <reference local="M_ATTRIBUTESETINSTANCE_ID" foreign="M_ATTRIBUTESETINSTANCE_ID"/>
antonio@410
   238
      </foreign-key>
antonio@410
   239
      <foreign-key foreignTable="C_CURRENCY" name="A_ASSET_CURRENCY">
antonio@410
   240
        <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
antonio@410
   241
      </foreign-key>
carlos@0
   242
      <foreign-key foreignTable="A_ASSET_GROUP" name="AASSETGROUP_AASSET">
carlos@0
   243
        <reference local="A_ASSET_GROUP_ID" foreign="A_ASSET_GROUP_ID"/>
carlos@0
   244
      </foreign-key>
carlos@0
   245
      <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_AASSET">
carlos@0
   246
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
carlos@0
   247
      </foreign-key>
carlos@0
   248
      <foreign-key foreignTable="AD_ORG" name="ADORG_AASSET">
carlos@0
   249
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
carlos@0
   250
      </foreign-key>
carlos@0
   251
      <foreign-key foreignTable="AD_USER" name="ADUSER_AASSET">
carlos@0
   252
        <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
carlos@0
   253
      </foreign-key>
carlos@0
   254
      <foreign-key foreignTable="C_BPARTNER" name="CBPARTNER_AASSET">
carlos@0
   255
        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
carlos@0
   256
      </foreign-key>
carlos@0
   257
      <foreign-key foreignTable="C_BPARTNER_LOCATION" name="CBPLOCATION_AASSET">
carlos@0
   258
        <reference local="C_BPARTNER_LOCATION_ID" foreign="C_BPARTNER_LOCATION_ID"/>
carlos@0
   259
      </foreign-key>
carlos@0
   260
      <foreign-key foreignTable="C_LOCATION" name="CLOCATION_AASSET">
carlos@0
   261
        <reference local="C_LOCATION_ID" foreign="C_LOCATION_ID"/>
carlos@0
   262
      </foreign-key>
carlos@0
   263
      <foreign-key foreignTable="M_LOCATOR" name="MLOCATOR_AASSET">
carlos@0
   264
        <reference local="M_LOCATOR_ID" foreign="M_LOCATOR_ID"/>
carlos@0
   265
      </foreign-key>
carlos@0
   266
      <foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_AASSET">
carlos@0
   267
        <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
carlos@0
   268
      </foreign-key>
ivan@258
   269
      <check name="AASSET_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
ivan@258
   270
      <check name="AASSET_ISDISPOSED_CHECK"><![CDATA[ISDISPOSED IN ('Y', 'N')]]></check>
ivan@258
   271
      <check name="AASSET_ISINPOSESSION_CHECK"><![CDATA[ISINPOSESSION IN ('Y', 'N')]]></check>
ivan@258
   272
      <check name="AASSET_ISOWNED_CHECK"><![CDATA[ISOWNED IN ('Y', 'N')]]></check>
carlos@0
   273
    </table>
adrian@94
   274
  </database>