database/model/tables/M_PRODUCT.xml
author Antonio Moreno <antonio.moreno@openbravo.com>
Wed, 13 Feb 2008 15:57:52 +0000
changeset 425 ca9d2e6588cd
parent 410 ec5115414c8c
child 735 daced7e311c9
permissions -rw-r--r--
The order of the table checks has been redefined so it will no longer be altered after performing an export.
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">
carlos@0
     4
      <column name="M_PRODUCT_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
     5
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
     6
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
     7
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
carlos@0
     8
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
carlos@0
     9
      <column name="CREATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    10
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
carlos@0
    11
      <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    12
      <column name="VALUE" primaryKey="false" required="true" type="NVARCHAR" size="40" autoIncrement="false"/>
carlos@0
    13
      <column name="NAME" primaryKey="false" required="true" type="NVARCHAR" size="60" autoIncrement="false"/>
carlos@0
    14
      <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false"/>
carlos@0
    15
      <column name="DOCUMENTNOTE" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false"/>
carlos@0
    16
      <column name="HELP" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false"/>
carlos@0
    17
      <column name="UPC" primaryKey="false" required="false" type="VARCHAR" size="30" autoIncrement="false"/>
carlos@0
    18
      <column name="SKU" primaryKey="false" required="false" type="VARCHAR" size="30" autoIncrement="false"/>
carlos@0
    19
      <column name="C_UOM_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    20
      <column name="SALESREP_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    21
      <column name="ISSUMMARY" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
carlos@0
    22
      <column name="ISSTOCKED" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
carlos@0
    23
      <column name="ISPURCHASED" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
carlos@0
    24
      <column name="ISSOLD" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
carlos@0
    25
      <column name="ISBOM" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
carlos@0
    26
      <column name="ISINVOICEPRINTDETAILS" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
carlos@0
    27
      <column name="ISPICKLISTPRINTDETAILS" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
carlos@0
    28
      <column name="ISVERIFIED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
carlos@0
    29
      <column name="C_REVENUERECOGNITION_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    30
      <column name="M_PRODUCT_CATEGORY_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    31
      <column name="CLASSIFICATION" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
carlos@0
    32
      <column name="VOLUME" primaryKey="false" required="false" type="DECIMAL" default="0" autoIncrement="false"/>
carlos@0
    33
      <column name="WEIGHT" primaryKey="false" required="false" type="DECIMAL" default="0" autoIncrement="false"/>
carlos@0
    34
      <column name="SHELFWIDTH" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    35
      <column name="SHELFHEIGHT" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    36
      <column name="SHELFDEPTH" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    37
      <column name="UNITSPERPALLET" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    38
      <column name="C_TAXCATEGORY_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    39
      <column name="S_RESOURCE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    40
      <column name="DISCONTINUED" primaryKey="false" required="false" type="CHAR" size="1" default="N" autoIncrement="false"/>
carlos@0
    41
      <column name="DISCONTINUEDBY" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false"/>
carlos@0
    42
      <column name="PROCESSING" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
carlos@0
    43
      <column name="S_EXPENSETYPE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    44
      <column name="PRODUCTTYPE" primaryKey="false" required="true" type="CHAR" size="1" default="I" autoIncrement="false"/>
carlos@0
    45
      <column name="IMAGEURL" primaryKey="false" required="false" type="NVARCHAR" size="120" autoIncrement="false"/>
carlos@0
    46
      <column name="DESCRIPTIONURL" primaryKey="false" required="false" type="NVARCHAR" size="120" autoIncrement="false"/>
carlos@0
    47
      <column name="GUARANTEEDAYS" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    48
      <column name="R_MAILTEXT_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    49
      <column name="VERSIONNO" primaryKey="false" required="false" type="NVARCHAR" size="20" autoIncrement="false"/>
carlos@0
    50
      <column name="M_ATTRIBUTESET_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    51
      <column name="M_ATTRIBUTESETINSTANCE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    52
      <column name="DOWNLOADURL" primaryKey="false" required="false" type="NVARCHAR" size="120" autoIncrement="false"/>
carlos@0
    53
      <column name="M_FREIGHTCATEGORY_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    54
      <column name="M_LOCATOR_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    55
      <column name="AD_IMAGE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    56
      <column name="C_BPARTNER_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    57
      <column name="ISPRICEPRINTED" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
carlos@0
    58
      <column name="NAME2" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false"/>
carlos@0
    59
      <column name="COSTTYPE" primaryKey="false" required="false" type="CHAR" size="2" autoIncrement="false"/>
carlos@0
    60
      <column name="COSTSTD" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
carlos@0
    61
      <column name="STOCK_MIN" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    62
      <column name="ENFORCE_ATTRIBUTE" primaryKey="false" required="false" type="CHAR" size="1" default="N" autoIncrement="false"/>
carlos@0
    63
      <column name="BUNDLE_UOM" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
carlos@0
    64
      <column name="GREENPOINT_UOM" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
carlos@0
    65
      <column name="UPC2" primaryKey="false" required="false" type="VARCHAR" size="30" autoIncrement="false"/>
carlos@0
    66
      <column name="CALCULATED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
carlos@0
    67
      <column name="MA_PROCESSPLAN_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    68
      <column name="MA_PRODUCTTYPE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    69
      <column name="PRODUCTION" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
carlos@0
    70
      <column name="CAPACITY" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
carlos@0
    71
      <column name="DELAYMIN" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
carlos@0
    72
      <column name="MRP_PLANNER_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    73
      <column name="MRP_PLANNINGMETHOD_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    74
      <column name="QTYMAX" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
carlos@0
    75
      <column name="QTYMIN" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
carlos@0
    76
      <column name="QTYSTD" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
carlos@0
    77
      <column name="QTYTYPE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
carlos@0
    78
      <column name="STOCKMIN" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
antonio@410
    79
      <foreign-key foreignTable="AD_ORG" name="AD_ORG_MPRODUCT">
antonio@410
    80
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
antonio@410
    81
      </foreign-key>
carlos@0
    82
      <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_MPRODUCT">
carlos@0
    83
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
carlos@0
    84
      </foreign-key>
carlos@0
    85
      <foreign-key foreignTable="AD_IMAGE" name="ADIMAGE_MPRODUCT">
carlos@0
    86
        <reference local="AD_IMAGE_ID" foreign="AD_IMAGE_ID"/>
carlos@0
    87
      </foreign-key>
carlos@0
    88
      <foreign-key foreignTable="C_BPARTNER" name="CBPARTNER_MPRODUCT">
carlos@0
    89
        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
carlos@0
    90
      </foreign-key>
carlos@0
    91
      <foreign-key foreignTable="C_REVENUERECOGNITION" name="CREVRECOGNITION_MPRODUCT">
carlos@0
    92
        <reference local="C_REVENUERECOGNITION_ID" foreign="C_REVENUERECOGNITION_ID"/>
carlos@0
    93
      </foreign-key>
carlos@0
    94
      <foreign-key foreignTable="C_TAXCATEGORY" name="CTAXCATEGORY_MPRODUCT">
carlos@0
    95
        <reference local="C_TAXCATEGORY_ID" foreign="C_TAXCATEGORY_ID"/>
carlos@0
    96
      </foreign-key>
carlos@0
    97
      <foreign-key foreignTable="C_UOM" name="CUOM_MPRODUCT">
carlos@0
    98
        <reference local="C_UOM_ID" foreign="C_UOM_ID"/>
carlos@0
    99
      </foreign-key>
antonio@410
   100
      <foreign-key foreignTable="MA_PROCESSPLAN" name="MA_PROCESSPLAN_MPRODUCT">
antonio@410
   101
        <reference local="MA_PROCESSPLAN_ID" foreign="MA_PROCESSPLAN_ID"/>
antonio@410
   102
      </foreign-key>
antonio@410
   103
      <foreign-key foreignTable="MA_PRODUCTTYPE" name="MA_PRODUCTTYPE_MPRODUCT">
antonio@410
   104
        <reference local="MA_PRODUCTTYPE_ID" foreign="MA_PRODUCTTYPE_ID"/>
antonio@410
   105
      </foreign-key>
gorkaion@238
   106
      <foreign-key foreignTable="M_ATTRIBUTESET" name="MATTRIBUTESET_MPRODUCT" onDelete="cascade">
gorkaion@238
   107
        <reference local="M_ATTRIBUTESET_ID" foreign="M_ATTRIBUTESET_ID"/>
gorkaion@238
   108
      </foreign-key>
gorkaion@238
   109
      <foreign-key foreignTable="M_ATTRIBUTESETINSTANCE" name="MATTRSETINST_MPRODUCT">
gorkaion@238
   110
        <reference local="M_ATTRIBUTESETINSTANCE_ID" foreign="M_ATTRIBUTESETINSTANCE_ID"/>
gorkaion@238
   111
      </foreign-key>
carlos@0
   112
      <foreign-key foreignTable="M_FREIGHTCATEGORY" name="MFREIGHTCATEGORY_MPRODUCT">
carlos@0
   113
        <reference local="M_FREIGHTCATEGORY_ID" foreign="M_FREIGHTCATEGORY_ID"/>
carlos@0
   114
      </foreign-key>
carlos@0
   115
      <foreign-key foreignTable="M_LOCATOR" name="MLOCATOR_MPRODUCT">
carlos@0
   116
        <reference local="M_LOCATOR_ID" foreign="M_LOCATOR_ID"/>
carlos@0
   117
      </foreign-key>
carlos@0
   118
      <foreign-key foreignTable="M_PRODUCT_CATEGORY" name="MPRODUCT_MPRODUCTCATEGORY">
carlos@0
   119
        <reference local="M_PRODUCT_CATEGORY_ID" foreign="M_PRODUCT_CATEGORY_ID"/>
carlos@0
   120
      </foreign-key>
carlos@0
   121
      <foreign-key foreignTable="R_MAILTEXT" name="RMAILTEXT_MPRODUCT">
carlos@0
   122
        <reference local="R_MAILTEXT_ID" foreign="R_MAILTEXT_ID"/>
carlos@0
   123
      </foreign-key>
carlos@0
   124
      <foreign-key foreignTable="S_EXPENSETYPE" name="SEXPENSETYPE_MPRODUCT">
carlos@0
   125
        <reference local="S_EXPENSETYPE_ID" foreign="S_EXPENSETYPE_ID"/>
carlos@0
   126
      </foreign-key>
carlos@0
   127
      <foreign-key foreignTable="S_RESOURCE" name="SRESOURCE_MPRODUCT">
carlos@0
   128
        <reference local="S_RESOURCE_ID" foreign="S_RESOURCE_ID"/>
carlos@0
   129
      </foreign-key>
adrian@170
   130
      <index name="M_PRODUCT_BPARTNER" unique="false">
adrian@170
   131
        <index-column name="C_BPARTNER_ID"/>
adrian@170
   132
      </index>
adrian@94
   133
      <index name="M_PRODUCT_NAME" unique="false">
carlos@0
   134
        <index-column name="NAME"/>
carlos@0
   135
      </index>
adrian@94
   136
      <index name="M_PRODUCT_PRODUCTCATEGORY" unique="false">
carlos@0
   137
        <index-column name="M_PRODUCT_CATEGORY_ID"/>
carlos@0
   138
      </index>
adrian@94
   139
      <index name="M_PRODUCT_UPC" unique="false">
carlos@0
   140
        <index-column name="UPC"/>
carlos@0
   141
      </index>
carlos@0
   142
      <unique name="M_PRODUCT_EXPENSETYPE">
carlos@0
   143
        <unique-column name="S_EXPENSETYPE_ID"/>
carlos@0
   144
      </unique>
carlos@0
   145
      <unique name="M_PRODUCT_RESOURCE">
carlos@0
   146
        <unique-column name="S_RESOURCE_ID"/>
carlos@0
   147
      </unique>
carlos@0
   148
      <unique name="M_PRODUCT_VALUE">
carlos@0
   149
        <unique-column name="AD_CLIENT_ID"/>
carlos@0
   150
        <unique-column name="VALUE"/>
carlos@0
   151
      </unique>
ivan@258
   152
      <check name="ENFORCEATTRIBUTE_CH_MPRODUCT"><![CDATA[ENFORCE_ATTRIBUTE IN ('Y', 'N')]]></check>
ivan@258
   153
      <check name="M_PRODUCT_DISCONTINUED_CHECK"><![CDATA[DISCONTINUED IN ('Y', 'N')]]></check>
ivan@258
   154
      <check name="M_PRODUCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
ivan@258
   155
      <check name="M_PRODUCT_ISBOM_CHECK"><![CDATA[ISBOM IN ('Y', 'N')]]></check>
ivan@258
   156
      <check name="M_PRODUCT_ISPURCHASED_CHECK"><![CDATA[ISPURCHASED IN ('Y', 'N')]]></check>
ivan@258
   157
      <check name="M_PRODUCT_ISSOLD_CHECK"><![CDATA[ISSOLD IN ('Y', 'N')]]></check>
ivan@258
   158
      <check name="M_PRODUCT_ISSTOCKED_CHECK"><![CDATA[ISSTOCKED IN ('Y', 'N')]]></check>
ivan@258
   159
      <check name="M_PRODUCT_ISVERIFIED_CHECK"><![CDATA[ISVERIFIED IN ('Y', 'N')]]></check>
antonio@425
   160
      <check name="MPROD_ISINVPRINTDET_CHECK"><![CDATA[ISINVOICEPRINTDETAILS IN ('Y', 'N')]]></check>
antonio@425
   161
      <check name="MPROD_ISPICKLPRINTDET_CHECK"><![CDATA[ISPICKLISTPRINTDETAILS IN ('Y', 'N')]]></check>
carlos@0
   162
    </table>
adrian@94
   163
  </database>