src-db/database/model/tables/C_EXTERNALPOS.xml
author Asier Lostalé <asier.lostale@openbravo.com>
Wed, 14 Jan 2009 15:00:49 +0000
changeset 2586 683779f1e610
parent 1742 bad2cf25bf91
child 5551 7a30caea85b5
permissions -rw-r--r--
Merged reflist branch back

Now columns for reference list values are varchar2(60) instead of char
carlos@0
     1
<?xml version="1.0"?>
adrian@94
     2
  <database name="TABLE C_EXTERNALPOS">
carlos@0
     3
    <table name="C_EXTERNALPOS" primaryKey="C_EXTERNALPOS_KEY">
juanpablo@1605
     4
      <column name="C_EXTERNALPOS_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="VALUE" primaryKey="false" required="true" type="NVARCHAR" size="40" autoIncrement="false">
antonio@735
    37
        <default/>
antonio@735
    38
        <onCreateDefault/>
antonio@735
    39
      </column>
antonio@735
    40
      <column name="NAME" primaryKey="false" required="true" type="NVARCHAR" size="60" autoIncrement="false">
antonio@735
    41
        <default/>
antonio@735
    42
        <onCreateDefault/>
antonio@735
    43
      </column>
antonio@735
    44
      <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
antonio@735
    45
        <default/>
antonio@735
    46
        <onCreateDefault/>
antonio@735
    47
      </column>
juanpablo@1605
    48
      <column name="M_WAREHOUSE_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    49
        <default/>
antonio@735
    50
        <onCreateDefault/>
antonio@735
    51
      </column>
juanpablo@1605
    52
      <column name="C_DOCTYPE_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    53
        <default/>
antonio@735
    54
        <onCreateDefault/>
antonio@735
    55
      </column>
juanpablo@1605
    56
      <column name="C_BPARTNER_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    57
        <default/>
antonio@735
    58
        <onCreateDefault/>
antonio@735
    59
      </column>
juanpablo@1605
    60
      <column name="M_PRICELIST_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    61
        <default/>
antonio@735
    62
        <onCreateDefault/>
antonio@735
    63
      </column>
juanpablo@1605
    64
      <column name="SALESREP_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    65
        <default/>
antonio@735
    66
        <onCreateDefault/>
antonio@735
    67
      </column>
juanpablo@1605
    68
      <column name="M_SHIPPER_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    69
        <default/>
antonio@735
    70
        <onCreateDefault/>
antonio@735
    71
      </column>
asier@2586
    72
      <column name="INCLUDE_PRODUCT" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
    73
        <default/>
antonio@735
    74
        <onCreateDefault/>
antonio@735
    75
      </column>
asier@2586
    76
      <column name="INCLUDE_PRODUCT_CATEGORY" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
antonio@735
    77
        <default/>
antonio@735
    78
        <onCreateDefault/>
antonio@735
    79
      </column>
antonio@735
    80
      <column name="PERFORM_POST" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
antonio@735
    81
        <default><![CDATA[N]]></default>
antonio@735
    82
        <onCreateDefault/>
antonio@735
    83
      </column>
carlos@0
    84
      <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_CEXTERNALPOS">
carlos@0
    85
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
carlos@0
    86
      </foreign-key>
carlos@0
    87
      <foreign-key foreignTable="AD_ORG" name="ADORG_CEXTERNALPOS">
carlos@0
    88
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
carlos@0
    89
      </foreign-key>
carlos@0
    90
      <foreign-key foreignTable="AD_USER" name="ADUSER_SR_C_EXTERNALPOS">
carlos@0
    91
        <reference local="SALESREP_ID" foreign="AD_USER_ID"/>
carlos@0
    92
      </foreign-key>
carlos@0
    93
      <foreign-key foreignTable="C_BPARTNER" name="BPARTNER_C_EXTERNALPOS">
carlos@0
    94
        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
carlos@0
    95
      </foreign-key>
carlos@0
    96
      <foreign-key foreignTable="C_DOCTYPE" name="DOCTYPE_C_EXTERNALPOS">
carlos@0
    97
        <reference local="C_DOCTYPE_ID" foreign="C_DOCTYPE_ID"/>
carlos@0
    98
      </foreign-key>
carlos@0
    99
      <foreign-key foreignTable="M_PRICELIST" name="PRICELIST_C_EXTERNALPOS">
carlos@0
   100
        <reference local="M_PRICELIST_ID" foreign="M_PRICELIST_ID"/>
carlos@0
   101
      </foreign-key>
carlos@0
   102
      <foreign-key foreignTable="M_SHIPPER" name="SHIPPER_C_EXTERNALPOS">
carlos@0
   103
        <reference local="M_SHIPPER_ID" foreign="M_SHIPPER_ID"/>
carlos@0
   104
      </foreign-key>
carlos@0
   105
      <foreign-key foreignTable="M_WAREHOUSE" name="WAREHOUSE_C_EXTERNALPOS">
carlos@0
   106
        <reference local="M_WAREHOUSE_ID" foreign="M_WAREHOUSE_ID"/>
carlos@0
   107
      </foreign-key>
carlos@0
   108
    </table>
adrian@94
   109
  </database>