src-db/database/model/tables/FIN_PAYMENT_DETAIL.xml
author Eduardo Argal Guibert <eduardo.argal@openbravo.com>
Wed, 24 Feb 2010 11:30:07 +0100
changeset 6834 557de7fbf3cc
parent 6824 8358cc90c6e5
child 7327 a68108a26adc
permissions -rw-r--r--
Adds isPrepayment column to FIN_Payment_Detail
eduardo@6401
     1
<?xml version="1.0"?>
eduardo@6401
     2
  <database name="TABLE FIN_PAYMENT_DETAIL">
eduardo@6401
     3
    <table name="FIN_PAYMENT_DETAIL" primaryKey="FIN_PAYMENT_DETAIL_KEY">
eduardo@6401
     4
      <column name="FIN_PAYMENT_DETAIL_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6401
     5
        <default/>
eduardo@6401
     6
        <onCreateDefault/>
eduardo@6401
     7
      </column>
eduardo@6401
     8
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6401
     9
        <default/>
eduardo@6401
    10
        <onCreateDefault/>
eduardo@6401
    11
      </column>
eduardo@6401
    12
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6401
    13
        <default/>
eduardo@6401
    14
        <onCreateDefault/>
eduardo@6401
    15
      </column>
eduardo@6401
    16
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
eduardo@6401
    17
        <default><![CDATA[SYSDATE]]></default>
eduardo@6401
    18
        <onCreateDefault/>
eduardo@6401
    19
      </column>
eduardo@6401
    20
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6401
    21
        <default/>
eduardo@6401
    22
        <onCreateDefault/>
eduardo@6401
    23
      </column>
eduardo@6401
    24
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
eduardo@6401
    25
        <default><![CDATA[SYSDATE]]></default>
eduardo@6401
    26
        <onCreateDefault/>
eduardo@6401
    27
      </column>
eduardo@6401
    28
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6401
    29
        <default/>
eduardo@6401
    30
        <onCreateDefault/>
eduardo@6401
    31
      </column>
eduardo@6401
    32
      <column name="FIN_PAYMENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6401
    33
        <default/>
eduardo@6401
    34
        <onCreateDefault/>
eduardo@6401
    35
      </column>
eduardo@6401
    36
      <column name="AMOUNT" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
eduardo@6401
    37
        <default><![CDATA[0]]></default>
eduardo@6401
    38
        <onCreateDefault/>
eduardo@6401
    39
      </column>
eduardo@6401
    40
      <column name="REFUND" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
eduardo@6401
    41
        <default><![CDATA[Y]]></default>
eduardo@6401
    42
        <onCreateDefault/>
eduardo@6401
    43
      </column>
eduardo@6401
    44
      <column name="ISACTIVE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
eduardo@6401
    45
        <default><![CDATA[Y]]></default>
eduardo@6401
    46
        <onCreateDefault/>
eduardo@6401
    47
      </column>
eduardo@6401
    48
      <column name="WRITEOFFAMT" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
eduardo@6401
    49
        <default/>
eduardo@6401
    50
        <onCreateDefault/>
eduardo@6401
    51
      </column>
eduardo@6401
    52
      <column name="C_GLITEM_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6401
    53
        <default/>
eduardo@6401
    54
        <onCreateDefault/>
eduardo@6401
    55
      </column>
eduardo@6834
    56
      <column name="ISPREPAYMENT" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
eduardo@6834
    57
        <default><![CDATA[N]]></default>
eduardo@6834
    58
        <onCreateDefault/>
eduardo@6834
    59
      </column>
eduardo@6401
    60
      <foreign-key foreignTable="AD_CLIENT" name="FIN_AD_CLIENT_DETAIL">
eduardo@6401
    61
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
eduardo@6401
    62
      </foreign-key>
eduardo@6401
    63
      <foreign-key foreignTable="AD_ORG" name="FIN_AD_ORG_DETAIL">
eduardo@6401
    64
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
eduardo@6401
    65
      </foreign-key>
eduardo@6401
    66
      <foreign-key foreignTable="FIN_PAYMENT" name="FIN_PAYMENT_DETAIL">
eduardo@6401
    67
        <reference local="FIN_PAYMENT_ID" foreign="FIN_PAYMENT_ID"/>
eduardo@6401
    68
      </foreign-key>
eduardo@6401
    69
      <foreign-key foreignTable="C_GLITEM" name="FIN_PAYMENT_DETAIL_C_GLITEM">
eduardo@6401
    70
        <reference local="C_GLITEM_ID" foreign="C_GLITEM_ID"/>
eduardo@6401
    71
      </foreign-key>
eduardo@6401
    72
    </table>
eduardo@6401
    73
  </database>