src-db/database/model/tables/C_PAYSCHEDULE.xml
changeset 799 fef2c5e2feb7
parent 798 4994e5a604bb
child 800 1ad8094b366f
equal deleted inserted replaced
798:4994e5a604bb 799:fef2c5e2feb7
     1 <?xml version="1.0"?>
       
     2   <database name="TABLE C_PAYSCHEDULE">
       
     3     <table name="C_PAYSCHEDULE" primaryKey="C_PAYSCHEDULE_KEY">
       
     4       <column name="C_PAYSCHEDULE_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
     5         <default/>
       
     6         <onCreateDefault/>
       
     7       </column>
       
     8       <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
     9         <default/>
       
    10         <onCreateDefault/>
       
    11       </column>
       
    12       <column name="AD_ORG_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
    13         <default/>
       
    14         <onCreateDefault/>
       
    15       </column>
       
    16       <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
    17         <default><![CDATA[Y]]></default>
       
    18         <onCreateDefault/>
       
    19       </column>
       
    20       <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
       
    21         <default><![CDATA[SYSDATE]]></default>
       
    22         <onCreateDefault/>
       
    23       </column>
       
    24       <column name="CREATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
    25         <default/>
       
    26         <onCreateDefault/>
       
    27       </column>
       
    28       <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
       
    29         <default><![CDATA[SYSDATE]]></default>
       
    30         <onCreateDefault/>
       
    31       </column>
       
    32       <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
    33         <default/>
       
    34         <onCreateDefault/>
       
    35       </column>
       
    36       <column name="C_PAYMENTTERM_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
    37         <default/>
       
    38         <onCreateDefault/>
       
    39       </column>
       
    40       <column name="PERCENTAGE" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
       
    41         <default/>
       
    42         <onCreateDefault/>
       
    43       </column>
       
    44       <column name="NETDAYS" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
    45         <default/>
       
    46         <onCreateDefault/>
       
    47       </column>
       
    48       <column name="NETDAY" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
       
    49         <default/>
       
    50         <onCreateDefault/>
       
    51       </column>
       
    52       <column name="DISCOUNTDAYS" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
    53         <default/>
       
    54         <onCreateDefault/>
       
    55       </column>
       
    56       <column name="DISCOUNT" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
       
    57         <default/>
       
    58         <onCreateDefault/>
       
    59       </column>
       
    60       <column name="ISVALID" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
    61         <default><![CDATA[N]]></default>
       
    62         <onCreateDefault/>
       
    63       </column>
       
    64       <column name="GRACEDAYS" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
    65         <default/>
       
    66         <onCreateDefault/>
       
    67       </column>
       
    68       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_CPAYSCHEDULE">
       
    69         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       
    70       </foreign-key>
       
    71       <foreign-key foreignTable="AD_ORG" name="ADORG_CPAYSCHEDULE">
       
    72         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       
    73       </foreign-key>
       
    74       <foreign-key foreignTable="C_PAYMENTTERM" name="CPAYMENTTERM_CPAYSCHEDULE">
       
    75         <reference local="C_PAYMENTTERM_ID" foreign="C_PAYMENTTERM_ID"/>
       
    76       </foreign-key>
       
    77       <check name="C_PAYSCHEDULE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
       
    78       <check name="C_PAYSCHEDULE_ISVALID_CHECK"><![CDATA[ISVALID IN ('Y', 'N')]]></check>
       
    79     </table>
       
    80   </database>