src-db/database/model/tables/M_COSTING.xml
author Stefan Hühner <stefan.huehner@openbravo.com>
Mon, 09 Feb 2009 18:34:07 +0000
changeset 3034 dfc7d481301d
parent 2586 683779f1e610
child 5551 7a30caea85b5
permissions -rw-r--r--
Fixed 7405
Add two missing indexes to speed up production
carlos@0
     1
<?xml version="1.0"?>
adrian@94
     2
  <database name="TABLE M_COSTING">
carlos@0
     3
    <table name="M_COSTING" primaryKey="M_COSTING_KEY">
juanpablo@1605
     4
      <column name="M_COSTING_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
     5
        <default/>
antonio@735
     6
        <onCreateDefault/>
antonio@735
     7
      </column>
antonio@735
     8
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
     9
        <default><![CDATA[SYSDATE]]></default>
antonio@735
    10
        <onCreateDefault/>
antonio@735
    11
      </column>
juanpablo@1605
    12
      <column name="CREATEDBY" 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="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    17
        <default><![CDATA[SYSDATE]]></default>
antonio@735
    18
        <onCreateDefault/>
antonio@735
    19
      </column>
juanpablo@1605
    20
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    21
        <default/>
antonio@735
    22
        <onCreateDefault/>
antonio@735
    23
      </column>
juanpablo@1605
    24
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    25
        <default/>
antonio@735
    26
        <onCreateDefault/>
antonio@735
    27
      </column>
juanpablo@1605
    28
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    29
        <default/>
antonio@735
    30
        <onCreateDefault/>
antonio@735
    31
      </column>
juanpablo@1605
    32
      <column name="M_PRODUCT_ID" 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="DATEFROM" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    37
        <default/>
antonio@735
    38
        <onCreateDefault/>
antonio@735
    39
      </column>
antonio@735
    40
      <column name="DATETO" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    41
        <default/>
antonio@735
    42
        <onCreateDefault/>
antonio@735
    43
      </column>
antonio@735
    44
      <column name="ISMANUAL" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    45
        <default><![CDATA[N]]></default>
antonio@735
    46
        <onCreateDefault/>
antonio@735
    47
      </column>
juanpablo@1605
    48
      <column name="M_INOUTLINE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    49
        <default/>
antonio@735
    50
        <onCreateDefault/>
antonio@735
    51
      </column>
juanpablo@1605
    52
      <column name="C_INVOICELINE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    53
        <default/>
antonio@735
    54
        <onCreateDefault/>
antonio@735
    55
      </column>
antonio@735
    56
      <column name="QTY" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
    57
        <default/>
antonio@735
    58
        <onCreateDefault/>
antonio@735
    59
      </column>
antonio@735
    60
      <column name="PRICE" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
    61
        <default/>
antonio@735
    62
        <onCreateDefault/>
antonio@735
    63
      </column>
antonio@735
    64
      <column name="CUMQTY" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
    65
        <default/>
antonio@735
    66
        <onCreateDefault/>
antonio@735
    67
      </column>
asier@2586
    68
      <column name="COSTTYPE" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
    69
        <default/>
antonio@735
    70
        <onCreateDefault/>
antonio@735
    71
      </column>
antonio@735
    72
      <column name="ISPERMANENT" 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="COST" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
    77
        <default/>
antonio@735
    78
        <onCreateDefault/>
antonio@735
    79
      </column>
juanpablo@1605
    80
      <column name="M_PRODUCTIONLINE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    81
        <default/>
antonio@735
    82
        <onCreateDefault/>
antonio@735
    83
      </column>
antonio@735
    84
      <column name="ISPRODUCTION" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
    85
        <default><![CDATA[N]]></default>
antonio@735
    86
        <onCreateDefault/>
antonio@735
    87
      </column>
carlos@0
    88
      <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_MCOSTING">
carlos@0
    89
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
carlos@0
    90
      </foreign-key>
carlos@0
    91
      <foreign-key foreignTable="AD_ORG" name="ADORG_MCOSTING">
carlos@0
    92
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
carlos@0
    93
      </foreign-key>
carlos@0
    94
      <foreign-key foreignTable="C_INVOICELINE" name="CINVOICELINE_MCOSTING">
carlos@0
    95
        <reference local="C_INVOICELINE_ID" foreign="C_INVOICELINE_ID"/>
carlos@0
    96
      </foreign-key>
antonio@410
    97
      <foreign-key foreignTable="M_PRODUCTIONLINE" name="M_PRODUCTIONLINE_MCOSTING">
antonio@410
    98
        <reference local="M_PRODUCTIONLINE_ID" foreign="M_PRODUCTIONLINE_ID"/>
antonio@410
    99
      </foreign-key>
adrian@170
   100
      <foreign-key foreignTable="M_PRODUCT" name="MCOSTING_FK_MPRODUCT">
adrian@170
   101
        <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
adrian@170
   102
      </foreign-key>
carlos@0
   103
      <foreign-key foreignTable="M_INOUTLINE" name="MINOUTLINE_MCOSTING">
carlos@0
   104
        <reference local="M_INOUTLINE_ID" foreign="M_INOUTLINE_ID"/>
carlos@0
   105
      </foreign-key>
stefan@3034
   106
      <index name="M_COSTING_M_PRODUCT_ID" unique="false">
stefan@3034
   107
        <index-column name="M_PRODUCT_ID"/>
stefan@3034
   108
      </index>
carlos@0
   109
    </table>
adrian@94
   110
  </database>