src-db/database/model/tables/AD_WINDOW.xml
author Salvador Zapata <salvador.zapata@openbravo.com>
Thu, 07 Oct 2010 16:32:29 +0200
changeset 8504 802eae4a434d
parent 5551 7a30caea85b5
child 8505 a2bb7e6fb443
permissions -rw-r--r--
Fixed bug 14514 In GeneralAccoutingReportPDF.fo there are some strings impossible to translate
juanpablo@1354
     1
<?xml version="1.0"?>
juanpablo@1354
     2
  <database name="TABLE AD_WINDOW">
juanpablo@1354
     3
    <table name="AD_WINDOW" primaryKey="AD_WINDOW_KEY">
juanpablo@1605
     4
      <column name="AD_WINDOW_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
juanpablo@1354
     5
        <default/>
juanpablo@1354
     6
        <onCreateDefault/>
juanpablo@1354
     7
      </column>
juanpablo@1605
     8
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
juanpablo@1354
     9
        <default/>
juanpablo@1354
    10
        <onCreateDefault/>
juanpablo@1354
    11
      </column>
juanpablo@1605
    12
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
juanpablo@1354
    13
        <default/>
juanpablo@1354
    14
        <onCreateDefault/>
juanpablo@1354
    15
      </column>
juanpablo@1354
    16
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
juanpablo@1354
    17
        <default><![CDATA[Y]]></default>
juanpablo@1354
    18
        <onCreateDefault/>
juanpablo@1354
    19
      </column>
juanpablo@1354
    20
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
juanpablo@1354
    21
        <default><![CDATA[SYSDATE]]></default>
juanpablo@1354
    22
        <onCreateDefault/>
juanpablo@1354
    23
      </column>
juanpablo@1605
    24
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
juanpablo@1354
    25
        <default/>
juanpablo@1354
    26
        <onCreateDefault/>
juanpablo@1354
    27
      </column>
juanpablo@1354
    28
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
juanpablo@1354
    29
        <default><![CDATA[SYSDATE]]></default>
juanpablo@1354
    30
        <onCreateDefault/>
juanpablo@1354
    31
      </column>
juanpablo@1605
    32
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
juanpablo@1354
    33
        <default/>
juanpablo@1354
    34
        <onCreateDefault/>
juanpablo@1354
    35
      </column>
juanpablo@1354
    36
      <column name="NAME" primaryKey="false" required="true" type="NVARCHAR" size="60" autoIncrement="false">
juanpablo@1354
    37
        <default/>
juanpablo@1354
    38
        <onCreateDefault/>
juanpablo@1354
    39
      </column>
juanpablo@1354
    40
      <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
juanpablo@1354
    41
        <default/>
juanpablo@1354
    42
        <onCreateDefault/>
juanpablo@1354
    43
      </column>
juanpablo@1354
    44
      <column name="HELP" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false">
juanpablo@1354
    45
        <default/>
juanpablo@1354
    46
        <onCreateDefault/>
juanpablo@1354
    47
      </column>
asier@2586
    48
      <column name="WINDOWTYPE" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
juanpablo@1354
    49
        <default/>
juanpablo@1354
    50
        <onCreateDefault/>
juanpablo@1354
    51
      </column>
juanpablo@1354
    52
      <column name="ISSOTRX" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
juanpablo@1354
    53
        <default><![CDATA[Y]]></default>
juanpablo@1354
    54
        <onCreateDefault/>
juanpablo@1354
    55
      </column>
juanpablo@1354
    56
      <column name="PROCESSING" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
juanpablo@1354
    57
        <default/>
juanpablo@1354
    58
        <onCreateDefault/>
juanpablo@1354
    59
      </column>
juanpablo@1605
    60
      <column name="AD_IMAGE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
juanpablo@1354
    61
        <default/>
juanpablo@1354
    62
        <onCreateDefault/>
juanpablo@1354
    63
      </column>
juanpablo@1354
    64
      <column name="ISDEFAULT" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
juanpablo@1354
    65
        <default><![CDATA[N]]></default>
juanpablo@1354
    66
        <onCreateDefault/>
juanpablo@1354
    67
      </column>
asier@1644
    68
      <column name="AD_MODULE_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
asier@1644
    69
        <default><![CDATA[0]]></default>
antonio@2323
    70
        <onCreateDefault><![CDATA[SELECT AD_MODULE_ID FROM AD_MODULE WHERE AD_MODULE_ID<>'0' AND TYPE='M']]></onCreateDefault>
asier@1644
    71
      </column>
asier@5551
    72
      <foreign-key foreignTable="AD_CLIENT" name="AD_WINDOW_AD_CLIENT">
asier@5551
    73
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
asier@5551
    74
      </foreign-key>
asier@5551
    75
      <foreign-key foreignTable="AD_IMAGE" name="AD_WINDOW_AD_IMAGE">
juanpablo@1354
    76
        <reference local="AD_IMAGE_ID" foreign="AD_IMAGE_ID"/>
juanpablo@1354
    77
      </foreign-key>
asier@5551
    78
      <foreign-key foreignTable="AD_MODULE" name="AD_WINDOW_AD_MODULE">
asier@1644
    79
        <reference local="AD_MODULE_ID" foreign="AD_MODULE_ID"/>
asier@1644
    80
      </foreign-key>
asier@5551
    81
      <foreign-key foreignTable="AD_ORG" name="AD_WINDOW_AD_ORG">
juanpablo@1354
    82
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
juanpablo@1354
    83
      </foreign-key>
juanpablo@1354
    84
      <unique name="AD_WINDOW_NAME">
juanpablo@1354
    85
        <unique-column name="AD_CLIENT_ID"/>
juanpablo@1354
    86
        <unique-column name="NAME"/>
asier@5402
    87
        <unique-column name="AD_MODULE_ID"/>
juanpablo@1354
    88
      </unique>
juanpablo@1354
    89
    </table>
juanpablo@1354
    90
  </database>