database/model/tables/M_REQUISITION.xml
author Gorka Ion Damián <gorkaion.damian@openbravo.com>
Wed, 02 Apr 2008 17:57:36 +0000
changeset 586 a0912e9a47c5
parent 258 a4855f55d8a1
child 735 daced7e311c9
permissions -rw-r--r--
Merge requisitions branch
carlos@0
     1
<?xml version="1.0"?>
adrian@94
     2
  <database name="TABLE M_REQUISITION">
carlos@0
     3
    <table name="M_REQUISITION" primaryKey="M_REQUISITION_KEY">
carlos@0
     4
      <column name="M_REQUISITION_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
     5
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
     6
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
     7
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
carlos@0
     8
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
carlos@0
     9
      <column name="CREATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    10
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
carlos@0
    11
      <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    12
      <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false"/>
carlos@0
    13
      <column name="DOCUMENTNO" primaryKey="false" required="true" type="NVARCHAR" size="30" autoIncrement="false"/>
carlos@0
    14
      <column name="C_BPARTNER_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    15
      <column name="M_PRICELIST_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    16
      <column name="C_CURRENCY_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
gorkaion@586
    17
      <column name="CREATEPO" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
gorkaion@586
    18
      <column name="DOCSTATUS" primaryKey="false" required="true" type="CHAR" size="2" default="DR" autoIncrement="false"/>
gorkaion@586
    19
      <column name="DOCACTION" primaryKey="false" required="true" type="CHAR" size="2" default="CO" autoIncrement="false"/>
gorkaion@586
    20
      <column name="PROCESSED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
gorkaion@586
    21
      <column name="AD_USER_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
gorkaion@586
    22
      <column name="PROCESSING" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
carlos@0
    23
      <foreign-key foreignTable="AD_CLIENT" name="AD_CLIENT_M_REQUISITION">
carlos@0
    24
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
carlos@0
    25
      </foreign-key>
carlos@0
    26
      <foreign-key foreignTable="AD_ORG" name="AD_ORG_M_REQUISITION">
carlos@0
    27
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
carlos@0
    28
      </foreign-key>
gorkaion@586
    29
      <foreign-key foreignTable="AD_USER" name="AD_USER_M_REQUISITION">
gorkaion@586
    30
        <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
gorkaion@586
    31
      </foreign-key>
carlos@0
    32
      <foreign-key foreignTable="C_BPARTNER" name="C_BPARTNER_M_REQUISITION">
carlos@0
    33
        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
carlos@0
    34
      </foreign-key>
carlos@0
    35
      <foreign-key foreignTable="C_CURRENCY" name="C_CURRENCY_M_REQUISITION">
carlos@0
    36
        <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
carlos@0
    37
      </foreign-key>
carlos@0
    38
      <foreign-key foreignTable="M_PRICELIST" name="M_PRICELIST_M_REQUISITION">
carlos@0
    39
        <reference local="M_PRICELIST_ID" foreign="M_PRICELIST_ID"/>
carlos@0
    40
      </foreign-key>
gorkaion@586
    41
      <check name="M_REQUISITION_CREATEPO_CHECK"><![CDATA[CREATEPO IN ('Y', 'N')]]></check>
ivan@258
    42
      <check name="M_REQUISITION_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
carlos@0
    43
    </table>
adrian@94
    44
  </database>