src-db/database/model/tables/AD_MONTH_TRL.xml
author Ainhoa Pagola <ainhoa.pagola@openbravo.com>
Tue, 25 Nov 2008 17:58:53 +0000
changeset 2108 5bfab64628d8
child 5551 7a30caea85b5
permissions -rw-r--r--
Fixes bug 0001776. AD_MONTH_TRL table created and AD_LANGUAGE_CREATE modified.
ainhoa@2108
     1
<?xml version="1.0"?>
ainhoa@2108
     2
  <database name="TABLE AD_MONTH_TRL">
ainhoa@2108
     3
    <table name="AD_MONTH_TRL" primaryKey="AD_MONTH_TRL_KEY">
ainhoa@2108
     4
      <column name="AD_MONTH_TRL_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
ainhoa@2108
     5
        <default/>
ainhoa@2108
     6
        <onCreateDefault><![CDATA[get_uuid()]]></onCreateDefault>
ainhoa@2108
     7
      </column>
ainhoa@2108
     8
      <column name="AD_MONTH_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
ainhoa@2108
     9
        <default/>
ainhoa@2108
    10
        <onCreateDefault/>
ainhoa@2108
    11
      </column>
ainhoa@2108
    12
      <column name="AD_LANGUAGE" primaryKey="false" required="true" type="VARCHAR" size="6" autoIncrement="false">
ainhoa@2108
    13
        <default/>
ainhoa@2108
    14
        <onCreateDefault/>
ainhoa@2108
    15
      </column>
ainhoa@2108
    16
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
ainhoa@2108
    17
        <default/>
ainhoa@2108
    18
        <onCreateDefault/>
ainhoa@2108
    19
      </column>
ainhoa@2108
    20
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
ainhoa@2108
    21
        <default/>
ainhoa@2108
    22
        <onCreateDefault/>
ainhoa@2108
    23
      </column>
ainhoa@2108
    24
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
ainhoa@2108
    25
        <default><![CDATA[Y]]></default>
ainhoa@2108
    26
        <onCreateDefault/>
ainhoa@2108
    27
      </column>
ainhoa@2108
    28
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
ainhoa@2108
    29
        <default><![CDATA[SYSDATE]]></default>
ainhoa@2108
    30
        <onCreateDefault/>
ainhoa@2108
    31
      </column>
ainhoa@2108
    32
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
ainhoa@2108
    33
        <default/>
ainhoa@2108
    34
        <onCreateDefault/>
ainhoa@2108
    35
      </column>
ainhoa@2108
    36
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
ainhoa@2108
    37
        <default><![CDATA[SYSDATE]]></default>
ainhoa@2108
    38
        <onCreateDefault/>
ainhoa@2108
    39
      </column>
ainhoa@2108
    40
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
ainhoa@2108
    41
        <default/>
ainhoa@2108
    42
        <onCreateDefault/>
ainhoa@2108
    43
      </column>
ainhoa@2108
    44
      <column name="NAME" primaryKey="false" required="true" type="NVARCHAR" size="60" autoIncrement="false">
ainhoa@2108
    45
        <default/>
ainhoa@2108
    46
        <onCreateDefault/>
ainhoa@2108
    47
      </column>
ainhoa@2108
    48
      <column name="ISTRANSLATED" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
ainhoa@2108
    49
        <default><![CDATA[N]]></default>
ainhoa@2108
    50
        <onCreateDefault/>
ainhoa@2108
    51
      </column>
ainhoa@2108
    52
      <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_ADMONTHTRL">
ainhoa@2108
    53
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
ainhoa@2108
    54
      </foreign-key>
ainhoa@2108
    55
      <foreign-key foreignTable="AD_LANGUAGE" name="ADLANGUAGE_ADMONTHTRL">
ainhoa@2108
    56
        <reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
ainhoa@2108
    57
      </foreign-key>
ainhoa@2108
    58
      <foreign-key foreignTable="AD_MONTH" name="ADMONTH_ADMONTHTRL" onDelete="cascade">
ainhoa@2108
    59
        <reference local="AD_MONTH_ID" foreign="AD_MONTH_ID"/>
ainhoa@2108
    60
      </foreign-key>
ainhoa@2108
    61
      <foreign-key foreignTable="AD_ORG" name="ADORG_ADMONTHTRL">
ainhoa@2108
    62
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
ainhoa@2108
    63
      </foreign-key>
ainhoa@2108
    64
      <unique name="ADMONTHTRL_ADMONTHI_UN">
ainhoa@2108
    65
        <unique-column name="AD_MONTH_ID"/>
ainhoa@2108
    66
        <unique-column name="AD_LANGUAGE"/>
ainhoa@2108
    67
      </unique>
ainhoa@2108
    68
      <check name="ADMONTHTRL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
ainhoa@2108
    69
      <check name="ADMONTHTRL_ISTRANSLATED_CHECK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
ainhoa@2108
    70
    </table>
ainhoa@2108
    71
  </database>