src-db/database/model/tables/MRP_RUN_PURCHASE.xml
author Gorka Ion Damián <gorkaion.damian@openbravo.com>
Mon, 12 Nov 2012 09:56:06 +0100
changeset 18689 a17b382229ce
parent 8505 a2bb7e6fb443
permissions -rw-r--r--
[Reservations]Implement reservations in MRP Purchasing.
carlos@0
     1
<?xml version="1.0"?>
adrian@94
     2
  <database name="TABLE MRP_RUN_PURCHASE">
carlos@0
     3
    <table name="MRP_RUN_PURCHASE" primaryKey="MRP_RUN_PURCHASE_KEY">
juanpablo@1605
     4
      <column name="MRP_RUN_PURCHASE_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="NAME" primaryKey="false" required="true" type="NVARCHAR" size="60" autoIncrement="false">
antonio@735
    37
        <default/>
antonio@735
    38
        <onCreateDefault/>
antonio@735
    39
      </column>
antonio@735
    40
      <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
antonio@735
    41
        <default/>
antonio@735
    42
        <onCreateDefault/>
antonio@735
    43
      </column>
antonio@735
    44
      <column name="DATEDOC" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    45
        <default><![CDATA[SYSDATE]]></default>
antonio@735
    46
        <onCreateDefault/>
antonio@735
    47
      </column>
juanpablo@1605
    48
      <column name="MRP_PLANNER_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="VENDOR_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    53
        <default/>
antonio@735
    54
        <onCreateDefault/>
antonio@735
    55
      </column>
juanpablo@1605
    56
      <column name="M_PRODUCT_CATEGORY_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    57
        <default/>
antonio@735
    58
        <onCreateDefault/>
antonio@735
    59
      </column>
juanpablo@1605
    60
      <column name="M_PRODUCT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    61
        <default/>
antonio@735
    62
        <onCreateDefault/>
antonio@735
    63
      </column>
juanpablo@1605
    64
      <column name="C_BP_GROUP_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    65
        <default/>
antonio@735
    66
        <onCreateDefault/>
antonio@735
    67
      </column>
juanpablo@1605
    68
      <column name="C_BPARTNER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    69
        <default/>
antonio@735
    70
        <onCreateDefault/>
antonio@735
    71
      </column>
gorkaion@902
    72
      <column name="TIMEHORIZON" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
antonio@735
    73
        <default/>
antonio@735
    74
        <onCreateDefault/>
antonio@735
    75
      </column>
gorkaion@902
    76
      <column name="SECURITYMARGIN" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
antonio@735
    77
        <default/>
antonio@735
    78
        <onCreateDefault/>
antonio@735
    79
      </column>
antonio@735
    80
      <column name="SIMULATE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    81
        <default><![CDATA[N]]></default>
antonio@735
    82
        <onCreateDefault/>
antonio@735
    83
      </column>
antonio@735
    84
      <column name="LAUNCHPO" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    85
        <default><![CDATA[N]]></default>
antonio@735
    86
        <onCreateDefault/>
antonio@735
    87
      </column>
gorkaion@18689
    88
      <column name="CREATE_RESERVATIONS" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
gorkaion@18689
    89
        <default/>
gorkaion@18689
    90
        <onCreateDefault/>
gorkaion@18689
    91
      </column>
carlos@0
    92
      <foreign-key foreignTable="AD_CLIENT" name="AD_CLIENT_RUN_PURCHASE">
carlos@0
    93
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
carlos@0
    94
      </foreign-key>
carlos@0
    95
      <foreign-key foreignTable="AD_ORG" name="AD_ORG_MRP_RUN_PURCHASE">
carlos@0
    96
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
carlos@0
    97
      </foreign-key>
antonio@410
    98
      <foreign-key foreignTable="C_BP_GROUP" name="C_BP_GROUP_MRP_RUN_PURCHASE">
antonio@410
    99
        <reference local="C_BP_GROUP_ID" foreign="C_BP_GROUP_ID"/>
antonio@410
   100
      </foreign-key>
carlos@0
   101
      <foreign-key foreignTable="C_BPARTNER" name="C_BPARTNER_MRP_RUN_PURCHASE">
carlos@0
   102
        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
carlos@0
   103
      </foreign-key>
antonio@410
   104
      <foreign-key foreignTable="M_PRODUCT" name="M_PRODUCT_RUN_PURCHASE">
antonio@410
   105
        <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
gorkaion@238
   106
      </foreign-key>
adrian@170
   107
      <foreign-key foreignTable="M_PRODUCT_CATEGORY" name="M_PRODUCTCATEGORY_PURCHASE">
adrian@170
   108
        <reference local="M_PRODUCT_CATEGORY_ID" foreign="M_PRODUCT_CATEGORY_ID"/>
adrian@170
   109
      </foreign-key>
antonio@410
   110
      <foreign-key foreignTable="MRP_PLANNER" name="MRP_PLANNER_RUN_PURCHASE">
antonio@410
   111
        <reference local="MRP_PLANNER_ID" foreign="MRP_PLANNER_ID"/>
carlos@0
   112
      </foreign-key>
asier@5551
   113
      <foreign-key foreignTable="C_BPARTNER" name="MRP_RUN_PURCHASE_VENDOR">
adrian@170
   114
        <reference local="VENDOR_ID" foreign="C_BPARTNER_ID"/>
adrian@170
   115
      </foreign-key>
gorkaion@18689
   116
      <check name="MRP_RUN_PURCHASE"><![CDATA[CREATE_RESERVATIONS IN ('Y', 'N')]]></check>
stefan@8505
   117
      <check name="MRP_RUN_PURCHASE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
stefan@8505
   118
      <check name="MRP_RUN_PURCHASE_LAUNCHPO_CHK"><![CDATA[LAUNCHPO IN ('Y', 'N')]]></check>
stefan@8505
   119
      <check name="MRP_RUN_PURCHASE_SIMULATE_CHK"><![CDATA[SIMULATE IN ('Y', 'N')]]></check>
carlos@0
   120
    </table>
adrian@94
   121
  </database>