src-db/database/model/tables/M_PRODUCT.xml
changeset 756 ae11e4610537
parent 735 daced7e311c9
child 799 fef2c5e2feb7
equal deleted inserted replaced
755:16b55e593268 756:ae11e4610537
       
     1 <?xml version="1.0"?>
       
     2   <database name="TABLE M_PRODUCT">
       
     3     <table name="M_PRODUCT" primaryKey="M_PRODUCT_KEY">
       
     4       <column name="M_PRODUCT_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
     5         <default/>
       
     6         <onCreateDefault/>
       
     7       </column>
       
     8       <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
     9         <default/>
       
    10         <onCreateDefault/>
       
    11       </column>
       
    12       <column name="AD_ORG_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
    13         <default/>
       
    14         <onCreateDefault/>
       
    15       </column>
       
    16       <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
    17         <default><![CDATA[Y]]></default>
       
    18         <onCreateDefault/>
       
    19       </column>
       
    20       <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
       
    21         <default><![CDATA[SYSDATE]]></default>
       
    22         <onCreateDefault/>
       
    23       </column>
       
    24       <column name="CREATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
    25         <default/>
       
    26         <onCreateDefault/>
       
    27       </column>
       
    28       <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
       
    29         <default><![CDATA[SYSDATE]]></default>
       
    30         <onCreateDefault/>
       
    31       </column>
       
    32       <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
    33         <default/>
       
    34         <onCreateDefault/>
       
    35       </column>
       
    36       <column name="VALUE" primaryKey="false" required="true" type="NVARCHAR" size="40" autoIncrement="false">
       
    37         <default/>
       
    38         <onCreateDefault/>
       
    39       </column>
       
    40       <column name="NAME" primaryKey="false" required="true" type="NVARCHAR" size="60" autoIncrement="false">
       
    41         <default/>
       
    42         <onCreateDefault/>
       
    43       </column>
       
    44       <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
       
    45         <default/>
       
    46         <onCreateDefault/>
       
    47       </column>
       
    48       <column name="DOCUMENTNOTE" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false">
       
    49         <default/>
       
    50         <onCreateDefault/>
       
    51       </column>
       
    52       <column name="HELP" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false">
       
    53         <default/>
       
    54         <onCreateDefault/>
       
    55       </column>
       
    56       <column name="UPC" primaryKey="false" required="false" type="VARCHAR" size="30" autoIncrement="false">
       
    57         <default/>
       
    58         <onCreateDefault/>
       
    59       </column>
       
    60       <column name="SKU" primaryKey="false" required="false" type="VARCHAR" size="30" autoIncrement="false">
       
    61         <default/>
       
    62         <onCreateDefault/>
       
    63       </column>
       
    64       <column name="C_UOM_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
    65         <default/>
       
    66         <onCreateDefault/>
       
    67       </column>
       
    68       <column name="SALESREP_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
    69         <default/>
       
    70         <onCreateDefault/>
       
    71       </column>
       
    72       <column name="ISSUMMARY" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
    73         <default><![CDATA[N]]></default>
       
    74         <onCreateDefault/>
       
    75       </column>
       
    76       <column name="ISSTOCKED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
    77         <default><![CDATA[Y]]></default>
       
    78         <onCreateDefault/>
       
    79       </column>
       
    80       <column name="ISPURCHASED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
    81         <default><![CDATA[Y]]></default>
       
    82         <onCreateDefault/>
       
    83       </column>
       
    84       <column name="ISSOLD" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
    85         <default><![CDATA[Y]]></default>
       
    86         <onCreateDefault/>
       
    87       </column>
       
    88       <column name="ISBOM" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
    89         <default><![CDATA[N]]></default>
       
    90         <onCreateDefault/>
       
    91       </column>
       
    92       <column name="ISINVOICEPRINTDETAILS" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
    93         <default><![CDATA[N]]></default>
       
    94         <onCreateDefault/>
       
    95       </column>
       
    96       <column name="ISPICKLISTPRINTDETAILS" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
    97         <default><![CDATA[N]]></default>
       
    98         <onCreateDefault/>
       
    99       </column>
       
   100       <column name="ISVERIFIED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
   101         <default><![CDATA[N]]></default>
       
   102         <onCreateDefault/>
       
   103       </column>
       
   104       <column name="C_REVENUERECOGNITION_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   105         <default/>
       
   106         <onCreateDefault/>
       
   107       </column>
       
   108       <column name="M_PRODUCT_CATEGORY_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
   109         <default/>
       
   110         <onCreateDefault/>
       
   111       </column>
       
   112       <column name="CLASSIFICATION" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
       
   113         <default/>
       
   114         <onCreateDefault/>
       
   115       </column>
       
   116       <column name="VOLUME" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
       
   117         <default><![CDATA[0]]></default>
       
   118         <onCreateDefault/>
       
   119       </column>
       
   120       <column name="WEIGHT" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
       
   121         <default><![CDATA[0]]></default>
       
   122         <onCreateDefault/>
       
   123       </column>
       
   124       <column name="SHELFWIDTH" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   125         <default/>
       
   126         <onCreateDefault/>
       
   127       </column>
       
   128       <column name="SHELFHEIGHT" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   129         <default/>
       
   130         <onCreateDefault/>
       
   131       </column>
       
   132       <column name="SHELFDEPTH" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   133         <default/>
       
   134         <onCreateDefault/>
       
   135       </column>
       
   136       <column name="UNITSPERPALLET" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   137         <default/>
       
   138         <onCreateDefault/>
       
   139       </column>
       
   140       <column name="C_TAXCATEGORY_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
   141         <default/>
       
   142         <onCreateDefault/>
       
   143       </column>
       
   144       <column name="S_RESOURCE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   145         <default/>
       
   146         <onCreateDefault/>
       
   147       </column>
       
   148       <column name="DISCONTINUED" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
       
   149         <default><![CDATA[N]]></default>
       
   150         <onCreateDefault/>
       
   151       </column>
       
   152       <column name="DISCONTINUEDBY" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
       
   153         <default/>
       
   154         <onCreateDefault/>
       
   155       </column>
       
   156       <column name="PROCESSING" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
   157         <default><![CDATA[N]]></default>
       
   158         <onCreateDefault/>
       
   159       </column>
       
   160       <column name="S_EXPENSETYPE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   161         <default/>
       
   162         <onCreateDefault/>
       
   163       </column>
       
   164       <column name="PRODUCTTYPE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
   165         <default><![CDATA[I]]></default>
       
   166         <onCreateDefault/>
       
   167       </column>
       
   168       <column name="IMAGEURL" primaryKey="false" required="false" type="NVARCHAR" size="120" autoIncrement="false">
       
   169         <default/>
       
   170         <onCreateDefault/>
       
   171       </column>
       
   172       <column name="DESCRIPTIONURL" primaryKey="false" required="false" type="NVARCHAR" size="120" autoIncrement="false">
       
   173         <default/>
       
   174         <onCreateDefault/>
       
   175       </column>
       
   176       <column name="GUARANTEEDAYS" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   177         <default/>
       
   178         <onCreateDefault/>
       
   179       </column>
       
   180       <column name="R_MAILTEXT_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   181         <default/>
       
   182         <onCreateDefault/>
       
   183       </column>
       
   184       <column name="VERSIONNO" primaryKey="false" required="false" type="NVARCHAR" size="20" autoIncrement="false">
       
   185         <default/>
       
   186         <onCreateDefault/>
       
   187       </column>
       
   188       <column name="M_ATTRIBUTESET_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   189         <default/>
       
   190         <onCreateDefault/>
       
   191       </column>
       
   192       <column name="M_ATTRIBUTESETINSTANCE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   193         <default/>
       
   194         <onCreateDefault/>
       
   195       </column>
       
   196       <column name="DOWNLOADURL" primaryKey="false" required="false" type="NVARCHAR" size="120" autoIncrement="false">
       
   197         <default/>
       
   198         <onCreateDefault/>
       
   199       </column>
       
   200       <column name="M_FREIGHTCATEGORY_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   201         <default/>
       
   202         <onCreateDefault/>
       
   203       </column>
       
   204       <column name="M_LOCATOR_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   205         <default/>
       
   206         <onCreateDefault/>
       
   207       </column>
       
   208       <column name="AD_IMAGE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   209         <default/>
       
   210         <onCreateDefault/>
       
   211       </column>
       
   212       <column name="C_BPARTNER_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   213         <default/>
       
   214         <onCreateDefault/>
       
   215       </column>
       
   216       <column name="ISPRICEPRINTED" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
       
   217         <default/>
       
   218         <onCreateDefault/>
       
   219       </column>
       
   220       <column name="NAME2" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false">
       
   221         <default/>
       
   222         <onCreateDefault/>
       
   223       </column>
       
   224       <column name="COSTTYPE" primaryKey="false" required="false" type="CHAR" size="2" autoIncrement="false">
       
   225         <default/>
       
   226         <onCreateDefault/>
       
   227       </column>
       
   228       <column name="COSTSTD" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
       
   229         <default/>
       
   230         <onCreateDefault/>
       
   231       </column>
       
   232       <column name="STOCK_MIN" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   233         <default/>
       
   234         <onCreateDefault/>
       
   235       </column>
       
   236       <column name="ENFORCE_ATTRIBUTE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
       
   237         <default><![CDATA[N]]></default>
       
   238         <onCreateDefault/>
       
   239       </column>
       
   240       <column name="BUNDLE_UOM" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
       
   241         <default/>
       
   242         <onCreateDefault/>
       
   243       </column>
       
   244       <column name="GREENPOINT_UOM" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
       
   245         <default/>
       
   246         <onCreateDefault/>
       
   247       </column>
       
   248       <column name="UPC2" primaryKey="false" required="false" type="VARCHAR" size="30" autoIncrement="false">
       
   249         <default/>
       
   250         <onCreateDefault/>
       
   251       </column>
       
   252       <column name="CALCULATED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
   253         <default><![CDATA[N]]></default>
       
   254         <onCreateDefault/>
       
   255       </column>
       
   256       <column name="MA_PROCESSPLAN_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   257         <default/>
       
   258         <onCreateDefault/>
       
   259       </column>
       
   260       <column name="MA_PRODUCTTYPE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   261         <default/>
       
   262         <onCreateDefault/>
       
   263       </column>
       
   264       <column name="PRODUCTION" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
   265         <default><![CDATA[N]]></default>
       
   266         <onCreateDefault/>
       
   267       </column>
       
   268       <column name="CAPACITY" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
       
   269         <default/>
       
   270         <onCreateDefault/>
       
   271       </column>
       
   272       <column name="DELAYMIN" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
       
   273         <default/>
       
   274         <onCreateDefault/>
       
   275       </column>
       
   276       <column name="MRP_PLANNER_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   277         <default/>
       
   278         <onCreateDefault/>
       
   279       </column>
       
   280       <column name="MRP_PLANNINGMETHOD_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   281         <default/>
       
   282         <onCreateDefault/>
       
   283       </column>
       
   284       <column name="QTYMAX" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
       
   285         <default/>
       
   286         <onCreateDefault/>
       
   287       </column>
       
   288       <column name="QTYMIN" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
       
   289         <default/>
       
   290         <onCreateDefault/>
       
   291       </column>
       
   292       <column name="QTYSTD" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
       
   293         <default/>
       
   294         <onCreateDefault/>
       
   295       </column>
       
   296       <column name="QTYTYPE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
       
   297         <default/>
       
   298         <onCreateDefault/>
       
   299       </column>
       
   300       <column name="STOCKMIN" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
       
   301         <default/>
       
   302         <onCreateDefault/>
       
   303       </column>
       
   304       <foreign-key foreignTable="AD_ORG" name="AD_ORG_MPRODUCT">
       
   305         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       
   306       </foreign-key>
       
   307       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_MPRODUCT">
       
   308         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       
   309       </foreign-key>
       
   310       <foreign-key foreignTable="AD_IMAGE" name="ADIMAGE_MPRODUCT">
       
   311         <reference local="AD_IMAGE_ID" foreign="AD_IMAGE_ID"/>
       
   312       </foreign-key>
       
   313       <foreign-key foreignTable="C_BPARTNER" name="CBPARTNER_MPRODUCT">
       
   314         <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
       
   315       </foreign-key>
       
   316       <foreign-key foreignTable="C_REVENUERECOGNITION" name="CREVRECOGNITION_MPRODUCT">
       
   317         <reference local="C_REVENUERECOGNITION_ID" foreign="C_REVENUERECOGNITION_ID"/>
       
   318       </foreign-key>
       
   319       <foreign-key foreignTable="C_TAXCATEGORY" name="CTAXCATEGORY_MPRODUCT">
       
   320         <reference local="C_TAXCATEGORY_ID" foreign="C_TAXCATEGORY_ID"/>
       
   321       </foreign-key>
       
   322       <foreign-key foreignTable="C_UOM" name="CUOM_MPRODUCT">
       
   323         <reference local="C_UOM_ID" foreign="C_UOM_ID"/>
       
   324       </foreign-key>
       
   325       <foreign-key foreignTable="MA_PROCESSPLAN" name="MA_PROCESSPLAN_MPRODUCT">
       
   326         <reference local="MA_PROCESSPLAN_ID" foreign="MA_PROCESSPLAN_ID"/>
       
   327       </foreign-key>
       
   328       <foreign-key foreignTable="MA_PRODUCTTYPE" name="MA_PRODUCTTYPE_MPRODUCT">
       
   329         <reference local="MA_PRODUCTTYPE_ID" foreign="MA_PRODUCTTYPE_ID"/>
       
   330       </foreign-key>
       
   331       <foreign-key foreignTable="M_ATTRIBUTESET" name="MATTRIBUTESET_MPRODUCT" onDelete="cascade">
       
   332         <reference local="M_ATTRIBUTESET_ID" foreign="M_ATTRIBUTESET_ID"/>
       
   333       </foreign-key>
       
   334       <foreign-key foreignTable="M_ATTRIBUTESETINSTANCE" name="MATTRSETINST_MPRODUCT">
       
   335         <reference local="M_ATTRIBUTESETINSTANCE_ID" foreign="M_ATTRIBUTESETINSTANCE_ID"/>
       
   336       </foreign-key>
       
   337       <foreign-key foreignTable="M_FREIGHTCATEGORY" name="MFREIGHTCATEGORY_MPRODUCT">
       
   338         <reference local="M_FREIGHTCATEGORY_ID" foreign="M_FREIGHTCATEGORY_ID"/>
       
   339       </foreign-key>
       
   340       <foreign-key foreignTable="M_LOCATOR" name="MLOCATOR_MPRODUCT">
       
   341         <reference local="M_LOCATOR_ID" foreign="M_LOCATOR_ID"/>
       
   342       </foreign-key>
       
   343       <foreign-key foreignTable="M_PRODUCT_CATEGORY" name="MPRODUCT_MPRODUCTCATEGORY">
       
   344         <reference local="M_PRODUCT_CATEGORY_ID" foreign="M_PRODUCT_CATEGORY_ID"/>
       
   345       </foreign-key>
       
   346       <foreign-key foreignTable="R_MAILTEXT" name="RMAILTEXT_MPRODUCT">
       
   347         <reference local="R_MAILTEXT_ID" foreign="R_MAILTEXT_ID"/>
       
   348       </foreign-key>
       
   349       <foreign-key foreignTable="S_EXPENSETYPE" name="SEXPENSETYPE_MPRODUCT">
       
   350         <reference local="S_EXPENSETYPE_ID" foreign="S_EXPENSETYPE_ID"/>
       
   351       </foreign-key>
       
   352       <foreign-key foreignTable="S_RESOURCE" name="SRESOURCE_MPRODUCT">
       
   353         <reference local="S_RESOURCE_ID" foreign="S_RESOURCE_ID"/>
       
   354       </foreign-key>
       
   355       <index name="M_PRODUCT_BPARTNER" unique="false">
       
   356         <index-column name="C_BPARTNER_ID"/>
       
   357       </index>
       
   358       <index name="M_PRODUCT_NAME" unique="false">
       
   359         <index-column name="NAME"/>
       
   360       </index>
       
   361       <index name="M_PRODUCT_PRODUCTCATEGORY" unique="false">
       
   362         <index-column name="M_PRODUCT_CATEGORY_ID"/>
       
   363       </index>
       
   364       <index name="M_PRODUCT_UPC" unique="false">
       
   365         <index-column name="UPC"/>
       
   366       </index>
       
   367       <unique name="M_PRODUCT_EXPENSETYPE">
       
   368         <unique-column name="S_EXPENSETYPE_ID"/>
       
   369       </unique>
       
   370       <unique name="M_PRODUCT_RESOURCE">
       
   371         <unique-column name="S_RESOURCE_ID"/>
       
   372       </unique>
       
   373       <unique name="M_PRODUCT_VALUE">
       
   374         <unique-column name="AD_CLIENT_ID"/>
       
   375         <unique-column name="VALUE"/>
       
   376       </unique>
       
   377       <check name="ENFORCEATTRIBUTE_CH_MPRODUCT"><![CDATA[ENFORCE_ATTRIBUTE IN ('Y', 'N')]]></check>
       
   378       <check name="M_PRODUCT_DISCONTINUED_CHECK"><![CDATA[DISCONTINUED IN ('Y', 'N')]]></check>
       
   379       <check name="M_PRODUCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
       
   380       <check name="M_PRODUCT_ISBOM_CHECK"><![CDATA[ISBOM IN ('Y', 'N')]]></check>
       
   381       <check name="M_PRODUCT_ISPURCHASED_CHECK"><![CDATA[ISPURCHASED IN ('Y', 'N')]]></check>
       
   382       <check name="M_PRODUCT_ISSOLD_CHECK"><![CDATA[ISSOLD IN ('Y', 'N')]]></check>
       
   383       <check name="M_PRODUCT_ISSTOCKED_CHECK"><![CDATA[ISSTOCKED IN ('Y', 'N')]]></check>
       
   384       <check name="M_PRODUCT_ISVERIFIED_CHECK"><![CDATA[ISVERIFIED IN ('Y', 'N')]]></check>
       
   385       <check name="MPROD_ISINVPRINTDET_CHECK"><![CDATA[ISINVOICEPRINTDETAILS IN ('Y', 'N')]]></check>
       
   386       <check name="MPROD_ISPICKLPRINTDET_CHECK"><![CDATA[ISPICKLISTPRINTDETAILS IN ('Y', 'N')]]></check>
       
   387     </table>
       
   388   </database>