Issue 14514: fix wrong changeset 802eae4a434d
authorStefan Hühner <stefan.huehner@openbravo.com>
Thu, 07 Oct 2010 16:53:30 +0200
changeset 8505 a2bb7e6fb443
parent 8504 802eae4a434d
child 8506 5f7bd7f27cda
child 8650 d9a0f5dc3cf0
child 8804 f476e192559f
Issue 14514: fix wrong changeset 802eae4a434d
- That changeset by accident removed all existing check constraint
in addition to the wanted removal of a few lines in sourcedata of
AD_TEXTINTERFACES.
- This commit reverts the unwatend parts, readding all the missing
constrainst and only keep the removal in sourcedata/AD_TEXTINTERFACES.xml
src-db/database/model/tables/AD_ACCTPROCESS.xml
src-db/database/model/tables/AD_ATTACHMENT.xml
src-db/database/model/tables/AD_CALLOUT.xml
src-db/database/model/tables/AD_CLIENT.xml
src-db/database/model/tables/AD_CLIENTINFO.xml
src-db/database/model/tables/AD_CLIENTMODULE.xml
src-db/database/model/tables/AD_COLUMN.xml
src-db/database/model/tables/AD_CREATEFACT_TEMPLATE.xml
src-db/database/model/tables/AD_DATASET.xml
src-db/database/model/tables/AD_DATASET_COLUMN.xml
src-db/database/model/tables/AD_DATASET_TABLE.xml
src-db/database/model/tables/AD_ELEMENT.xml
src-db/database/model/tables/AD_ELEMENT_TRL.xml
src-db/database/model/tables/AD_EP_PROCEDURES.xml
src-db/database/model/tables/AD_FIELD.xml
src-db/database/model/tables/AD_FIELDGROUP.xml
src-db/database/model/tables/AD_FIELDGROUP_TRL.xml
src-db/database/model/tables/AD_FIELD_TRL.xml
src-db/database/model/tables/AD_FORM.xml
src-db/database/model/tables/AD_FORM_ACCESS.xml
src-db/database/model/tables/AD_FORM_TRL.xml
src-db/database/model/tables/AD_IMAGE.xml
src-db/database/model/tables/AD_IMPFORMAT.xml
src-db/database/model/tables/AD_IMPFORMAT_ROW.xml
src-db/database/model/tables/AD_LANGUAGE.xml
src-db/database/model/tables/AD_MENU.xml
src-db/database/model/tables/AD_MENU_TRL.xml
src-db/database/model/tables/AD_MESSAGE.xml
src-db/database/model/tables/AD_MESSAGE_TRL.xml
src-db/database/model/tables/AD_MODEL_OBJECT.xml
src-db/database/model/tables/AD_MODEL_OBJECT_MAPPING.xml
src-db/database/model/tables/AD_MODEL_OBJECT_PARA.xml
src-db/database/model/tables/AD_MODULE.xml
src-db/database/model/tables/AD_MODULE_DBPREFIX.xml
src-db/database/model/tables/AD_MODULE_DBPREFIX_INSTALL.xml
src-db/database/model/tables/AD_MODULE_DEPENDENCY.xml
src-db/database/model/tables/AD_MODULE_DEPENDENCY_INST.xml
src-db/database/model/tables/AD_MODULE_INSTALL.xml
src-db/database/model/tables/AD_MODULE_TRL.xml
src-db/database/model/tables/AD_MONTH_TRL.xml
src-db/database/model/tables/AD_NOTE.xml
src-db/database/model/tables/AD_ORG.xml
src-db/database/model/tables/AD_ORGINFO.xml
src-db/database/model/tables/AD_ORGMODULE.xml
src-db/database/model/tables/AD_ORGTYPE.xml
src-db/database/model/tables/AD_ORG_ACCTSCHEMA.xml
src-db/database/model/tables/AD_PACKAGE.xml
src-db/database/model/tables/AD_PINSTANCE.xml
src-db/database/model/tables/AD_PREFERENCE.xml
src-db/database/model/tables/AD_PROCESS.xml
src-db/database/model/tables/AD_PROCESS_ACCESS.xml
src-db/database/model/tables/AD_PROCESS_PARA.xml
src-db/database/model/tables/AD_PROCESS_PARA_TRL.xml
src-db/database/model/tables/AD_PROCESS_SCHEDULING.xml
src-db/database/model/tables/AD_PROCESS_TRL.xml
src-db/database/model/tables/AD_PROPERTY_CONFIGURATION.xml
src-db/database/model/tables/AD_REFERENCE.xml
src-db/database/model/tables/AD_REFERENCE_TRL.xml
src-db/database/model/tables/AD_REF_DATA_LOADED.xml
src-db/database/model/tables/AD_REF_LIST.xml
src-db/database/model/tables/AD_REF_LIST_TRL.xml
src-db/database/model/tables/AD_REF_SEARCH.xml
src-db/database/model/tables/AD_REF_SEARCH_COLUMN.xml
src-db/database/model/tables/AD_REF_TABLE.xml
src-db/database/model/tables/AD_ROLE.xml
src-db/database/model/tables/AD_ROLE_ORGACCESS.xml
src-db/database/model/tables/AD_SEQUENCE.xml
src-db/database/model/tables/AD_SESSION.xml
src-db/database/model/tables/AD_SESSION_STATUS.xml
src-db/database/model/tables/AD_SYSTEM.xml
src-db/database/model/tables/AD_SYSTEM_INFO.xml
src-db/database/model/tables/AD_TAB.xml
src-db/database/model/tables/AD_TABLE.xml
src-db/database/model/tables/AD_TAB_TRL.xml
src-db/database/model/tables/AD_TASK.xml
src-db/database/model/tables/AD_TASK_ACCESS.xml
src-db/database/model/tables/AD_TASK_TRL.xml
src-db/database/model/tables/AD_TEST.xml
src-db/database/model/tables/AD_TEXTINTERFACES.xml
src-db/database/model/tables/AD_TEXTINTERFACES_TRL.xml
src-db/database/model/tables/AD_TREE.xml
src-db/database/model/tables/AD_TREEBAR.xml
src-db/database/model/tables/AD_TREENODE.xml
src-db/database/model/tables/AD_TREENODEBP.xml
src-db/database/model/tables/AD_TREENODEMM.xml
src-db/database/model/tables/AD_TREENODEPR.xml
src-db/database/model/tables/AD_USER.xml
src-db/database/model/tables/AD_USER_ROLES.xml
src-db/database/model/tables/AD_VAL_RULE.xml
src-db/database/model/tables/AD_WF_NODE.xml
src-db/database/model/tables/AD_WF_NODENEXT.xml
src-db/database/model/tables/AD_WF_NODE_TRL.xml
src-db/database/model/tables/AD_WINDOW.xml
src-db/database/model/tables/AD_WINDOW_ACCESS.xml
src-db/database/model/tables/AD_WINDOW_TRL.xml
src-db/database/model/tables/AD_WORKFLOW.xml
src-db/database/model/tables/AD_WORKFLOW_ACCESS.xml
src-db/database/model/tables/AD_WORKFLOW_TRL.xml
src-db/database/model/tables/AT_COMMAND.xml
src-db/database/model/tables/AT_COMMAND_TRL.xml
src-db/database/model/tables/AT_LINE.xml
src-db/database/model/tables/AT_ROLLOGIN.xml
src-db/database/model/tables/AT_TEST.xml
src-db/database/model/tables/AT_TESTDOCUMENT.xml
src-db/database/model/tables/AT_TESTDOCUMENTLINE.xml
src-db/database/model/tables/A_AMORTIZATION.xml
src-db/database/model/tables/A_AMORTIZATIONLINE.xml
src-db/database/model/tables/A_ASSET.xml
src-db/database/model/tables/A_ASSET_ACCT.xml
src-db/database/model/tables/A_ASSET_GROUP.xml
src-db/database/model/tables/A_ASSET_GROUP_ACCT.xml
src-db/database/model/tables/C_ACCTSCHEMA.xml
src-db/database/model/tables/C_ACCTSCHEMA_DEFAULT.xml
src-db/database/model/tables/C_ACCTSCHEMA_ELEMENT.xml
src-db/database/model/tables/C_ACCTSCHEMA_GL.xml
src-db/database/model/tables/C_ACCTSCHEMA_PROCESS.xml
src-db/database/model/tables/C_ACCTSCHEMA_TABLE.xml
src-db/database/model/tables/C_ACCTSCHEMA_TABLE_DOCTYPE.xml
src-db/database/model/tables/C_ACCT_RPT.xml
src-db/database/model/tables/C_ACTIVITY.xml
src-db/database/model/tables/C_BANK.xml
src-db/database/model/tables/C_BANKACCOUNT.xml
src-db/database/model/tables/C_BANKACCOUNT_ACCT.xml
src-db/database/model/tables/C_BANKSTATEMENT.xml
src-db/database/model/tables/C_BANKSTATEMENTLINE.xml
src-db/database/model/tables/C_BPARTNER.xml
src-db/database/model/tables/C_BPARTNER_DISCOUNT.xml
src-db/database/model/tables/C_BPARTNER_LOCATION.xml
src-db/database/model/tables/C_BP_BANKACCOUNT.xml
src-db/database/model/tables/C_BP_CUSTOMER_ACCT.xml
src-db/database/model/tables/C_BP_EMPLOYEE_ACCT.xml
src-db/database/model/tables/C_BP_GROUP.xml
src-db/database/model/tables/C_BP_GROUP_ACCT.xml
src-db/database/model/tables/C_BP_VENDOR_ACCT.xml
src-db/database/model/tables/C_BP_WITHHOLDING.xml
src-db/database/model/tables/C_BUDGET.xml
src-db/database/model/tables/C_BUDGETLINE.xml
src-db/database/model/tables/C_CALENDAR.xml
src-db/database/model/tables/C_CAMPAIGN.xml
src-db/database/model/tables/C_CASH.xml
src-db/database/model/tables/C_CASHBOOK.xml
src-db/database/model/tables/C_CASHBOOK_ACCT.xml
src-db/database/model/tables/C_CASHLINE.xml
src-db/database/model/tables/C_CHANNEL.xml
src-db/database/model/tables/C_CHARGE.xml
src-db/database/model/tables/C_CHARGE_ACCT.xml
src-db/database/model/tables/C_CITY.xml
src-db/database/model/tables/C_COMMISSION.xml
src-db/database/model/tables/C_COMMISSIONAMT.xml
src-db/database/model/tables/C_COMMISSIONDETAIL.xml
src-db/database/model/tables/C_COMMISSIONLINE.xml
src-db/database/model/tables/C_COMMISSIONRUN.xml
src-db/database/model/tables/C_CONVERSION_RATE.xml
src-db/database/model/tables/C_COUNTRY.xml
src-db/database/model/tables/C_COUNTRY_TRL.xml
src-db/database/model/tables/C_CURRENCY.xml
src-db/database/model/tables/C_CURRENCY_TRL.xml
src-db/database/model/tables/C_DEBT_PAYMENT.xml
src-db/database/model/tables/C_DEBT_PAYMENT_BALANCING.xml
src-db/database/model/tables/C_DEBT_PAYMENT_BAL_REPLACE.xml
src-db/database/model/tables/C_DOCTYPE.xml
src-db/database/model/tables/C_DOCTYPE_TRL.xml
src-db/database/model/tables/C_ELEMENT.xml
src-db/database/model/tables/C_ELEMENTVALUE.xml
src-db/database/model/tables/C_ELEMENTVALUE_OPERAND.xml
src-db/database/model/tables/C_ELEMENTVALUE_TRL.xml
src-db/database/model/tables/C_EXTERNALPOS_CATEGORY.xml
src-db/database/model/tables/C_GLITEM.xml
src-db/database/model/tables/C_GLITEM_ACCT.xml
src-db/database/model/tables/C_GREETING.xml
src-db/database/model/tables/C_GREETING_TRL.xml
src-db/database/model/tables/C_INCOTERMS.xml
src-db/database/model/tables/C_INTERORG_ACCT.xml
src-db/database/model/tables/C_INVOICE.xml
src-db/database/model/tables/C_INVOICELINE.xml
src-db/database/model/tables/C_INVOICELINETAX.xml
src-db/database/model/tables/C_INVOICESCHEDULE.xml
src-db/database/model/tables/C_INVOICETAX.xml
src-db/database/model/tables/C_LOCATION.xml
src-db/database/model/tables/C_NONBUSINESSDAY.xml
src-db/database/model/tables/C_ORDER.xml
src-db/database/model/tables/C_ORDERLINE.xml
src-db/database/model/tables/C_ORDERLINETAX.xml
src-db/database/model/tables/C_ORDERTAX.xml
src-db/database/model/tables/C_PAYMENTTERM.xml
src-db/database/model/tables/C_PAYMENTTERMLINE.xml
src-db/database/model/tables/C_PAYMENTTERM_TRL.xml
src-db/database/model/tables/C_PERIOD.xml
src-db/database/model/tables/C_PERIODCONTROL.xml
src-db/database/model/tables/C_PERIODCONTROL_LOG.xml
src-db/database/model/tables/C_POC_DOCTYPE_TEMPLATE.xml
src-db/database/model/tables/C_PROJECT.xml
src-db/database/model/tables/C_PROJECTISSUE.xml
src-db/database/model/tables/C_PROJECTLINE.xml
src-db/database/model/tables/C_PROJECTPROPOSAL.xml
src-db/database/model/tables/C_PROJECTPROPOSALLINE.xml
src-db/database/model/tables/C_PROJECTPROPOSALTASK.xml
src-db/database/model/tables/C_PROJECT_ACCT.xml
src-db/database/model/tables/C_PROJECT_VENDOR.xml
src-db/database/model/tables/C_PROMISSORYFORMAT.xml
src-db/database/model/tables/C_REGION.xml
src-db/database/model/tables/C_REMITTANCE.xml
src-db/database/model/tables/C_REMITTANCE_TYPE.xml
src-db/database/model/tables/C_REVENUERECOGNITION.xml
src-db/database/model/tables/C_REVENUERECOGNITION_PLAN.xml
src-db/database/model/tables/C_REVENUERECOGNITION_RUN.xml
src-db/database/model/tables/C_SALARY_CATEGORY.xml
src-db/database/model/tables/C_SALESREGION.xml
src-db/database/model/tables/C_SERVICELEVEL.xml
src-db/database/model/tables/C_SERVICELEVELLINE.xml
src-db/database/model/tables/C_SETTLEMENT.xml
src-db/database/model/tables/C_TAX.xml
src-db/database/model/tables/C_TAXCATEGORY.xml
src-db/database/model/tables/C_TAXCATEGORY_TRL.xml
src-db/database/model/tables/C_TAX_ACCT.xml
src-db/database/model/tables/C_TAX_REPORT.xml
src-db/database/model/tables/C_TAX_TRL.xml
src-db/database/model/tables/C_UOM.xml
src-db/database/model/tables/C_UOM_CONVERSION.xml
src-db/database/model/tables/C_UOM_TRL.xml
src-db/database/model/tables/C_VALIDCOMBINATION.xml
src-db/database/model/tables/C_WITHHOLDING.xml
src-db/database/model/tables/C_WITHHOLDING_ACCT.xml
src-db/database/model/tables/C_YEAR.xml
src-db/database/model/tables/FACT_ACCT.xml
src-db/database/model/tables/FIN_BANKFILE_FORMAT.xml
src-db/database/model/tables/FIN_BANKSTATEMENT.xml
src-db/database/model/tables/FIN_BANKSTATEMENTLINE.xml
src-db/database/model/tables/FIN_FINACC_PAYMENTMETHOD.xml
src-db/database/model/tables/FIN_FINANCIAL_ACCOUNT.xml
src-db/database/model/tables/FIN_FINANCIAL_ACCOUNT_ACCT.xml
src-db/database/model/tables/FIN_MATCHING_ALGORITHM.xml
src-db/database/model/tables/FIN_PAYMENTMETHOD.xml
src-db/database/model/tables/FIN_PAYMENT_RUN.xml
src-db/database/model/tables/FIN_PAYMENT_RUN_PARA.xml
src-db/database/model/tables/FIN_PAYMENT_RUN_PAYMENT.xml
src-db/database/model/tables/FIN_PAY_EXEC_PROCESS.xml
src-db/database/model/tables/FIN_PAY_EXEC_PROCESS_PARA.xml
src-db/database/model/tables/FIN_RECONCILIATION.xml
src-db/database/model/tables/GL_CATEGORY.xml
src-db/database/model/tables/GL_JOURNAL.xml
src-db/database/model/tables/GL_JOURNALBATCH.xml
src-db/database/model/tables/GL_JOURNALLINE.xml
src-db/database/model/tables/I_BANKSTATEMENT.xml
src-db/database/model/tables/I_BPARTNER.xml
src-db/database/model/tables/I_BUDGETLINE.xml
src-db/database/model/tables/I_ELEMENTVALUE.xml
src-db/database/model/tables/I_GLJOURNAL.xml
src-db/database/model/tables/I_INVOICE.xml
src-db/database/model/tables/I_ORDER.xml
src-db/database/model/tables/I_PRODUCT.xml
src-db/database/model/tables/MA_CCP.xml
src-db/database/model/tables/MA_CCP_GROUP.xml
src-db/database/model/tables/MA_CCP_SHIFT.xml
src-db/database/model/tables/MA_COSTCENTER.xml
src-db/database/model/tables/MA_COSTCENTER_EMPLOYEE.xml
src-db/database/model/tables/MA_COSTCENTER_IC.xml
src-db/database/model/tables/MA_COSTCENTER_MACHINE.xml
src-db/database/model/tables/MA_COSTCENTER_VERSION.xml
src-db/database/model/tables/MA_GLOBALUSE.xml
src-db/database/model/tables/MA_INCIDENCE.xml
src-db/database/model/tables/MA_INDIRECT_COST.xml
src-db/database/model/tables/MA_INDIRECT_COST_VALUE.xml
src-db/database/model/tables/MA_MACHINE.xml
src-db/database/model/tables/MA_MACHINESTATION.xml
src-db/database/model/tables/MA_MACHINE_COST.xml
src-db/database/model/tables/MA_MACHINE_TYPE.xml
src-db/database/model/tables/MA_MAINTENANCE.xml
src-db/database/model/tables/MA_MAINT_OPERATION.xml
src-db/database/model/tables/MA_MAINT_PART.xml
src-db/database/model/tables/MA_MAINT_PERIODICITY.xml
src-db/database/model/tables/MA_MAINT_SCHEDULED.xml
src-db/database/model/tables/MA_MAINT_WORKER.xml
src-db/database/model/tables/MA_MEASURE_GROUP.xml
src-db/database/model/tables/MA_MEASURE_SHIFT.xml
src-db/database/model/tables/MA_MEASURE_TIME.xml
src-db/database/model/tables/MA_MEASURE_VALUES.xml
src-db/database/model/tables/MA_PC_CASE.xml
src-db/database/model/tables/MA_PC_TEST.xml
src-db/database/model/tables/MA_PC_VALUE.xml
src-db/database/model/tables/MA_PERIODIC_CONTROL.xml
src-db/database/model/tables/MA_PL_EMPLOYEE.xml
src-db/database/model/tables/MA_PL_IC.xml
src-db/database/model/tables/MA_PL_INVOICELINE.xml
src-db/database/model/tables/MA_PL_MACHINE.xml
src-db/database/model/tables/MA_PROCESS.xml
src-db/database/model/tables/MA_PROCESSPLAN.xml
src-db/database/model/tables/MA_PROCESSPLAN_VERSION.xml
src-db/database/model/tables/MA_SECTION.xml
src-db/database/model/tables/MA_SEQUENCE.xml
src-db/database/model/tables/MA_SEQUENCEPRODUCT.xml
src-db/database/model/tables/MA_SEQUENCE_EMPLOYEE.xml
src-db/database/model/tables/MA_SEQUENCE_IC.xml
src-db/database/model/tables/MA_SEQUENCE_MACHINE.xml
src-db/database/model/tables/MA_TOOLSET.xml
src-db/database/model/tables/MA_TOOLSETPROCESS.xml
src-db/database/model/tables/MA_TOOLSETUSED.xml
src-db/database/model/tables/MA_TOOLSET_TYPE.xml
src-db/database/model/tables/MA_WEEMPLOYEE.xml
src-db/database/model/tables/MA_WEINCIDENCE.xml
src-db/database/model/tables/MA_WORKREQUIREMENT.xml
src-db/database/model/tables/MA_WORKSTATION.xml
src-db/database/model/tables/MA_WRPHASE.xml
src-db/database/model/tables/MA_WRPHASEPRODUCT.xml
src-db/database/model/tables/MRP_PLANNER.xml
src-db/database/model/tables/MRP_PLANNINGMETHOD.xml
src-db/database/model/tables/MRP_PLANNINGMETHODLINE.xml
src-db/database/model/tables/MRP_RUN_PRODUCTION.xml
src-db/database/model/tables/MRP_RUN_PRODUCTIONLINE.xml
src-db/database/model/tables/MRP_RUN_PURCHASE.xml
src-db/database/model/tables/MRP_RUN_PURCHASELINE.xml
src-db/database/model/tables/MRP_SALESFORECAST.xml
src-db/database/model/tables/MRP_SALESFORECASTLINE.xml
src-db/database/model/tables/M_ATTRIBUTE.xml
src-db/database/model/tables/M_ATTRIBUTEINSTANCE.xml
src-db/database/model/tables/M_ATTRIBUTESET.xml
src-db/database/model/tables/M_ATTRIBUTESETINSTANCE.xml
src-db/database/model/tables/M_ATTRIBUTEUSE.xml
src-db/database/model/tables/M_ATTRIBUTEVALUE.xml
src-db/database/model/tables/M_DISCOUNTSCHEMA.xml
src-db/database/model/tables/M_DISCOUNTSCHEMALINE.xml
src-db/database/model/tables/M_INOUT.xml
src-db/database/model/tables/M_INOUTLINE.xml
src-db/database/model/tables/M_INTERNAL_CONSUMPTION.xml
src-db/database/model/tables/M_INTERNAL_CONSUMPTIONLINE.xml
src-db/database/model/tables/M_INVENTORY.xml
src-db/database/model/tables/M_INVENTORYLINE.xml
src-db/database/model/tables/M_LOCATOR.xml
src-db/database/model/tables/M_LOCATOR_TYPE.xml
src-db/database/model/tables/M_LOT.xml
src-db/database/model/tables/M_LOTCTL.xml
src-db/database/model/tables/M_MATCHINV.xml
src-db/database/model/tables/M_MATCHPO.xml
src-db/database/model/tables/M_MOVEMENT.xml
src-db/database/model/tables/M_MOVEMENTLINE.xml
src-db/database/model/tables/M_OFFER.xml
src-db/database/model/tables/M_OFFER_BPARTNER.xml
src-db/database/model/tables/M_OFFER_BP_GROUP.xml
src-db/database/model/tables/M_OFFER_PRODUCT.xml
src-db/database/model/tables/M_OFFER_PROD_CAT.xml
src-db/database/model/tables/M_PERPETUALINV.xml
src-db/database/model/tables/M_PRICELIST.xml
src-db/database/model/tables/M_PRICELIST_VERSION.xml
src-db/database/model/tables/M_PRODUCT.xml
src-db/database/model/tables/M_PRODUCTION.xml
src-db/database/model/tables/M_PRODUCTIONLINE.xml
src-db/database/model/tables/M_PRODUCTIONPLAN.xml
src-db/database/model/tables/M_PRODUCTPRICE.xml
src-db/database/model/tables/M_PRODUCT_ACCT.xml
src-db/database/model/tables/M_PRODUCT_BOM.xml
src-db/database/model/tables/M_PRODUCT_CATEGORY.xml
src-db/database/model/tables/M_PRODUCT_CATEGORY_ACCT.xml
src-db/database/model/tables/M_PRODUCT_ORG.xml
src-db/database/model/tables/M_PRODUCT_PO.xml
src-db/database/model/tables/M_PRODUCT_TEMPLATE.xml
src-db/database/model/tables/M_PRODUCT_TRL.xml
src-db/database/model/tables/M_PRODUCT_UOM.xml
src-db/database/model/tables/M_RAPPEL.xml
src-db/database/model/tables/M_RAPPEL_BPARTNER.xml
src-db/database/model/tables/M_RAPPEL_INVOICE.xml
src-db/database/model/tables/M_RAPPEL_PRODUCTCATEGORY.xml
src-db/database/model/tables/M_RAPPEL_SCALE.xml
src-db/database/model/tables/M_REPLENISH.xml
src-db/database/model/tables/M_REQUISITION.xml
src-db/database/model/tables/M_REQUISITIONLINE.xml
src-db/database/model/tables/M_REQUISITIONORDER.xml
src-db/database/model/tables/M_SERNOCTL.xml
src-db/database/model/tables/M_SHIPPER.xml
src-db/database/model/tables/M_STORAGE_DETAIL.xml
src-db/database/model/tables/M_STORAGE_PENDING.xml
src-db/database/model/tables/M_SUBSTITUTE.xml
src-db/database/model/tables/M_TRANSACTION.xml
src-db/database/model/tables/M_WAREHOUSE.xml
src-db/database/model/tables/M_WAREHOUSE_ACCT.xml
src-db/database/model/tables/M_WAREHOUSE_SHIPPER.xml
src-db/database/model/tables/M_WH_PERIOD.xml
src-db/database/model/tables/M_WH_SCHEDULE.xml
src-db/database/model/tables/M_WH_SCHEDULE_PRODUCT.xml
src-db/database/model/tables/R_CONTACTINTEREST.xml
src-db/database/model/tables/R_INTERESTAREA.xml
src-db/database/model/tables/R_MAILTEXT.xml
src-db/database/model/tables/R_REQUEST.xml
src-db/database/model/tables/R_REQUESTACTION.xml
src-db/database/model/tables/R_REQUESTPROCESSOR.xml
src-db/database/model/tables/R_REQUESTPROCESSOR_ROUTE.xml
src-db/database/model/tables/R_REQUESTTYPE.xml
src-db/database/model/tables/S_EXPENSETYPE.xml
src-db/database/model/tables/S_RESOURCE.xml
src-db/database/model/tables/S_RESOURCEASSIGNMENT.xml
src-db/database/model/tables/S_RESOURCETYPE.xml
src-db/database/model/tables/S_RESOURCEUNAVAILABLE.xml
src-db/database/model/tables/S_TIMEEXPENSE.xml
src-db/database/model/tables/S_TIMEEXPENSELINE.xml
--- a/src-db/database/model/tables/AD_ACCTPROCESS.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_ACCTPROCESS.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -51,5 +51,6 @@
       <foreign-key foreignTable="AD_ORG" name="AD_ACCTPROCESS_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_ACCTPROCESS_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_ATTACHMENT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_ATTACHMENT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,6 @@
         <index-column name="AD_TABLE_ID"/>
         <index-column name="RECORD_ID"/>
       </index>
+      <check name="AD_ATTACHMENT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_CALLOUT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_CALLOUT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -54,5 +54,6 @@
       <foreign-key foreignTable="AD_ORG" name="AD_CALLOUT_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_CALLOUT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_CLIENT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_CLIENT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -92,5 +92,6 @@
       <unique name="AD_CLIENT_NAME">
         <unique-column name="NAME"/>
       </unique>
+      <check name="AD_CLIENT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_CLIENTINFO.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_CLIENTINFO.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -203,5 +203,12 @@
       <foreign-key foreignTable="C_UOM" name="C_UOM_WEIGHT_AD_CLIENTINFO">
         <reference local="C_UOM_WEIGHT_ID" foreign="C_UOM_ID"/>
       </foreign-key>
+      <check name="AD_CLIENTINFO_ACCT2_ACTIVE_CHK"><![CDATA[ACCT2_ACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_CLIENTINFO_ACCT3_ACTIVE_CHK"><![CDATA[ACCT3_ACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_CLIENTINFO_ALLOWNEGATIV_CHK"><![CDATA[ALLOWNEGATIVESTOCK IN ('Y', 'N')]]></check>
+      <check name="AD_CLIENTINFO_CHECKINOUTOR_CHK"><![CDATA[CHECKINOUTORG IN ('Y', 'N')]]></check>
+      <check name="AD_CLIENTINFO_CHECKORDEROR_CHK"><![CDATA[CHECKORDERORG IN ('Y', 'N')]]></check>
+      <check name="AD_CLIENTINFO_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_CLIENTINFO_ISDISCOUNTLI_CHK"><![CDATA[ISDISCOUNTLINEAMT IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_CLIENTMODULE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_CLIENTMODULE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -50,5 +50,6 @@
       <foreign-key foreignTable="AD_ORG" name="AD_CLIENTMODULE_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_CLIENTMODULE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_COLUMN.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_COLUMN.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -222,5 +222,16 @@
         <unique-column name="AD_TABLE_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="AD_COLUMN_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_COLUMN_ISAUTOSAVE_CHK"><![CDATA[ISAUTOSAVE IN ('Y', 'N')]]></check>
+      <check name="AD_COLUMN_ISDESENCRYPTABLE_CHK"><![CDATA[ISDESENCRYPTABLE IN ('Y', 'N')]]></check>
+      <check name="AD_COLUMN_ISENCRYPTED_CHK"><![CDATA[ISENCRYPTED IN ('Y', 'N')]]></check>
+      <check name="AD_COLUMN_ISIDENTIFIER_CHK"><![CDATA[ISIDENTIFIER IN ('Y', 'N')]]></check>
+      <check name="AD_COLUMN_ISKEY_CHK"><![CDATA[ISKEY IN ('Y', 'N')]]></check>
+      <check name="AD_COLUMN_ISMANDATORY_CHK"><![CDATA[ISMANDATORY IN ('Y', 'N')]]></check>
+      <check name="AD_COLUMN_ISPARENT_CHK"><![CDATA[ISPARENT IN ('Y', 'N')]]></check>
+      <check name="AD_COLUMN_ISSELECTIONCOLUM_CHK"><![CDATA[ISSELECTIONCOLUMN IN ('Y', 'N')]]></check>
+      <check name="AD_COLUMN_ISTRANSLATED_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
+      <check name="AD_COLUMN_ISUPDATEABLE_CHK"><![CDATA[ISUPDATEABLE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_CREATEFACT_TEMPLATE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_CREATEFACT_TEMPLATE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -58,5 +58,6 @@
       <foreign-key foreignTable="AD_TABLE" name="AD_CREATEFACT_TEMPLATE_AD_TABL">
         <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
       </foreign-key>
+      <check name="AD_CREAFACTTEMP_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_DATASET.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_DATASET.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -70,5 +70,7 @@
       <foreign-key foreignTable="AD_ORG" name="AD_DATASET_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_DATASET_EXPORTALLOWED_CHK"><![CDATA[EXPORTALLOWED IN ('Y', 'N')]]></check>
+      <check name="AD_DATASET_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_DATASET_COLUMN.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_DATASET_COLUMN.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -64,5 +64,7 @@
       <foreign-key foreignTable="AD_ORG" name="AD_DATASET_COLUMN_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_DATASET_COLUMN_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_DATASET_COLUMN_ISEXCLUD_CHK"><![CDATA[ISEXCLUDED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_DATASET_TABLE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_DATASET_TABLE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -80,5 +80,8 @@
       <foreign-key foreignTable="AD_TABLE" name="AD_DATASET_TABLE_AD_TABLE">
         <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
       </foreign-key>
+      <check name="AD_DATASET_TABLE_INCLUDEAL_CHK"><![CDATA[INCLUDEALLCOLUMNS IN ('Y', 'N')]]></check>
+      <check name="AD_DATASET_TABLE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_DATASET_TABLE_ISBUSINES_CHK"><![CDATA[ISBUSINESSOBJECT IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_ELEMENT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_ELEMENT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -92,5 +92,6 @@
       <index name="AD_ELEMENT_NAME" unique="false">
         <index-column name="NAME"/>
       </index>
+      <check name="AD_ELEMENT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_ELEMENT_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_ELEMENT_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -93,5 +93,7 @@
         <unique-column name="AD_ELEMENT_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="AD_ELEMENT_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_ELEMENT_TRL_ISTRANSLATE_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_EP_PROCEDURES.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_EP_PROCEDURES.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
       <foreign-key foreignTable="AD_ORG" name="AD_ORG_ADEPPROCEDURES">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_EP_PROC_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_FIELD.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_FIELD.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -137,5 +137,12 @@
       <index name="AD_FIELD_TAB" unique="false">
         <index-column name="AD_TAB_ID"/>
       </index>
+      <check name="AD_FIELD_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_FIELD_ISCENTRALLYMAINTA_CHK"><![CDATA[ISCENTRALLYMAINTAINED IN ('Y', 'N')]]></check>
+      <check name="AD_FIELD_ISDISPLAYED_CHK"><![CDATA[ISDISPLAYED IN ('Y', 'N')]]></check>
+      <check name="AD_FIELD_ISENCRYPTED_CHK"><![CDATA[ISENCRYPTED IN ('Y', 'N')]]></check>
+      <check name="AD_FIELD_ISFIELDONLY_CHK"><![CDATA[ISFIELDONLY IN ('Y', 'N')]]></check>
+      <check name="AD_FIELD_ISREADONLY_CHK"><![CDATA[ISREADONLY IN ('Y', 'N')]]></check>
+      <check name="AD_FIELD_ISSAMELINE_CHK"><![CDATA[ISSAMELINE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_FIELDGROUP.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_FIELDGROUP.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -50,5 +50,6 @@
       <foreign-key foreignTable="AD_ORG" name="AD_FIELDGROUP_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_FIELDGROUP_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_FIELDGROUP_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_FIELDGROUP_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -65,5 +65,7 @@
         <unique-column name="AD_FIELDGROUP_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="AD_FIELDGROUP_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_FIELDGROUP_TRL_ISTRANSL_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_FIELD_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_FIELD_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,7 @@
         <unique-column name="AD_FIELD_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="AD_FIELD_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_FIELD_TRL_ISTRANSLATED_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_FORM.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_FORM.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -66,5 +66,6 @@
       <foreign-key foreignTable="AD_ORG" name="AD_FORM_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_FORM_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_FORM_ACCESS.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_FORM_ACCESS.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,7 @@
         <index-column name="AD_ROLE_ID"/>
         <index-column name="AD_FORM_ID"/>
       </index>
+      <check name="AD_FORM_ACCESS_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_FORM_ACCESS_ISREADWRITE_CHK"><![CDATA[ISREADWRITE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_FORM_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_FORM_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,7 @@
         <unique-column name="AD_FORM_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="AD_FORM_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_FORM_TRL_ISTRANSLATED_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_IMAGE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_IMAGE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -51,5 +51,6 @@
       <foreign-key foreignTable="AD_ORG" name="AD_IMAGE_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_IMAGE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_IMPFORMAT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_IMPFORMAT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -66,5 +66,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="AD_IMPFORMAT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_IMPFORMAT_ROW.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_IMPFORMAT_ROW.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -101,5 +101,7 @@
         <unique-column name="AD_IMPFORMAT_ID"/>
         <unique-column name="AD_COLUMN_ID"/>
       </unique>
+      <check name="AD_IMPFORMAT_ROW_DIVIDEBY1_CHK"><![CDATA[DIVIDEBY100 IN ('Y', 'N')]]></check>
+      <check name="AD_IMPFORMAT_ROW_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_LANGUAGE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_LANGUAGE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -82,5 +82,8 @@
       <unique name="AD_LANGUAGE_UN">
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="AD_LANGUAGE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_LANGUAGE_ISBASELANGUAGE_CHK"><![CDATA[ISBASELANGUAGE IN ('Y', 'N')]]></check>
+      <check name="AD_LANGUAGE_ISSYSTEMLANGUA_CHK"><![CDATA[ISSYSTEMLANGUAGE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_MENU.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_MENU.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -101,5 +101,6 @@
       <foreign-key foreignTable="AD_ORG" name="AD_MENU_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_MENU_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_MENU_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_MENU_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -69,5 +69,7 @@
         <unique-column name="AD_MENU_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="AD_MENU_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_MENU_TRL_ISTRANSLATED_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_MESSAGE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_MESSAGE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -65,5 +65,6 @@
       <unique name="AD_MESSAGE_VALUE_UN">
         <unique-column name="VALUE"/>
       </unique>
+      <check name="AD_MESSAGE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_MESSAGE_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_MESSAGE_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -69,5 +69,7 @@
         <unique-column name="AD_MESSAGE_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="AD_MESSAGE_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_MESSAGE_TRL_ISTRANSLATE_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_MODEL_OBJECT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_MODEL_OBJECT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -123,5 +123,7 @@
       <foreign-key foreignTable="AD_WORKFLOW" name="AD_MODEL_OBJECT_AD_WORKFLOW">
         <reference local="AD_WORKFLOW_ID" foreign="AD_WORKFLOW_ID"/>
       </foreign-key>
+      <check name="AD_MODEL_OBJECT_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_MODEL_OBJECT_ISDEFAULT_CHK"><![CDATA[ISDEFAULT IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_MODEL_OBJECT_MAPPING.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_MODEL_OBJECT_MAPPING.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -54,5 +54,7 @@
       <foreign-key foreignTable="AD_ORG" name="AD_MODEL_OBJECT_MAPPING_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_MODEL_OBJECT_MAPPING_IS_CH1"><![CDATA[ISDEFAULT IN ('Y', 'N')]]></check>
+      <check name="AD_MODEL_OBJECT_MAPPING_IS_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_MODEL_OBJECT_PARA.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_MODEL_OBJECT_PARA.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -58,5 +58,6 @@
       <foreign-key foreignTable="AD_ORG" name="AD_MODEL_OBJECT_PARA_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_MOD_OBJ_PARA_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_MODULE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_MODULE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -165,5 +165,12 @@
       <unique name="AD_MODULE_JAVAPACKAGE_UN">
         <unique-column name="JAVAPACKAGE"/>
       </unique>
+      <check name="AD_MODULE_INDEVELOPMENT_CHK"><![CDATA[ISINDEVELOPMENT IN ('Y', 'N')]]></check>
+      <check name="AD_MODULE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_MODULE_ISCOMMERCIAL_CHCK"><![CDATA[ISCOMMERCIAL IN ('Y', 'N')]]></check>
+      <check name="AD_MODULE_ISDEFAULT_CHK"><![CDATA[(ISDEFAULT = 'N') OR ((ISDEFAULT = 'Y') AND (ISINDEVELOPMENT = 'Y'))]]></check>
+      <check name="AD_MODULE_ISREGISTERED_CHK"><![CDATA[ISREGISTERED IN ('Y', 'N')]]></check>
+      <check name="AD_MODULE_ISTRANSLATEABLE_CHK"><![CDATA[ISTRANSLATIONREQUIRED IN ('Y', 'N')]]></check>
+      <check name="AD_MODULE_TYPE_CHK"><![CDATA[TYPE IN ('M', 'P', 'T')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_MODULE_DBPREFIX.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_MODULE_DBPREFIX.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -53,5 +53,6 @@
       <unique name="AD_MODULE_DB_PREFIX_UN">
         <unique-column name="NAME"/>
       </unique>
+      <check name="AD_MODULE_DBPREFIX_ISACTIVE_CK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_MODULE_DBPREFIX_INSTALL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_MODULE_DBPREFIX_INSTALL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -51,5 +51,6 @@
       <foreign-key foreignTable="AD_ORG" name="AD_MODULE_DBPREFIX_INSTALL_AD1">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_MODULE_DBPREFIX_INSTALL_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_MODULE_DEPENDENCY.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_MODULE_DEPENDENCY.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -81,5 +81,7 @@
       <foreign-key foreignTable="AD_ORG" name="AD_MODULE_DEPENDENCY_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_MODULE_DEPENDENCY_ISACT_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_MODULE_ISINCLUDED_CHK"><![CDATA[ISINCLUDED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_MODULE_DEPENDENCY_INST.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_MODULE_DEPENDENCY_INST.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -75,5 +75,7 @@
       <foreign-key foreignTable="AD_ORG" name="AD_MODULE_DEPENDENCY_INST_AD_O">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_MODULE_DEPENDENCY_INST__CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_MODULE_INST_ISINCLUDED_CHK"><![CDATA[ISINCLUDED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_MODULE_INSTALL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_MODULE_INSTALL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -159,5 +159,11 @@
       <foreign-key foreignTable="AD_ORG" name="AD_MODULE_INSTALL_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_MOD_INS_INDEVELOPMENT_CHK"><![CDATA[ISINDEVELOPMENT IN ('Y', 'N')]]></check>
+      <check name="AD_MOD_INS_ISTRANSLATEABLE_CHK"><![CDATA[ISTRANSLATIONREQUIRED IN ('Y', 'N')]]></check>
+      <check name="AD_MODULE_INS_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_MODULE_INS_ISREGISTERED_CHK"><![CDATA[ISREGISTERED IN ('Y', 'N')]]></check>
+      <check name="AD_MODULE_INS_TYPE_CHK"><![CDATA[TYPE IN ('M', 'P', 'T')]]></check>
+      <check name="AD_MODULE_INSTALL_ISDEFAUL_CHK"><![CDATA[(ISDEFAULT = 'N') OR ((ISDEFAULT = 'Y') AND (ISINDEVELOPMENT = 'Y'))]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_MODULE_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_MODULE_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -81,5 +81,7 @@
         <unique-column name="AD_MODULE_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="AD_MODULE_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_MODULE_TRL_ISTRANSLATED_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_MONTH_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_MONTH_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -65,5 +65,7 @@
         <unique-column name="AD_MONTH_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="AD_MONTH_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_MONTH_TRL_ISTRANSLATED_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_NOTE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_NOTE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -76,5 +76,7 @@
       <foreign-key foreignTable="AD_USER" name="AD_NOTE_AD_USER">
         <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
       </foreign-key>
+      <check name="AD_NOTE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_NOTE_PROCESSED_CHK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_ORG.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_ORG.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -74,5 +74,9 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="VALUE"/>
       </unique>
+      <check name="AD_ORG_CALENDAR_CHECK"><![CDATA[((ISPERIODCONTROLALLOWED = 'Y') AND (C_CALENDAR_ID IS NOT NULL)) OR (C_CALENDAR_ID IS NULL)]]></check>
+      <check name="AD_ORG_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_ORG_ISPERIODCONTROL_CHECK"><![CDATA[ISPERIODCONTROLALLOWED IN ('Y', 'N')]]></check>
+      <check name="AD_ORG_ISREADY_CHECK"><![CDATA[ISREADY IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_ORGINFO.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_ORGINFO.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -87,5 +87,7 @@
       <foreign-key foreignTable="C_LOCATION" name="C_LOCATION_AD_ORGINFO">
         <reference local="C_LOCATION_ID" foreign="C_LOCATION_ID"/>
       </foreign-key>
+      <check name="AD_ORGINFO_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_ORGINFO_ISTAXUNDEDUCTABLE"><![CDATA[ISTAXUNDEDUCTABLE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_ORGMODULE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_ORGMODULE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -50,5 +50,6 @@
       <foreign-key foreignTable="AD_ORG" name="AD_ORGMODULE_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_ORGMODULE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_ORGTYPE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_ORGTYPE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -67,5 +67,12 @@
       <foreign-key foreignTable="AD_ORG" name="AD_ORGTYPE_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_ORGTYPE_ISACCTLE_CHECK"><![CDATA[ISACCTLEGALENTITY IN ('Y', 'N')]]></check>
+      <check name="AD_ORGTYPE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_ORGTYPE_ISBU_CHECK"><![CDATA[ISBUSINESSUNIT IN ('Y', 'N')]]></check>
+      <check name="AD_ORGTYPE_ISDEFAULT_CHECK"><![CDATA[ISDEFAULT IN ('Y', 'N')]]></check>
+      <check name="AD_ORGTYPE_ISLEGALENTITY_CHECK"><![CDATA[ISLEGALENTITY IN ('Y', 'N')]]></check>
+      <check name="AD_ORGTYPE_ISLEGALENTITY_CHK"><![CDATA[(((ISLEGALENTITY = 'Y') AND (ISBUSINESSUNIT = 'N')) OR ((ISLEGALENTITY = 'N') AND (ISBUSINESSUNIT = 'Y'))) OR ((ISLEGALENTITY = 'N') AND (ISBUSINESSUNIT = 'N'))]]></check>
+      <check name="AD_ORGTYPE_ISTRALLOWED_CHECK"><![CDATA[ISTRANSACTIONSALLOWED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_ORG_ACCTSCHEMA.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_ORG_ACCTSCHEMA.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -76,5 +76,8 @@
       <foreign-key foreignTable="C_ACCTSCHEMA" name="AD_ORG_ACCTSCHEMA_C_ACCTSCHEMA">
         <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
       </foreign-key>
+      <check name="AD_ORG_ACCTSCHEMA_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_ORG_ACCTSCHEMA_ISBPNEWA_CHK"><![CDATA[ISBPNEWACCOUNT IN ('Y', 'N')]]></check>
+      <check name="AD_ORG_ACCTSCHEMA_ISPRNEWA_CHK"><![CDATA[ISPRNEWACCOUNT IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_PACKAGE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_PACKAGE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -64,5 +64,6 @@
       <unique name="AD_PACKAGE_NAME">
         <unique-column name="NAME"/>
       </unique>
+      <check name="AD_PACKAGE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_PINSTANCE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_PINSTANCE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,6 @@
         <index-column name="AD_PROCESS_ID"/>
         <index-column name="RECORD_ID"/>
       </index>
+      <check name="AD_PINSTANCE_ISACTIVE_CHECK"><![CDATA[ISPROCESSING IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_PREFERENCE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_PREFERENCE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -101,5 +101,8 @@
       <foreign-key foreignTable="AD_WINDOW" name="AD_WINDOW_PREFERENCE" onDelete="cascade">
         <reference local="AD_WINDOW_ID" foreign="AD_WINDOW_ID"/>
       </foreign-key>
+      <check name="AD_PREFERENCE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_PREFERENCE_LIST_CHECK"><![CDATA[(((ISPROPERTYLIST = 'Y') AND (PROPERTY IS NOT NULL)) AND (ATTRIBUTE IS NULL)) OR (((ISPROPERTYLIST = 'N') AND (ATTRIBUTE IS NOT NULL)) AND (PROPERTY IS NULL))]]></check>
+      <check name="AD_PREFERENCE_SELECTED_CHECK"><![CDATA[SELECTED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_PROCESS.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_PROCESS.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -114,5 +114,12 @@
       <foreign-key foreignTable="AD_ORG" name="AD_PROCESS_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_PROCESS_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_PROCESS_ISBACKGROUND_CHK"><![CDATA[ISBACKGROUND IN ('Y', 'N')]]></check>
+      <check name="AD_PROCESS_ISDIRECTPRINT_CHK"><![CDATA[ISDIRECTPRINT IN ('Y', 'N')]]></check>
+      <check name="AD_PROCESS_ISEXTERNALSERVI_CHK"><![CDATA[ISEXTERNALSERVICE IN ('Y', 'N')]]></check>
+      <check name="AD_PROCESS_ISREPORT_CHK"><![CDATA[ISREPORT IN ('Y', 'N')]]></check>
+      <check name="AD_PROCESS_ISUSERSTARTABLE_CHK"><![CDATA[ISUSERSTARTABLE IN ('Y', 'N')]]></check>
+      <check name="AD_PROCESS_UIPATTERN_CHK"><![CDATA[UIPATTERN IN ('S', 'M')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_PROCESS_ACCESS.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_PROCESS_ACCESS.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,7 @@
         <index-column name="AD_ROLE_ID"/>
         <index-column name="AD_PROCESS_ID"/>
       </index>
+      <check name="AD_PROCESS_ACCESS_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_PROCESS_ACCESS_ISREADWR_CHK"><![CDATA[ISREADWRITE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_PROCESS_PARA.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_PROCESS_PARA.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -133,5 +133,9 @@
       <index name="AD_PROCESS_PARA_PROCESS" unique="false">
         <index-column name="AD_PROCESS_ID"/>
       </index>
+      <check name="AD_PROCESS_PARA_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_PROCESS_PARA_ISCENTRALL_CHK"><![CDATA[ISCENTRALLYMAINTAINED IN ('Y', 'N')]]></check>
+      <check name="AD_PROCESS_PARA_ISMANDATOR_CHK"><![CDATA[ISMANDATORY IN ('Y', 'N')]]></check>
+      <check name="AD_PROCESS_PARA_ISRANGE_CHK"><![CDATA[ISRANGE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_PROCESS_PARA_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_PROCESS_PARA_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,7 @@
         <unique-column name="AD_PROCESS_PARA_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="AD_PROCESS_PARA_TRL_ISACTI_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_PROCESS_PARA_TRL_ISTRAN_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_PROCESS_SCHEDULING.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_PROCESS_SCHEDULING.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -66,5 +66,6 @@
       <foreign-key foreignTable="AD_PROCESS" name="AD_PROCESS_SCHEDULING_AD_PROCE" onDelete="cascade">
         <reference local="AD_PROCESS_ID" foreign="AD_PROCESS_ID"/>
       </foreign-key>
+      <check name="AD_PROCESS_SCHEDULING_ISFT"><![CDATA[ISFULLTIME IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_PROCESS_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_PROCESS_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,7 @@
         <unique-column name="AD_PROCESS_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="AD_PROCESS_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_PROCESS_TRL_ISTRANSLATE_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_PROPERTY_CONFIGURATION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_PROPERTY_CONFIGURATION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -58,5 +58,7 @@
       <foreign-key foreignTable="AD_CLIENT" name="AD_PROPERTY_CONFI_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="AD_PROPERTY_CONF_ACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_PROPERTY_CONF_SEL_CHECK"><![CDATA[SELECTED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_REFERENCE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_REFERENCE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -97,5 +97,6 @@
         <unique-column name="NAME"/>
         <unique-column name="AD_MODULE_ID"/>
       </unique>
+      <check name="AD_REFERENCE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_REFERENCE_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_REFERENCE_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,7 @@
         <unique-column name="AD_REFERENCE_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="AD_REFERENCE_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_REFERENCE_TRL_ISTRANSLA_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_REF_DATA_LOADED.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_REF_DATA_LOADED.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,6 @@
       <foreign-key foreignTable="AD_TABLE" name="AD_REF_DATA_LOADED_AD_TABLE" onDelete="cascade">
         <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
       </foreign-key>
+      <check name="AD_REFDATALOAD_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_REF_LIST.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_REF_LIST.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -81,5 +81,6 @@
         <unique-column name="AD_REFERENCE_ID"/>
         <unique-column name="VALUE"/>
       </unique>
+      <check name="AD_REF_LIST_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_REF_LIST_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_REF_LIST_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -69,5 +69,7 @@
         <unique-column name="AD_REF_LIST_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="AD_REF_LIST_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_REF_LIST_TRL_ISTRANSLAT_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_REF_SEARCH.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_REF_SEARCH.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -60,5 +60,6 @@
       <foreign-key foreignTable="AD_TABLE" name="AD_REF_SEARCH_AD_TABLE">
         <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
       </foreign-key>
+      <check name="AD_REF_SEARCH_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_REF_SEARCH_COLUMN.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_REF_SEARCH_COLUMN.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -62,5 +62,6 @@
       <foreign-key foreignTable="AD_REF_SEARCH" name="AD_REF_SEARCH_COLUMN_AD_REF_SE">
         <reference local="AD_REF_SEARCH_ID" foreign="AD_REF_SEARCH_ID"/>
       </foreign-key>
+      <check name="AD_REF_SEARCH_C_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_REF_TABLE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_REF_TABLE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -75,5 +75,7 @@
       <foreign-key foreignTable="AD_REFERENCE" name="AD_REFERENCE_REFTABLE" onDelete="cascade">
         <reference local="AD_REFERENCE_ID" foreign="AD_REFERENCE_ID"/>
       </foreign-key>
+      <check name="AD_REF_TABLE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_REF_TABLE_ISVALUEDISPLA_CHK"><![CDATA[ISVALUEDISPLAYED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_ROLE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_ROLE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -89,5 +89,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="AD_ROLE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_ROLE_ORGACCESS.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_ROLE_ORGACCESS.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -50,5 +50,6 @@
         <unique-column name="AD_ROLE_ID"/>
         <unique-column name="AD_ORG_ID"/>
       </unique>
+      <check name="AD_ROLE_ORGACCE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_SEQUENCE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_SEQUENCE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -92,5 +92,9 @@
         <unique-column name="AD_ORG_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="AD_SEQUENCE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_SEQUENCE_ISAUTOSEQUENCE_CHK"><![CDATA[ISAUTOSEQUENCE IN ('Y', 'N')]]></check>
+      <check name="AD_SEQUENCE_ISTABLEID_CHK"><![CDATA[ISTABLEID IN ('Y', 'N')]]></check>
+      <check name="AD_SEQUENCE_STARTNEWYEAR_CHK"><![CDATA[STARTNEWYEAR IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_SESSION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_SESSION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -75,5 +75,6 @@
       <foreign-key foreignTable="AD_ORG" name="AD_SESSION_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_SESSION_ACTIVE_CHK"><![CDATA[SESSION_ACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_SESSION_STATUS.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_SESSION_STATUS.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -43,5 +43,7 @@
       <foreign-key foreignTable="AD_ORG" name="AD_SESSION_STATUS_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_SESSION_STATUS_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_SESSION_STATUS_ISIMPORT_CHK"><![CDATA[ISIMPORTING IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_SYSTEM.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_SYSTEM.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -79,5 +79,6 @@
       <foreign-key foreignTable="AD_ORG" name="AD_SYSTEM_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_SYSTEM_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_SYSTEM_INFO.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_SYSTEM_INFO.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -178,5 +178,6 @@
       <foreign-key foreignTable="AD_IMAGE" name="AD_SYSTEM_INFO_IMAGEMENUCOMP">
         <reference local="YOUR_COMPANY_MENU_IMAGE" foreign="AD_IMAGE_ID"/>
       </foreign-key>
+      <check name="AD_SYSTEM_INFO_CUSTOMIZATI_CHK"><![CDATA[CUSTOMIZATION_ALLOWED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_TAB.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_TAB.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -191,5 +191,12 @@
         <unique-column name="AD_WINDOW_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="AD_TAB_HASTREE_CHK"><![CDATA[HASTREE IN ('Y', 'N')]]></check>
+      <check name="AD_TAB_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_TAB_ISINFOTAB_CHK"><![CDATA[ISINFOTAB IN ('Y', 'N')]]></check>
+      <check name="AD_TAB_ISREADONLY_CHK"><![CDATA[ISREADONLY IN ('Y', 'N')]]></check>
+      <check name="AD_TAB_ISSINGLEROW_CHK"><![CDATA[ISSINGLEROW IN ('Y', 'N')]]></check>
+      <check name="AD_TAB_ISTRANSLATIONTAB_CHK"><![CDATA[ISTRANSLATIONTAB IN ('Y', 'N')]]></check>
+      <check name="AD_TAB_NAME_CHK"><![CDATA[INSTR(NAME, TO_CHAR('_')) = 0]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_TABLE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_TABLE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -152,5 +152,12 @@
       <unique name="AD_TABLE_TREETYPE_UN">
         <unique-column name="TREETYPE"/>
       </unique>
+      <check name="AD_TABLE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_TABLE_ISDELETEABLE_CHK"><![CDATA[ISDELETEABLE IN ('Y', 'N')]]></check>
+      <check name="AD_TABLE_ISFULLYAUDITED_CHK"><![CDATA[ISFULLYAUDITED IN ('Y', 'N')]]></check>
+      <check name="AD_TABLE_ISFULLYAUDITED_CHK2"><![CDATA[(ISFULLYAUDITED = 'N') OR (UPPER((TABLENAME)) <> 'AD_AUDIT_TRAIL')]]></check>
+      <check name="AD_TABLE_ISHIGHVOLUME_CHK"><![CDATA[ISHIGHVOLUME IN ('Y', 'N')]]></check>
+      <check name="AD_TABLE_ISSECUR_YENABLED_CHK"><![CDATA[ISSECURITYENABLED IN ('Y', 'N')]]></check>
+      <check name="AD_TABLE_ISVIEW_CHK"><![CDATA[ISVIEW IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_TAB_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_TAB_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -77,5 +77,7 @@
         <unique-column name="AD_TAB_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="AD_TABTRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_TABTRL_ISTRANSLATED_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_TASK.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_TASK.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -67,5 +67,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="AD_TASK_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_TASK_ACCESS.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_TASK_ACCESS.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,7 @@
         <index-column name="AD_ROLE_ID"/>
         <index-column name="AD_TASK_ID"/>
       </index>
+      <check name="AD_TASK_ACCESS_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_TASK_ACCESS_ISREADWRITE_CHK"><![CDATA[ISREADWRITE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_TASK_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_TASK_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,7 @@
         <unique-column name="AD_TASK_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="AD_TASK_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_TASK_TRL_ISTRANSLATED_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_TEST.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_TEST.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -139,5 +139,7 @@
       <foreign-key foreignTable="M_PRODUCT" name="AD_TEST_M_PRODUCT">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
+      <check name="AD_TEST_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_TEST_PROCESSED_CHK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_TEXTINTERFACES.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_TEXTINTERFACES.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -62,5 +62,6 @@
         <index-column name="FILENAME"/>
         <index-column name="TEXT"/>
       </index>
+      <check name="AD_TEXTINTERFACES_IN_ISACTIVE"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_TEXTINTERFACES_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_TEXTINTERFACES_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -65,5 +65,7 @@
         <index-column name="AD_LANGUAGE"/>
         <index-column name="AD_TEXTINTERFACES_ID"/>
       </index>
+      <check name="AD_TEXTINTERFACES_TRL_ISAC_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_TEXTINTERFACES_TRL_ISTR_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_TREE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_TREE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -59,5 +59,7 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="AD_TREE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_TREE_ISALLNODES_CHK"><![CDATA[ISALLNODES IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_TREEBAR.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_TREEBAR.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -62,5 +62,6 @@
         <unique-column name="AD_USER_ID"/>
         <unique-column name="NODE_ID"/>
       </unique>
+      <check name="AD_TREEBAR_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_TREENODE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_TREENODE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -65,5 +65,6 @@
         <unique-column name="AD_TREE_ID"/>
         <unique-column name="NODE_ID"/>
       </unique>
+      <check name="AD_TREENODE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_TREENODEBP.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_TREENODEBP.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -69,5 +69,6 @@
         <unique-column name="AD_TREE_ID"/>
         <unique-column name="NODE_ID"/>
       </unique>
+      <check name="AD_TREENODEBP_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_TREENODEMM.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_TREENODEMM.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -65,5 +65,6 @@
         <unique-column name="AD_TREE_ID"/>
         <unique-column name="NODE_ID"/>
       </unique>
+      <check name="AD_TREENODEMM_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_TREENODEPR.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_TREENODEPR.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -69,5 +69,6 @@
         <unique-column name="AD_TREE_ID"/>
         <unique-column name="NODE_ID"/>
       </unique>
+      <check name="AD_TREENODEPR_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_USER.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_USER.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -195,5 +195,7 @@
       <unique name="AD_USER_UN_USERNAME">
         <unique-column name="USERNAME"/>
       </unique>
+      <check name="AD_USER_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_USER_ISLOCKED_CHECK"><![CDATA[ISLOCKED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_USER_ROLES.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_USER_ROLES.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
         <unique-column name="AD_USER_ID"/>
         <unique-column name="AD_ROLE_ID"/>
       </unique>
+      <check name="AD_USER_ROLES_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_VAL_RULE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_VAL_RULE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -62,5 +62,6 @@
       <foreign-key foreignTable="AD_ORG" name="AD_VAL_RULE_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="AD_VAL_RULE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_WF_NODE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_WF_NODE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -112,5 +112,7 @@
       <index name="AD_WF_NODE_WORKFLOW" unique="false">
         <index-column name="AD_WORKFLOW_ID"/>
       </index>
+      <check name="AD_WF_NODE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_WF_NODE_ISCENTRALLYMAIN_CHK"><![CDATA[ISCENTRALLYMAINTAINED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_WF_NODENEXT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_WF_NODENEXT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,6 @@
         <unique-column name="AD_WF_NODE_ID"/>
         <unique-column name="AD_WF_NEXT_ID"/>
       </unique>
+      <check name="AD_WF_NODENEXT_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_WF_NODE_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_WF_NODE_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,7 @@
         <index-column name="AD_WF_NODE_ID"/>
         <index-column name="AD_LANGUAGE"/>
       </index>
+      <check name="AD_WF_NODE_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_WF_NODE_TRL_ISTRANSLATE_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_WINDOW.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_WINDOW.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -86,5 +86,8 @@
         <unique-column name="NAME"/>
         <unique-column name="AD_MODULE_ID"/>
       </unique>
+      <check name="AD_WINDOW_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_WINDOW_ISSOTRX_CHK"><![CDATA[ISSOTRX IN ('Y', 'N')]]></check>
+      <check name="AD_WINDOW_NAME_CHECK"><![CDATA[(INSTR(NAME, (CHR(39))) = 0) AND (INSTR(NAME, TO_CHAR('_')) = 0)]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_WINDOW_ACCESS.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_WINDOW_ACCESS.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,7 @@
         <index-column name="AD_ROLE_ID"/>
         <index-column name="AD_WINDOW_ID"/>
       </index>
+      <check name="AD_WINDOW_ACCESS_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_WINDOW_ACCESS_ISREADWRI_CHK"><![CDATA[ISREADWRITE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_WINDOW_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_WINDOW_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,7 @@
         <unique-column name="AD_WINDOW_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="AD_WINDOW_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_WINDOW_TRL_ISTRANSLATED_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_WORKFLOW.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_WORKFLOW.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="AD_WORKFLOW_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_WORKFLOW_ACCESS.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_WORKFLOW_ACCESS.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,7 @@
         <index-column name="AD_ROLE_ID"/>
         <index-column name="AD_WORKFLOW_ID"/>
       </index>
+      <check name="AD_WORKFLOW_ACCESS_ISACTIV_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_WORKFLOW_ACCESS_ISREADW_CHK"><![CDATA[ISREADWRITE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_WORKFLOW_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AD_WORKFLOW_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,7 @@
         <unique-column name="AD_WORKFLOW_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="AD_WORKFLOW_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AD_WORKFLOW_TRL_ISTRANSLAT_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AT_COMMAND.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AT_COMMAND.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -91,5 +91,12 @@
       <foreign-key foreignTable="AD_CLIENT" name="AT_COMMAND_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="AT_COMMAND_CHECK_WRITEABLE_CHK"><![CDATA[CHECK_WRITEABLE IN ('Y', 'N')]]></check>
+      <check name="AT_COMMAND_HAS_PREFIX_CHK"><![CDATA[HAS_PREFIX IN ('Y', 'N')]]></check>
+      <check name="AT_COMMAND_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AT_COMMAND_LINE_INTERCHANG_CHK"><![CDATA[LINE_INTERCHANGE IN ('Y', 'N')]]></check>
+      <check name="AT_COMMAND_REMEMBER_FRAME_CHK"><![CDATA[REMEMBER_FRAME IN ('Y', 'N')]]></check>
+      <check name="AT_COMMAND_REMEMBER_TAB_CHK"><![CDATA[REMEMBER_TAB IN ('Y', 'N')]]></check>
+      <check name="AT_COMMAND_REMEMBER_WINDOW_CHK"><![CDATA[REMEMBER_WINDOW IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AT_COMMAND_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AT_COMMAND_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -81,5 +81,7 @@
         <unique-column name="AT_COMMAND_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="AT_COMMAND_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AT_COMMAND_TRL_ISTRANSLATE_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AT_LINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AT_LINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -96,5 +96,6 @@
       <foreign-key foreignTable="AT_TEST" name="AT_TEST_ATLINE">
         <reference local="AT_TEST_ID" foreign="AT_TEST_ID"/>
       </foreign-key>
+      <check name="AT_LINE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AT_ROLLOGIN.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AT_ROLLOGIN.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -50,5 +50,6 @@
       <foreign-key foreignTable="AT_TEST" name="AT_TEST_ATROLLOGIN">
         <reference local="AT_TEST_ID" foreign="AT_TEST_ID"/>
       </foreign-key>
+      <check name="AT_ROLLOGIN_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AT_TEST.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AT_TEST.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -86,5 +86,6 @@
       <foreign-key foreignTable="AT_ROLLOGIN" name="AT_TEST_AT_ROLLOGIN">
         <reference local="AT_ROLLOGIN_ID" foreign="AT_ROLLOGIN_ID"/>
       </foreign-key>
+      <check name="AT_TEST_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AT_TESTDOCUMENT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AT_TESTDOCUMENT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -98,5 +98,9 @@
       <foreign-key foreignTable="AD_CLIENT" name="AT_TESTDOCUMENT_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="AT_TESTDOCUMENT_INTRODUCTI_CHK"><![CDATA[INTRODUCTION IN ('Y', 'N')]]></check>
+      <check name="AT_TESTDOCUMENT_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="AT_TESTDOCUMENT_LINE_INTER_CHK"><![CDATA[LINE_INTERCHANGER IN ('Y', 'N')]]></check>
+      <check name="AT_TESTDOCUMENT_PREFIX_CHK"><![CDATA[PREFIX IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/AT_TESTDOCUMENTLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/AT_TESTDOCUMENTLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -101,5 +101,6 @@
         <unique-column name="AT_TESTDOCUMENT_ID"/>
         <unique-column name="AT_COMMAND_ID"/>
       </unique>
+      <check name="AT_TESTDOCL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/A_AMORTIZATION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/A_AMORTIZATION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -111,5 +111,6 @@
       <foreign-key foreignTable="AD_ORG" name="A_AMORTIZATION_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="A_AMORTIZATION_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/A_AMORTIZATIONLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/A_AMORTIZATIONLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -76,5 +76,6 @@
       <foreign-key foreignTable="AD_ORG" name="A_AMORTIZATIONLINE_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="A_AMORTIZATIONL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/A_ASSET.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/A_ASSET.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -266,5 +266,9 @@
       <foreign-key foreignTable="M_PRODUCT" name="A_ASSET_M_PRODUCT">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
+      <check name="A_ASSET_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="A_ASSET_ISDISPOSED_CHK"><![CDATA[ISDISPOSED IN ('Y', 'N')]]></check>
+      <check name="A_ASSET_ISINPOSESSION_CHK"><![CDATA[ISINPOSESSION IN ('Y', 'N')]]></check>
+      <check name="A_ASSET_ISOWNED_CHK"><![CDATA[ISOWNED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/A_ASSET_ACCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/A_ASSET_ACCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -85,5 +85,6 @@
         <unique-column name="A_ASSET_ID"/>
         <unique-column name="C_ACCTSCHEMA_ID"/>
       </unique>
+      <check name="A_ASSET_ACCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/A_ASSET_GROUP.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/A_ASSET_GROUP.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -59,5 +59,7 @@
       <foreign-key foreignTable="AD_ORG" name="A_ASSET_GROUP_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="A_ASSET_GROUP_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="A_ASSET_GROUP_ISOWNED_CHK"><![CDATA[ISOWNED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/A_ASSET_GROUP_ACCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/A_ASSET_GROUP_ACCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -89,5 +89,6 @@
         <unique-column name="A_ASSET_GROUP_ID"/>
         <unique-column name="C_ACCTSCHEMA_ID"/>
       </unique>
+      <check name="A_ASSET_GROUP_A_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_ACCTSCHEMA.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_ACCTSCHEMA.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -113,5 +113,12 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="C_ACCTSCHEMA_AUTOPERIODCON_CHK"><![CDATA[AUTOPERIODCONTROL IN ('Y', 'N')]]></check>
+      <check name="C_ACCTSCHEMA_HASALIAS_CHK"><![CDATA[HASALIAS IN ('Y', 'N')]]></check>
+      <check name="C_ACCTSCHEMA_HASCOMBINATIO_CHK"><![CDATA[HASCOMBINATION IN ('Y', 'N')]]></check>
+      <check name="C_ACCTSCHEMA_ISACCRUAL_CHK"><![CDATA[ISACCRUAL IN ('Y', 'N')]]></check>
+      <check name="C_ACCTSCHEMA_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_ACCTSCHEMA_ISDISCOUNTCOR_CHK"><![CDATA[ISDISCOUNTCORRECTSTAX IN ('Y', 'N')]]></check>
+      <check name="C_ACCTSCHEMA_ISTRADEDISCOU_CHK"><![CDATA[ISTRADEDISCOUNTPOSTED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_ACCTSCHEMA_DEFAULT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_ACCTSCHEMA_DEFAULT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -480,5 +480,6 @@
       <unique name="C_ACCTSCHEMA_DE_UN_C_ACCTSCH">
         <unique-column name="C_ACCTSCHEMA_ID"/>
       </unique>
+      <check name="C_ACCTSCHEMA_DE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_ACCTSCHEMA_ELEMENT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_ACCTSCHEMA_ELEMENT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -139,5 +139,8 @@
       <index name="C_ACCTSCHEMA_ELEMENT_SCHEMA" unique="false">
         <index-column name="C_ACCTSCHEMA_ID"/>
       </index>
+      <check name="C_ACCTSCHEMA_ELEMENT_ISACT_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_ACCTSCHEMA_ELEMENT_ISBAL_CHK"><![CDATA[ISBALANCED IN ('Y', 'N')]]></check>
+      <check name="C_ACCTSCHEMA_ELEMENT_ISMAN_CHK"><![CDATA[ISMANDATORY IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_ACCTSCHEMA_GL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_ACCTSCHEMA_GL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -121,5 +121,9 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="C_ACCTSCHM_GL_C_VLDCMBNTN">
         <reference local="CFS_ORDER_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
+      <check name="C_ACCTSCHEMA_GL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_ACCTSCHEMA_GL_USECURRENC_CHK"><![CDATA[USECURRENCYBALANCING IN ('Y', 'N')]]></check>
+      <check name="C_ACCTSCHEMA_GL_USESUSPENS_CH1"><![CDATA[USESUSPENSEBALANCING IN ('Y', 'N')]]></check>
+      <check name="C_ACCTSCHEMA_GL_USESUSPENS_CHK"><![CDATA[USESUSPENSEERROR IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_ACCTSCHEMA_PROCESS.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_ACCTSCHEMA_PROCESS.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,7 @@
       <foreign-key foreignTable="C_ACCTSCHEMA" name="C_ACCTSCHEMA_PROCESS_C_ACCTSCH">
         <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
       </foreign-key>
+      <check name="C_ACCTSCHEMA_PROCESS_ISACT_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_ACCTSCHEMA_PROCESS_ISDAT_CHK"><![CDATA[ISDATASET IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_ACCTSCHEMA_TABLE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_ACCTSCHEMA_TABLE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -72,5 +72,6 @@
         <unique-column name="C_ACCTSCHEMA_ID"/>
         <unique-column name="AD_TABLE_ID"/>
       </unique>
+      <check name="C_ACCTSCHEMA_TA_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_ACCTSCHEMA_TABLE_DOCTYPE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_ACCTSCHEMA_TABLE_DOCTYPE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,7 @@
       <foreign-key foreignTable="C_ACCTSCHEMA_TABLE" name="C_CCTSCHM_TBL_D_C_CCTSCHM_TBL">
         <reference local="C_ACCTSCHEMA_TABLE_ID" foreign="C_ACCTSCHEMA_TABLE_ID"/>
       </foreign-key>
+      <check name="C_ACCTSCH_TA_DO_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_ACCTSCH_TA_DO_NEGATIVE_CHECK"><![CDATA[ALLOWNEGATIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_ACCT_RPT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_ACCT_RPT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -62,5 +62,6 @@
       <foreign-key foreignTable="C_ACCTSCHEMA" name="C_ACCT_RPT_C_ACCTSCHEMA">
         <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
       </foreign-key>
+      <check name="C_ACCT_RPT_ISORGBALANCED_CHECK"><![CDATA[ISORGBALANCED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_ACTIVITY.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_ACTIVITY.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -63,5 +63,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="VALUE"/>
       </unique>
+      <check name="C_ACTIVITY_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_BANK.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_BANK.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -92,5 +92,8 @@
       <foreign-key foreignTable="C_LOCATION" name="C_BANK_C_LOCATION">
         <reference local="C_LOCATION_ID" foreign="C_LOCATION_ID"/>
       </foreign-key>
+      <check name="C_BANK_CODEBANK_CHK"><![CDATA[(((CODEBANK IS NULL) OR (LENGTH((CODEBANK)) = 4)) AND ((CODEBRANCH IS NULL) OR (LENGTH((CODEBRANCH)) = 4))) AND ((DIGITCONTROL IS NULL) OR (LENGTH((DIGITCONTROL)) = 1))]]></check>
+      <check name="C_BANK_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_BANK_ISOWNBANK_CHK"><![CDATA[ISOWNBANK IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_BANKACCOUNT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_BANKACCOUNT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -108,5 +108,11 @@
       <index name="C_BANKACCT_BANK" unique="false">
         <index-column name="C_BANK_ID"/>
       </index>
+      <check name="C_BANKACC_SHOWGENERIC_CHECK"><![CDATA[(GENERICACCOUNT IS NOT NULL) OR (SHOWGENERIC = 'N')]]></check>
+      <check name="C_BANKACC_SHOWIBAN_CHECK"><![CDATA[(IBAN IS NOT NULL) OR (SHOWIBAN = 'N')]]></check>
+      <check name="C_BANKACC_SHOWONE_CHECK"><![CDATA[((((SHOWSPANISH = 'Y') AND (SHOWGENERIC = 'N')) AND (SHOWIBAN = 'N')) OR (((SHOWSPANISH = 'N') AND (SHOWGENERIC = 'Y')) AND (SHOWIBAN = 'N'))) OR (((SHOWSPANISH = 'N') AND (SHOWGENERIC = 'N')) AND (SHOWIBAN = 'Y'))]]></check>
+      <check name="C_BANKACC_SHOWSPANISH_CHECK"><![CDATA[((((DIGITCONTROL IS NOT NULL) AND (CODEACCOUNT IS NOT NULL)) AND (LENGTH((DIGITCONTROL)) = 1)) AND (LENGTH((CODEACCOUNT)) = 10)) OR (((DIGITCONTROL IS NULL) AND (CODEACCOUNT IS NULL)) AND (SHOWSPANISH = 'N'))]]></check>
+      <check name="C_BANKACCOUNT_ACCOUNTNO_CHECK"><![CDATA[((GENERICACCOUNT IS NOT NULL) OR (IBAN IS NOT NULL)) OR ((CODEACCOUNT IS NOT NULL) AND (DIGITCONTROL IS NOT NULL))]]></check>
+      <check name="C_BANKACCOUNT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_BANKACCOUNT_ACCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_BANKACCOUNT_ACCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -141,5 +141,6 @@
         <unique-column name="C_BANKACCOUNT_ID"/>
         <unique-column name="C_ACCTSCHEMA_ID"/>
       </unique>
+      <check name="C_BANKACCOUNT_A_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_BANKSTATEMENT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_BANKSTATEMENT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -93,5 +93,9 @@
       <index name="C_BANKSTMT_UPDATED" unique="false">
         <index-column name="UPDATED"/>
       </index>
+      <check name="C_BANKSTATEMENT_EATEFROM_CHECK"><![CDATA[CREATEFROM IN ('Y', 'N')]]></check>
+      <check name="C_BANKSTATEMENT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_BANKSTATEMENT_ISMANUAL_CHECK"><![CDATA[ISMANUAL IN ('Y', 'N')]]></check>
+      <check name="C_BANKSTATEMENT_ROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_BANKSTATEMENTLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_BANKSTATEMENTLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -128,5 +128,7 @@
       <index name="C_BANKSTMTLINE_BANKSTMT" unique="false">
         <index-column name="C_BANKSTATEMENT_ID"/>
       </index>
+      <check name="C_BANKSTATLN_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_BANKSTATLN_PA_GLITEM_ID_CHK"><![CDATA[((C_DEBT_PAYMENT_ID IS NOT NULL) AND (C_GLITEM_ID IS NULL)) OR (C_DEBT_PAYMENT_ID IS NULL)]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_BPARTNER.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_BPARTNER.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -404,5 +404,17 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="VALUE"/>
       </unique>
+      <check name="C_BPARTNER_INVOICERULE_CHK"><![CDATA[((INVOICERULE) <> 'S') OR (C_INVOICESCHEDULE_ID IS NOT NULL)]]></check>
+      <check name="C_BPARTNER_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_ISCUSTOMER_CHK"><![CDATA[ISCUSTOMER IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_ISDISCOUNTPRINT_CHK"><![CDATA[ISDISCOUNTPRINTED IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_ISEMPLOYEE_CHK"><![CDATA[ISEMPLOYEE IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_ISONETIME_CHK"><![CDATA[ISONETIME IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_ISPROSPECT_CHK"><![CDATA[ISPROSPECT IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_ISSALESREP_CHK"><![CDATA[ISSALESREP IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_ISSUMMARY_CHK"><![CDATA[ISSUMMARY IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_ISTAXEXEMPT_CHK"><![CDATA[ISTAXEXEMPT IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_ISVENDOR_CHK"><![CDATA[ISVENDOR IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_SHOWPRICEINORDE_CHK"><![CDATA[SHOWPRICEINORDER IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_BPARTNER_DISCOUNT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_BPARTNER_DISCOUNT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,6 @@
       <foreign-key foreignTable="C_DISCOUNT" name="C_BPARTNER_DISCOUNT_C_DISCOUNT">
         <reference local="C_DISCOUNT_ID" foreign="C_DISCOUNT_ID"/>
       </foreign-key>
+      <check name="C_BPDISC_APPLYINORDER_CHECK"><![CDATA[APPLYINORDER IN ('N', 'Y')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_BPARTNER_LOCATION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_BPARTNER_LOCATION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -106,5 +106,10 @@
       <index name="C_BPLOCATION_UPDATED" unique="false">
         <index-column name="UPDATED"/>
       </index>
+      <check name="C_BPARTNER_LOCATION_ISACTI_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_LOCATION_ISBILL_CHK"><![CDATA[ISBILLTO IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_LOCATION_ISPAYF_CHK"><![CDATA[ISPAYFROM IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_LOCATION_ISREMI_CHK"><![CDATA[ISREMITTO IN ('Y', 'N')]]></check>
+      <check name="C_BPARTNER_LOCATION_ISSHIP_CHK"><![CDATA[ISSHIPTO IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_BP_BANKACCOUNT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_BP_BANKACCOUNT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -155,5 +155,8 @@
       <index name="C_BPBANKACCT_BPARTNER" unique="false">
         <index-column name="C_BPARTNER_ID"/>
       </index>
+      <check name="C_BP_BACC_COUNTRY_CHECK"><![CDATA[(IBAN IS NULL) OR (C_COUNTRY_ID IS NOT NULL)]]></check>
+      <check name="C_BP_BACC_IBAN_CHECK"><![CDATA[(((SHOWIBAN = 'Y') AND (SHOWACCOUNTNO = 'N')) AND (IBAN IS NOT NULL)) OR (((SHOWIBAN = 'N') AND (SHOWACCOUNTNO = 'Y')) AND (ACCOUNTNO IS NOT NULL))]]></check>
+      <check name="C_BP_BANKACCOUNT_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_BP_CUSTOMER_ACCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_BP_CUSTOMER_ACCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -76,5 +76,6 @@
         <unique-column name="STATUS"/>
         <unique-column name="C_ACCTSCHEMA_ID"/>
       </unique>
+      <check name="C_BP_CUSTOMER_A_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_BP_EMPLOYEE_ACCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_BP_EMPLOYEE_ACCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -71,5 +71,6 @@
         <unique-column name="C_BPARTNER_ID"/>
         <unique-column name="C_ACCTSCHEMA_ID"/>
       </unique>
+      <check name="C_BP_EMPLOYEE_A_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_BP_GROUP.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_BP_GROUP.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -59,5 +59,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="VALUE"/>
       </unique>
+      <check name="C_BP_GROUP_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_BP_GROUP_ACCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_BP_GROUP_ACCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -173,5 +173,6 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="C_BP_GROUP_ACCT_WRITEOFF_ACCT">
         <reference local="WRITEOFF_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
+      <check name="C_BP_GROUP_ACCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_BP_VENDOR_ACCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_BP_VENDOR_ACCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -83,5 +83,6 @@
         <unique-column name="C_BPARTNER_ID"/>
         <unique-column name="STATUS"/>
       </unique>
+      <check name="C_BP_VENDOR_ACC_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_BP_WITHHOLDING.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_BP_WITHHOLDING.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -93,5 +93,8 @@
         <unique-column name="C_WITHHOLDING_ID"/>
         <unique-column name="C_TAX_ID"/>
       </unique>
+      <check name="C_BP_WITHHOLDING_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_BP_WITHHOLDING_ISMANDATO_CHK"><![CDATA[ISMANDATORYWITHHOLDING IN ('Y', 'N')]]></check>
+      <check name="C_BP_WITHHOLDING_ISTEMPORA_CHK"><![CDATA[ISTEMPORARYEXEMPT IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_BUDGET.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_BUDGET.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -70,5 +70,6 @@
       <foreign-key foreignTable="C_YEAR" name="C_BUDGET_C_YEAR">
         <reference local="C_YEAR_ID" foreign="C_YEAR_ID"/>
       </foreign-key>
+      <check name="C_BUDGET_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_BUDGETLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_BUDGETLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -172,5 +172,6 @@
       <foreign-key foreignTable="M_PRODUCT_CATEGORY" name="M_PRODUCT_CATEGORY_CBUDGETLINE">
         <reference local="M_PRODUCT_CATEGORY_ID" foreign="M_PRODUCT_CATEGORY_ID"/>
       </foreign-key>
+      <check name="C_BUDGETLINE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_CALENDAR.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_CALENDAR.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -51,5 +51,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="C_CALENDAR_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_CAMPAIGN.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_CAMPAIGN.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -74,5 +74,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="VALUE"/>
       </unique>
+      <check name="C_CAMPAIGN_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_CASH.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_CASH.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -125,5 +125,7 @@
       <index name="C_CASH_UPDATED" unique="false">
         <index-column name="UPDATED"/>
       </index>
+      <check name="C_CASH_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_CASH_PROCESSED_CHK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_CASHBOOK.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_CASHBOOK.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -58,5 +58,6 @@
       <foreign-key foreignTable="C_CURRENCY" name="C_CASHBOOK_C_CURRENCY">
         <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
       </foreign-key>
+      <check name="C_CASHBOOK_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_CASHBOOK_ACCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_CASHBOOK_ACCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -92,5 +92,6 @@
         <unique-column name="C_CASHBOOK_ID"/>
         <unique-column name="C_ACCTSCHEMA_ID"/>
       </unique>
+      <check name="C_CASHBOOK_ACCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_CASHLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_CASHLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -122,5 +122,9 @@
       <unique name="C_CASHLINE_DEBT_PAYMENT">
         <unique-column name="C_DEBT_PAYMENT_ID"/>
       </unique>
+      <check name="C_CASHLINE_CASHTYPE_CHK"><![CDATA[((CASHTYPE) <> 'C') OR (C_CHARGE_ID IS NOT NULL)]]></check>
+      <check name="C_CASHLINE_CASHTYPE_CHK1"><![CDATA[((CASHTYPE) <> 'G') OR (C_GLITEM_ID IS NOT NULL)]]></check>
+      <check name="C_CASHLINE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_CASHLINE_ISGENERATED_CHK"><![CDATA[ISGENERATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_CHANNEL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_CHANNEL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -51,5 +51,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="C_CHANNEL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_CHARGE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_CHARGE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -70,5 +70,8 @@
       <foreign-key foreignTable="C_TAXCATEGORY" name="C_CHARGE_C_TAXCATEGORY">
         <reference local="C_TAXCATEGORY_ID" foreign="C_TAXCATEGORY_ID"/>
       </foreign-key>
+      <check name="C_CHARGE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_CHARGE_ISSAMECURRENCY_CHK"><![CDATA[ISSAMECURRENCY IN ('Y', 'N')]]></check>
+      <check name="C_CHARGE_ISSAMETAX_CHK"><![CDATA[ISSAMETAX IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_CHARGE_ACCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_CHARGE_ACCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -71,5 +71,6 @@
         <unique-column name="C_CHARGE_ID"/>
         <unique-column name="C_ACCTSCHEMA_ID"/>
       </unique>
+      <check name="C_CHARGE_ACCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_CITY.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_CITY.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,6 @@
       <foreign-key foreignTable="AD_ORG" name="C_CITYORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="C_CITY_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_COMMISSION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_COMMISSION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -92,5 +92,8 @@
       <foreign-key foreignTable="M_PRODUCT" name="M_PRODUCT_CCOMMISSION">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
+      <check name="C_COMMISSION_CREATEFROM_CHK"><![CDATA[CREATEFROM IN ('Y', 'N')]]></check>
+      <check name="C_COMMISSION_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_COMMISSION_LISTDETAILS_CHK"><![CDATA[LISTDETAILS IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_COMMISSIONAMT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_COMMISSIONAMT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -71,5 +71,6 @@
       <index name="C_COMMISSIONAMT_RUN" unique="false">
         <index-column name="C_COMMISSIONRUN_ID"/>
       </index>
+      <check name="C_COMMISSIONAMT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_COMMISSIONDETAIL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_COMMISSIONDETAIL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -87,5 +87,6 @@
       <foreign-key foreignTable="C_ORDERLINE" name="C_COMMISSIONDETAIL_C_ORDERLINE">
         <reference local="C_ORDERLINE_ID" foreign="C_ORDERLINE_ID"/>
       </foreign-key>
+      <check name="C_COMMISSIONDET_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_COMMISSIONLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_COMMISSIONLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -123,5 +123,8 @@
       <index name="C_COMMISSIONLINE_COMMISSION" unique="false">
         <index-column name="C_COMMISSION_ID"/>
       </index>
+      <check name="C_COMMISSIONLIN_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_COMMISSIONLINE_COMMISSIO_CHK"><![CDATA[COMMISSIONORDERS IN ('Y', 'N')]]></check>
+      <check name="C_COMMISSIONLINE_ISPOSITIV_CHK"><![CDATA[ISPOSITIVEONLY IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_COMMISSIONRUN.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_COMMISSIONRUN.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -77,5 +77,7 @@
       <foreign-key foreignTable="C_INVOICE" name="C_INVOICE_CCOMMISSIONRUN">
         <reference local="C_INVOICE_ID" foreign="C_INVOICE_ID"/>
       </foreign-key>
+      <check name="C_COMMISRUN_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_COMMISRUN_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_CONVERSION_RATE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_CONVERSION_RATE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -81,5 +81,6 @@
         <unique-column name="CONVERSIONRATETYPE"/>
         <unique-column name="VALIDFROM"/>
       </unique>
+      <check name="C_CONVERSION_RA_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_COUNTRY.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_COUNTRY.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -111,5 +111,9 @@
       <unique name="C_COUNTRYCODE">
         <unique-column name="COUNTRYCODE"/>
       </unique>
+      <check name="C_COUNTRY_HASPOSTAL_ADD_CHECK"><![CDATA[HASPOSTAL_ADD IN ('Y', 'N')]]></check>
+      <check name="C_COUNTRY_HASREGION_CHECK"><![CDATA[HASREGION IN ('Y', 'N')]]></check>
+      <check name="C_COUNTRY_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_COUNTRY_ISDEFAULT_CHECK"><![CDATA[ISDEFAULT IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_COUNTRY_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_COUNTRY_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -77,5 +77,7 @@
         <unique-column name="C_COUNTRY_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="C_COUNTRY_TRL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_COUNTRY_TRL_ISTRANSLATED_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_CURRENCY.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_CURRENCY.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -70,5 +70,6 @@
       <unique name="C_CURRENCYISOCODE">
         <unique-column name="ISO_CODE"/>
       </unique>
+      <check name="C_CURRENCY_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_CURRENCY_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_CURRENCY_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -69,5 +69,7 @@
         <unique-column name="C_CURRENCY_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="C_CURRENCY_TRL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_CURRENCY_TRL_ISTRANSLATE_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_DEBT_PAYMENT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_DEBT_PAYMENT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -214,5 +214,20 @@
       <index name="C_DEBT_PAYMENT_SETTGENERAT_IDX" unique="false">
         <index-column name="C_SETTLEMENT_GENERATE_ID"/>
       </index>
+      <check name="C_DEBT_PAYMENT_C_BANKSTATE_CHK"><![CDATA[((C_BANKSTATEMENTLINE_ID IS NULL) AND (C_CASHLINE_ID IS NULL)) OR (ISPAID = 'Y')]]></check>
+      <check name="C_DEBT_PAYMENT_C_BPARTNER__CHK"><![CDATA[C_BPARTNER_ID IS NOT NULL]]></check>
+      <check name="C_DEBT_PAYMENT_C_CASHLINE__CHK"><![CDATA[(C_CASHLINE_ID IS NULL) OR (C_BANKSTATEMENTLINE_ID IS NULL)]]></check>
+      <check name="C_DEBT_PAYMENT_C_SETTLEMEN_CH1"><![CDATA[((C_SETTLEMENT_CANCEL_ID IS NOT NULL) OR (C_SETTLEMENT_GENERATE_ID IS NOT NULL)) OR (ISPAID = 'N')]]></check>
+      <check name="C_DEBT_PAYMENT_C_SETTLEMEN_CHK"><![CDATA[(C_SETTLEMENT_CANCEL_ID IS NULL) OR (ISVALID = 'Y')]]></check>
+      <check name="C_DEBT_PAYMENT_CANCEL_PROC_CH1"><![CDATA[CANCEL_PROCESSED IN ('Y', 'N')]]></check>
+      <check name="C_DEBT_PAYMENT_CANCEL_PROC_CHK"><![CDATA[(CANCEL_PROCESSED = 'N') OR (C_SETTLEMENT_CANCEL_ID IS NOT NULL)]]></check>
+      <check name="C_DEBT_PAYMENT_GENERATE_PR_CHK"><![CDATA[GENERATE_PROCESSED IN ('Y', 'N')]]></check>
+      <check name="C_DEBT_PAYMENT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_DEBT_PAYMENT_ISDIRECTPOS_CHK"><![CDATA[(ISDIRECTPOSTING = 'N') OR (C_GLITEM_ID IS NOT NULL)]]></check>
+      <check name="C_DEBT_PAYMENT_ISMANUAL"><![CDATA[ISMANUAL IN ('Y', 'N')]]></check>
+      <check name="C_DEBT_PAYMENT_ISRECEIPT"><![CDATA[ISRECEIPT IN ('Y', 'N')]]></check>
+      <check name="C_DEBT_PAYMENT_ISVALID"><![CDATA[ISVALID IN ('Y', 'N')]]></check>
+      <check name="C_DEBT_PAYMENT_ISVALID_CHK"><![CDATA[(ISVALID = 'N') OR (ISACTIVE = 'Y')]]></check>
+      <check name="C_DEBT_PAYMENT_ISVALID_CHK1"><![CDATA[(((ISVALID = 'Y') AND (((C_SETTLEMENT_GENERATE_ID IS NULL) AND (GENERATE_PROCESSED = 'N')) OR ((C_SETTLEMENT_GENERATE_ID IS NOT NULL) AND (GENERATE_PROCESSED = 'Y')))) OR (((ISVALID = 'N') AND (C_SETTLEMENT_GENERATE_ID IS NOT NULL)) AND (GENERATE_PROCESSED = 'N'))) OR ((ISVALID = 'N') AND (ISAUTOMATICGENERATED = 'N'))]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_DEBT_PAYMENT_BALANCING.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_DEBT_PAYMENT_BALANCING.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -65,5 +65,6 @@
         <index-column name="C_DEBT_PAYMENT_ID"/>
         <index-column name="C_GLITEM_ID"/>
       </index>
+      <check name="C_DEBT_PAYMENT_BALANCING_I_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_DEBT_PAYMENT_BAL_REPLACE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_DEBT_PAYMENT_BAL_REPLACE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -65,5 +65,6 @@
       <foreign-key foreignTable="C_GLITEM" name="C_DEBT_PAYMENT_BAL_REPLACE_C_G">
         <reference local="C_GLITEM_ID" foreign="C_GLITEM_ID"/>
       </foreign-key>
+      <check name="C_DEBT_PAYMENT_BAL_REPLACE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_DOCTYPE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_DOCTYPE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -133,5 +133,9 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="C_DOCTYPE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_DOCTYPE_ISDOCNOCONTROLLE_CHK"><![CDATA[ISDOCNOCONTROLLED IN ('Y', 'N')]]></check>
+      <check name="C_DOCTYPE_ISSOTRX_CHECK"><![CDATA[ISSOTRX IN ('Y', 'N')]]></check>
+      <check name="C_DOCTYPE_ORGFILTERED_CHECK"><![CDATA[ORGFILTERED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_DOCTYPE_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_DOCTYPE_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,7 @@
         <unique-column name="C_DOCTYPE_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="C_DOCTYPE_TRL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_DOCTYPE_TRL_ISTRANSLATED_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_ELEMENT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_ELEMENT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -88,5 +88,8 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="C_ELEMENT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_ELEMENT_ISBALANCING_CHECK"><![CDATA[ISBALANCING IN ('Y', 'N')]]></check>
+      <check name="C_ELEMENT_ISNATURALACCOUNT_CHK"><![CDATA[ISNATURALACCOUNT IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_ELEMENTVALUE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_ELEMENTVALUE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -139,5 +139,13 @@
         <unique-column name="C_ELEMENT_ID"/>
         <unique-column name="VALUE"/>
       </unique>
+      <check name="C_ELEMENTVALUE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_ELEMENTVALUE_ISBANKACCOU_CHK"><![CDATA[ISBANKACCOUNT IN ('Y', 'N')]]></check>
+      <check name="C_ELEMENTVALUE_ISDOCCONTRO_CHK"><![CDATA[ISDOCCONTROLLED IN ('Y', 'N')]]></check>
+      <check name="C_ELEMENTVALUE_ISFOREIGNCU_CHK"><![CDATA[ISFOREIGNCURRENCY IN ('Y', 'N')]]></check>
+      <check name="C_ELEMENTVALUE_POSTACTUAL_CHK"><![CDATA[POSTACTUAL IN ('Y', 'N')]]></check>
+      <check name="C_ELEMENTVALUE_POSTBUDGET_CHK"><![CDATA[POSTBUDGET IN ('Y', 'N')]]></check>
+      <check name="C_ELEMENTVALUE_POSTENCUMBR_CHK"><![CDATA[POSTENCUMBRANCE IN ('Y', 'N')]]></check>
+      <check name="C_ELEMENTVALUE_POSTSTATIST_CHK"><![CDATA[POSTSTATISTICAL IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_ELEMENTVALUE_OPERAND.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_ELEMENTVALUE_OPERAND.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,6 @@
       <foreign-key foreignTable="C_ELEMENTVALUE" name="C_ELEMENTVALUE_OPERAND_C_ELEME">
         <reference local="C_ELEMENTVALUE_ID" foreign="C_ELEMENTVALUE_ID"/>
       </foreign-key>
+      <check name="C_ELEMENTVALUE_OPERAND_ISA_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_ELEMENTVALUE_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_ELEMENTVALUE_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -69,5 +69,7 @@
         <unique-column name="C_ELEMENTVALUE_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="C_ELEMENTVALUE_TRL_ISACTIV_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_ELEMENTVALUE_TRL_ISTRANS_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_EXTERNALPOS_CATEGORY.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_EXTERNALPOS_CATEGORY.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
         <unique-column name="M_PRODUCT_CATEGORY_ID"/>
         <unique-column name="C_EXTERNALPOS_ID"/>
       </unique>
+      <check name="C_EXTERNALPOS_C_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_GLITEM.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_GLITEM.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -76,5 +76,10 @@
       <foreign-key foreignTable="C_WITHHOLDING" name="C_GLITEM_C_WITHHOLDING">
         <reference local="C_WITHHOLDING_ID" foreign="C_WITHHOLDING_ID"/>
       </foreign-key>
+      <check name="C_GLITEM_FINCAT_CHECK"><![CDATA[((ENABLEINFININVOICES = 'Y') AND (C_TAXCATEGORY_ID IS NOT NULL)) OR ((ENABLEINFININVOICES = 'N') AND (C_TAXCATEGORY_ID IS NULL))]]></check>
+      <check name="C_GLITEM_FININVOICES_CHECK"><![CDATA[ENABLEINFININVOICES IN ('Y', 'N')]]></check>
+      <check name="C_GLITEM_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_GLITEM_TAXANDCAT_CHECK"><![CDATA[(((C_TAXCATEGORY_ID IS NOT NULL) AND (C_TAX_ID IS NULL)) AND (C_WITHHOLDING_ID IS NULL)) OR (C_TAXCATEGORY_ID IS NULL)]]></check>
+      <check name="C_GLITEM_TAXANDWH_CHECK"><![CDATA[(C_TAX_ID IS NULL) OR (C_WITHHOLDING_ID IS NULL)]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_GLITEM_ACCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_GLITEM_ACCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -71,5 +71,6 @@
         <unique-column name="C_GLITEM_ID"/>
         <unique-column name="C_ACCTSCHEMA_ID"/>
       </unique>
+      <check name="C_GLITEM_ACCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_GREETING.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_GREETING.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -55,5 +55,8 @@
       <foreign-key foreignTable="AD_ORG" name="C_GREETING_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="C_GREETING_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_GREETING_ISDEFAULT_CHECK"><![CDATA[ISDEFAULT IN ('Y', 'N')]]></check>
+      <check name="C_GREETING_ISFIRSTNAMEONLY_CHK"><![CDATA[ISFIRSTNAMEONLY IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_GREETING_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_GREETING_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -69,5 +69,7 @@
         <index-column name="C_GREETING_ID"/>
         <index-column name="AD_LANGUAGE"/>
       </index>
+      <check name="C_GREETING_TRL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_GREETING_TRL_ISTRANSLATE_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_INCOTERMS.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_INCOTERMS.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -55,5 +55,8 @@
       <foreign-key foreignTable="AD_ORG" name="C_INCOTERMS_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="C_INCOTERMS_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_INCOTERMS_ISDELIVERY_CHECK"><![CDATA[ISDELIVERY IN ('Y', 'N')]]></check>
+      <check name="C_INCOTERMS_REQUIRESDESCRI_CHK"><![CDATA[REQUIRESDESCRIPTION IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_INTERORG_ACCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_INTERORG_ACCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -72,5 +72,6 @@
         <unique-column name="AD_ORG_ID"/>
         <unique-column name="AD_ORGTO_ID"/>
       </unique>
+      <check name="C_INTERORG_ACCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_INVOICE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_INVOICE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -313,5 +313,13 @@
       <index name="C_INVOICE_UPDATED" unique="false">
         <index-column name="UPDATED"/>
       </index>
+      <check name="C_INVOICE_CREATEFROM_CHECK"><![CDATA[CREATEFROM IN ('Y', 'N')]]></check>
+      <check name="C_INVOICE_GENERATETO_CHECK"><![CDATA[GENERATETO IN ('Y', 'N')]]></check>
+      <check name="C_INVOICE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_INVOICE_ISDISCOUNTPRINTE_CHK"><![CDATA[ISDISCOUNTPRINTED IN ('Y', 'N')]]></check>
+      <check name="C_INVOICE_ISPRINTED_CHECK"><![CDATA[ISPRINTED IN ('Y', 'N')]]></check>
+      <check name="C_INVOICE_ISSOTRX_CHECK"><![CDATA[ISSOTRX IN ('Y', 'N')]]></check>
+      <check name="C_INVOICE_ISTAXINCLUDED_CHECK"><![CDATA[ISTAXINCLUDED IN ('Y', 'N')]]></check>
+      <check name="C_INVOICE_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_INVOICELINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_INVOICELINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -213,5 +213,11 @@
       <index name="C_INVOICELINE_PRODUCT" unique="false">
         <index-column name="M_PRODUCT_ID"/>
       </index>
+      <check name="C_INVOICELINE_CHECK1"><![CDATA[((QUANTITYORDER IS NULL) AND (M_PRODUCT_UOM_ID IS NULL)) OR ((QUANTITYORDER IS NOT NULL) AND (M_PRODUCT_UOM_ID IS NOT NULL))]]></check>
+      <check name="C_INVOICELINE_CHECK2"><![CDATA[(LINENETAMT = 0) OR (C_TAX_ID IS NOT NULL)]]></check>
+      <check name="C_INVOICELINE_FIN_INVLINE_CHK"><![CDATA[FINANCIAL_INVOICE_LINE IN ('Y', 'N')]]></check>
+      <check name="C_INVOICELINE_FINACCT_CHK"><![CDATA[((FINANCIAL_INVOICE_LINE = 'Y') AND (ACCOUNT_ID IS NOT NULL)) OR ((FINANCIAL_INVOICE_LINE = 'N') AND (ACCOUNT_ID IS NULL))]]></check>
+      <check name="C_INVOICELINE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_INVOICELINE_PRODACCT_CHK"><![CDATA[((ACCOUNT_ID IS NOT NULL) AND (M_PRODUCT_ID IS NULL)) OR (ACCOUNT_ID IS NULL)]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_INVOICELINETAX.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_INVOICELINETAX.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -79,5 +79,6 @@
       <index name="C_INVOICELINETAX_INVOICEID" unique="false">
         <index-column name="C_INVOICE_ID"/>
       </index>
+      <check name="C_INVOICELINETA_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_INVOICESCHEDULE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_INVOICESCHEDULE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -83,5 +83,8 @@
       <foreign-key foreignTable="AD_ORG" name="C_INVOICESCHEDULE_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="C_INVOICESCHEDULE_EVENINVO_CHK"><![CDATA[EVENINVOICEWEEK IN ('Y', 'N')]]></check>
+      <check name="C_INVOICESCHEDULE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_INVOICESCHEDULE_ISAMOUNT_CHK"><![CDATA[ISAMOUNT IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_INVOICETAX.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_INVOICETAX.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -72,5 +72,6 @@
       <index name="C_INVOICETAX_INVOICEID" unique="false">
         <index-column name="C_INVOICE_ID"/>
       </index>
+      <check name="C_INVOICETAX_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_LOCATION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_LOCATION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -84,5 +84,6 @@
       <foreign-key foreignTable="C_REGION" name="C_REGION_LOCATION">
         <reference local="C_REGION_ID" foreign="C_REGION_ID"/>
       </foreign-key>
+      <check name="C_LOCATION_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_NONBUSINESSDAY.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_NONBUSINESSDAY.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -54,5 +54,6 @@
       <foreign-key foreignTable="AD_ORG" name="C_NONBUSINESDAYSORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="C_NONBUSINESSDA_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_ORDER.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_ORDER.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -363,5 +363,14 @@
       <index name="C_ORDER_UPDATED" unique="false">
         <index-column name="UPDATED"/>
       </index>
+      <check name="C_ORDER_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_ORDER_ISDELIVERED_CHECK"><![CDATA[ISDELIVERED IN ('Y', 'N')]]></check>
+      <check name="C_ORDER_ISDISCOUNTPRINTED_CHK"><![CDATA[ISDISCOUNTPRINTED IN ('Y', 'N')]]></check>
+      <check name="C_ORDER_ISINVOICED_CHECK"><![CDATA[ISINVOICED IN ('Y', 'N')]]></check>
+      <check name="C_ORDER_ISPRINTED_CHECK"><![CDATA[ISPRINTED IN ('Y', 'N')]]></check>
+      <check name="C_ORDER_ISSELECTED_CHECK"><![CDATA[ISSELECTED IN ('Y', 'N')]]></check>
+      <check name="C_ORDER_ISSOTRX_CHECK"><![CDATA[ISSOTRX IN ('Y', 'N')]]></check>
+      <check name="C_ORDER_ISTAXINCLUDED_CHECK"><![CDATA[ISTAXINCLUDED IN ('Y', 'N')]]></check>
+      <check name="C_ORDER_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_ORDERLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_ORDERLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -253,5 +253,9 @@
       <index name="C_ORDERLINE_PRODUCT" unique="false">
         <index-column name="M_PRODUCT_ID"/>
       </index>
+      <check name="C_ORDERLINE_CHECK1"><![CDATA[((QUANTITYORDER IS NULL) AND (M_PRODUCT_UOM_ID IS NULL)) OR ((QUANTITYORDER IS NOT NULL) AND (M_PRODUCT_UOM_ID IS NOT NULL))]]></check>
+      <check name="C_ORDERLINE_CHECK2"><![CDATA[(LINENETAMT = 0) OR (C_TAX_ID IS NOT NULL)]]></check>
+      <check name="C_ORDERLINE_DIRECTSHIP_CHECK"><![CDATA[DIRECTSHIP IN ('Y', 'N')]]></check>
+      <check name="C_ORDERLINE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_ORDERLINETAX.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_ORDERLINETAX.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -76,5 +76,6 @@
         <unique-column name="C_ORDERLINE_ID"/>
         <unique-column name="C_TAX_ID"/>
       </unique>
+      <check name="C_ORDERLINETAX_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_ORDERTAX.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_ORDERTAX.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -69,5 +69,6 @@
         <unique-column name="C_ORDER_ID"/>
         <unique-column name="C_TAX_ID"/>
       </unique>
+      <check name="C_ORDERTAX_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_PAYMENTTERM.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_PAYMENTTERM.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -99,5 +99,8 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="C_PAYMENTTERM_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_PAYMENTTERM_ISDUEFIXED_CHK"><![CDATA[ISDUEFIXED IN ('Y', 'N')]]></check>
+      <check name="C_PAYMENTTERM_ISNEXTBUSINE_CHK"><![CDATA[ISNEXTBUSINESSDAY IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_PAYMENTTERMLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_PAYMENTTERMLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -109,5 +109,10 @@
       <foreign-key foreignTable="FIN_PAYMENTMETHOD" name="C_PAYMENTTERMLINE_FIN_PAY_FK1">
         <reference local="FIN_PAYMENTMETHOD_ID" foreign="FIN_PAYMENTMETHOD_ID"/>
       </foreign-key>
+      <check name="C_PAYMENTTERMLINE_EXCLUDET_CHK"><![CDATA[EXCLUDETAX IN ('Y', 'N')]]></check>
+      <check name="C_PAYMENTTERMLINE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_PAYMENTTERMLINE_ISDUEFIX_CHK"><![CDATA[ISDUEFIXED IN ('Y', 'N')]]></check>
+      <check name="C_PAYMENTTERMLINE_ISNEXTBU_CHK"><![CDATA[ISNEXTBUSINESSDAY IN ('Y', 'N')]]></check>
+      <check name="C_PAYMENTTERMLINE_ONREMAIN_CHK"><![CDATA[ONREMAINDER IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_PAYMENTTERM_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_PAYMENTTERM_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,7 @@
         <unique-column name="C_PAYMENTTERM_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="C_PAYMENTTERM_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_PAYMENTTERM_TRL_ISTRANSL_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_PERIOD.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_PERIOD.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -95,5 +95,6 @@
         <unique-column name="STARTDATE"/>
         <unique-column name="ENDDATE"/>
       </unique>
+      <check name="C_PERIOD_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_PERIODCONTROL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_PERIODCONTROL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -65,5 +65,6 @@
       <index name="C_PERIODCONTROL_PERIOD" unique="false">
         <index-column name="C_PERIOD_ID"/>
       </index>
+      <check name="C_PERIODCONTROL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_PERIODCONTROL_LOG.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_PERIODCONTROL_LOG.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -84,5 +84,9 @@
       <foreign-key foreignTable="C_PERIOD" name="C_PERIODCONTROL_LOG_PERIODNO">
         <reference local="PERIODNO" foreign="C_PERIOD_ID"/>
       </foreign-key>
+      <check name="C_PERIODCTRLLOG_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_PERIODCTRLLOG_PROCESSED_CHK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
+      <check name="C_PERIODCTRLLOG_PROCESSING_CHK"><![CDATA[PROCESSING IN ('Y', 'N')]]></check>
+      <check name="C_PERIODCTRLLOG_RECURSIVE_CHK"><![CDATA[ISRECURSIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_POC_DOCTYPE_TEMPLATE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_POC_DOCTYPE_TEMPLATE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -77,5 +77,7 @@
       <index name="C_POC_DOCTYPE_TEMP_DOCTYPE_IDX" unique="false">
         <index-column name="C_DOCTYPE_ID"/>
       </index>
+      <check name="C_POC_DOCTYPETEMP_SHOWCOMP_CHK"><![CDATA[SHOWCOMPANYDATA IN ('Y', 'N')]]></check>
+      <check name="C_POC_DOCTYPETEMP_SHOWLOGO_CHK"><![CDATA[SHOWLOGO IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_PROJECT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_PROJECT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -346,5 +346,10 @@
         <index-column name="AD_CLIENT_ID"/>
         <index-column name="VALUE"/>
       </index>
+      <check name="C_PROJECT_GENERATETO_CHECK"><![CDATA[GENERATETO IN ('Y', 'N')]]></check>
+      <check name="C_PROJECT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_PROJECT_ISCOMMITMENT_CHECK"><![CDATA[ISCOMMITMENT IN ('Y', 'N')]]></check>
+      <check name="C_PROJECT_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
+      <check name="C_PROJECT_TEMPPRICELIST_CHECK"><![CDATA[CREATETEMPPRICELIST IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_PROJECTISSUE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_PROJECTISSUE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -105,5 +105,6 @@
       <foreign-key foreignTable="S_TIMEEXPENSELINE" name="C_PROJECTISSUE_S_TIMEEXPENSELI">
         <reference local="S_TIMEEXPENSELINE_ID" foreign="S_TIMEEXPENSELINE_ID"/>
       </foreign-key>
+      <check name="C_PROJECTISSUE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_PROJECTLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_PROJECTLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -156,5 +156,6 @@
       <foreign-key foreignTable="C_TAX" name="C_TAX_FK_PROJECTLINE">
         <reference local="C_TAX_ID" foreign="C_TAX_ID"/>
       </foreign-key>
+      <check name="C_PROJECTLINE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_PROJECTPROPOSAL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_PROJECTPROPOSAL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -109,5 +109,6 @@
       <foreign-key foreignTable="FIN_PAYMENTMETHOD" name="C_PROJECTPROPOSAL_FINPAYMETHOD">
         <reference local="FIN_PAYMENTMETHOD_ID" foreign="FIN_PAYMENTMETHOD_ID"/>
       </foreign-key>
+      <check name="C_PROJECTPROPOS_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_PROJECTPROPOSALLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_PROJECTPROPOSALLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -81,5 +81,6 @@
       <foreign-key foreignTable="M_PRODUCT" name="C_PROJECTPROPOSALLINE_M_PRODUC">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
+      <check name="C_PROJECTPROPOSALLINE_ISAC_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_PROJECTPROPOSALTASK.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_PROJECTPROPOSALTASK.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
       <foreign-key foreignTable="C_PROJECTPROPOSAL" name="C_PROJECTPROPOSALTASK_C_PROJEC">
         <reference local="C_PROJECTPROPOSAL_ID" foreign="C_PROJECTPROPOSAL_ID"/>
       </foreign-key>
+      <check name="C_PRPROPTK_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_PROJECT_ACCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_PROJECT_ACCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -71,5 +71,6 @@
         <unique-column name="C_PROJECT_ID"/>
         <unique-column name="C_ACCTSCHEMA_ID"/>
       </unique>
+      <check name="C_PROJECT_ACCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_PROJECT_VENDOR.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_PROJECT_VENDOR.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -86,5 +86,6 @@
       <foreign-key foreignTable="M_PRICELIST_VERSION" name="C_PROJECT_VENDOR_M_PRICELIST_V">
         <reference local="M_PRICELIST_VERSION_ID" foreign="M_PRICELIST_VERSION_ID"/>
       </foreign-key>
+      <check name="C_PROJECT_VENDO_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_PROMISSORYFORMAT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_PROMISSORYFORMAT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -162,5 +162,7 @@
       <foreign-key foreignTable="C_BANKACCOUNT" name="C_PROMISSORYFORMAT_C_BANKACCOU">
         <reference local="C_BANKACCOUNT_ID" foreign="C_BANKACCOUNT_ID"/>
       </foreign-key>
+      <check name="C_PROMISSORYFORMAT_ISACTIV_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_PROMISSORYFORMAT_PRINTBA_CHK"><![CDATA[PRINTBANKLOC IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_REGION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_REGION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -66,5 +66,7 @@
         <unique-column name="C_COUNTRY_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="C_REGION_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_REGION_ISDEFAULT_CHECK"><![CDATA[ISDEFAULT IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_REMITTANCE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_REMITTANCE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -99,5 +99,6 @@
       <foreign-key foreignTable="C_SETTLEMENT" name="C_REMITTANCE_C_SETTLEMENT">
         <reference local="C_SETTLEMENT_ID" foreign="C_SETTLEMENT_ID"/>
       </foreign-key>
+      <check name="C_REMITTANCE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_REMITTANCE_TYPE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_REMITTANCE_TYPE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -63,5 +63,6 @@
       <foreign-key foreignTable="AD_CLIENT" name="C_REMITTANCE_TYPE_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="C_REMITTANCE_TY_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_REVENUERECOGNITION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_REVENUERECOGNITION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -59,5 +59,6 @@
       <foreign-key foreignTable="AD_ORG" name="C_REVENUERECOGNITION_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="C_REVENUERECOGN_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_REVENUERECOGNITION_PLAN.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_REVENUERECOGNITION_PLAN.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -89,5 +89,6 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="C_REVENUERECOGNITION_PLAN_UNEA">
         <reference local="UNEARNEDREVENUE_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
+      <check name="C_REVENUERECOGNITION_PLAN__CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_REVENUERECOGNITION_RUN.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_REVENUERECOGNITION_RUN.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
       <foreign-key foreignTable="GL_JOURNAL" name="C_REVENUERECOGNITION_RUN_GL_JO">
         <reference local="GL_JOURNAL_ID" foreign="GL_JOURNAL_ID"/>
       </foreign-key>
+      <check name="C_REVENUERECOGNITION_RUN_I_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_SALARY_CATEGORY.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_SALARY_CATEGORY.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -51,5 +51,6 @@
       <foreign-key foreignTable="AD_ORG" name="C_SALARY_CATEGORY_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="C_SALARY_CATEGO_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_SALESREGION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_SALESREGION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -70,5 +70,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="VALUE"/>
       </unique>
+      <check name="C_SALESREGION_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_SERVICELEVEL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_SERVICELEVEL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,7 @@
       <foreign-key foreignTable="M_PRODUCT" name="C_SERVICELEVEL_M_PRODUCT">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
+      <check name="C_SERVICELEVEL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_SERVICELEVEL_PROCESSED_CHK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_SERVICELEVELLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_SERVICELEVELLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -62,5 +62,7 @@
       <foreign-key foreignTable="C_SERVICELEVEL" name="C_SERVICELEVELLINE_C_SERVICELE" onDelete="cascade">
         <reference local="C_SERVICELEVEL_ID" foreign="C_SERVICELEVEL_ID"/>
       </foreign-key>
+      <check name="C_SERVICELEVELLINE_ISACTIV_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_SERVICELEVELLINE_PROCESS_CHK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_SETTLEMENT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_SETTLEMENT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -153,5 +153,9 @@
       <index name="C_SETTLEMENT_UPDATED" unique="false">
         <index-column name="UPDATED"/>
       </index>
+      <check name="C_SETTLEMENT_CREATEFILE_CHK"><![CDATA[CREATEFILE IN ('Y', 'N')]]></check>
+      <check name="C_SETTLEMENT_DATEACCT_CHK"><![CDATA[DATEACCT IS NOT NULL]]></check>
+      <check name="C_SETTLEMENT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_SETTLEMENT_PROCESSED_CHK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_TAX.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_TAX.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -181,5 +181,7 @@
         <unique-column name="NAME"/>
         <unique-column name="PARENT_TAX_ID"/>
       </unique>
+      <check name="C_TAX_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_TAX_ISTAXDEDUCTABLE"><![CDATA[ISTAXDEDUCTABLE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_TAXCATEGORY.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_TAXCATEGORY.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -56,5 +56,6 @@
         <unique-column name="AD_ORG_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="C_TAXCATEGORY_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_TAXCATEGORY_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_TAXCATEGORY_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -69,5 +69,7 @@
         <unique-column name="C_TAXCATEGORY_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="C_TAXCATEGORY_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_TAXCATEGORY_TRL_ISTRANSL_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_TAX_ACCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_TAX_ACCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -92,5 +92,6 @@
         <unique-column name="C_TAX_ID"/>
         <unique-column name="C_ACCTSCHEMA_ID"/>
       </unique>
+      <check name="C_TAX_ACCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_TAX_REPORT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_TAX_REPORT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -74,5 +74,11 @@
       <foreign-key foreignTable="C_TAX" name="C_TAX_REPORT_C_TAX">
         <reference local="C_TAX_ID" foreign="C_TAX_ID"/>
       </foreign-key>
+      <check name="C_TAX_REPORT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_TAX_REPORT_ISNEGATIVE_CHECK"><![CDATA[ISNEGATIVE IN ('Y', 'N')]]></check>
+      <check name="C_TAX_REPORT_ISREPORT_CHECK"><![CDATA[ISREPORT IN ('Y', 'N')]]></check>
+      <check name="C_TAX_REPORT_ISSHOWN_CHECK"><![CDATA[ISSHOWN IN ('Y', 'N')]]></check>
+      <check name="C_TAX_REPORT_ISSOTRX_CHECK"><![CDATA[ISSOTRX IN ('Y', 'N')]]></check>
+      <check name="C_TAX_REPORT_ISSUMMARY_CHECK"><![CDATA[ISSUMMARY IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_TAX_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_TAX_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,7 @@
         <unique-column name="C_TAX_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="C_TAX_TRL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_TAX_TRL_ISTRANSLATED_CHECK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_UOM.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_UOM.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -78,5 +78,7 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="C_UOM_BREAKDOWN_CHK"><![CDATA[BREAKDOWN IN ('Y', 'N')]]></check>
+      <check name="C_UOM_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_UOM_CONVERSION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_UOM_CONVERSION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,6 @@
       <foreign-key foreignTable="C_UOM" name="C_UOMCONVERSIONTO">
         <reference local="C_UOM_TO_ID" foreign="C_UOM_ID"/>
       </foreign-key>
+      <check name="C_UOM_CONVERSIO_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_UOM_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_UOM_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,7 @@
         <unique-column name="C_UOM_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="C_UOM_TRL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_UOM_TRL_ISTRANSLATED_CHECK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_VALIDCOMBINATION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_VALIDCOMBINATION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -150,5 +150,7 @@
         <index-column name="AD_ORG_ID"/>
         <index-column name="ACCOUNT_ID"/>
       </index>
+      <check name="C_VALIDCOMBINATION_ISACTIV_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_VALIDCOMBINATION_ISFULLY_CHK"><![CDATA[ISFULLYQUALIFIED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_WITHHOLDING.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_WITHHOLDING.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -105,5 +105,10 @@
       <foreign-key foreignTable="C_PAYMENTTERM" name="C_WITHHOLDING_C_PAYMENTTERM">
         <reference local="C_PAYMENTTERM_ID" foreign="C_PAYMENTTERM_ID"/>
       </foreign-key>
+      <check name="C_WITHHOLDING_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_WITHHOLDING_ISPAIDTO3PAR_CHK"><![CDATA[ISPAIDTO3PARTY IN ('Y', 'N')]]></check>
+      <check name="C_WITHHOLDING_ISPERCENTWIT_CHK"><![CDATA[ISPERCENTWITHHOLDING IN ('Y', 'N')]]></check>
+      <check name="C_WITHHOLDING_ISTAXPRORATE_CHK"><![CDATA[ISTAXPRORATED IN ('Y', 'N')]]></check>
+      <check name="C_WITHHOLDING_ISTAXWITHHOL_CHK"><![CDATA[ISTAXWITHHOLDING IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_WITHHOLDING_ACCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_WITHHOLDING_ACCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -64,5 +64,6 @@
         <unique-column name="C_WITHHOLDING_ID"/>
         <unique-column name="C_ACCTSCHEMA_ID"/>
       </unique>
+      <check name="C_WITHHOLDING_A_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/C_YEAR.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/C_YEAR.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -70,5 +70,6 @@
         <unique-column name="C_CALENDAR_ID"/>
         <unique-column name="YEAR"/>
       </unique>
+      <check name="C_YEAR_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/FACT_ACCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/FACT_ACCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -282,5 +282,6 @@
         <index-column name="AD_TABLE_ID"/>
         <index-column name="RECORD_ID"/>
       </index>
+      <check name="FACT_ACCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/FIN_BANKFILE_FORMAT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/FIN_BANKFILE_FORMAT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -51,5 +51,6 @@
       <foreign-key foreignTable="AD_ORG" name="FIN_BANKFILE_FORMAT_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="FIN_BANKFILEFORMAT_ACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/FIN_BANKSTATEMENT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/FIN_BANKSTATEMENT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -92,5 +92,8 @@
       <foreign-key foreignTable="FIN_RECONCILIATION" name="FIN_BANKSTAT_FINRECONCILIATION">
         <reference local="FIN_RECONCILIATION_ID" foreign="FIN_RECONCILIATION_ID"/>
       </foreign-key>
+      <check name="FIN_BANKSTAT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="FIN_BANKSTAT_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
+      <check name="FIN_BANKSTAT_PROCESSING_CHECK"><![CDATA[PROCESSING IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/FIN_BANKSTATEMENTLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/FIN_BANKSTATEMENTLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -88,5 +88,6 @@
       <foreign-key foreignTable="FIN_BANKSTATEMENT" name="FIN_BANKSTATLINE_FINNBANKSTAT">
         <reference local="FIN_BANKSTATEMENT_ID" foreign="FIN_BANKSTATEMENT_ID"/>
       </foreign-key>
+      <check name="FIN_BANKSTATLINE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/FIN_FINACC_PAYMENTMETHOD.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/FIN_FINACC_PAYMENTMETHOD.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -135,5 +135,14 @@
         <unique-column name="FIN_PAYMENTMETHOD_ID"/>
         <unique-column name="FIN_FINANCIAL_ACCOUNT_ID"/>
       </unique>
+      <check name="FIN_FINACC_METHOD_ACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="FIN_FINACC_METHOD_DEPOSIT_CHK"><![CDATA[AUTOMATIC_DEPOSIT IN ('Y', 'N')]]></check>
+      <check name="FIN_FINACC_METHOD_PAYMENT_CHK"><![CDATA[AUTOMATIC_PAYMENT IN ('Y', 'N')]]></check>
+      <check name="FIN_FINACC_METHOD_RECEIPT_CHK"><![CDATA[AUTOMATIC_RECEIPT IN ('Y', 'N')]]></check>
+      <check name="FIN_FINACC_METHOD_WITHDRAW_CHK"><![CDATA[AUTOMATIC_WITHDRAWN IN ('Y', 'N')]]></check>
+      <check name="FIN_FINACCMETH_PAYINALLOW_CHK"><![CDATA[PAYIN_ALLOW IN ('Y', 'N')]]></check>
+      <check name="FIN_FINACCMETH_PAYINDEF_CHK"><![CDATA[PAYIN_DEFERRED IN ('Y', 'N')]]></check>
+      <check name="FIN_FINACCMETH_PAYOUTALLOW_CHK"><![CDATA[PAYOUT_ALLOW IN ('Y', 'N')]]></check>
+      <check name="FIN_FINACCMETH_PAYOUTDEF_CHK"><![CDATA[PAYOUT_DEFERRED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/FIN_FINANCIAL_ACCOUNT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/FIN_FINANCIAL_ACCOUNT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -131,5 +131,6 @@
       <foreign-key foreignTable="FIN_MATCHING_ALGORITHM" name="FIN_FINACC_MATCH_ALGORITHM">
         <reference local="FIN_MATCHING_ALGORITHM_ID" foreign="FIN_MATCHING_ALGORITHM_ID"/>
       </foreign-key>
+      <check name="FIN_FINACC_DEFAULT_CHECK"><![CDATA[ISDEFAULT IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/FIN_FINANCIAL_ACCOUNT_ACCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/FIN_FINANCIAL_ACCOUNT_ACCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -148,5 +148,6 @@
         <unique-column name="FIN_FINANCIAL_ACCOUNT_ID"/>
         <unique-column name="C_ACCTSCHEMA_ID"/>
       </unique>
+      <check name="FIN_FINACC_ACCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/FIN_MATCHING_ALGORITHM.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/FIN_MATCHING_ALGORITHM.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -51,5 +51,6 @@
       <foreign-key foreignTable="AD_ORG" name="FIN_MATCHING_ALGORITHM_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="FIN_MATCH_ALGORITHM_ACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/FIN_PAYMENTMETHOD.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/FIN_PAYMENTMETHOD.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -125,5 +125,14 @@
       <foreign-key foreignTable="FIN_PAY_EXEC_PROCESS" name="FIN_PAYMETH_PAYOUTEXECPROC">
         <reference local="PAYOUT_EXECUTION_PROCESS_ID" foreign="FIN_PAY_EXEC_PROCESS_ID"/>
       </foreign-key>
+      <check name="FIN_PAYMENTMETH_AYOUTALLOW_CHK"><![CDATA[PAYOUT_ALLOW IN ('Y', 'N')]]></check>
+      <check name="FIN_PAYMENTMETH_DEPOSIT_CHK"><![CDATA[AUTOMATIC_DEPOSIT IN ('Y', 'N')]]></check>
+      <check name="FIN_PAYMENTMETH_PAYINALLOW_CHK"><![CDATA[PAYIN_ALLOW IN ('Y', 'N')]]></check>
+      <check name="FIN_PAYMENTMETH_PAYMENT_CHK"><![CDATA[AUTOMATIC_PAYMENT IN ('Y', 'N')]]></check>
+      <check name="FIN_PAYMENTMETH_PAYOUTDEF_CHK"><![CDATA[PAYOUT_DEFERRED IN ('Y', 'N')]]></check>
+      <check name="FIN_PAYMENTMETH_RECEIPT_CHK"><![CDATA[AUTOMATIC_RECEIPT IN ('Y', 'N')]]></check>
+      <check name="FIN_PAYMENTMETH_WITHDRAW_CHK"><![CDATA[AUTOMATIC_WITHDRAWN IN ('Y', 'N')]]></check>
+      <check name="FIN_PAYMENTMETHOD_ACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="FIN_PAYMENTMETHOD_PAYINDEF_CHK"><![CDATA[PAYIN_DEFERRED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/FIN_PAYMENT_RUN.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/FIN_PAYMENT_RUN.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -58,5 +58,6 @@
       <foreign-key foreignTable="FIN_PAY_EXEC_PROCESS" name="FIN_PAYMENT_RUN_PAYEXECPROC">
         <reference local="FIN_PAY_EXEC_PROCESS_ID" foreign="FIN_PAY_EXEC_PROCESS_ID"/>
       </foreign-key>
+      <check name="FIN_PAYMENT_RUN_ACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/FIN_PAYMENT_RUN_PARA.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/FIN_PAYMENT_RUN_PARA.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,7 @@
       <foreign-key foreignTable="FIN_PAY_EXEC_PROCESS_PARA" name="FIN_PAYRUNPARA_PAYEXECPROCPARA">
         <reference local="FIN_PAY_EXEC_PROCESS_PARA_ID" foreign="FIN_PAY_EXEC_PROCESS_PARA_ID"/>
       </foreign-key>
+      <check name="FIN_PAYMENTRUNPARA_ACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="FIN_PAYMENTRUNPARA_VALCHK_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/FIN_PAYMENT_RUN_PAYMENT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/FIN_PAYMENT_RUN_PAYMENT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,7 @@
       <foreign-key foreignTable="AD_CLIENT" name="FIN_PAYMENTRUNPAYMENT_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="FIN_PAYMENTRUNPAY_ACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="FIN_PAYMENTRUNPAY_VALCHK_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/FIN_PAY_EXEC_PROCESS.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/FIN_PAY_EXEC_PROCESS.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -51,5 +51,6 @@
       <foreign-key foreignTable="AD_ORG" name="FIN_PAY_EXEC_PROCESS_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="FIN_PAYEXECPROCESS_ACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/FIN_PAY_EXEC_PROCESS_PARA.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/FIN_PAY_EXEC_PROCESS_PARA.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -82,5 +82,7 @@
       <foreign-key foreignTable="FIN_PAY_EXEC_PROCESS" name="FIN_PAYEXECPROCPARA_PAYEXECPRO">
         <reference local="FIN_PAY_EXEC_PROCESS_ID" foreign="FIN_PAY_EXEC_PROCESS_ID"/>
       </foreign-key>
+      <check name="FIN_PAYEXECPROCPARA_ACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="FIN_PAYEXECPROCPARA_MANDAT_CHK"><![CDATA[ISMANDATORY IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/FIN_RECONCILIATION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/FIN_RECONCILIATION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -97,5 +97,10 @@
       <foreign-key foreignTable="FIN_FINANCIAL_ACCOUNT" name="FIN_RECONCIL_FINFINANCIALACC">
         <reference local="FIN_FINANCIAL_ACCOUNT_ID" foreign="FIN_FINANCIAL_ACCOUNT_ID"/>
       </foreign-key>
+      <check name="FIN_RECONCIL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="FIN_RECONCIL_PRINTDETAILED_CHK"><![CDATA[PRINTDETAILED IN ('Y', 'N')]]></check>
+      <check name="FIN_RECONCIL_PRINTSUMMARY_CHK"><![CDATA[PRINTSUMMARY IN ('Y', 'N')]]></check>
+      <check name="FIN_RECONCIL_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
+      <check name="FIN_RECONCIL_PROCESSING_CHECK"><![CDATA[PROCESSING IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/GL_CATEGORY.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/GL_CATEGORY.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -63,5 +63,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="GL_CATEGORY_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/GL_JOURNAL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/GL_JOURNAL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -180,5 +180,9 @@
         <unique-column name="C_PERIOD_ID"/>
         <unique-column name="DOCUMENTNO"/>
       </unique>
+      <check name="GL_JOURNAL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="GL_JOURNAL_ISAPPROVED_CHECK"><![CDATA[ISAPPROVED IN ('Y', 'N')]]></check>
+      <check name="GL_JOURNAL_ISPRINTED_CHECK"><![CDATA[ISPRINTED IN ('Y', 'N')]]></check>
+      <check name="GL_JOURNAL_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/GL_JOURNALBATCH.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/GL_JOURNALBATCH.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -113,5 +113,8 @@
         <unique-column name="C_PERIOD_ID"/>
         <unique-column name="DOCUMENTNO"/>
       </unique>
+      <check name="GL_JOURNALBATCH_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="GL_JOURNALBATCH_PROCESSED_CHK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
+      <check name="GL_JOURNALBATCH_PROCESSING_CHK"><![CDATA[PROCESSING IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/GL_JOURNALLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/GL_JOURNALLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -132,5 +132,8 @@
       <foreign-key foreignTable="GL_JOURNAL" name="GL_JOURNALLINE_GL_JOURNAL">
         <reference local="GL_JOURNAL_ID" foreign="GL_JOURNAL_ID"/>
       </foreign-key>
+      <check name="GL_JOURNALLINE_C_TAX_ID_CHK"><![CDATA[(C_TAX_ID IS NULL) OR (C_WITHHOLDING_ID IS NULL)]]></check>
+      <check name="GL_JOURNALLINE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="GL_JOURNALLINE_ISGENERATED_CHK"><![CDATA[ISGENERATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/I_BANKSTATEMENT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/I_BANKSTATEMENT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -184,5 +184,9 @@
       <foreign-key foreignTable="C_INVOICE" name="I_BANKSTATEMENT_C_INVOICE">
         <reference local="C_INVOICE_ID" foreign="C_INVOICE_ID"/>
       </foreign-key>
+      <check name="I_BANKSTATEMENT_I_ISIMPORT_CHK"><![CDATA[I_ISIMPORTED IN ('Y', 'N')]]></check>
+      <check name="I_BANKSTATEMENT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="I_BANKSTATEMENT_ISREVERSAL_CHK"><![CDATA[ISREVERSAL IN ('Y', 'N')]]></check>
+      <check name="I_BANKSTATEMENT_PROCESSED_CHK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/I_BPARTNER.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/I_BPARTNER.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -208,5 +208,7 @@
       <foreign-key foreignTable="C_REGION" name="I_BPARTNER_C_REGION">
         <reference local="C_REGION_ID" foreign="C_REGION_ID"/>
       </foreign-key>
+      <check name="I_BPARTNER_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="I_BPARTNER_PROCESSED_CHK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/I_BUDGETLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/I_BUDGETLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -239,5 +239,6 @@
       <foreign-key foreignTable="M_PRODUCT" name="M_PRODUCT_I_BUDGETLINE">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
+      <check name="I_BUDGETLINE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/I_ELEMENTVALUE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/I_ELEMENTVALUE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -151,5 +151,12 @@
       <foreign-key foreignTable="C_ELEMENTVALUE" name="I_ELEMENTVALUE_PARENTELEMENTVA">
         <reference local="PARENTELEMENTVALUE_ID" foreign="C_ELEMENTVALUE_ID"/>
       </foreign-key>
+      <check name="I_ELEMENTVALUE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="I_ELEMENTVALUE_ISDOCCONTRO_CHK"><![CDATA[ISDOCCONTROLLED IN ('Y', 'N')]]></check>
+      <check name="I_ELEMENTVALUE_POSTACTUAL_CHK"><![CDATA[POSTACTUAL IN ('Y', 'N')]]></check>
+      <check name="I_ELEMENTVALUE_POSTBUDGET_CHK"><![CDATA[POSTBUDGET IN ('Y', 'N')]]></check>
+      <check name="I_ELEMENTVALUE_POSTENCUMBR_CHK"><![CDATA[POSTENCUMBRANCE IN ('Y', 'N')]]></check>
+      <check name="I_ELEMENTVALUE_POSTSTATIST_CHK"><![CDATA[POSTSTATISTICAL IN ('Y', 'N')]]></check>
+      <check name="I_ELEMENTVALUE_PROCESSED_CHK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/I_GLJOURNAL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/I_GLJOURNAL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -322,5 +322,8 @@
       <foreign-key foreignTable="M_PRODUCT" name="I_GLJOURNAL_M_PRODUCT">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
+      <check name="I_GLJOURNAL_I_ISIMPORTED_CHK"><![CDATA[I_ISIMPORTED IN ('Y', 'N')]]></check>
+      <check name="I_GLJOURNAL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="I_GLJOURNAL_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/I_INVOICE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/I_INVOICE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -284,5 +284,9 @@
       <foreign-key foreignTable="AD_USER" name="I_INVOICE_SALESREP">
         <reference local="SALESREP_ID" foreign="AD_USER_ID"/>
       </foreign-key>
+      <check name="I_INVOICE_I_ISIMPORTED_CHECK"><![CDATA[I_ISIMPORTED IN ('Y', 'N')]]></check>
+      <check name="I_INVOICE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="I_INVOICE_ISSOTRX_CHECK"><![CDATA[ISSOTRX IN ('Y', 'N')]]></check>
+      <check name="I_INVOICE_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/I_ORDER.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/I_ORDER.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -371,5 +371,9 @@
       <foreign-key foreignTable="AD_USER" name="I_ORDER_SALESREP">
         <reference local="SALESREP_ID" foreign="AD_USER_ID"/>
       </foreign-key>
+      <check name="I_ORDER_I_ISIMPORTED_CHECK"><![CDATA[I_ISIMPORTED IN ('Y', 'N', 'E')]]></check>
+      <check name="I_ORDER_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="I_ORDER_ISSOTRX_CHECK"><![CDATA[ISSOTRX IN ('Y', 'N')]]></check>
+      <check name="I_ORDER_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/I_PRODUCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/I_PRODUCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -226,5 +226,8 @@
       <foreign-key foreignTable="M_PRODUCT_CATEGORY" name="I_PRODUCT_M_PRODUCT_CATEGORY">
         <reference local="M_PRODUCT_CATEGORY_ID" foreign="M_PRODUCT_CATEGORY_ID"/>
       </foreign-key>
+      <check name="I_PROD_DISCONTINUED_CHECK"><![CDATA[DISCONTINUED IN ('Y', 'N')]]></check>
+      <check name="I_PRODUCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="I_PRODUCT_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_CCP.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_CCP.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -70,5 +70,7 @@
       <foreign-key foreignTable="MA_CCP_GROUP" name="MA_CCP_GROUP_MACCP">
         <reference local="MA_CCP_GROUP_ID" foreign="MA_CCP_GROUP_ID"/>
       </foreign-key>
+      <check name="MA_CCP_CRITICAL_CHECK"><![CDATA[CRITICAL IN ('Y', 'N')]]></check>
+      <check name="MA_CCP_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_CCP_GROUP.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_CCP_GROUP.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -55,5 +55,6 @@
       <foreign-key foreignTable="AD_CLIENT" name="MA_CCP_GROUP_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="MA_CCP_GROUP_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_CCP_SHIFT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_CCP_SHIFT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -58,5 +58,6 @@
       <foreign-key foreignTable="AD_CLIENT" name="MA_CCP_SHIFT_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="MA_CCP_SHIFT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_COSTCENTER.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_COSTCENTER.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -63,5 +63,6 @@
       <foreign-key foreignTable="AD_CLIENT" name="MA_COSTCENTER_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="MA_COSTCENTER_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_COSTCENTER_EMPLOYEE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_COSTCENTER_EMPLOYEE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,6 @@
       <foreign-key foreignTable="MA_COSTCENTER_VERSION" name="MA_COSTCENTER_EMPLOYEE_MA_COST">
         <reference local="MA_COSTCENTER_VERSION_ID" foreign="MA_COSTCENTER_VERSION_ID"/>
       </foreign-key>
+      <check name="MA_COSTCENTER_E_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_COSTCENTER_IC.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_COSTCENTER_IC.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -53,5 +53,6 @@
       <foreign-key foreignTable="MA_INDIRECT_COST" name="MA_COSTCENTER_IC_MA_INDIRECT_C">
         <reference local="MA_INDIRECT_COST_ID" foreign="MA_INDIRECT_COST_ID"/>
       </foreign-key>
+      <check name="MA_COSTCENTER_I_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_COSTCENTER_MACHINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_COSTCENTER_MACHINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
       <foreign-key foreignTable="MA_MACHINE" name="MA_COSTCENTER_MACHINE_MA_MACHI">
         <reference local="MA_MACHINE_ID" foreign="MA_MACHINE_ID"/>
       </foreign-key>
+      <check name="MA_COSTCENTER_M_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_COSTCENTER_VERSION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_COSTCENTER_VERSION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -62,5 +62,6 @@
       <foreign-key foreignTable="MA_COSTCENTER" name="MA_COSTCENTER_VERSION_MA_COSTC">
         <reference local="MA_COSTCENTER_ID" foreign="MA_COSTCENTER_ID"/>
       </foreign-key>
+      <check name="MA_COSTCENTER_V_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_GLOBALUSE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_GLOBALUSE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -89,5 +89,7 @@
       <foreign-key foreignTable="M_PRODUCTION" name="MA_GLOBALUSE_M_PRODUCTION">
         <reference local="M_PRODUCTION_ID" foreign="M_PRODUCTION_ID"/>
       </foreign-key>
+      <check name="MA_GLOBALUSE_CHECK1"><![CDATA[((QUANTITYORDER IS NULL) AND (M_PRODUCT_UOM_ID IS NULL)) OR ((QUANTITYORDER IS NOT NULL) AND (M_PRODUCT_UOM_ID IS NOT NULL))]]></check>
+      <check name="MA_GLOBALUSE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_INCIDENCE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_INCIDENCE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -51,5 +51,6 @@
       <foreign-key foreignTable="AD_CLIENT" name="MA_INCIDENCE_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="MA_INCIDENCE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_INDIRECT_COST.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_INDIRECT_COST.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -51,5 +51,6 @@
       <foreign-key foreignTable="AD_CLIENT" name="MA_INDIRECT_COST_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="MA_INDIRECT_COS_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_INDIRECT_COST_VALUE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_INDIRECT_COST_VALUE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -74,5 +74,8 @@
       <foreign-key foreignTable="MA_INDIRECT_COST" name="MA_INDIRECT_COST_VALUE_MA_INDI">
         <reference local="MA_INDIRECT_COST_ID" foreign="MA_INDIRECT_COST_ID"/>
       </foreign-key>
+      <check name="MA_INDIRECT_COST_VALUE_CAL_CH1"><![CDATA[CALCULATED IN ('Y', 'N')]]></check>
+      <check name="MA_INDIRECT_COST_VALUE_CAL_CHK"><![CDATA[CALCULATE IN ('Y', 'N')]]></check>
+      <check name="MA_INDIRECT_COST_VALUE_ISA_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_MACHINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_MACHINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -69,5 +69,6 @@
       <foreign-key foreignTable="MA_MACHINE_TYPE" name="MA_MACHINE_TYPE_MAMACHINE">
         <reference local="MA_MACHINE_TYPE_ID" foreign="MA_MACHINE_TYPE_ID"/>
       </foreign-key>
+      <check name="MA_MACHINE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_MACHINESTATION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_MACHINESTATION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -53,5 +53,6 @@
       <foreign-key foreignTable="MA_WORKSTATION" name="MA_WORKSTATION_MAMACHINSTAT">
         <reference local="MA_WORKSTATION_ID" foreign="MA_WORKSTATION_ID"/>
       </foreign-key>
+      <check name="MA_MACHINESTATI_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_MACHINE_COST.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_MACHINE_COST.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -94,5 +94,6 @@
       <foreign-key foreignTable="MA_MACHINE" name="MA_MACHINE_COST_MA_MACHINE">
         <reference local="MA_MACHINE_ID" foreign="MA_MACHINE_ID"/>
       </foreign-key>
+      <check name="MA_MACHINE_COST_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_MACHINE_TYPE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_MACHINE_TYPE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -47,5 +47,6 @@
       <foreign-key foreignTable="AD_CLIENT" name="MA_MACHINE_TYPE_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="MA_MACHINE_TYPE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_MAINTENANCE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_MAINTENANCE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -80,5 +80,6 @@
       <foreign-key foreignTable="MA_MAINT_OPERATION" name="MA_MAINTENANCE_MA_MAINT_OPERAT">
         <reference local="MA_MAINT_OPERATION_ID" foreign="MA_MAINT_OPERATION_ID"/>
       </foreign-key>
+      <check name="MA_MAINTENANCE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_MAINT_OPERATION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_MAINT_OPERATION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -47,5 +47,6 @@
       <foreign-key foreignTable="AD_CLIENT" name="MA_MAINT_OPERATION_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="MA_MAINT_OPERAT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_MAINT_PART.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_MAINT_PART.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -55,5 +55,6 @@
       <foreign-key foreignTable="AD_CLIENT" name="MA_MAINT_PART_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="MA_MAINT_PART_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_MAINT_PERIODICITY.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_MAINT_PERIODICITY.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -70,5 +70,7 @@
       <foreign-key foreignTable="MA_MAINTENANCE" name="MA_MAINT_PERIODICITY_MA_MAINTE">
         <reference local="MA_MAINTENANCE_ID" foreign="MA_MAINTENANCE_ID"/>
       </foreign-key>
+      <check name="MA_MAINT_PERIODICITY_EXCLU_CHK"><![CDATA[EXCLUDEWEEKEND IN ('Y', 'N')]]></check>
+      <check name="MA_MAINT_PERIODICITY_ISACT_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_MAINT_SCHEDULED.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_MAINT_SCHEDULED.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -113,5 +113,6 @@
       <foreign-key foreignTable="MA_MAINTENANCE" name="MA_MAINT_SCHEDULED_MA_MAINTENA">
         <reference local="MA_MAINTENANCE_ID" foreign="MA_MAINTENANCE_ID"/>
       </foreign-key>
+      <check name="MA_MAINT_SCHEDU_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_MAINT_WORKER.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_MAINT_WORKER.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -53,5 +53,6 @@
       <foreign-key foreignTable="MA_MAINT_PART" name="MA_MAINT_WORKER_MA_MAINT_PART">
         <reference local="MA_MAINT_PART_ID" foreign="MA_MAINT_PART_ID"/>
       </foreign-key>
+      <check name="MA_MAINT_WORKER_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_MEASURE_GROUP.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_MEASURE_GROUP.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
       <foreign-key foreignTable="MA_MEASURE_SHIFT" name="MA_MEASURESHIFT_MAMEASUREGROUP">
         <reference local="MA_MEASURE_SHIFT_ID" foreign="MA_MEASURE_SHIFT_ID"/>
       </foreign-key>
+      <check name="MA_MEASURE_GROU_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_MEASURE_SHIFT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_MEASURE_SHIFT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -66,5 +66,7 @@
       <foreign-key foreignTable="AD_CLIENT" name="MA_MEASURE_SHIFT_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="MA_MEASURE_SHIFT_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="MA_MEASURE_SHIFT_SHIFT_CHECK"><![CDATA[SHIFT IN ('M', 'T')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_MEASURE_TIME.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_MEASURE_TIME.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -58,5 +58,6 @@
       <foreign-key foreignTable="AD_CLIENT" name="MA_MEASURE_TIME_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="MA_MEASURE_TIME_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_MEASURE_VALUES.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_MEASURE_VALUES.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,6 @@
       <foreign-key foreignTable="MA_MEASURE_TIME" name="MA_MEASURETIME_MAMEASUREVALUES">
         <reference local="MA_MEASURE_TIME_ID" foreign="MA_MEASURE_TIME_ID"/>
       </foreign-key>
+      <check name="MA_MEASURE_VALU_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_PC_CASE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_PC_CASE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -76,5 +76,6 @@
       <foreign-key foreignTable="MA_PERIODIC_CONTROL" name="MA_PERIODIC_CONTROL_MAPCCASE">
         <reference local="MA_PERIODIC_CONTROL_ID" foreign="MA_PERIODIC_CONTROL_ID"/>
       </foreign-key>
+      <check name="MA_PC_CASE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_PC_TEST.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_PC_TEST.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -58,5 +58,6 @@
       <foreign-key foreignTable="MA_PERIODIC_CONTROL" name="MA_PERIODIC_CONTROL_MAPCTEST">
         <reference local="MA_PERIODIC_CONTROL_ID" foreign="MA_PERIODIC_CONTROL_ID"/>
       </foreign-key>
+      <check name="MA_PC_TEST_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_PC_VALUE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_PC_VALUE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,6 @@
       <foreign-key foreignTable="MA_PC_TEST" name="MA_PC_TEST_MAPCVALUE">
         <reference local="MA_PC_TEST_ID" foreign="MA_PC_TEST_ID"/>
       </foreign-key>
+      <check name="MA_PC_VALUE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_PERIODIC_CONTROL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_PERIODIC_CONTROL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -47,5 +47,6 @@
       <foreign-key foreignTable="AD_CLIENT" name="MA_PERIODIC_CONTROL_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="MA_PERIODIC_CON_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_PL_EMPLOYEE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_PL_EMPLOYEE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,6 @@
       <foreign-key foreignTable="M_PRODUCTIONPLAN" name="MA_PL_EMPLOYEE_M_PRODUCTIONPLA">
         <reference local="M_PRODUCTIONPLAN_ID" foreign="M_PRODUCTIONPLAN_ID"/>
       </foreign-key>
+      <check name="MA_PL_EMPLOYEE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_PL_IC.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_PL_IC.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
       <foreign-key foreignTable="MA_INDIRECT_COST" name="MA_PL_IC_MA_INDIRECT_COST">
         <reference local="MA_INDIRECT_COST_ID" foreign="MA_INDIRECT_COST_ID"/>
       </foreign-key>
+      <check name="MA_PL_IC_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_PL_INVOICELINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_PL_INVOICELINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
       <foreign-key foreignTable="M_PRODUCTIONPLAN" name="MA_PL_INVOICELINE_M_PRODUCTION">
         <reference local="M_PRODUCTIONPLAN_ID" foreign="M_PRODUCTIONPLAN_ID"/>
       </foreign-key>
+      <check name="MA_PL_INVOICELI_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_PL_MACHINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_PL_MACHINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,6 @@
       <foreign-key foreignTable="MA_MACHINE" name="MA_PL_MACHINE_MA_MACHINE">
         <reference local="MA_MACHINE_ID" foreign="MA_MACHINE_ID"/>
       </foreign-key>
+      <check name="MA_PL_MACHINE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_PROCESS.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_PROCESS.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -65,5 +65,6 @@
       <foreign-key foreignTable="MA_WORKSTATION" name="MA_WORKSTATION_MAPROCESS">
         <reference local="MA_WORKSTATION_ID" foreign="MA_WORKSTATION_ID"/>
       </foreign-key>
+      <check name="MA_PROCESS_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_PROCESSPLAN.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_PROCESSPLAN.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -71,5 +71,7 @@
         <unique-column name="AD_ORG_ID"/>
         <unique-column name="VALUE"/>
       </unique>
+      <check name="MA_PROCESSPLAN_EXPLODEPHAS_CHK"><![CDATA[EXPLODEPHASES IN ('Y', 'N')]]></check>
+      <check name="MA_PROCESSPLAN_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_PROCESSPLAN_VERSION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_PROCESSPLAN_VERSION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,6 @@
       <index name="MA_PROCESSPLAN_VERSION_PPLAN" unique="false">
         <index-column name="MA_PROCESSPLAN_ID"/>
       </index>
+      <check name="MA_PROCESSPLAN_VERSION_ISA_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_SECTION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_SECTION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -47,5 +47,6 @@
       <foreign-key foreignTable="AD_CLIENT" name="MA_SECTION_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="MA_SECTION_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_SEQUENCE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_SEQUENCE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -112,5 +112,11 @@
       <index name="MA_SEUENCE_PROCESSPLAN_VERSION" unique="false">
         <index-column name="MA_PROCESSPLAN_VERSION_ID"/>
       </index>
+      <check name="MA_SEQUENCE_CALCULATED_CHECK"><![CDATA[CALCULATED IN ('Y', 'N')]]></check>
+      <check name="MA_SEQUENCE_GROUPUSE_CHECK"><![CDATA[GROUPUSE IN ('Y', 'N')]]></check>
+      <check name="MA_SEQUENCE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="MA_SEQUENCE_ISDEFAULT_CHECK"><![CDATA[ISDEFAULT IN ('Y', 'N')]]></check>
+      <check name="MA_SEQUENCE_NOQTY_CHECK"><![CDATA[NOQTY IN ('Y', 'N')]]></check>
+      <check name="MA_SEQUENCE_OUTSOURCED_CHECK"><![CDATA[OUTSOURCED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_SEQUENCEPRODUCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_SEQUENCEPRODUCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -102,5 +102,6 @@
         <index-column name="M_PRODUCT_ID"/>
         <index-column name="MA_SEQUENCE_ID"/>
       </index>
+      <check name="MA_SEQUENCEPROD_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_SEQUENCE_EMPLOYEE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_SEQUENCE_EMPLOYEE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
       <foreign-key foreignTable="MA_SEQUENCE" name="MA_SEQUENCE_EMPLOYEE_MA_SEQUEN">
         <reference local="MA_SEQUENCE_ID" foreign="MA_SEQUENCE_ID"/>
       </foreign-key>
+      <check name="MA_SEQUENCE_EMPLOYEE_ISACT_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_SEQUENCE_IC.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_SEQUENCE_IC.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
       <foreign-key foreignTable="MA_SEQUENCE" name="MA_SEQUENCE_IC_MA_SEQUENCE">
         <reference local="MA_SEQUENCE_ID" foreign="MA_SEQUENCE_ID"/>
       </foreign-key>
+      <check name="MA_SEQUENCE_IC_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_SEQUENCE_MACHINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_SEQUENCE_MACHINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
       <foreign-key foreignTable="MA_SEQUENCE" name="MA_SEQUENCE_MACHINE_MA_SEQUENC">
         <reference local="MA_SEQUENCE_ID" foreign="MA_SEQUENCE_ID"/>
       </foreign-key>
+      <check name="MA_SEQUENCE_MACHINE_ISACTI_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_TOOLSET.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_TOOLSET.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -65,5 +65,7 @@
       <foreign-key foreignTable="MA_TOOLSET_TYPE" name="MA_TOOLSET_TYPEMATOOLSET">
         <reference local="MA_TOOLSET_TYPE_ID" foreign="MA_TOOLSET_TYPE_ID"/>
       </foreign-key>
+      <check name="MA_TOOLSET_DISCARDED_CHECK"><![CDATA[DISCARDED IN ('Y', 'N')]]></check>
+      <check name="MA_TOOLSET_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_TOOLSETPROCESS.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_TOOLSETPROCESS.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
       <foreign-key foreignTable="MA_TOOLSET_TYPE" name="MA_TOOLSETTYPEMATOOLSETPROCESS">
         <reference local="MA_TOOLSET_TYPE_ID" foreign="MA_TOOLSET_TYPE_ID"/>
       </foreign-key>
+      <check name="MA_TOOLSETPROCE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_TOOLSETUSED.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_TOOLSETUSED.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
       <foreign-key foreignTable="AD_CLIENT" name="MA_TOOLSETUSED_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="MA_TOOLSETUSED_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_TOOLSET_TYPE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_TOOLSET_TYPE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -51,5 +51,6 @@
       <foreign-key foreignTable="AD_CLIENT" name="MA_TOOLSET_TYPE_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="MA_TOOLSET_TYPE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_WEEMPLOYEE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_WEEMPLOYEE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -53,5 +53,6 @@
       <foreign-key foreignTable="AD_CLIENT" name="MA_WEEMPLOYEE_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="MA_WEEMPLOYEE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_WEINCIDENCE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_WEINCIDENCE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -65,5 +65,6 @@
       <foreign-key foreignTable="AD_CLIENT" name="MA_WEINCIDENCE_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="MA_WEINCIDENCE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_WORKREQUIREMENT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_WORKREQUIREMENT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -98,5 +98,9 @@
       <foreign-key foreignTable="AD_CLIENT" name="MA_WORKREQUIREMENT_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="MA_WORKREQUIREMENT_CLOSED_CHK"><![CDATA[CLOSED IN ('Y', 'N')]]></check>
+      <check name="MA_WORKREQUIREMENT_EXPLODE_CHK"><![CDATA[EXPLODEPHASES IN ('Y', 'N')]]></check>
+      <check name="MA_WORKREQUIREMENT_ISACTIV_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="MA_WORKREQUIREMENT_PROCESS_CHK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_WORKSTATION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_WORKSTATION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -54,5 +54,6 @@
       <foreign-key foreignTable="AD_CLIENT" name="MA_WORKSTATION_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <check name="MA_WORKSTATION_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_WRPHASE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_WRPHASE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -107,5 +107,10 @@
       <index name="MA_WRPHASE_WORKREQUIREMENT" unique="false">
         <index-column name="MA_WORKREQUIREMENT_ID"/>
       </index>
+      <check name="MA_WRPHASE_CLOSED_CHECK"><![CDATA[CLOSED IN ('Y', 'N')]]></check>
+      <check name="MA_WRPHASE_GROUPUSE_CHECK"><![CDATA[GROUPUSE IN ('Y', 'N')]]></check>
+      <check name="MA_WRPHASE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="MA_WRPHASE_NOQTY_CHECK"><![CDATA[NOQTY IN ('Y', 'N')]]></check>
+      <check name="MA_WRPHASE_OUTSOURCED_CHECK"><![CDATA[OUTSOURCED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MA_WRPHASEPRODUCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MA_WRPHASEPRODUCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -91,5 +91,7 @@
         <index-column name="M_PRODUCT_ID"/>
         <index-column name="MA_WRPHASE_ID"/>
       </index>
+      <check name="MA_WRPHASEPRODUCT_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="MA_WRPHASEPRODUCT_PRODUCTI_CHK"><![CDATA[PRODUCTIONTYPE IN ('+', '-')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MRP_PLANNER.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MRP_PLANNER.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -55,5 +55,8 @@
       <foreign-key foreignTable="AD_ORG" name="AD_ORG_MRP_PLANNER">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="MRP_PLANNER_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="MRP_PLANNER_ISPRODUCTION_CHK"><![CDATA[ISPRODUCTION IN ('Y', 'N')]]></check>
+      <check name="MRP_PLANNER_ISPURCHASE_CHK"><![CDATA[ISPURCHASE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MRP_PLANNINGMETHOD.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MRP_PLANNINGMETHOD.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -47,5 +47,6 @@
       <foreign-key foreignTable="AD_ORG" name="AD_ORG_MRP_PLANNINGMETHOD">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="MRP_PLANNINGMET_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MRP_PLANNINGMETHODLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MRP_PLANNINGMETHODLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -66,5 +66,6 @@
       <foreign-key foreignTable="MRP_PLANNINGMETHOD" name="MRP_PLANNINGMETHOD_PMLINE">
         <reference local="MRP_PLANNINGMETHOD_ID" foreign="MRP_PLANNINGMETHOD_ID"/>
       </foreign-key>
+      <check name="MRP_PLANNINGMETHODLINE_ISA_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MRP_RUN_PRODUCTION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MRP_RUN_PRODUCTION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -110,5 +110,10 @@
       <foreign-key foreignTable="MRP_PLANNER" name="MRP_PLANNER_RUN_PRODUCTION">
         <reference local="MRP_PLANNER_ID" foreign="MRP_PLANNER_ID"/>
       </foreign-key>
+      <check name="MRP_RUN_PRODUCTION_ISACTIV_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="MRP_RUN_PRODUCTION_LAUNCHM_CHK"><![CDATA[LAUNCHMR IN ('Y', 'N')]]></check>
+      <check name="MRP_RUN_PRODUCTION_LAUNCHW_CHK"><![CDATA[LAUNCHWR IN ('Y', 'N')]]></check>
+      <check name="MRP_RUN_PRODUCTION_RECALCU_CHK"><![CDATA[RECALCULATESTOCK IN ('Y', 'N')]]></check>
+      <check name="MRP_RUN_PRODUCTION_SIMULAT_CHK"><![CDATA[SIMULATE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MRP_RUN_PRODUCTIONLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MRP_RUN_PRODUCTIONLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -145,5 +145,8 @@
       <index name="MRP_RUN_PRODUCTIONLINE_PARENT" unique="false">
         <index-column name="PARENT_ID"/>
       </index>
+      <check name="MRP_RUN_PRODUCTIONLINE_ISA_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="MRP_RUN_PRODUCTIONLINE_ISF_CHK"><![CDATA[ISFIXED IN ('Y', 'N')]]></check>
+      <check name="MRP_RUN_PRODUCTIONLINE_ISP_CHK"><![CDATA[ISPLANNED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MRP_RUN_PURCHASE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MRP_RUN_PURCHASE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -109,5 +109,8 @@
       <foreign-key foreignTable="C_BPARTNER" name="MRP_RUN_PURCHASE_VENDOR">
         <reference local="VENDOR_ID" foreign="C_BPARTNER_ID"/>
       </foreign-key>
+      <check name="MRP_RUN_PURCHASE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="MRP_RUN_PURCHASE_LAUNCHPO_CHK"><![CDATA[LAUNCHPO IN ('Y', 'N')]]></check>
+      <check name="MRP_RUN_PURCHASE_SIMULATE_CHK"><![CDATA[SIMULATE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MRP_RUN_PURCHASELINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MRP_RUN_PURCHASELINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -127,5 +127,7 @@
         <index-column name="MRP_RUN_PURCHASE_ID"/>
         <index-column name="M_PRODUCT_ID"/>
       </index>
+      <check name="MRP_RUN_PURCHASELINE_ISACT_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="MRP_RUN_PURCHASELINE_ISFIX_CHK"><![CDATA[ISFIXED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MRP_SALESFORECAST.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MRP_SALESFORECAST.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -54,5 +54,6 @@
       <foreign-key foreignTable="C_BPARTNER" name="C_BPARTNER_MRP_SALESFORECAST">
         <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
       </foreign-key>
+      <check name="MRP_SALESFORECA_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/MRP_SALESFORECASTLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/MRP_SALESFORECASTLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,6 @@
       <foreign-key foreignTable="MRP_SALESFORECAST" name="MRP_SALESFORECASTLINE_MRP_SALE">
         <reference local="MRP_SALESFORECAST_ID" foreign="MRP_SALESFORECAST_ID"/>
       </foreign-key>
+      <check name="MRP_SALESFORECASTLINE_ISAC_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_ATTRIBUTE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_ATTRIBUTE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -59,5 +59,8 @@
       <foreign-key foreignTable="AD_ORG" name="M_ATTRIBUTE_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="M_ATTRIBUTE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_ATTRIBUTE_ISINSTANCEATTR_CHK"><![CDATA[ISINSTANCEATTRIBUTE IN ('Y', 'N')]]></check>
+      <check name="M_ATTRIBUTE_ISMANDATORY_CHECK"><![CDATA[ISMANDATORY IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_ATTRIBUTEINSTANCE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_ATTRIBUTEINSTANCE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -68,5 +68,6 @@
         <unique-column name="M_ATTRIBUTESETINSTANCE_ID"/>
         <unique-column name="M_ATTRIBUTE_ID"/>
       </unique>
+      <check name="M_ATTRIBUTEINST_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_ATTRIBUTESET.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_ATTRIBUTESET.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -85,5 +85,11 @@
       <foreign-key foreignTable="M_SERNOCTL" name="M_ATTRIBUTESET_M_SERNOCTL">
         <reference local="M_SERNOCTL_ID" foreign="M_SERNOCTL_ID"/>
       </foreign-key>
+      <check name="M_ATTRIBUTESET_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_ATTRIBUTESET_ISATSETVAL_CHK"><![CDATA[ISONEATTRSETVALREQUIRED IN ('Y', 'N')]]></check>
+      <check name="M_ATTRIBUTESET_ISGUARANTEE_CHK"><![CDATA[ISGUARANTEEDATE IN ('Y', 'N')]]></check>
+      <check name="M_ATTRIBUTESET_ISLOCKABLE_CHK"><![CDATA[ISLOCKABLE IN ('Y', 'N')]]></check>
+      <check name="M_ATTRIBUTESET_ISLOT_CHECK"><![CDATA[ISLOT IN ('Y', 'N')]]></check>
+      <check name="M_ATTRIBUTESET_ISSERNO_CHECK"><![CDATA[ISSERNO IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_ATTRIBUTESETINSTANCE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_ATTRIBUTESETINSTANCE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -77,5 +77,7 @@
       <foreign-key foreignTable="M_LOT" name="M_ATTRIBUTESETINSTANCE_M_LOT">
         <reference local="M_LOT_ID" foreign="M_LOT_ID"/>
       </foreign-key>
+      <check name="M_ATTRIBUTESETINSTANCE_ISA_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_ATTRIBUTESETINSTANCE_ISL_CHK"><![CDATA[ISLOCKED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_ATTRIBUTEUSE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_ATTRIBUTEUSE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,6 @@
         <unique-column name="M_ATTRIBUTE_ID"/>
         <unique-column name="M_ATTRIBUTESET_ID"/>
       </unique>
+      <check name="M_ATTRIBUTEUSE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_ATTRIBUTEVALUE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_ATTRIBUTEVALUE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -58,5 +58,6 @@
       <foreign-key foreignTable="M_ATTRIBUTE" name="M_ATTRIBUTEVALUE_M_ATTRIBUTE" onDelete="cascade">
         <reference local="M_ATTRIBUTE_ID" foreign="M_ATTRIBUTE_ID"/>
       </foreign-key>
+      <check name="M_ATTRIBUTEVALU_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_DISCOUNTSCHEMA.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_DISCOUNTSCHEMA.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -75,5 +75,7 @@
       <foreign-key foreignTable="AD_ORG" name="M_DISCOUNTSCHEMA_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="M_DISCOUNTSCHEMA_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_DISCOUNTSCHEMA_ISQUANTIT_CHK"><![CDATA[ISQUANTITYBASED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_DISCOUNTSCHEMALINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_DISCOUNTSCHEMALINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -163,5 +163,6 @@
       <foreign-key foreignTable="M_PRODUCT" name="M_DISCOUNTSCHEMALINE_M_PRODUCT" onDelete="setnull">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
+      <check name="M_DISCOUNTSCHEMALINE_ISACT_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_INOUT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_INOUT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -302,5 +302,15 @@
       <index name="M_INOUT_UPDATED" unique="false">
         <index-column name="UPDATED"/>
       </index>
+      <check name="M_INOUT_CREATEFROM_CHECK"><![CDATA[CREATEFROM IN ('Y', 'N')]]></check>
+      <check name="M_INOUT_CURRENCY_CHECK"><![CDATA[((FREIGHTAMT = 0) OR (FREIGHTAMT IS NULL)) OR (FREIGHT_CURRENCY_ID IS NOT NULL)]]></check>
+      <check name="M_INOUT_GENERATELINES_CHECK"><![CDATA[GENERATELINES IN ('N', 'Y')]]></check>
+      <check name="M_INOUT_GENERATETO_CHECK"><![CDATA[GENERATETO IN ('Y', 'N')]]></check>
+      <check name="M_INOUT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_INOUT_ISLOGISTIC_CHK"><![CDATA[ISLOGISTIC IN ('N', 'Y')]]></check>
+      <check name="M_INOUT_ISPRINTED_CHECK"><![CDATA[ISPRINTED IN ('Y', 'N')]]></check>
+      <check name="M_INOUT_ISSOTRX_CHECK"><![CDATA[ISSOTRX IN ('Y', 'N')]]></check>
+      <check name="M_INOUT_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
+      <check name="M_INOUT_UPDATELINES_CHK"><![CDATA[UPDATELINES IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_INOUTLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_INOUTLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -121,5 +121,8 @@
       <index name="M_INOUTLINE_PRODUCT" unique="false">
         <index-column name="M_PRODUCT_ID"/>
       </index>
+      <check name="M_INOUTLINE"><![CDATA[((QUANTITYORDER IS NULL) AND (M_PRODUCT_UOM_ID IS NULL)) OR ((QUANTITYORDER IS NOT NULL) AND (M_PRODUCT_UOM_ID IS NOT NULL))]]></check>
+      <check name="M_INOUTLINE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_INOUTLINE_ISINVOICED_CHECK"><![CDATA[ISINVOICED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_INTERNAL_CONSUMPTION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_INTERNAL_CONSUMPTION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -63,5 +63,7 @@
       <foreign-key foreignTable="AD_ORG" name="AD_ORG_MINTERNAL_CONSUMPTION">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="M_INTERNAL_CONSUMPTION_ISA_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_INTERNAL_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_INTERNAL_CONSUMPTIONLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_INTERNAL_CONSUMPTIONLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -100,5 +100,6 @@
       <index name="M_INTERNAL_CONSUMPTLN_CONS_IDX" unique="false">
         <index-column name="M_INTERNAL_CONSUMPTION_ID"/>
       </index>
+      <check name="M_INTERNAL_CONSUMPTIONLINE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_INVENTORY.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_INVENTORY.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -121,5 +121,9 @@
       <foreign-key foreignTable="M_WAREHOUSE" name="M_INVENTORY_M_WAREHOUSE">
         <reference local="M_WAREHOUSE_ID" foreign="M_WAREHOUSE_ID"/>
       </foreign-key>
+      <check name="M_INVENTORY_GENERATELIST_CHK"><![CDATA[GENERATELIST IN ('Y', 'N')]]></check>
+      <check name="M_INVENTORY_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_INVENTORY_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
+      <check name="M_INVENTORY_UPDATEQTY_CHECK"><![CDATA[UPDATEQTY IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_INVENTORYLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_INVENTORYLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -111,5 +111,7 @@
       <index name="M_INVENTORYLINE_PRODUCT" unique="false">
         <index-column name="M_PRODUCT_ID"/>
       </index>
+      <check name="M_INVENTORYLINE"><![CDATA[((QUANTITYORDER IS NULL) AND (M_PRODUCT_UOM_ID IS NULL)) OR ((QUANTITYORDER IS NOT NULL) AND (M_PRODUCT_UOM_ID IS NOT NULL))]]></check>
+      <check name="M_INVENTORYLINE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_LOCATOR.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_LOCATOR.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -76,5 +76,6 @@
         <unique-column name="Y"/>
         <unique-column name="Z"/>
       </unique>
+      <check name="M_LOCATOR_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_LOCATOR_TYPE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_LOCATOR_TYPE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -51,5 +51,6 @@
       <foreign-key foreignTable="AD_ORG" name="M_LOCATOR_TYPE_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="M_LOCATOR_TYPE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_LOT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_LOT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -66,5 +66,6 @@
       <foreign-key foreignTable="M_PRODUCT" name="M_LOT_M_PRODUCT">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
+      <check name="M_LOT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_LOTCTL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_LOTCTL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -67,5 +67,6 @@
       <foreign-key foreignTable="AD_ORG" name="M_LOTCTL_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="M_LOTCTL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_MATCHINV.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_MATCHINV.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -84,5 +84,7 @@
         <index-column name="C_INVOICELINE_ID"/>
         <index-column name="M_INOUTLINE_ID"/>
       </index>
+      <check name="M_MATCHINV_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_MATCHINV_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_MATCHPO.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_MATCHPO.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -91,5 +91,7 @@
         <index-column name="C_ORDERLINE_ID"/>
         <index-column name="M_INOUTLINE_ID"/>
       </index>
+      <check name="M_MATCHPO_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_MATCHPO_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_MOVEMENT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_MOVEMENT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -107,5 +107,8 @@
       <foreign-key foreignTable="C_PROJECT" name="M_MOVEMENT_C_PROJECT">
         <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
       </foreign-key>
+      <check name="M_MOVEMENT_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_MOVEMENT_MOVE_FROMTO_LOC_CHK"><![CDATA[MOVE_FROMTO_LOCATOR IN ('Y', 'N')]]></check>
+      <check name="M_MOVEMENT_PROCESSED_CHK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_MOVEMENTLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_MOVEMENTLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -107,5 +107,7 @@
       <index name="M_MOVEMENTLINE_MOVEMENT" unique="false">
         <index-column name="M_MOVEMENT_ID"/>
       </index>
+      <check name="M_MOVEMENTLINE_CHECK1"><![CDATA[((QUANTITYORDER IS NULL) AND (M_PRODUCT_UOM_ID IS NULL)) OR ((QUANTITYORDER IS NOT NULL) AND (M_PRODUCT_UOM_ID IS NOT NULL))]]></check>
+      <check name="M_MOVEMENTLINE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_OFFER.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_OFFER.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -99,5 +99,6 @@
       <foreign-key foreignTable="AD_ORG" name="M_OFFER_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="M_OFFER_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_OFFER_BPARTNER.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_OFFER_BPARTNER.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
         <unique-column name="C_BPARTNER_ID"/>
         <unique-column name="M_OFFER_ID"/>
       </unique>
+      <check name="M_OFFER_BPARTNE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_OFFER_BP_GROUP.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_OFFER_BP_GROUP.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
         <unique-column name="C_BP_GROUP_ID"/>
         <unique-column name="M_OFFER_ID"/>
       </unique>
+      <check name="M_OFFER_BP_GROU_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_OFFER_PRODUCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_OFFER_PRODUCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
         <unique-column name="M_PRODUCT_ID"/>
         <unique-column name="M_OFFER_ID"/>
       </unique>
+      <check name="M_OFFER_PRODUCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_OFFER_PROD_CAT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_OFFER_PROD_CAT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
         <unique-column name="M_PRODUCT_CATEGORY_ID"/>
         <unique-column name="M_OFFER_ID"/>
       </unique>
+      <check name="M_OFFER_PROD_CA_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_PERPETUALINV.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_PERPETUALINV.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -89,5 +89,7 @@
       <foreign-key foreignTable="M_WAREHOUSE" name="M_PERPETUALINV_M_WAREHOUSE">
         <reference local="M_WAREHOUSE_ID" foreign="M_WAREHOUSE_ID"/>
       </foreign-key>
+      <check name="M_PERPETUALINV_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_PERPETVALINU_C_H_MOVEMENT"><![CDATA[COUNTHIGHMOVEMENT IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_PRICELIST.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_PRICELIST.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -81,5 +81,9 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="M_PRICELIST_ENFORCEPRICELI_CHK"><![CDATA[ENFORCEPRICELIMIT IN ('Y', 'N')]]></check>
+      <check name="M_PRICELIST_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_PRICELIST_ISSOPRICELIST_CHK"><![CDATA[ISSOPRICELIST IN ('Y', 'N')]]></check>
+      <check name="M_PRICELIST_ISTAXINCLUDED_CHK"><![CDATA[ISTAXINCLUDED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_PRICELIST_VERSION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_PRICELIST_VERSION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -80,5 +80,7 @@
       <foreign-key foreignTable="M_PRICELIST" name="M_PRICELIST_VERSION_M_PRICELIS" onDelete="cascade">
         <reference local="M_PRICELIST_ID" foreign="M_PRICELIST_ID"/>
       </foreign-key>
+      <check name="M_PRICELIST_VERSION_ISACTI_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_PRICELIST_VERSION_M_PRIC_CHK"><![CDATA[M_PRICELIST_VERSION_GENERATE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_PRODUCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_PRODUCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -354,5 +354,16 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="VALUE"/>
       </unique>
+      <check name="M_PRODUCT_ATSETVALTYPE_CHK"><![CDATA[(M_ATTRIBUTESETINSTANCE_ID IS NULL) OR (ATTRSETVALUETYPE IS NOT NULL)]]></check>
+      <check name="M_PRODUCT_DISCONTINUED_CHECK"><![CDATA[DISCONTINUED IN ('Y', 'N')]]></check>
+      <check name="M_PRODUCT_ENFORCE_ATTRIBUT_CHK"><![CDATA[ENFORCE_ATTRIBUTE IN ('Y', 'N')]]></check>
+      <check name="M_PRODUCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_PRODUCT_ISBOM_CHECK"><![CDATA[ISBOM IN ('Y', 'N')]]></check>
+      <check name="M_PRODUCT_ISINVOICEPRINTDE_CHK"><![CDATA[ISINVOICEPRINTDETAILS IN ('Y', 'N')]]></check>
+      <check name="M_PRODUCT_ISPICKLISTPRINTD_CHK"><![CDATA[ISPICKLISTPRINTDETAILS IN ('Y', 'N')]]></check>
+      <check name="M_PRODUCT_ISPURCHASED_CHECK"><![CDATA[ISPURCHASED IN ('Y', 'N')]]></check>
+      <check name="M_PRODUCT_ISSOLD_CHECK"><![CDATA[ISSOLD IN ('Y', 'N')]]></check>
+      <check name="M_PRODUCT_ISSTOCKED_CHECK"><![CDATA[ISSTOCKED IN ('Y', 'N')]]></check>
+      <check name="M_PRODUCT_ISVERIFIED_CHECK"><![CDATA[ISVERIFIED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_PRODUCTION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_PRODUCTION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -123,5 +123,8 @@
       <foreign-key foreignTable="C_PROJECT" name="M_PRODUCTION_C_PROJECT">
         <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
       </foreign-key>
+      <check name="M_PRODUCTION_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_PRODUCTION_ISCREATED_CHECK"><![CDATA[ISCREATED IN ('Y', 'N')]]></check>
+      <check name="M_PRODUCTION_PROCESSED_CHECK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_PRODUCTIONLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_PRODUCTIONLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -120,5 +120,7 @@
       <index name="M_PRODUCTIONLINE_PRODPLAN" unique="false">
         <index-column name="M_PRODUCTIONPLAN_ID"/>
       </index>
+      <check name="M_PRODUCTIONLINE_CHECK1"><![CDATA[((QUANTITYORDER IS NULL) AND (M_PRODUCT_UOM_ID IS NULL)) OR ((QUANTITYORDER IS NOT NULL) AND (M_PRODUCT_UOM_ID IS NOT NULL))]]></check>
+      <check name="M_PRODUCTIONLINE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_PRODUCTIONPLAN.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_PRODUCTIONPLAN.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -129,5 +129,7 @@
       <index name="M_PRODUCTIONPLAN_PRODUCTION" unique="false">
         <index-column name="M_PRODUCTION_ID"/>
       </index>
+      <check name="M_PRODUCTIONPLAN_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_PRODUCTIONPLAN_OUTSOURCE_CHK"><![CDATA[OUTSOURCED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_PRODUCTPRICE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_PRODUCTPRICE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -69,5 +69,6 @@
         <unique-column name="M_PRICELIST_VERSION_ID"/>
         <unique-column name="M_PRODUCT_ID"/>
       </unique>
+      <check name="M_PRODUCTPRICE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_PRODUCT_ACCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_PRODUCT_ACCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -113,5 +113,6 @@
         <unique-column name="M_PRODUCT_ID"/>
         <unique-column name="C_ACCTSCHEMA_ID"/>
       </unique>
+      <check name="M_PRODUCT_ACCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_PRODUCT_BOM.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_PRODUCT_BOM.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -72,5 +72,6 @@
       <index name="M_PRODUCT_BOM_M_PRODUCT_ID" unique="false">
         <index-column name="M_PRODUCT_ID"/>
       </index>
+      <check name="M_PRODUCT_BOM_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_PRODUCT_CATEGORY.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_PRODUCT_CATEGORY.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -70,5 +70,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="VALUE"/>
       </unique>
+      <check name="M_PRODUCT_CATEG_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_PRODUCT_CATEGORY_ACCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_PRODUCT_CATEGORY_ACCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -117,5 +117,6 @@
         <unique-column name="M_PRODUCT_CATEGORY_ID"/>
         <unique-column name="C_ACCTSCHEMA_ID"/>
       </unique>
+      <check name="M_PRODUCT_CATEGORY_ACCT_IS_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_PRODUCT_ORG.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_PRODUCT_ORG.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -103,5 +103,6 @@
         <unique-column name="AD_ORG_ID"/>
         <unique-column name="M_PRODUCT_ID"/>
       </unique>
+      <check name="M_PRODUCT_ORG_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_PRODUCT_PO.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_PRODUCT_PO.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -163,5 +163,8 @@
         <unique-column name="C_BPARTNER_ID"/>
         <unique-column name="VENDORPRODUCTNO"/>
       </unique>
+      <check name="M_PRODUCT_PO_DISCONTINUED_CHK"><![CDATA[DISCONTINUED IN ('Y', 'N')]]></check>
+      <check name="M_PRODUCT_PO_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_PRODUCT_PO_ISCURRENTVEND_CHK"><![CDATA[ISCURRENTVENDOR IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_PRODUCT_TEMPLATE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_PRODUCT_TEMPLATE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -65,5 +65,6 @@
         <unique-column name="C_BPARTNER_ID"/>
         <unique-column name="M_PRODUCT_ID"/>
       </unique>
+      <check name="M_PRODUCT_TEMPL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_PRODUCT_TRL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_PRODUCT_TRL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -69,5 +69,7 @@
         <unique-column name="M_PRODUCT_ID"/>
         <unique-column name="AD_LANGUAGE"/>
       </unique>
+      <check name="M_PRODUCT_TRL_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_PRODUCT_TRL_ISTRANSLATED_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_PRODUCT_UOM.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_PRODUCT_UOM.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -59,5 +59,6 @@
         <unique-column name="C_UOM_ID"/>
         <unique-column name="M_PRODUCT_ID"/>
       </unique>
+      <check name="M_PRODUCT_UOM_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_RAPPEL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_RAPPEL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -66,5 +66,6 @@
       <foreign-key foreignTable="C_CURRENCY" name="M_RAPPEL_C_CURRENCY">
         <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
       </foreign-key>
+      <check name="M_RAPPEL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_RAPPEL_BPARTNER.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_RAPPEL_BPARTNER.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -73,5 +73,7 @@
       <foreign-key foreignTable="M_RAPPEL" name="M_RAPPEL_M_RAPPEL_BPARTNER">
         <reference local="M_RAPPEL_ID" foreign="M_RAPPEL_ID"/>
       </foreign-key>
+      <check name="M_RAPPEL_BPARTNER_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_RAPPEL_BPARTNER_ISSOTRX_CHK"><![CDATA[ISSOTRX IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_RAPPEL_INVOICE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_RAPPEL_INVOICE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
       <foreign-key foreignTable="M_RAPPEL_BPARTNER" name="M_RAPPEL_INVOICE_M_RAPPEL_BPAR">
         <reference local="M_RAPPEL_BPARTNER_ID" foreign="M_RAPPEL_BPARTNER_ID"/>
       </foreign-key>
+      <check name="M_RAPPEL_INVOIC_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_RAPPEL_PRODUCTCATEGORY.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_RAPPEL_PRODUCTCATEGORY.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -53,5 +53,6 @@
       <foreign-key foreignTable="M_PRODUCT_CATEGORY" name="M_RAPPEL_PRODUCTCATEGORY_M_PRO">
         <reference local="M_PRODUCT_CATEGORY_ID" foreign="M_PRODUCT_CATEGORY_ID"/>
       </foreign-key>
+      <check name="M_RAPPEL_PRODUCTCATEGORY_I_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_RAPPEL_SCALE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_RAPPEL_SCALE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -58,5 +58,6 @@
       <foreign-key foreignTable="AD_ORG" name="M_RAPPEL_SCALE_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="M_RAPPEL_SCALE_DISCOUNT_CHK"><![CDATA[(DISCOUNT >= 0) AND (DISCOUNT <= 100)]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_REPLENISH.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_REPLENISH.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -69,5 +69,6 @@
         <unique-column name="M_PRODUCT_ID"/>
         <unique-column name="M_WAREHOUSE_ID"/>
       </unique>
+      <check name="M_REPLENISH_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_REQUISITION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_REQUISITION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -95,5 +95,7 @@
       <foreign-key foreignTable="M_PRICELIST" name="M_PRICELIST_M_REQUISITION">
         <reference local="M_PRICELIST_ID" foreign="M_PRICELIST_ID"/>
       </foreign-key>
+      <check name="M_REQUISITION_CREATEPO_CHECK"><![CDATA[CREATEPO IN ('Y', 'N')]]></check>
+      <check name="M_REQUISITION_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_REQUISITIONLINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_REQUISITIONLINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -178,5 +178,6 @@
       <foreign-key foreignTable="C_CURRENCY" name="M_REQUISITIONLINE_C_CURRENCY">
         <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
       </foreign-key>
+      <check name="M_REQUISITIONLI_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_REQUISITIONORDER.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_REQUISITIONORDER.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
       <foreign-key foreignTable="M_REQUISITIONLINE" name="M_REQUISITIONORDER_M_REQUISITI">
         <reference local="M_REQUISITIONLINE_ID" foreign="M_REQUISITIONLINE_ID"/>
       </foreign-key>
+      <check name="M_REQORDER_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_SERNOCTL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_SERNOCTL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -67,5 +67,6 @@
       <foreign-key foreignTable="AD_ORG" name="M_SERNOCTL_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="M_SERNOCTL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_SHIPPER.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_SHIPPER.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -58,5 +58,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="M_SHIPPER_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_STORAGE_DETAIL.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_STORAGE_DETAIL.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -101,5 +101,6 @@
         <unique-column name="C_UOM_ID"/>
         <unique-column name="M_PRODUCT_UOM_ID"/>
       </unique>
+      <check name="M_STORAGE_DETAIL_CHECK1"><![CDATA[(((QTYORDERONHAND IS NULL) AND (M_PRODUCT_UOM_ID IS NULL)) AND (PREQTYORDERONHAND IS NULL)) OR (((QTYORDERONHAND IS NOT NULL) AND (M_PRODUCT_UOM_ID IS NOT NULL)) AND (PREQTYORDERONHAND IS NOT NULL))]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_STORAGE_PENDING.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_STORAGE_PENDING.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -97,5 +97,6 @@
         <unique-column name="C_UOM_ID"/>
         <unique-column name="M_PRODUCT_UOM_ID"/>
       </unique>
+      <check name="M_STORAGE_PENDING_CHECK1"><![CDATA[(((QTYORDERORDERED IS NULL) AND (M_PRODUCT_UOM_ID IS NULL)) AND (QTYORDERRESERVED IS NULL)) OR (((QTYORDERORDERED IS NOT NULL) AND (M_PRODUCT_UOM_ID IS NOT NULL)) AND (QTYORDERRESERVED IS NOT NULL))]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_SUBSTITUTE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_SUBSTITUTE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,6 @@
         <unique-column name="M_PRODUCT_ID"/>
         <unique-column name="SUBSTITUTE_ID"/>
       </unique>
+      <check name="M_SUBSTITUTE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_TRANSACTION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_TRANSACTION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -135,5 +135,7 @@
       <index name="M_TRANSSACTION_PRODUCT" unique="false">
         <index-column name="M_PRODUCT_ID"/>
       </index>
+      <check name="M_TRANSACTION_CHECK1"><![CDATA[((QUANTITYORDER IS NULL) AND (M_PRODUCT_UOM_ID IS NULL)) OR ((QUANTITYORDER IS NOT NULL) AND (M_PRODUCT_UOM_ID IS NOT NULL))]]></check>
+      <check name="M_TRANSACTION_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_WAREHOUSE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_WAREHOUSE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -82,5 +82,7 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
+      <check name="M_WAREHOUSE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="M_WAREHOUSE_ISSHIPPER_CHK"><![CDATA[ISSHIPPER IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_WAREHOUSE_ACCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_WAREHOUSE_ACCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -85,5 +85,6 @@
         <unique-column name="M_WAREHOUSE_ID"/>
         <unique-column name="C_ACCTSCHEMA_ID"/>
       </unique>
+      <check name="M_WAREHOUSE_ACC_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_WAREHOUSE_SHIPPER.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_WAREHOUSE_SHIPPER.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
       <foreign-key foreignTable="M_WAREHOUSE" name="M_WAREHOUSE_SHIPPER_M_WAREHOUS">
         <reference local="M_WAREHOUSE_ID" foreign="M_WAREHOUSE_ID"/>
       </foreign-key>
+      <check name="M_WAREHOUSE_SHI_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_WH_PERIOD.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_WH_PERIOD.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -54,5 +54,6 @@
       <foreign-key foreignTable="M_WH_SCHEDULE" name="M_WH_PERIOD_M_WH_SCHEDULE">
         <reference local="M_WH_SCHEDULE_ID" foreign="M_WH_SCHEDULE_ID"/>
       </foreign-key>
+      <check name="M_WH_PERIOD_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_WH_SCHEDULE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_WH_SCHEDULE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -55,5 +55,6 @@
       <foreign-key foreignTable="AD_ORG" name="M_WH_SCHEDULE_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="M_WH_SCHEDULE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/M_WH_SCHEDULE_PRODUCT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/M_WH_SCHEDULE_PRODUCT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -57,5 +57,6 @@
       <foreign-key foreignTable="M_WH_SCHEDULE" name="M_WH_SP_SCHEDULE">
         <reference local="M_WH_SCHEDULE_ID" foreign="M_WH_SCHEDULE_ID"/>
       </foreign-key>
+      <check name="M_WH_SCHEDULE_P_CINGTYPE_CHECK"><![CDATA[INVOICINGTYPE IS NOT NULL]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/R_CONTACTINTEREST.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/R_CONTACTINTEREST.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -61,5 +61,6 @@
       <foreign-key foreignTable="R_INTERESTAREA" name="R_CONTACTINTEREST_R_INTERESTAR">
         <reference local="R_INTERESTAREA_ID" foreign="R_INTERESTAREA_ID"/>
       </foreign-key>
+      <check name="R_CONTACTINTERE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/R_INTERESTAREA.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/R_INTERESTAREA.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -47,5 +47,6 @@
       <foreign-key foreignTable="AD_ORG" name="R_INTERESTAREA_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="R_INTERESTAREA_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/R_MAILTEXT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/R_MAILTEXT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -55,5 +55,7 @@
       <foreign-key foreignTable="AD_ORG" name="R_MAILTEXT_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="R_MAILTEXT_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="R_MAILTEXT_ISHTML_CHK"><![CDATA[ISHTML IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/R_REQUEST.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/R_REQUEST.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -190,5 +190,8 @@
       <index name="R_REQUEST_USER" unique="false">
         <index-column name="AD_USER_ID"/>
       </index>
+      <check name="R_REQUEST_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="R_REQUEST_ISESCALATED_CHK"><![CDATA[ISESCALATED IN ('Y', 'N')]]></check>
+      <check name="R_REQUEST_PROCESSED_CHK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/R_REQUESTACTION.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/R_REQUESTACTION.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -129,5 +129,6 @@
       <foreign-key foreignTable="AD_USER" name="R_REQUESTACTION_SALESREP">
         <reference local="SALESREP_ID" foreign="AD_USER_ID"/>
       </foreign-key>
+      <check name="R_REQUESTACTION_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/R_REQUESTPROCESSOR.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/R_REQUESTPROCESSOR.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -82,5 +82,6 @@
       <foreign-key foreignTable="AD_USER" name="R_REQUESTPROCESSOR_SUPERVISOR">
         <reference local="SUPERVISOR_ID" foreign="AD_USER_ID"/>
       </foreign-key>
+      <check name="R_REQUESTPROCES_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/R_REQUESTPROCESSOR_ROUTE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/R_REQUESTPROCESSOR_ROUTE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -68,5 +68,6 @@
       <foreign-key foreignTable="R_REQUESTPROCESSOR" name="R_REQUESTPROCESSOR_ROUTE_R_REQ">
         <reference local="R_REQUESTPROCESSOR_ID" foreign="R_REQUESTPROCESSOR_ID"/>
       </foreign-key>
+      <check name="R_REQPROCROUTE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/R_REQUESTTYPE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/R_REQUESTTYPE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -55,5 +55,6 @@
       <foreign-key foreignTable="AD_ORG" name="R_REQUESTTYPE_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="R_REQUESTTYPE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/S_EXPENSETYPE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/S_EXPENSETYPE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -76,5 +76,7 @@
       <foreign-key foreignTable="M_PRODUCT_CATEGORY" name="S_EXPENSETYPE_M_PRODUCT_CATEGO">
         <reference local="M_PRODUCT_CATEGORY_ID" foreign="M_PRODUCT_CATEGORY_ID"/>
       </foreign-key>
+      <check name="S_EXPENSETYPE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="S_EXPENSETYPE_ISINVOICED_CHK"><![CDATA[ISINVOICED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/S_RESOURCE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/S_RESOURCE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -80,5 +80,7 @@
       <foreign-key foreignTable="S_RESOURCETYPE" name="S_RESOURCE_S_RESOURCETYPE" onDelete="cascade">
         <reference local="S_RESOURCETYPE_ID" foreign="S_RESOURCETYPE_ID"/>
       </foreign-key>
+      <check name="S_RESOURCE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="S_RESOURCE_ISAVAILABLE_CHK"><![CDATA[ISAVAILABLE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/S_RESOURCEASSIGNMENT.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/S_RESOURCEASSIGNMENT.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -70,5 +70,7 @@
       <foreign-key foreignTable="S_RESOURCE" name="S_RESOURCEASSIGNMENT_S_RESOURC">
         <reference local="S_RESOURCE_ID" foreign="S_RESOURCE_ID"/>
       </foreign-key>
+      <check name="S_RESOURCEASSIGNMENT_ISACT_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="S_RESOURCEASSIGNMENT_ISCON_CHK"><![CDATA[ISCONFIRMED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/S_RESOURCETYPE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/S_RESOURCETYPE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -128,5 +128,17 @@
       <foreign-key foreignTable="M_PRODUCT_CATEGORY" name="S_RESOURCETYPE_M_PRODUCT_CATEG">
         <reference local="M_PRODUCT_CATEGORY_ID" foreign="M_PRODUCT_CATEGORY_ID"/>
       </foreign-key>
+      <check name="S_RESOURCETYPE_ALLOWUOMFRA_CHK"><![CDATA[ALLOWUOMFRACTIONS IN ('Y', 'N')]]></check>
+      <check name="S_RESOURCETYPE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="S_RESOURCETYPE_ISDATESLOT_CHK"><![CDATA[ISDATESLOT IN ('Y', 'N')]]></check>
+      <check name="S_RESOURCETYPE_ISSINGLEASS_CHK"><![CDATA[ISSINGLEASSIGNMENT IN ('Y', 'N')]]></check>
+      <check name="S_RESOURCETYPE_ISTIMESLOT_CHK"><![CDATA[ISTIMESLOT IN ('Y', 'N')]]></check>
+      <check name="S_RESOURCETYPE_ONFRIDAY_CHK"><![CDATA[ONFRIDAY IN ('Y', 'N')]]></check>
+      <check name="S_RESOURCETYPE_ONMONDAY_CHK"><![CDATA[ONMONDAY IN ('Y', 'N')]]></check>
+      <check name="S_RESOURCETYPE_ONSATURDAY_CHK"><![CDATA[ONSATURDAY IN ('Y', 'N')]]></check>
+      <check name="S_RESOURCETYPE_ONSUNDAY_CHK"><![CDATA[ONSUNDAY IN ('Y', 'N')]]></check>
+      <check name="S_RESOURCETYPE_ONTHURSDAY_CHK"><![CDATA[ONTHURSDAY IN ('Y', 'N')]]></check>
+      <check name="S_RESOURCETYPE_ONTUESDAY_CHK"><![CDATA[ONTUESDAY IN ('Y', 'N')]]></check>
+      <check name="S_RESOURCETYPE_ONWEDNESDAY_CHK"><![CDATA[ONWEDNESDAY IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/S_RESOURCEUNAVAILABLE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/S_RESOURCEUNAVAILABLE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -58,5 +58,6 @@
       <foreign-key foreignTable="S_RESOURCE" name="S_RESOURCEUNAVAILABLE_S_RESOUR" onDelete="cascade">
         <reference local="S_RESOURCE_ID" foreign="S_RESOURCE_ID"/>
       </foreign-key>
+      <check name="S_RESOURCEUNAVA_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/S_TIMEEXPENSE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/S_TIMEEXPENSE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -80,5 +80,7 @@
       <foreign-key foreignTable="M_WAREHOUSE" name="S_TIMEEXPENSE_M_WAREHOUSE">
         <reference local="M_WAREHOUSE_ID" foreign="M_WAREHOUSE_ID"/>
       </foreign-key>
+      <check name="S_TIMEEXPENSE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="S_TIMEEXPENSE_PROCESSED_CHK"><![CDATA[PROCESSED IN ('Y', 'N')]]></check>
     </table>
   </database>
--- a/src-db/database/model/tables/S_TIMEEXPENSELINE.xml	Thu Oct 07 16:32:29 2010 +0200
+++ b/src-db/database/model/tables/S_TIMEEXPENSELINE.xml	Thu Oct 07 16:53:30 2010 +0200
@@ -177,5 +177,9 @@
       <foreign-key foreignTable="S_TIMETYPE" name="S_TIMEEXPENSELINE_S_TIMETYPE">
         <reference local="S_TIMETYPE_ID" foreign="S_TIMETYPE_ID"/>
       </foreign-key>
+      <check name="S_TIMEEXPENSELINE_CHECK1"><![CDATA[(ISINVOICED = 'N') OR (C_BPARTNER_ID IS NOT NULL)]]></check>
+      <check name="S_TIMEEXPENSELINE_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="S_TIMEEXPENSELINE_ISINVOIC_CHK"><![CDATA[ISINVOICED IN ('Y', 'N')]]></check>
+      <check name="S_TIMEEXPENSELINE_ISTIMERE_CHK"><![CDATA[ISTIMEREPORT IN ('Y', 'N')]]></check>
     </table>
   </database>