src-db/database/model/tables/MA_PL_EMPLOYEE.xml
author rafaeldemiguel <rdm@openbravo.com>
Wed, 07 Sep 2011 17:48:24 +0200
changeset 14976 2f3ad23a98da
parent 8505 a2bb7e6fb443
child 14983 fcf3ccf492f3
permissions -rw-r--r--
[Production-Development] New Window ProductionRun
carlos@0
     1
<?xml version="1.0"?>
adrian@94
     2
  <database name="TABLE MA_PL_EMPLOYEE">
carlos@0
     3
    <table name="MA_PL_EMPLOYEE" primaryKey="MA_PL_EMPLOYEE_KEY">
juanpablo@1605
     4
      <column name="MA_PL_EMPLOYEE_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
     5
        <default/>
antonio@735
     6
        <onCreateDefault/>
antonio@735
     7
      </column>
antonio@735
     8
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
     9
        <default><![CDATA[SYSDATE]]></default>
antonio@735
    10
        <onCreateDefault/>
antonio@735
    11
      </column>
juanpablo@1605
    12
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    13
        <default/>
antonio@735
    14
        <onCreateDefault/>
antonio@735
    15
      </column>
antonio@735
    16
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    17
        <default><![CDATA[SYSDATE]]></default>
antonio@735
    18
        <onCreateDefault/>
antonio@735
    19
      </column>
juanpablo@1605
    20
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    21
        <default/>
antonio@735
    22
        <onCreateDefault/>
antonio@735
    23
      </column>
juanpablo@1605
    24
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    25
        <default/>
antonio@735
    26
        <onCreateDefault/>
antonio@735
    27
      </column>
juanpablo@1605
    28
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    29
        <default/>
antonio@735
    30
        <onCreateDefault/>
antonio@735
    31
      </column>
juanpablo@1605
    32
      <column name="M_PRODUCTIONPLAN_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    33
        <default/>
antonio@735
    34
        <onCreateDefault/>
antonio@735
    35
      </column>
juanpablo@1605
    36
      <column name="C_SALARY_CATEGORY_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    37
        <default/>
antonio@735
    38
        <onCreateDefault/>
antonio@735
    39
      </column>
antonio@735
    40
      <column name="QUANTITY" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
antonio@735
    41
        <default/>
antonio@735
    42
        <onCreateDefault/>
antonio@735
    43
      </column>
antonio@735
    44
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    45
        <default><![CDATA[Y]]></default>
antonio@735
    46
        <onCreateDefault/>
antonio@735
    47
      </column>
antonio@735
    48
      <column name="CALCCOST" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
antonio@735
    49
        <default/>
antonio@735
    50
        <onCreateDefault/>
antonio@735
    51
      </column>
rdm@14976
    52
      <column name="REALQUANTITY" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
rdm@14976
    53
        <default><![CDATA[0]]></default>
rdm@14976
    54
        <onCreateDefault><![CDATA[0]]></onCreateDefault>
rdm@14976
    55
      </column>
rdm@14976
    56
      <column name="C_BPARTNER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
rdm@14976
    57
        <default/>
rdm@14976
    58
        <onCreateDefault/>
rdm@14976
    59
      </column>
asier@5551
    60
      <foreign-key foreignTable="AD_CLIENT" name="MA_PL_EMPLOYEE_AD_CLIENT">
carlos@0
    61
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
carlos@0
    62
      </foreign-key>
asier@5551
    63
      <foreign-key foreignTable="AD_ORG" name="MA_PL_EMPLOYEE_AD_ORG">
carlos@0
    64
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
carlos@0
    65
      </foreign-key>
rdm@14976
    66
      <foreign-key foreignTable="C_BPARTNER" name="MA_PL_EMPLOYEE_C_BPARTNER">
rdm@14976
    67
        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
rdm@14976
    68
      </foreign-key>
asier@5551
    69
      <foreign-key foreignTable="C_SALARY_CATEGORY" name="MA_PL_EMPLOYEE_C_SALARY_CATEGO">
carlos@0
    70
        <reference local="C_SALARY_CATEGORY_ID" foreign="C_SALARY_CATEGORY_ID"/>
carlos@0
    71
      </foreign-key>
asier@5551
    72
      <foreign-key foreignTable="M_PRODUCTIONPLAN" name="MA_PL_EMPLOYEE_M_PRODUCTIONPLA">
carlos@0
    73
        <reference local="M_PRODUCTIONPLAN_ID" foreign="M_PRODUCTIONPLAN_ID"/>
carlos@0
    74
      </foreign-key>
stefan@8505
    75
      <check name="MA_PL_EMPLOYEE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
carlos@0
    76
    </table>
adrian@94
    77
  </database>