src-db/database/model/tables/M_PRODUCT.xml
author Aaron Calero <aaron.calero@openbravo.com>
Thu, 22 Oct 2015 16:04:57 +0200
changeset 28628 c0c71c2626d6
parent 28627 46c65da90714
parent 28625 a84ee9e96086
child 28629 d677d6d0d6a5
permissions -rw-r--r--
[Product Services] Merged Services branch
carlos@0
     1
<?xml version="1.0"?>
adrian@94
     2
  <database name="TABLE M_PRODUCT">
carlos@0
     3
    <table name="M_PRODUCT" primaryKey="M_PRODUCT_KEY">
juanpablo@1605
     4
      <column name="M_PRODUCT_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>
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="DOCUMENTNOTE" 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="HELP" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false">
antonio@735
    53
        <default/>
antonio@735
    54
        <onCreateDefault/>
antonio@735
    55
      </column>
phillip@2238
    56
      <column name="UPC" primaryKey="false" required="false" type="NVARCHAR" size="30" autoIncrement="false">
antonio@735
    57
        <default/>
antonio@735
    58
        <onCreateDefault/>
antonio@735
    59
      </column>
antonio@735
    60
      <column name="SKU" primaryKey="false" required="false" type="VARCHAR" size="30" autoIncrement="false">
antonio@735
    61
        <default/>
antonio@735
    62
        <onCreateDefault/>
antonio@735
    63
      </column>
juanpablo@1605
    64
      <column name="C_UOM_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    65
        <default/>
antonio@735
    66
        <onCreateDefault/>
antonio@735
    67
      </column>
juanpablo@1605
    68
      <column name="SALESREP_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    69
        <default/>
antonio@735
    70
        <onCreateDefault/>
antonio@735
    71
      </column>
antonio@735
    72
      <column name="ISSUMMARY" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    73
        <default><![CDATA[N]]></default>
antonio@735
    74
        <onCreateDefault/>
antonio@735
    75
      </column>
antonio@735
    76
      <column name="ISSTOCKED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    77
        <default><![CDATA[Y]]></default>
antonio@735
    78
        <onCreateDefault/>
antonio@735
    79
      </column>
antonio@735
    80
      <column name="ISPURCHASED" 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="ISSOLD" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    85
        <default><![CDATA[Y]]></default>
antonio@735
    86
        <onCreateDefault/>
antonio@735
    87
      </column>
antonio@735
    88
      <column name="ISBOM" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    89
        <default><![CDATA[N]]></default>
antonio@735
    90
        <onCreateDefault/>
antonio@735
    91
      </column>
antonio@735
    92
      <column name="ISINVOICEPRINTDETAILS" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    93
        <default><![CDATA[N]]></default>
antonio@735
    94
        <onCreateDefault/>
antonio@735
    95
      </column>
antonio@735
    96
      <column name="ISPICKLISTPRINTDETAILS" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    97
        <default><![CDATA[N]]></default>
antonio@735
    98
        <onCreateDefault/>
antonio@735
    99
      </column>
antonio@735
   100
      <column name="ISVERIFIED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
   101
        <default><![CDATA[N]]></default>
antonio@735
   102
        <onCreateDefault/>
antonio@735
   103
      </column>
juanpablo@1605
   104
      <column name="M_PRODUCT_CATEGORY_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   105
        <default/>
antonio@735
   106
        <onCreateDefault/>
antonio@735
   107
      </column>
antonio@735
   108
      <column name="CLASSIFICATION" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
   109
        <default/>
antonio@735
   110
        <onCreateDefault/>
antonio@735
   111
      </column>
antonio@735
   112
      <column name="VOLUME" 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="WEIGHT" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   117
        <default><![CDATA[0]]></default>
antonio@735
   118
        <onCreateDefault/>
antonio@735
   119
      </column>
antonio@735
   120
      <column name="SHELFWIDTH" 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="SHELFHEIGHT" 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="SHELFDEPTH" 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="UNITSPERPALLET" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   133
        <default/>
antonio@735
   134
        <onCreateDefault/>
antonio@735
   135
      </column>
juanpablo@1605
   136
      <column name="C_TAXCATEGORY_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   137
        <default/>
antonio@735
   138
        <onCreateDefault/>
antonio@735
   139
      </column>
juanpablo@1605
   140
      <column name="S_RESOURCE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   141
        <default/>
antonio@735
   142
        <onCreateDefault/>
antonio@735
   143
      </column>
antonio@735
   144
      <column name="DISCONTINUED" primaryKey="false" required="false" 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="DISCONTINUEDBY" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
   149
        <default/>
antonio@735
   150
        <onCreateDefault/>
antonio@735
   151
      </column>
antonio@735
   152
      <column name="PROCESSING" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
   153
        <default><![CDATA[N]]></default>
antonio@735
   154
        <onCreateDefault/>
antonio@735
   155
      </column>
juanpablo@1605
   156
      <column name="S_EXPENSETYPE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   157
        <default/>
antonio@735
   158
        <onCreateDefault/>
antonio@735
   159
      </column>
asier@2586
   160
      <column name="PRODUCTTYPE" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
   161
        <default><![CDATA[I]]></default>
antonio@735
   162
        <onCreateDefault/>
antonio@735
   163
      </column>
antonio@735
   164
      <column name="IMAGEURL" primaryKey="false" required="false" type="NVARCHAR" size="120" autoIncrement="false">
antonio@735
   165
        <default/>
antonio@735
   166
        <onCreateDefault/>
antonio@735
   167
      </column>
antonio@735
   168
      <column name="DESCRIPTIONURL" primaryKey="false" required="false" type="NVARCHAR" size="120" autoIncrement="false">
antonio@735
   169
        <default/>
antonio@735
   170
        <onCreateDefault/>
antonio@735
   171
      </column>
antonio@735
   172
      <column name="GUARANTEEDAYS" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   173
        <default/>
antonio@735
   174
        <onCreateDefault/>
antonio@735
   175
      </column>
antonio@735
   176
      <column name="VERSIONNO" primaryKey="false" required="false" type="NVARCHAR" size="20" autoIncrement="false">
antonio@735
   177
        <default/>
antonio@735
   178
        <onCreateDefault/>
antonio@735
   179
      </column>
juanpablo@1605
   180
      <column name="M_ATTRIBUTESET_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   181
        <default/>
antonio@735
   182
        <onCreateDefault/>
antonio@735
   183
      </column>
juanpablo@1605
   184
      <column name="M_ATTRIBUTESETINSTANCE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   185
        <default/>
antonio@735
   186
        <onCreateDefault/>
antonio@735
   187
      </column>
antonio@735
   188
      <column name="DOWNLOADURL" primaryKey="false" required="false" type="NVARCHAR" size="120" autoIncrement="false">
antonio@735
   189
        <default/>
antonio@735
   190
        <onCreateDefault/>
antonio@735
   191
      </column>
juanpablo@1605
   192
      <column name="M_FREIGHTCATEGORY_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   193
        <default/>
antonio@735
   194
        <onCreateDefault/>
antonio@735
   195
      </column>
juanpablo@1605
   196
      <column name="M_LOCATOR_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   197
        <default/>
antonio@735
   198
        <onCreateDefault/>
antonio@735
   199
      </column>
juanpablo@1605
   200
      <column name="AD_IMAGE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   201
        <default/>
antonio@735
   202
        <onCreateDefault/>
antonio@735
   203
      </column>
juanpablo@1605
   204
      <column name="C_BPARTNER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   205
        <default/>
antonio@735
   206
        <onCreateDefault/>
antonio@735
   207
      </column>
antonio@735
   208
      <column name="ISPRICEPRINTED" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
   209
        <default/>
antonio@735
   210
        <onCreateDefault/>
antonio@735
   211
      </column>
antonio@735
   212
      <column name="NAME2" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false">
antonio@735
   213
        <default/>
antonio@735
   214
        <onCreateDefault/>
antonio@735
   215
      </column>
asier@2586
   216
      <column name="COSTTYPE" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
   217
        <default/>
antonio@735
   218
        <onCreateDefault/>
antonio@735
   219
      </column>
antonio@735
   220
      <column name="COSTSTD" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   221
        <default/>
antonio@735
   222
        <onCreateDefault/>
antonio@735
   223
      </column>
antonio@735
   224
      <column name="STOCK_MIN" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
   225
        <default/>
antonio@735
   226
        <onCreateDefault/>
antonio@735
   227
      </column>
antonio@735
   228
      <column name="ENFORCE_ATTRIBUTE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
   229
        <default><![CDATA[N]]></default>
antonio@735
   230
        <onCreateDefault/>
antonio@735
   231
      </column>
antonio@735
   232
      <column name="CALCULATED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
   233
        <default><![CDATA[N]]></default>
antonio@735
   234
        <onCreateDefault/>
antonio@735
   235
      </column>
juanpablo@1605
   236
      <column name="MA_PROCESSPLAN_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   237
        <default/>
antonio@735
   238
        <onCreateDefault/>
antonio@735
   239
      </column>
antonio@735
   240
      <column name="PRODUCTION" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
   241
        <default><![CDATA[N]]></default>
antonio@735
   242
        <onCreateDefault/>
antonio@735
   243
      </column>
antonio@735
   244
      <column name="CAPACITY" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   245
        <default/>
antonio@735
   246
        <onCreateDefault/>
antonio@735
   247
      </column>
antonio@735
   248
      <column name="DELAYMIN" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   249
        <default/>
antonio@735
   250
        <onCreateDefault/>
antonio@735
   251
      </column>
juanpablo@1605
   252
      <column name="MRP_PLANNER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   253
        <default/>
antonio@735
   254
        <onCreateDefault/>
antonio@735
   255
      </column>
juanpablo@1605
   256
      <column name="MRP_PLANNINGMETHOD_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
   257
        <default/>
antonio@735
   258
        <onCreateDefault/>
antonio@735
   259
      </column>
antonio@735
   260
      <column name="QTYMAX" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   261
        <default/>
antonio@735
   262
        <onCreateDefault/>
antonio@735
   263
      </column>
antonio@735
   264
      <column name="QTYMIN" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   265
        <default/>
antonio@735
   266
        <onCreateDefault/>
antonio@735
   267
      </column>
antonio@735
   268
      <column name="QTYSTD" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   269
        <default/>
antonio@735
   270
        <onCreateDefault/>
antonio@735
   271
      </column>
antonio@735
   272
      <column name="QTYTYPE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
   273
        <default/>
antonio@735
   274
        <onCreateDefault/>
antonio@735
   275
      </column>
antonio@735
   276
      <column name="STOCKMIN" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
   277
        <default/>
antonio@735
   278
        <onCreateDefault/>
antonio@735
   279
      </column>
rafael@6084
   280
      <column name="ATTRSETVALUETYPE" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
rafael@6084
   281
        <default/>
rafael@6094
   282
        <onCreateDefault><![CDATA[CASE WHEN M_ATTRIBUTESETINSTANCE_ID IS NOT NULL THEN 'D' ELSE NULL END]]></onCreateDefault>
rafael@6084
   283
      </column>
rafael@16135
   284
      <column name="ISQUANTITYVARIABLE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
rafael@16135
   285
        <default><![CDATA[N]]></default>
rafael@16135
   286
        <onCreateDefault><![CDATA['N']]></onCreateDefault>
rafael@16135
   287
      </column>
naiara@18266
   288
      <column name="ISDEFERREDREVENUE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
naiara@18266
   289
        <default><![CDATA[N]]></default>
naiara@18266
   290
        <onCreateDefault/>
naiara@18266
   291
      </column>
naiara@18266
   292
      <column name="REVPLANTYPE" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
naiara@18266
   293
        <default/>
naiara@18266
   294
        <onCreateDefault/>
naiara@18266
   295
      </column>
naiara@18266
   296
      <column name="PERIODNUMBER" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
naiara@18266
   297
        <default/>
naiara@18266
   298
        <onCreateDefault/>
naiara@18266
   299
      </column>
naiara@18267
   300
      <column name="ISDEFERREDEXPENSE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
naiara@18267
   301
        <default><![CDATA[N]]></default>
naiara@18267
   302
        <onCreateDefault/>
naiara@18267
   303
      </column>
naiara@18267
   304
      <column name="EXPPLANTYPE" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
naiara@18267
   305
        <default/>
naiara@18267
   306
        <onCreateDefault/>
naiara@18267
   307
      </column>
naiara@18267
   308
      <column name="PERIODNUMBER_EXP" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
naiara@18267
   309
        <default/>
naiara@18267
   310
        <onCreateDefault/>
naiara@18267
   311
      </column>
eduardo@18445
   312
      <column name="DEFAULTPERIOD" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
eduardo@18445
   313
        <default/>
eduardo@18445
   314
        <onCreateDefault/>
eduardo@18445
   315
      </column>
eduardo@18445
   316
      <column name="DEFAULTPERIOD_EXP" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
eduardo@18445
   317
        <default/>
eduardo@18445
   318
        <onCreateDefault/>
eduardo@18445
   319
      </column>
david@19066
   320
      <column name="BOOKUSINGPOPRICE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
david@19066
   321
        <default><![CDATA[N]]></default>
david@19066
   322
        <onCreateDefault/>
david@19066
   323
      </column>
gorkaion@20745
   324
      <column name="C_UOM_WEIGHT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@20745
   325
        <default/>
gorkaion@20745
   326
        <onCreateDefault/>
gorkaion@20745
   327
      </column>
gorkaion@20859
   328
      <column name="M_BRAND_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@20859
   329
        <default/>
gorkaion@20859
   330
        <onCreateDefault/>
gorkaion@20859
   331
      </column>
gorkaion@20865
   332
      <column name="ISGENERIC" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
gorkaion@20865
   333
        <default><![CDATA[N]]></default>
gorkaion@20865
   334
        <onCreateDefault><![CDATA['N']]></onCreateDefault>
gorkaion@20865
   335
      </column>
gorkaion@20865
   336
      <column name="GENERIC_PRODUCT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@20865
   337
        <default/>
gorkaion@20865
   338
        <onCreateDefault/>
gorkaion@20865
   339
      </column>
gorkaion@20870
   340
      <column name="CREATEVARIANTS" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
gorkaion@20870
   341
        <default/>
gorkaion@20870
   342
        <onCreateDefault/>
gorkaion@20870
   343
      </column>
gorkaion@20875
   344
      <column name="CHARACTERISTIC_DESC" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false">
gorkaion@20875
   345
        <default/>
gorkaion@20875
   346
        <onCreateDefault/>
gorkaion@20875
   347
      </column>
augusto@20926
   348
      <column name="UPDATEINVARIANTS" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
augusto@20926
   349
        <default/>
augusto@20926
   350
        <onCreateDefault/>
augusto@20926
   351
      </column>
gorkaion@20949
   352
      <column name="MANAGEVARIANTS" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
gorkaion@20949
   353
        <default><![CDATA[N]]></default>
gorkaion@20949
   354
        <onCreateDefault/>
gorkaion@20949
   355
      </column>
unai@26976
   356
      <column name="PROD_CAT_SELECTION" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
unai@26975
   357
        <default/>
unai@26975
   358
        <onCreateDefault/>
unai@26975
   359
      </column>
unai@26976
   360
      <column name="PRODUCT_SELECTION" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
unai@26975
   361
        <default/>
unai@26975
   362
        <onCreateDefault/>
unai@26975
   363
      </column>
unai@26975
   364
      <column name="PRINT_DESCRIPTION" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
unai@26975
   365
        <default><![CDATA[N]]></default>
unai@26975
   366
        <onCreateDefault><![CDATA['N']]></onCreateDefault>
unai@26975
   367
      </column>
unai@26975
   368
      <column name="RETURNABLE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
eduardo@27278
   369
        <default><![CDATA[Y]]></default>
eduardo@27278
   370
        <onCreateDefault><![CDATA['Y']]></onCreateDefault>
unai@26975
   371
      </column>
unai@26975
   372
      <column name="OVERDUE_RETURN_DAYS" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
unai@26975
   373
        <default/>
unai@26975
   374
        <onCreateDefault/>
unai@26975
   375
      </column>
unai@26975
   376
      <column name="EDITABLE_PRICE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
unai@26975
   377
        <default><![CDATA[N]]></default>
unai@26975
   378
        <onCreateDefault><![CDATA['N']]></onCreateDefault>
unai@26975
   379
      </column>
unai@26975
   380
      <column name="ISPRICERULEBASED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
unai@26975
   381
        <default><![CDATA[N]]></default>
unai@26975
   382
        <onCreateDefault><![CDATA['N']]></onCreateDefault>
unai@26975
   383
      </column>
aaron@28622
   384
      <column name="UNIQUE_PER_DOCUMENT" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
aaron@28622
   385
        <default><![CDATA[N]]></default>
aaron@28622
   386
        <onCreateDefault><![CDATA['N']]></onCreateDefault>
unai@26985
   387
      <column name="RELATEPRODCATTOSERVICE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
unai@26985
   388
        <default/>
unai@26985
   389
        <onCreateDefault/>
unai@26985
   390
      </column>
unai@26985
   391
      <column name="RELATEPRODTOSERVICE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
unai@26985
   392
        <default/>
unai@26985
   393
        <onCreateDefault/>
unai@26985
   394
      </column>
eduardo@26994
   395
      <column name="ISLINKEDTOPRODUCT" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
eduardo@26994
   396
        <default><![CDATA[N]]></default>
unai@27277
   397
        <onCreateDefault><![CDATA['N']]></onCreateDefault>
eduardo@26994
   398
      </column>
unai@27016
   399
      <column name="QUANTITY_RULE" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
unai@27016
   400
        <default/>
unai@27016
   401
        <onCreateDefault/>
unai@27016
   402
      </column>
unai@27277
   403
      <column name="ALLOW_DEFERRED_SELL" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
unai@27277
   404
        <default><![CDATA[N]]></default>
unai@27277
   405
        <onCreateDefault><![CDATA['N']]></onCreateDefault>
ebec70@27024
   406
      </column>
ebec70@27024
   407
      <column name="DEFERRED_SELL_MAX_DAYS" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
ebec70@27024
   408
        <default/>
ebec70@27024
   409
        <onCreateDefault/>
ebec70@27024
   410
      </column>
antonio@410
   411
      <foreign-key foreignTable="AD_ORG" name="AD_ORG_MPRODUCT">
antonio@410
   412
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
antonio@410
   413
      </foreign-key>
asier@5551
   414
      <foreign-key foreignTable="AD_CLIENT" name="M_PRODUCT_AD_CLIENT">
carlos@0
   415
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
carlos@0
   416
      </foreign-key>
asier@5551
   417
      <foreign-key foreignTable="AD_IMAGE" name="M_PRODUCT_AD_IMAGE">
carlos@0
   418
        <reference local="AD_IMAGE_ID" foreign="AD_IMAGE_ID"/>
carlos@0
   419
      </foreign-key>
martin@2771
   420
      <foreign-key foreignTable="AD_USER" name="M_PRODUCT_AD_USER">
martin@2771
   421
        <reference local="SALESREP_ID" foreign="AD_USER_ID"/>
martin@2771
   422
      </foreign-key>
gorkaion@20859
   423
      <foreign-key foreignTable="M_BRAND" name="M_PRODUCT_BRAND">
gorkaion@20859
   424
        <reference local="M_BRAND_ID" foreign="M_BRAND_ID"/>
gorkaion@20859
   425
      </foreign-key>
asier@5551
   426
      <foreign-key foreignTable="C_BPARTNER" name="M_PRODUCT_C_BPARTNER">
asier@5551
   427
        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
asier@5551
   428
      </foreign-key>
asier@5551
   429
      <foreign-key foreignTable="C_TAXCATEGORY" name="M_PRODUCT_C_TAXCATEGORY">
asier@5551
   430
        <reference local="C_TAXCATEGORY_ID" foreign="C_TAXCATEGORY_ID"/>
asier@5551
   431
      </foreign-key>
asier@5551
   432
      <foreign-key foreignTable="C_UOM" name="M_PRODUCT_C_UOM">
asier@5551
   433
        <reference local="C_UOM_ID" foreign="C_UOM_ID"/>
asier@5551
   434
      </foreign-key>
gorkaion@20865
   435
      <foreign-key foreignTable="M_PRODUCT" name="M_PRODUCT_GENERICPRODUCT">
gorkaion@20865
   436
        <reference local="GENERIC_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
gorkaion@20865
   437
      </foreign-key>
asier@5551
   438
      <foreign-key foreignTable="M_ATTRIBUTESET" name="M_PRODUCT_M_ATTRIBUTESET" onDelete="cascade">
asier@5551
   439
        <reference local="M_ATTRIBUTESET_ID" foreign="M_ATTRIBUTESET_ID"/>
asier@5551
   440
      </foreign-key>
asier@5551
   441
      <foreign-key foreignTable="M_ATTRIBUTESETINSTANCE" name="M_PRODUCT_M_ATTRIBUTESETINSTAN">
asier@5551
   442
        <reference local="M_ATTRIBUTESETINSTANCE_ID" foreign="M_ATTRIBUTESETINSTANCE_ID"/>
asier@5551
   443
      </foreign-key>
asier@5551
   444
      <foreign-key foreignTable="M_FREIGHTCATEGORY" name="M_PRODUCT_M_FREIGHTCATEGORY">
asier@5551
   445
        <reference local="M_FREIGHTCATEGORY_ID" foreign="M_FREIGHTCATEGORY_ID"/>
asier@5551
   446
      </foreign-key>
asier@5551
   447
      <foreign-key foreignTable="M_LOCATOR" name="M_PRODUCT_M_LOCATOR">
asier@5551
   448
        <reference local="M_LOCATOR_ID" foreign="M_LOCATOR_ID"/>
asier@5551
   449
      </foreign-key>
asier@5551
   450
      <foreign-key foreignTable="M_PRODUCT_CATEGORY" name="M_PRODUCT_M_PRODUCT_CATEGORY">
asier@5551
   451
        <reference local="M_PRODUCT_CATEGORY_ID" foreign="M_PRODUCT_CATEGORY_ID"/>
asier@5551
   452
      </foreign-key>
martin@2771
   453
      <foreign-key foreignTable="MRP_PLANNER" name="M_PRODUCT_MRP_PLANNER">
martin@2771
   454
        <reference local="MRP_PLANNER_ID" foreign="MRP_PLANNER_ID"/>
martin@2771
   455
      </foreign-key>
martin@2771
   456
      <foreign-key foreignTable="MRP_PLANNINGMETHOD" name="M_PRODUCT_MRP_PLANNINGMETHOD">
martin@2771
   457
        <reference local="MRP_PLANNINGMETHOD_ID" foreign="MRP_PLANNINGMETHOD_ID"/>
martin@2771
   458
      </foreign-key>
asier@5551
   459
      <foreign-key foreignTable="S_EXPENSETYPE" name="M_PRODUCT_S_EXPENSETYPE">
asier@5551
   460
        <reference local="S_EXPENSETYPE_ID" foreign="S_EXPENSETYPE_ID"/>
asier@5551
   461
      </foreign-key>
asier@5551
   462
      <foreign-key foreignTable="S_RESOURCE" name="M_PRODUCT_S_RESOURCE">
asier@5551
   463
        <reference local="S_RESOURCE_ID" foreign="S_RESOURCE_ID"/>
asier@5551
   464
      </foreign-key>
gorkaion@20745
   465
      <foreign-key foreignTable="C_UOM" name="M_PRODUCT_WEIGHT_UOM">
gorkaion@20745
   466
        <reference local="C_UOM_WEIGHT_ID" foreign="C_UOM_ID"/>
gorkaion@20745
   467
      </foreign-key>
antonio@410
   468
      <foreign-key foreignTable="MA_PROCESSPLAN" name="MA_PROCESSPLAN_MPRODUCT">
antonio@410
   469
        <reference local="MA_PROCESSPLAN_ID" foreign="MA_PROCESSPLAN_ID"/>
antonio@410
   470
      </foreign-key>
gorkaion@20940
   471
      <index name="M_PRODUC_ISGENERID_IDX" unique="false">
gorkaion@20940
   472
        <index-column name="ISGENERIC"/>
gorkaion@20940
   473
      </index>
adrian@170
   474
      <index name="M_PRODUCT_BPARTNER" unique="false">
adrian@170
   475
        <index-column name="C_BPARTNER_ID"/>
adrian@170
   476
      </index>
aaron@28622
   477
      <index name="M_PRODUCT_BRAND_ID" unique="false">
aaron@28622
   478
        <index-column name="M_BRAND_ID"/>
aaron@28622
   479
      </index>
shankar@21084
   480
      <index name="M_PRODUCT_GEN_PROD" unique="false">
shankar@21084
   481
        <index-column name="GENERIC_PRODUCT_ID"/>
shankar@21084
   482
      </index>
sandra@27808
   483
      <index name="M_PRODUCT_NAME_ID" unique="false">
carlos@0
   484
        <index-column name="NAME"/>
sandra@27808
   485
        <index-column name="M_PRODUCT_ID"/>
aaron@28622
   486
      </index>
aaron@28622
   487
      <index name="M_PRODUCT_NAME_ID" unique="false">
aaron@28622
   488
        <index-column name="NAME"/>
aaron@28622
   489
        <index-column name="M_PRODUCT_ID"/>
carlos@0
   490
      </index>
adrian@94
   491
      <index name="M_PRODUCT_PRODUCTCATEGORY" unique="false">
carlos@0
   492
        <index-column name="M_PRODUCT_CATEGORY_ID"/>
carlos@0
   493
      </index>
sandra@27808
   494
      <index name="M_PRODUCT_UPC_ID" unique="false">
carlos@0
   495
        <index-column name="UPC"/>
sandra@27808
   496
        <index-column name="M_PRODUCT_ID"/>
sandra@27808
   497
      </index>
sandra@27808
   498
      <index name="M_PRODUCT_VALUE_ID" unique="false">
sandra@27808
   499
        <index-column name="VALUE"/>
sandra@27808
   500
        <index-column name="M_PRODUCT_ID"/>
aaron@28622
   501
      </index>
aaron@28622
   502
      <index name="M_PRODUCT_UPC_ID" unique="false">
aaron@28622
   503
        <index-column name="UPC"/>
aaron@28622
   504
        <index-column name="M_PRODUCT_ID"/>
aaron@28622
   505
      </index>
aaron@28622
   506
      <index name="M_PRODUCT_VALUE_ID" unique="false">
aaron@28622
   507
        <index-column name="VALUE"/>
aaron@28622
   508
        <index-column name="M_PRODUCT_ID"/>
carlos@0
   509
      </index>
carlos@0
   510
      <unique name="M_PRODUCT_EXPENSETYPE">
carlos@0
   511
        <unique-column name="S_EXPENSETYPE_ID"/>
carlos@0
   512
      </unique>
carlos@0
   513
      <unique name="M_PRODUCT_RESOURCE">
carlos@0
   514
        <unique-column name="S_RESOURCE_ID"/>
carlos@0
   515
      </unique>
carlos@0
   516
      <unique name="M_PRODUCT_VALUE">
carlos@0
   517
        <unique-column name="AD_CLIENT_ID"/>
carlos@0
   518
        <unique-column name="VALUE"/>
carlos@0
   519
      </unique>
eduardo@27269
   520
      <check name="M_PROD_LINKEDTOPROD_QRUL_CHECK"><![CDATA[((ISLINKEDTOPRODUCT = 'Y') AND (QUANTITY_RULE IS NOT NULL)) OR (ISLINKEDTOPRODUCT = 'N')]]></check>
eduardo@26994
   521
      <check name="M_PROD_LINKEDTOPROD_SEL_CHECK"><![CDATA[((ISLINKEDTOPRODUCT = 'Y') AND ((PROD_CAT_SELECTION IS NOT NULL) OR (PRODUCT_SELECTION IS NOT NULL))) OR (ISLINKEDTOPRODUCT = 'N')]]></check>
eduardo@26994
   522
      <check name="M_PROD_LINKEDTOPRODUCT_CHECK"><![CDATA[ISLINKEDTOPRODUCT IN ('Y', 'N')]]></check>
aaron@28622
   523
      <check name="M_PRODUCT_ATSETVALTYPE_CHK"><![CDATA[(M_ATTRIBUTESETINSTANCE_ID IS NULL) OR (ATTRSETVALUETYPE IS NOT NULL)]]></check>
stefan@8505
   524
      <check name="M_PRODUCT_DISCONTINUED_CHECK"><![CDATA[DISCONTINUED IN ('Y', 'N')]]></check>
unai@26975
   525
      <check name="M_PRODUCT_EDITABLE_PRICE_CHECK"><![CDATA[EDITABLE_PRICE IN ('Y', 'N')]]></check>
stefan@8505
   526
      <check name="M_PRODUCT_ENFORCE_ATTRIBUT_CHK"><![CDATA[ENFORCE_ATTRIBUTE IN ('Y', 'N')]]></check>
stefan@8505
   527
      <check name="M_PRODUCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
stefan@8505
   528
      <check name="M_PRODUCT_ISBOM_CHECK"><![CDATA[ISBOM IN ('Y', 'N')]]></check>
asier@27496
   529
      <check name="M_PRODUCT_ISEXPDEFCOMPLETE_CHK"><![CDATA[ISDEFERREDEXPENSE = 'N' OR ISDEFERREDEXPENSE = 'Y' AND EXPPLANTYPE IS NOT NULL AND DEFAULTPERIOD_EXP IS NOT NULL AND PERIODNUMBER_EXP IS NOT NULL]]></check>
naiara@18267
   530
      <check name="M_PRODUCT_ISEXPDEFERRED_CHK"><![CDATA[ISDEFERREDEXPENSE IN ('Y', 'N')]]></check>
gorkaion@20865
   531
      <check name="M_PRODUCT_ISGENERIC"><![CDATA[ISGENERIC IN ('Y', 'N')]]></check>
stefan@8505
   532
      <check name="M_PRODUCT_ISINVOICEPRINTDE_CHK"><![CDATA[ISINVOICEPRINTDETAILS IN ('Y', 'N')]]></check>
stefan@8505
   533
      <check name="M_PRODUCT_ISPICKLISTPRINTD_CHK"><![CDATA[ISPICKLISTPRINTDETAILS IN ('Y', 'N')]]></check>
stefan@8505
   534
      <check name="M_PRODUCT_ISPURCHASED_CHECK"><![CDATA[ISPURCHASED IN ('Y', 'N')]]></check>
rafael@16135
   535
      <check name="M_PRODUCT_ISQTYVAR_CHECK"><![CDATA[ISQUANTITYVARIABLE IN ('Y', 'N')]]></check>
asier@27496
   536
      <check name="M_PRODUCT_ISREVDEFCOMPLETE_CHK"><![CDATA[ISDEFERREDREVENUE = 'N' OR ISDEFERREDREVENUE = 'Y' AND REVPLANTYPE IS NOT NULL AND DEFAULTPERIOD IS NOT NULL AND PERIODNUMBER IS NOT NULL]]></check>
naiara@18266
   537
      <check name="M_PRODUCT_ISREVDEFERRED_CHK"><![CDATA[ISDEFERREDREVENUE IN ('Y', 'N')]]></check>
stefan@8505
   538
      <check name="M_PRODUCT_ISSOLD_CHECK"><![CDATA[ISSOLD IN ('Y', 'N')]]></check>
stefan@8505
   539
      <check name="M_PRODUCT_ISSTOCKED_CHECK"><![CDATA[ISSTOCKED IN ('Y', 'N')]]></check>
stefan@8505
   540
      <check name="M_PRODUCT_ISVERIFIED_CHECK"><![CDATA[ISVERIFIED IN ('Y', 'N')]]></check>
asier@27496
   541
      <check name="M_PRODUCT_PERIODNUMBER_CHK"><![CDATA[ISDEFERREDREVENUE = 'Y' AND PERIODNUMBER > 0 OR ISDEFERREDREVENUE = 'N']]></check>
asier@27496
   542
      <check name="M_PRODUCT_PERIODNUMEXP_CHK"><![CDATA[ISDEFERREDEXPENSE = 'Y' AND PERIODNUMBER_EXP > 0 OR ISDEFERREDEXPENSE = 'N']]></check>
unai@26975
   543
      <check name="M_PRODUCT_PRICERULEBASED_CHECK"><![CDATA[ISPRICERULEBASED IN ('Y', 'N')]]></check>
unai@26975
   544
      <check name="M_PRODUCT_PRINT_DESCRIP_CHECK"><![CDATA[PRINT_DESCRIPTION IN ('Y', 'N')]]></check>
unai@26975
   545
      <check name="M_PRODUCT_RETURNABLE_CHECK"><![CDATA[RETURNABLE IN ('Y', 'N')]]></check>
aaron@28622
   546
      <check name="M_PRODUCT_UN_PERDOCUMENT_CHECK"><![CDATA[UNIQUE_PER_DOCUMENT IN ('Y', 'N')]]></check>
carlos@0
   547
    </table>
adrian@94
   548
  </database>