src-db/database/model/tables/MRP_RUN_PURCHASE.xml
author Asier Lostalé <asier.lostale@openbravo.com>
Thu, 26 Nov 2009 17:36:43 +0100
changeset 5551 7a30caea85b5
parent 1605 8a0fe0193bef
child 8504 802eae4a434d
permissions -rw-r--r--
[mod-check] Renamed constraints to follow naming rules
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>
carlos@0
    88
      <foreign-key foreignTable="AD_CLIENT" name="AD_CLIENT_RUN_PURCHASE">
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="AD_ORG_MRP_RUN_PURCHASE">
carlos@0
    92
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
carlos@0
    93
      </foreign-key>
antonio@410
    94
      <foreign-key foreignTable="C_BP_GROUP" name="C_BP_GROUP_MRP_RUN_PURCHASE">
antonio@410
    95
        <reference local="C_BP_GROUP_ID" foreign="C_BP_GROUP_ID"/>
antonio@410
    96
      </foreign-key>
carlos@0
    97
      <foreign-key foreignTable="C_BPARTNER" name="C_BPARTNER_MRP_RUN_PURCHASE">
carlos@0
    98
        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
carlos@0
    99
      </foreign-key>
antonio@410
   100
      <foreign-key foreignTable="M_PRODUCT" name="M_PRODUCT_RUN_PURCHASE">
antonio@410
   101
        <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
gorkaion@238
   102
      </foreign-key>
adrian@170
   103
      <foreign-key foreignTable="M_PRODUCT_CATEGORY" name="M_PRODUCTCATEGORY_PURCHASE">
adrian@170
   104
        <reference local="M_PRODUCT_CATEGORY_ID" foreign="M_PRODUCT_CATEGORY_ID"/>
adrian@170
   105
      </foreign-key>
antonio@410
   106
      <foreign-key foreignTable="MRP_PLANNER" name="MRP_PLANNER_RUN_PURCHASE">
antonio@410
   107
        <reference local="MRP_PLANNER_ID" foreign="MRP_PLANNER_ID"/>
carlos@0
   108
      </foreign-key>
asier@5551
   109
      <foreign-key foreignTable="C_BPARTNER" name="MRP_RUN_PURCHASE_VENDOR">
adrian@170
   110
        <reference local="VENDOR_ID" foreign="C_BPARTNER_ID"/>
adrian@170
   111
      </foreign-key>
asier@5551
   112
      <check name="MRP_RUN_PURCHASE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
asier@5551
   113
      <check name="MRP_RUN_PURCHASE_LAUNCHPO_CHK"><![CDATA[LAUNCHPO IN ('Y', 'N')]]></check>
asier@5551
   114
      <check name="MRP_RUN_PURCHASE_SIMULATE_CHK"><![CDATA[SIMULATE IN ('Y', 'N')]]></check>
carlos@0
   115
    </table>
adrian@94
   116
  </database>