-- MariaDB dump 10.19  Distrib 10.4.22-MariaDB, for Win64 (AMD64)
--
-- Host: localhost    Database: psql_pland
-- ------------------------------------------------------
-- Server version	10.7.1-MariaDB

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `account_account`
--

DROP TABLE IF EXISTS `account_account`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_account` (
  `id` int(11) NOT NULL,
  `note` text DEFAULT NULL,
  `internal_type` varchar(255) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `deprecated` tinyint(1) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `code` varchar(64) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `user_type_id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `last_time_entries_checked` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `reconcile` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `code` (`code`),
  KEY `deprecated` (`deprecated`),
  KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_account_account_tag`
--

DROP TABLE IF EXISTS `account_account_account_tag`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_account_account_tag` (
  `account_account_id` int(11) NOT NULL,
  `account_account_tag_id` int(11) NOT NULL,
  KEY `account_account_id` (`account_account_id`),
  KEY `account_account_tag_id` (`account_account_tag_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_account_financial_report`
--

DROP TABLE IF EXISTS `account_account_financial_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_account_financial_report` (
  `report_line_id` int(11) NOT NULL,
  `account_id` int(11) NOT NULL,
  KEY `account_id` (`account_id`),
  KEY `report_line_id` (`report_line_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_account_financial_report_type`
--

DROP TABLE IF EXISTS `account_account_financial_report_type`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_account_financial_report_type` (
  `report_id` int(11) NOT NULL,
  `account_type_id` int(11) NOT NULL,
  KEY `account_type_id` (`account_type_id`),
  KEY `report_id` (`report_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_account_tag`
--

DROP TABLE IF EXISTS `account_account_tag`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_account_tag` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `color` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `applicability` varchar(255) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_account_tag_account_tax_template_rel`
--

DROP TABLE IF EXISTS `account_account_tag_account_tax_template_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_account_tag_account_tax_template_rel` (
  `account_tax_template_id` int(11) NOT NULL,
  `account_account_tag_id` int(11) NOT NULL,
  KEY `account_tax_template_id` (`account_tax_template_id`),
  KEY `account_account_tag_id` (`account_account_tag_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_account_tax_default_rel`
--

DROP TABLE IF EXISTS `account_account_tax_default_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_account_tax_default_rel` (
  `account_id` int(11) NOT NULL,
  `tax_id` int(11) NOT NULL,
  KEY `account_id` (`account_id`),
  KEY `tax_id` (`tax_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_account_template`
--

DROP TABLE IF EXISTS `account_account_template`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_account_template` (
  `id` int(11) NOT NULL,
  `note` text DEFAULT NULL,
  `code` varchar(64) NOT NULL,
  `name` varchar(255) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `chart_template_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `nocreate` tinyint(1) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `user_type_id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `reconcile` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `code` (`code`),
  KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_account_template_account_tag`
--

DROP TABLE IF EXISTS `account_account_template_account_tag`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_account_template_account_tag` (
  `account_account_template_id` int(11) NOT NULL,
  `account_account_tag_id` int(11) NOT NULL,
  KEY `account_account_template_id` (`account_account_template_id`),
  KEY `account_account_tag_id` (`account_account_tag_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_account_template_tax_rel`
--

DROP TABLE IF EXISTS `account_account_template_tax_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_account_template_tax_rel` (
  `account_id` int(11) NOT NULL,
  `tax_id` int(11) NOT NULL,
  KEY `account_id` (`account_id`),
  KEY `tax_id` (`tax_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_account_type`
--

DROP TABLE IF EXISTS `account_account_type`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_account_type` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `include_initial_balance` tinyint(1) DEFAULT NULL,
  `type` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_account_type_rel`
--

DROP TABLE IF EXISTS `account_account_type_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_account_type_rel` (
  `journal_id` int(11) NOT NULL,
  `account_id` int(11) NOT NULL,
  KEY `account_id` (`account_id`),
  KEY `journal_id` (`journal_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_aged_trial_balance`
--

DROP TABLE IF EXISTS `account_aged_trial_balance`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_aged_trial_balance` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `period_length` int(11) NOT NULL,
  `date_from` date DEFAULT NULL,
  `result_selection` varchar(255) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_to` date DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `target_move` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_aged_trial_balance_account_journal_rel`
--

DROP TABLE IF EXISTS `account_aged_trial_balance_account_journal_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_aged_trial_balance_account_journal_rel` (
  `account_aged_trial_balance_id` int(11) NOT NULL,
  `account_journal_id` int(11) NOT NULL,
  KEY `account_aged_trial_balance_id` (`account_aged_trial_balance_id`),
  KEY `account_journal_id` (`account_journal_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_analytic_account`
--

DROP TABLE IF EXISTS `account_analytic_account`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_analytic_account` (
  `id` int(11) NOT NULL,
  `code` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `company_id` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `code` (`code`),
  KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_analytic_account_tag_rel`
--

DROP TABLE IF EXISTS `account_analytic_account_tag_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_analytic_account_tag_rel` (
  `account_id` int(11) NOT NULL,
  `tag_id` int(11) NOT NULL,
  KEY `account_id` (`account_id`),
  KEY `tag_id` (`tag_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_analytic_line`
--

DROP TABLE IF EXISTS `account_analytic_line`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_analytic_line` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `account_id` int(11) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `amount` decimal(10,0) NOT NULL,
  `unit_amount` double DEFAULT NULL,
  `date` date NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `partner_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `code` varchar(8) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `ref` varchar(255) DEFAULT NULL,
  `general_account_id` int(11) DEFAULT NULL,
  `move_id` int(11) DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `product_uom_id` int(11) DEFAULT NULL,
  `amount_currency` decimal(10,0) DEFAULT NULL,
  `so_line` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`),
  KEY `date` (`date`),
  KEY `move_id` (`move_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_analytic_line_tag_rel`
--

DROP TABLE IF EXISTS `account_analytic_line_tag_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_analytic_line_tag_rel` (
  `line_id` int(11) NOT NULL,
  `tag_id` int(11) NOT NULL,
  KEY `line_id` (`line_id`),
  KEY `tag_id` (`tag_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_analytic_tag`
--

DROP TABLE IF EXISTS `account_analytic_tag`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_analytic_tag` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `color` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_analytic_tag_account_invoice_line_rel`
--

DROP TABLE IF EXISTS `account_analytic_tag_account_invoice_line_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_analytic_tag_account_invoice_line_rel` (
  `account_invoice_line_id` int(11) NOT NULL,
  `account_analytic_tag_id` int(11) NOT NULL,
  KEY `account_analytic_tag_id` (`account_analytic_tag_id`),
  KEY `account_invoice_line_id` (`account_invoice_line_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_analytic_tag_account_move_line_rel`
--

DROP TABLE IF EXISTS `account_analytic_tag_account_move_line_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_analytic_tag_account_move_line_rel` (
  `account_move_line_id` int(11) NOT NULL,
  `account_analytic_tag_id` int(11) NOT NULL,
  KEY `account_analytic_tag_id` (`account_analytic_tag_id`),
  KEY `account_move_line_id` (`account_move_line_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_analytic_tag_purchase_order_line_rel`
--

DROP TABLE IF EXISTS `account_analytic_tag_purchase_order_line_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_analytic_tag_purchase_order_line_rel` (
  `purchase_order_line_id` int(11) NOT NULL,
  `account_analytic_tag_id` int(11) NOT NULL,
  KEY `purchase_order_line_id` (`purchase_order_line_id`),
  KEY `account_analytic_tag_id` (`account_analytic_tag_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_analytic_tag_sale_order_line_rel`
--

DROP TABLE IF EXISTS `account_analytic_tag_sale_order_line_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_analytic_tag_sale_order_line_rel` (
  `sale_order_line_id` int(11) NOT NULL,
  `account_analytic_tag_id` int(11) NOT NULL,
  KEY `account_analytic_tag_id` (`account_analytic_tag_id`),
  KEY `sale_order_line_id` (`sale_order_line_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_balance_report`
--

DROP TABLE IF EXISTS `account_balance_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_balance_report` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `date_from` date DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_to` date DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `display_account` varchar(255) NOT NULL,
  `target_move` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_balance_report_journal_rel`
--

DROP TABLE IF EXISTS `account_balance_report_journal_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_balance_report_journal_rel` (
  `account_id` int(11) NOT NULL,
  `journal_id` int(11) NOT NULL,
  KEY `account_id` (`account_id`),
  KEY `journal_id` (`journal_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_bank_accounts_wizard`
--

DROP TABLE IF EXISTS `account_bank_accounts_wizard`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_bank_accounts_wizard` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `acc_name` varchar(255) NOT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `account_type` varchar(255) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `bank_account_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_bank_statement`
--

DROP TABLE IF EXISTS `account_bank_statement`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_bank_statement` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_done` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `balance_start` decimal(10,0) DEFAULT NULL,
  `journal_id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `reference` varchar(255) DEFAULT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `company_id` int(11) DEFAULT NULL,
  `state` varchar(255) NOT NULL,
  `cashbox_start_id` int(11) DEFAULT NULL,
  `cashbox_end_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `total_entry_encoding` decimal(10,0) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date` date NOT NULL,
  `difference` decimal(10,0) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `balance_end` decimal(10,0) DEFAULT NULL,
  `balance_end_real` decimal(10,0) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `date` (`date`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_bank_statement_cashbox`
--

DROP TABLE IF EXISTS `account_bank_statement_cashbox`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_bank_statement_cashbox` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_bank_statement_closebalance`
--

DROP TABLE IF EXISTS `account_bank_statement_closebalance`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_bank_statement_closebalance` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_bank_statement_import`
--

DROP TABLE IF EXISTS `account_bank_statement_import`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_bank_statement_import` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `data_file` blob NOT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_bank_statement_import_journal_creation`
--

DROP TABLE IF EXISTS `account_bank_statement_import_journal_creation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_bank_statement_import_journal_creation` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `journal_id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_bank_statement_line`
--

DROP TABLE IF EXISTS `account_bank_statement_line`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_bank_statement_line` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `statement_id` int(11) NOT NULL,
  `sequence` int(11) DEFAULT NULL,
  `journal_id` int(11) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `partner_name` varchar(255) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `bank_account_id` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `ref` varchar(255) DEFAULT NULL,
  `account_id` int(11) DEFAULT NULL,
  `move_name` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date` date NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `amount` decimal(10,0) DEFAULT NULL,
  `amount_currency` decimal(10,0) DEFAULT NULL,
  `unique_import_id` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sequence` (`sequence`),
  KEY `statement_id` (`statement_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_cashbox_line`
--

DROP TABLE IF EXISTS `account_cashbox_line`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_cashbox_line` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `number` int(11) DEFAULT NULL,
  `cashbox_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `coin_value` decimal(10,0) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_chart_template`
--

DROP TABLE IF EXISTS `account_chart_template`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_chart_template` (
  `id` int(11) NOT NULL,
  `bank_account_code_prefix` varchar(255) DEFAULT NULL,
  `cash_account_code_prefix` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `currency_id` int(11) NOT NULL,
  `visible` tinyint(1) DEFAULT NULL,
  `property_account_receivable_id` int(11) DEFAULT NULL,
  `property_stock_valuation_account_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `complete_tax_set` tinyint(1) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `transfer_account_id` int(11) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `expense_currency_exchange_account_id` int(11) DEFAULT NULL,
  `property_stock_account_output_categ_id` int(11) DEFAULT NULL,
  `property_account_income_categ_id` int(11) DEFAULT NULL,
  `property_stock_account_input_categ_id` int(11) DEFAULT NULL,
  `property_account_income_id` int(11) DEFAULT NULL,
  `property_account_expense_categ_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `use_anglo_saxon` tinyint(1) DEFAULT NULL,
  `code_digits` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `property_account_expense_id` int(11) DEFAULT NULL,
  `property_account_payable_id` int(11) DEFAULT NULL,
  `income_currency_exchange_account_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_common_account_report`
--

DROP TABLE IF EXISTS `account_common_account_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_common_account_report` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `date_from` date DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_to` date DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `display_account` varchar(255) NOT NULL,
  `target_move` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_common_account_report_account_journal_rel`
--

DROP TABLE IF EXISTS `account_common_account_report_account_journal_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_common_account_report_account_journal_rel` (
  `account_common_account_report_id` int(11) NOT NULL,
  `account_journal_id` int(11) NOT NULL,
  KEY `account_common_account_report_id` (`account_common_account_report_id`),
  KEY `account_journal_id` (`account_journal_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_common_journal_report`
--

DROP TABLE IF EXISTS `account_common_journal_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_common_journal_report` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `date_from` date DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_to` date DEFAULT NULL,
  `amount_currency` tinyint(1) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `target_move` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_common_journal_report_account_journal_rel`
--

DROP TABLE IF EXISTS `account_common_journal_report_account_journal_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_common_journal_report_account_journal_rel` (
  `account_common_journal_report_id` int(11) NOT NULL,
  `account_journal_id` int(11) NOT NULL,
  KEY `account_common_journal_report_id` (`account_common_journal_report_id`),
  KEY `account_journal_id` (`account_journal_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_common_partner_report`
--

DROP TABLE IF EXISTS `account_common_partner_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_common_partner_report` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `date_from` date DEFAULT NULL,
  `result_selection` varchar(255) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_to` date DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `target_move` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_common_partner_report_account_journal_rel`
--

DROP TABLE IF EXISTS `account_common_partner_report_account_journal_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_common_partner_report_account_journal_rel` (
  `account_common_partner_report_id` int(11) NOT NULL,
  `account_journal_id` int(11) NOT NULL,
  KEY `account_common_partner_report_id` (`account_common_partner_report_id`),
  KEY `account_journal_id` (`account_journal_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_common_report`
--

DROP TABLE IF EXISTS `account_common_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_common_report` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `date_from` date DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_to` date DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `target_move` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_common_report_account_journal_rel`
--

DROP TABLE IF EXISTS `account_common_report_account_journal_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_common_report_account_journal_rel` (
  `account_common_report_id` int(11) NOT NULL,
  `account_journal_id` int(11) NOT NULL,
  KEY `account_common_report_id` (`account_common_report_id`),
  KEY `account_journal_id` (`account_journal_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_config_settings`
--

DROP TABLE IF EXISTS `account_config_settings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_config_settings` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `module_account_asset` tinyint(1) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `module_account_accountant` tinyint(1) DEFAULT NULL,
  `has_chart_of_accounts` tinyint(1) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `complete_tax_set` tinyint(1) DEFAULT NULL,
  `template_transfer_account_id` int(11) DEFAULT NULL,
  `module_account_sepa` tinyint(1) DEFAULT NULL,
  `module_account_bank_statement_import_csv` tinyint(1) DEFAULT NULL,
  `module_account_budget` tinyint(1) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `group_warning_account` int(11) DEFAULT NULL,
  `group_multi_currency` tinyint(1) DEFAULT NULL,
  `group_proforma_invoices` tinyint(1) DEFAULT NULL,
  `module_account_reports` tinyint(1) DEFAULT NULL,
  `module_account_plaid` tinyint(1) DEFAULT NULL,
  `has_default_company` tinyint(1) DEFAULT NULL,
  `purchase_tax_rate` double DEFAULT NULL,
  `module_account_bank_statement_import_ofx` tinyint(1) DEFAULT NULL,
  `module_l10n_us_check_printing` tinyint(1) DEFAULT NULL,
  `default_purchase_tax_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `sale_tax_rate` double DEFAULT NULL,
  `module_account_batch_deposit` tinyint(1) DEFAULT NULL,
  `module_account_yodlee` tinyint(1) DEFAULT NULL,
  `module_account_tax_cash_basis` tinyint(1) DEFAULT NULL,
  `chart_template_id` int(11) DEFAULT NULL,
  `default_sale_tax_id` int(11) DEFAULT NULL,
  `sale_tax_id` int(11) DEFAULT NULL,
  `module_account_bank_statement_import_qif` tinyint(1) DEFAULT NULL,
  `group_analytic_accounting` tinyint(1) DEFAULT NULL,
  `module_account_deferred_revenue` tinyint(1) DEFAULT NULL,
  `module_account_reports_followup` tinyint(1) DEFAULT NULL,
  `purchase_tax_id` int(11) DEFAULT NULL,
  `module_account_taxcloud` tinyint(1) DEFAULT NULL,
  `group_analytic_account_for_sales` tinyint(1) DEFAULT NULL,
  `group_analytic_account_for_purchases` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_financial_report`
--

DROP TABLE IF EXISTS `account_financial_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_financial_report` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `level` int(11) DEFAULT NULL,
  `sequence` int(11) DEFAULT NULL,
  `style_overwrite` int(11) DEFAULT NULL,
  `sign` int(11) NOT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `account_report_id` int(11) DEFAULT NULL,
  `display_detail` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `type` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_fiscal_position`
--

DROP TABLE IF EXISTS `account_fiscal_position`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_fiscal_position` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `zip_to` int(11) DEFAULT NULL,
  `sequence` int(11) DEFAULT NULL,
  `auto_apply` tinyint(1) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `vat_required` tinyint(1) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `country_id` int(11) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `country_group_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `zip_from` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_fiscal_position_account`
--

DROP TABLE IF EXISTS `account_fiscal_position_account`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_fiscal_position_account` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `position_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `account_dest_id` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `account_src_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_fiscal_position_account_template`
--

DROP TABLE IF EXISTS `account_fiscal_position_account_template`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_fiscal_position_account_template` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `position_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `account_dest_id` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `account_src_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_fiscal_position_res_country_state_rel`
--

DROP TABLE IF EXISTS `account_fiscal_position_res_country_state_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_fiscal_position_res_country_state_rel` (
  `account_fiscal_position_id` int(11) NOT NULL,
  `res_country_state_id` int(11) NOT NULL,
  KEY `account_fiscal_position_id` (`account_fiscal_position_id`),
  KEY `res_country_state_id` (`res_country_state_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_fiscal_position_tax`
--

DROP TABLE IF EXISTS `account_fiscal_position_tax`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_fiscal_position_tax` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `position_id` int(11) NOT NULL,
  `tax_src_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `tax_dest_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_fiscal_position_tax_template`
--

DROP TABLE IF EXISTS `account_fiscal_position_tax_template`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_fiscal_position_tax_template` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `position_id` int(11) NOT NULL,
  `tax_src_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `tax_dest_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_fiscal_position_template`
--

DROP TABLE IF EXISTS `account_fiscal_position_template`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_fiscal_position_template` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `chart_template_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_full_reconcile`
--

DROP TABLE IF EXISTS `account_full_reconcile`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_full_reconcile` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `exchange_move_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `exchange_partial_rec_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_invoice`
--

DROP TABLE IF EXISTS `account_invoice`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_invoice` (
  `id` int(11) NOT NULL,
  `comment` text DEFAULT NULL,
  `date_due` date DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `partner_bank_id` int(11) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `journal_id` int(11) NOT NULL,
  `amount_total_company_signed` decimal(10,0) DEFAULT NULL,
  `residual` decimal(10,0) DEFAULT NULL,
  `partner_id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `amount_untaxed` decimal(10,0) DEFAULT NULL,
  `reference` varchar(255) DEFAULT NULL,
  `residual_company_signed` decimal(10,0) DEFAULT NULL,
  `amount_total_signed` decimal(10,0) DEFAULT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `company_id` int(11) NOT NULL,
  `amount_tax` decimal(10,0) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `move_id` int(11) DEFAULT NULL,
  `type` varchar(255) DEFAULT NULL,
  `sent` tinyint(1) DEFAULT NULL,
  `account_id` int(11) NOT NULL,
  `reconciled` tinyint(1) DEFAULT NULL,
  `origin` varchar(255) DEFAULT NULL,
  `move_name` varchar(255) DEFAULT NULL,
  `reference_type` varchar(255) NOT NULL,
  `date_invoice` date DEFAULT NULL,
  `payment_term_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `residual_signed` decimal(10,0) DEFAULT NULL,
  `date` date DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `fiscal_position_id` int(11) DEFAULT NULL,
  `amount_total` decimal(10,0) DEFAULT NULL,
  `amount_untaxed_signed` decimal(10,0) DEFAULT NULL,
  `currency_id` int(11) NOT NULL,
  `refund_invoice_id` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `commercial_partner_id` int(11) DEFAULT NULL,
  `partner_shipping_id` int(11) DEFAULT NULL,
  `team_id` int(11) DEFAULT NULL,
  `purchase_id` int(11) DEFAULT NULL,
  `incoterms_id` int(11) DEFAULT NULL,
  `is_vehicle_tax_invoice` tinyint(1) DEFAULT NULL,
  `vehicle_id` int(11) DEFAULT NULL,
  `quarter_id` int(11) DEFAULT NULL,
  `air_bill_number` varchar(255) DEFAULT NULL,
  `product_type` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `date_due` (`date_due`),
  KEY `date_invoice` (`date_invoice`),
  KEY `move_id` (`move_id`),
  KEY `name` (`name`),
  KEY `state` (`state`),
  KEY `type` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_invoice2`
--

DROP TABLE IF EXISTS `account_invoice2`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_invoice2` (
  `id` int(11) DEFAULT NULL,
  `comment` text DEFAULT NULL,
  `date_due` date DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `partner_bank_id` int(11) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `journal_id` int(11) DEFAULT NULL,
  `amount_total_company_signed` decimal(10,0) DEFAULT NULL,
  `residual` decimal(10,0) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `amount_untaxed` decimal(10,0) DEFAULT NULL,
  `reference` varchar(255) DEFAULT NULL,
  `residual_company_signed` decimal(10,0) DEFAULT NULL,
  `amount_total_signed` decimal(10,0) DEFAULT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `company_id` int(11) DEFAULT NULL,
  `amount_tax` decimal(10,0) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `move_id` int(11) DEFAULT NULL,
  `type` varchar(255) DEFAULT NULL,
  `sent` tinyint(1) DEFAULT NULL,
  `account_id` int(11) DEFAULT NULL,
  `reconciled` tinyint(1) DEFAULT NULL,
  `origin` varchar(255) DEFAULT NULL,
  `move_name` varchar(255) DEFAULT NULL,
  `reference_type` varchar(255) DEFAULT NULL,
  `date_invoice` date DEFAULT NULL,
  `payment_term_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `residual_signed` decimal(10,0) DEFAULT NULL,
  `date` date DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `fiscal_position_id` int(11) DEFAULT NULL,
  `amount_total` decimal(10,0) DEFAULT NULL,
  `amount_untaxed_signed` decimal(10,0) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `refund_invoice_id` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `commercial_partner_id` int(11) DEFAULT NULL,
  `partner_shipping_id` int(11) DEFAULT NULL,
  `team_id` int(11) DEFAULT NULL,
  `purchase_id` int(11) DEFAULT NULL,
  `incoterms_id` int(11) DEFAULT NULL,
  `is_vehicle_tax_invoice` tinyint(1) DEFAULT NULL,
  `vehicle_id` int(11) DEFAULT NULL,
  `quarter_id` int(11) DEFAULT NULL,
  `air_bill_number` varchar(255) DEFAULT NULL,
  `product_type` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_invoice_account_move_line_rel`
--

DROP TABLE IF EXISTS `account_invoice_account_move_line_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_invoice_account_move_line_rel` (
  `account_invoice_id` int(11) NOT NULL,
  `account_move_line_id` int(11) NOT NULL,
  KEY `account_invoice_id` (`account_invoice_id`),
  KEY `account_move_line_id` (`account_move_line_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_invoice_cancel`
--

DROP TABLE IF EXISTS `account_invoice_cancel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_invoice_cancel` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_invoice_confirm`
--

DROP TABLE IF EXISTS `account_invoice_confirm`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_invoice_confirm` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_invoice_line`
--

DROP TABLE IF EXISTS `account_invoice_line`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_invoice_line` (
  `id` int(11) NOT NULL,
  `origin` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `price_unit` decimal(10,0) NOT NULL,
  `price_subtotal` decimal(10,0) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `uom_id` int(11) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `sequence` int(11) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `account_analytic_id` int(11) DEFAULT NULL,
  `account_id` int(11) NOT NULL,
  `discount` decimal(10,0) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `price_subtotal_signed` decimal(10,0) DEFAULT NULL,
  `name` text NOT NULL,
  `product_id` int(11) DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `quantity` decimal(10,0) NOT NULL,
  `layout_category_sequence` int(11) DEFAULT NULL,
  `layout_category_id` int(11) DEFAULT NULL,
  `purchase_line_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `invoice_id` (`invoice_id`),
  KEY `product_id` (`product_id`),
  KEY `purchase_line_id` (`purchase_line_id`),
  KEY `uom_id` (`uom_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_invoice_line_tax`
--

DROP TABLE IF EXISTS `account_invoice_line_tax`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_invoice_line_tax` (
  `invoice_line_id` int(11) NOT NULL,
  `tax_id` int(11) NOT NULL,
  KEY `invoice_line_id` (`invoice_line_id`),
  KEY `tax_id` (`tax_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_invoice_payment_rel`
--

DROP TABLE IF EXISTS `account_invoice_payment_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_invoice_payment_rel` (
  `payment_id` int(11) NOT NULL,
  `invoice_id` int(11) NOT NULL,
  KEY `invoice_id` (`invoice_id`),
  KEY `payment_id` (`payment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_invoice_refund`
--

DROP TABLE IF EXISTS `account_invoice_refund`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_invoice_refund` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `filter_refund` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `date_invoice` date NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date` date DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_invoice_tax`
--

DROP TABLE IF EXISTS `account_invoice_tax`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_invoice_tax` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `account_id` int(11) NOT NULL,
  `sequence` int(11) DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `manual` tinyint(1) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `amount` decimal(10,0) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `account_analytic_id` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `tax_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `invoice_id` (`invoice_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_journal`
--

DROP TABLE IF EXISTS `account_journal`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_journal` (
  `id` int(11) NOT NULL,
  `code` varchar(5) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `sequence` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `at_least_one_inbound` tinyint(1) DEFAULT NULL,
  `bank_statements_source` varchar(255) DEFAULT NULL,
  `bank_account_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `group_invoice_lines` tinyint(1) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `profit_account_id` int(11) DEFAULT NULL,
  `display_on_footer` tinyint(1) DEFAULT NULL,
  `default_debit_account_id` int(11) DEFAULT NULL,
  `show_on_dashboard` tinyint(1) DEFAULT NULL,
  `default_credit_account_id` int(11) DEFAULT NULL,
  `sequence_id` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `refund_sequence_id` int(11) DEFAULT NULL,
  `loss_account_id` int(11) DEFAULT NULL,
  `update_posted` tinyint(1) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `type` varchar(255) NOT NULL,
  `at_least_one_outbound` tinyint(1) DEFAULT NULL,
  `refund_sequence` tinyint(1) DEFAULT NULL,
  `check_sequence_id` int(11) DEFAULT NULL,
  `check_manual_sequencing` tinyint(1) DEFAULT NULL,
  `is_readonly` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_journal_account_print_journal_rel`
--

DROP TABLE IF EXISTS `account_journal_account_print_journal_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_journal_account_print_journal_rel` (
  `account_print_journal_id` int(11) NOT NULL,
  `account_journal_id` int(11) NOT NULL,
  KEY `account_print_journal_id` (`account_print_journal_id`),
  KEY `account_journal_id` (`account_journal_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_journal_account_report_partner_ledger_rel`
--

DROP TABLE IF EXISTS `account_journal_account_report_partner_ledger_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_journal_account_report_partner_ledger_rel` (
  `account_report_partner_ledger_id` int(11) NOT NULL,
  `account_journal_id` int(11) NOT NULL,
  KEY `account_report_partner_ledger_id` (`account_report_partner_ledger_id`),
  KEY `account_journal_id` (`account_journal_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_journal_accounting_report_rel`
--

DROP TABLE IF EXISTS `account_journal_accounting_report_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_journal_accounting_report_rel` (
  `accounting_report_id` int(11) NOT NULL,
  `account_journal_id` int(11) NOT NULL,
  KEY `account_journal_id` (`account_journal_id`),
  KEY `accounting_report_id` (`accounting_report_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_journal_inbound_payment_method_rel`
--

DROP TABLE IF EXISTS `account_journal_inbound_payment_method_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_journal_inbound_payment_method_rel` (
  `journal_id` int(11) NOT NULL,
  `inbound_payment_method` int(11) NOT NULL,
  KEY `inbound_payment_method` (`inbound_payment_method`),
  KEY `journal_id` (`journal_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_journal_outbound_payment_method_rel`
--

DROP TABLE IF EXISTS `account_journal_outbound_payment_method_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_journal_outbound_payment_method_rel` (
  `journal_id` int(11) NOT NULL,
  `outbound_payment_method` int(11) NOT NULL,
  KEY `outbound_payment_method` (`outbound_payment_method`),
  KEY `journal_id` (`journal_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_journal_type_rel`
--

DROP TABLE IF EXISTS `account_journal_type_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_journal_type_rel` (
  `journal_id` int(11) NOT NULL,
  `type_id` int(11) NOT NULL,
  KEY `journal_id` (`journal_id`),
  KEY `type_id` (`type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_move`
--

DROP TABLE IF EXISTS `account_move`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_move` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `state` varchar(255) NOT NULL,
  `ref` varchar(255) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `journal_id` int(11) NOT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `amount` decimal(10,0) DEFAULT NULL,
  `matched_percentage` decimal(10,0) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `narration` text DEFAULT NULL,
  `date` date NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `statement_line_id` int(11) DEFAULT NULL,
  `air_bill_number` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `date` (`date`),
  KEY `statement_line_id` (`statement_line_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_move_line`
--

DROP TABLE IF EXISTS `account_move_line`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_move_line` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `statement_id` int(11) DEFAULT NULL,
  `journal_id` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `date_maturity` date NOT NULL,
  `user_type_id` int(11) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `blocked` tinyint(1) DEFAULT NULL,
  `analytic_account_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `amount_residual` decimal(10,0) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `credit_cash_basis` decimal(10,0) DEFAULT NULL,
  `amount_residual_currency` decimal(10,0) DEFAULT NULL,
  `debit` decimal(10,0) DEFAULT NULL,
  `ref` varchar(255) DEFAULT NULL,
  `account_id` int(11) NOT NULL,
  `debit_cash_basis` decimal(10,0) DEFAULT NULL,
  `reconciled` tinyint(1) DEFAULT NULL,
  `tax_exigible` tinyint(1) DEFAULT NULL,
  `balance_cash_basis` decimal(10,0) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date` date DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `move_id` int(11) NOT NULL,
  `product_id` int(11) DEFAULT NULL,
  `payment_id` int(11) DEFAULT NULL,
  `company_currency_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `full_reconcile_id` int(11) DEFAULT NULL,
  `tax_line_id` int(11) DEFAULT NULL,
  `credit` decimal(10,0) DEFAULT NULL,
  `product_uom_id` int(11) DEFAULT NULL,
  `amount_currency` decimal(10,0) DEFAULT NULL,
  `balance` decimal(10,0) DEFAULT NULL,
  `quantity` decimal(10,0) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `account_id` (`account_id`),
  KEY `date` (`date`),
  KEY `date_maturity` (`date_maturity`),
  KEY `journal_id` (`journal_id`),
  KEY `move_id` (`move_id`),
  KEY `partner_id` (`partner_id`,`ref`),
  KEY `ref` (`ref`),
  KEY `statement_id` (`statement_id`),
  KEY `user_type_id` (`user_type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_move_line_account_tax_rel`
--

DROP TABLE IF EXISTS `account_move_line_account_tax_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_move_line_account_tax_rel` (
  `account_move_line_id` int(11) NOT NULL,
  `account_tax_id` int(11) NOT NULL,
  KEY `account_move_line_id` (`account_move_line_id`),
  KEY `account_tax_id` (`account_tax_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_move_line_reconcile`
--

DROP TABLE IF EXISTS `account_move_line_reconcile`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_move_line_reconcile` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `writeoff` decimal(10,0) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `credit` decimal(10,0) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `debit` decimal(10,0) DEFAULT NULL,
  `trans_nbr` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_move_line_reconcile_writeoff`
--

DROP TABLE IF EXISTS `account_move_line_reconcile_writeoff`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_move_line_reconcile_writeoff` (
  `id` int(11) NOT NULL,
  `comment` varchar(255) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `writeoff_acc_id` int(11) NOT NULL,
  `journal_id` int(11) NOT NULL,
  `analytic_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_p` date DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_move_reversal`
--

DROP TABLE IF EXISTS `account_move_reversal`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_move_reversal` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `journal_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date` date NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_partial_reconcile`
--

DROP TABLE IF EXISTS `account_partial_reconcile`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_partial_reconcile` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `credit_move_id` int(11) NOT NULL,
  `full_reconcile_id` int(11) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `amount` decimal(10,0) DEFAULT NULL,
  `debit_move_id` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `amount_currency` decimal(10,0) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `credit_move_id` (`credit_move_id`),
  KEY `debit_move_id` (`debit_move_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_payment`
--

DROP TABLE IF EXISTS `account_payment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_payment` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `communication` varchar(255) DEFAULT NULL,
  `journal_id` int(11) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `payment_method_id` int(11) NOT NULL,
  `payment_date` date NOT NULL,
  `payment_difference_handling` varchar(255) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `writeoff_account_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `move_name` varchar(255) DEFAULT NULL,
  `partner_type` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `destination_journal_id` int(11) DEFAULT NULL,
  `amount` decimal(10,0) NOT NULL,
  `payment_type` varchar(255) NOT NULL,
  `payment_reference` varchar(255) DEFAULT NULL,
  `payment_transaction_id` int(11) DEFAULT NULL,
  `payment_token_id` int(11) DEFAULT NULL,
  `check_amount_in_words` varchar(255) DEFAULT NULL,
  `check_number` int(11) DEFAULT NULL,
  `air_bill_number` varchar(255) NOT NULL,
  `district` int(11) DEFAULT NULL,
  `payment_location_id` int(11) DEFAULT NULL,
  `legacy_payment_id` int(11) DEFAULT NULL,
  `sms_number` varchar(255) DEFAULT NULL,
  `is_readonly` tinyint(1) DEFAULT NULL,
  `tax_exempt` tinyint(1) DEFAULT NULL,
  `tax_exempt_amount` double DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_payment_method`
--

DROP TABLE IF EXISTS `account_payment_method`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_payment_method` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `code` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `payment_type` varchar(255) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_payment_term`
--

DROP TABLE IF EXISTS `account_payment_term`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_payment_term` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `company_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_payment_term_line`
--

DROP TABLE IF EXISTS `account_payment_term_line`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_payment_term_line` (
  `id` int(11) NOT NULL,
  `payment_id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `option` varchar(255) NOT NULL,
  `sequence` int(11) DEFAULT NULL,
  `days` int(11) NOT NULL,
  `value` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `value_amount` decimal(10,0) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `payment_id` (`payment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_print_journal`
--

DROP TABLE IF EXISTS `account_print_journal`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_print_journal` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `sort_selection` varchar(255) NOT NULL,
  `date_from` date DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_to` date DEFAULT NULL,
  `amount_currency` tinyint(1) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `target_move` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_reconcile_model`
--

DROP TABLE IF EXISTS `account_reconcile_model`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_reconcile_model` (
  `id` int(11) NOT NULL,
  `second_analytic_account_id` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `sequence` int(11) NOT NULL,
  `second_amount_type` varchar(255) NOT NULL,
  `second_journal_id` int(11) DEFAULT NULL,
  `journal_id` int(11) DEFAULT NULL,
  `analytic_account_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `second_tax_id` int(11) DEFAULT NULL,
  `has_second_line` tinyint(1) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `label` varchar(255) DEFAULT NULL,
  `second_label` varchar(255) DEFAULT NULL,
  `second_account_id` int(11) DEFAULT NULL,
  `account_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `tax_id` int(11) DEFAULT NULL,
  `amount_type` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `amount` decimal(10,0) NOT NULL,
  `second_amount` decimal(10,0) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_reconcile_model_template`
--

DROP TABLE IF EXISTS `account_reconcile_model_template`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_reconcile_model_template` (
  `id` int(11) NOT NULL,
  `amount_type` varchar(255) NOT NULL,
  `second_account_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `account_id` int(11) DEFAULT NULL,
  `second_tax_id` int(11) DEFAULT NULL,
  `second_amount_type` varchar(255) NOT NULL,
  `has_second_line` tinyint(1) DEFAULT NULL,
  `sequence` int(11) NOT NULL,
  `label` varchar(255) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `amount` decimal(10,0) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `second_label` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `second_amount` decimal(10,0) NOT NULL,
  `tax_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_register_payments`
--

DROP TABLE IF EXISTS `account_register_payments`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_register_payments` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `payment_date` date NOT NULL,
  `communication` varchar(255) DEFAULT NULL,
  `journal_id` int(11) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `partner_type` varchar(255) DEFAULT NULL,
  `amount` decimal(10,0) NOT NULL,
  `payment_type` varchar(255) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `payment_method_id` int(11) NOT NULL,
  `check_amount_in_words` varchar(255) DEFAULT NULL,
  `check_number` int(11) DEFAULT NULL,
  `legacy_payment_id` int(11) DEFAULT NULL,
  `district` int(11) DEFAULT NULL,
  `payment_location_id` int(11) DEFAULT NULL,
  `air_bill_number` varchar(255) NOT NULL,
  `sms_number` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_report_general_ledger`
--

DROP TABLE IF EXISTS `account_report_general_ledger`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_report_general_ledger` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `initial_balance` tinyint(1) DEFAULT NULL,
  `date_from` date DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `sortby` varchar(255) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_to` date DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `display_account` varchar(255) NOT NULL,
  `target_move` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_report_general_ledger_journal_rel`
--

DROP TABLE IF EXISTS `account_report_general_ledger_journal_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_report_general_ledger_journal_rel` (
  `account_id` int(11) NOT NULL,
  `journal_id` int(11) NOT NULL,
  KEY `account_id` (`account_id`),
  KEY `journal_id` (`journal_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_report_partner_ledger`
--

DROP TABLE IF EXISTS `account_report_partner_ledger`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_report_partner_ledger` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `reconciled` tinyint(1) DEFAULT NULL,
  `result_selection` varchar(255) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_to` date DEFAULT NULL,
  `amount_currency` tinyint(1) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `date_from` date DEFAULT NULL,
  `target_move` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_tax`
--

DROP TABLE IF EXISTS `account_tax`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_tax` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `sequence` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `include_base_amount` tinyint(1) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `analytic` tinyint(1) DEFAULT NULL,
  `account_id` int(11) DEFAULT NULL,
  `tax_adjustment` tinyint(1) DEFAULT NULL,
  `type_tax_use` varchar(255) NOT NULL,
  `refund_account_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `amount_type` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `tax_group_id` int(11) NOT NULL,
  `amount` decimal(10,0) NOT NULL,
  `price_include` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_tax_account_tag`
--

DROP TABLE IF EXISTS `account_tax_account_tag`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_tax_account_tag` (
  `account_tax_id` int(11) NOT NULL,
  `account_account_tag_id` int(11) NOT NULL,
  KEY `account_account_tag_id` (`account_account_tag_id`),
  KEY `account_tax_id` (`account_tax_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_tax_filiation_rel`
--

DROP TABLE IF EXISTS `account_tax_filiation_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_tax_filiation_rel` (
  `parent_tax` int(11) NOT NULL,
  `child_tax` int(11) NOT NULL,
  KEY `child_tax` (`child_tax`),
  KEY `parent_tax` (`parent_tax`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_tax_group`
--

DROP TABLE IF EXISTS `account_tax_group`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_tax_group` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `sequence` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_tax_purchase_order_line_rel`
--

DROP TABLE IF EXISTS `account_tax_purchase_order_line_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_tax_purchase_order_line_rel` (
  `purchase_order_line_id` int(11) NOT NULL,
  `account_tax_id` int(11) NOT NULL,
  KEY `account_tax_id` (`account_tax_id`),
  KEY `purchase_order_line_id` (`purchase_order_line_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_tax_sale_advance_payment_inv_rel`
--

DROP TABLE IF EXISTS `account_tax_sale_advance_payment_inv_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_tax_sale_advance_payment_inv_rel` (
  `sale_advance_payment_inv_id` int(11) NOT NULL,
  `account_tax_id` int(11) NOT NULL,
  KEY `sale_advance_payment_inv_id` (`sale_advance_payment_inv_id`),
  KEY `account_tax_id` (`account_tax_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_tax_sale_order_line_rel`
--

DROP TABLE IF EXISTS `account_tax_sale_order_line_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_tax_sale_order_line_rel` (
  `sale_order_line_id` int(11) NOT NULL,
  `account_tax_id` int(11) NOT NULL,
  KEY `account_tax_id` (`account_tax_id`),
  KEY `sale_order_line_id` (`sale_order_line_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_tax_template`
--

DROP TABLE IF EXISTS `account_tax_template`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_tax_template` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `sequence` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `include_base_amount` tinyint(1) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `analytic` tinyint(1) DEFAULT NULL,
  `account_id` int(11) DEFAULT NULL,
  `tax_adjustment` tinyint(1) DEFAULT NULL,
  `type_tax_use` varchar(255) NOT NULL,
  `refund_account_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `amount_type` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `tax_group_id` int(11) DEFAULT NULL,
  `chart_template_id` int(11) NOT NULL,
  `amount` decimal(10,0) NOT NULL,
  `price_include` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_tax_template_filiation_rel`
--

DROP TABLE IF EXISTS `account_tax_template_filiation_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_tax_template_filiation_rel` (
  `parent_tax` int(11) NOT NULL,
  `child_tax` int(11) NOT NULL,
  KEY `child_tax` (`child_tax`),
  KEY `parent_tax` (`parent_tax`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `account_unreconcile`
--

DROP TABLE IF EXISTS `account_unreconcile`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_unreconcile` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `accounting_report`
--

DROP TABLE IF EXISTS `accounting_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `accounting_report` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `enable_filter` tinyint(1) DEFAULT NULL,
  `filter_cmp` varchar(255) NOT NULL,
  `date_from` date DEFAULT NULL,
  `date_to` date DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `date_to_cmp` date DEFAULT NULL,
  `label_filter` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_from_cmp` date DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `account_report_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `debit_credit` tinyint(1) DEFAULT NULL,
  `target_move` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `barcode_nomenclature`
--

DROP TABLE IF EXISTS `barcode_nomenclature`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `barcode_nomenclature` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(32) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `upc_ean_conv` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `barcode_rule`
--

DROP TABLE IF EXISTS `barcode_rule`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `barcode_rule` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(32) NOT NULL,
  `encoding` varchar(255) NOT NULL,
  `pattern` varchar(32) NOT NULL,
  `sequence` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `alias` varchar(32) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `barcode_nomenclature_id` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `type` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `base_action_rule`
--

DROP TABLE IF EXISTS `base_action_rule`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `base_action_rule` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `filter_pre_id` int(11) DEFAULT NULL,
  `sequence` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `trg_date_range_type` varchar(255) DEFAULT NULL,
  `trg_date_range` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `filter_pre_domain` varchar(255) DEFAULT NULL,
  `on_change_fields` varchar(255) DEFAULT NULL,
  `filter_id` int(11) DEFAULT NULL,
  `model_id` int(11) NOT NULL,
  `trg_date_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `kind` varchar(255) NOT NULL,
  `filter_domain` varchar(255) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `act_user_id` int(11) DEFAULT NULL,
  `last_run` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `trg_date_calendar_id` int(11) DEFAULT NULL,
  `trg_date_resource_field_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `base_action_rule_ir_act_server_rel`
--

DROP TABLE IF EXISTS `base_action_rule_ir_act_server_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `base_action_rule_ir_act_server_rel` (
  `base_action_rule_id` int(11) NOT NULL,
  `ir_act_server_id` int(11) NOT NULL,
  KEY `base_action_rule_id` (`base_action_rule_id`),
  KEY `ir_act_server_id` (`ir_act_server_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `base_action_rule_lead_test`
--

DROP TABLE IF EXISTS `base_action_rule_lead_test`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `base_action_rule_lead_test` (
  `id` int(11) NOT NULL,
  `customer` tinyint(1) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `date_action_last` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `priority` tinyint(1) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `deadline` tinyint(1) DEFAULT NULL,
  `is_assigned_to_admin` tinyint(1) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `partner_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `base_action_rule_line_test`
--

DROP TABLE IF EXISTS `base_action_rule_line_test`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `base_action_rule_line_test` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `lead_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `user_id` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `base_action_rule_res_partner_rel`
--

DROP TABLE IF EXISTS `base_action_rule_res_partner_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `base_action_rule_res_partner_rel` (
  `base_action_rule_id` int(11) NOT NULL,
  `res_partner_id` int(11) NOT NULL,
  KEY `base_action_rule_id` (`base_action_rule_id`),
  KEY `res_partner_id` (`res_partner_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `base_config_settings`
--

DROP TABLE IF EXISTS `base_config_settings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `base_config_settings` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `module_google_calendar` tinyint(1) DEFAULT NULL,
  `module_auth_oauth` tinyint(1) DEFAULT NULL,
  `company_share_partner` tinyint(1) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `module_base_import` tinyint(1) DEFAULT NULL,
  `module_portal` tinyint(1) DEFAULT NULL,
  `group_multi_currency` tinyint(1) DEFAULT NULL,
  `module_google_drive` tinyint(1) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `module_inter_company_rules` tinyint(1) DEFAULT NULL,
  `group_multi_company` tinyint(1) DEFAULT NULL,
  `module_share` tinyint(1) DEFAULT NULL,
  `alias_domain` varchar(255) DEFAULT NULL,
  `fail_counter` int(11) DEFAULT NULL,
  `auth_signup_uninvited` tinyint(1) DEFAULT NULL,
  `auth_signup_template_user_id` int(11) DEFAULT NULL,
  `auth_signup_reset_password` tinyint(1) DEFAULT NULL,
  `company_share_product` tinyint(1) DEFAULT NULL,
  `group_product_variant` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `base_language_export`
--

DROP TABLE IF EXISTS `base_language_export`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `base_language_export` (
  `id` int(11) NOT NULL,
  `lang` varchar(255) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `format` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `data` blob DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `base_language_import`
--

DROP TABLE IF EXISTS `base_language_import`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `base_language_import` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `code` varchar(5) NOT NULL,
  `name` varchar(255) NOT NULL,
  `filename` varchar(255) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `data` blob NOT NULL,
  `overwrite` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `base_language_install`
--

DROP TABLE IF EXISTS `base_language_install`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `base_language_install` (
  `id` int(11) NOT NULL,
  `lang` varchar(255) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `overwrite` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `base_module_configuration`
--

DROP TABLE IF EXISTS `base_module_configuration`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `base_module_configuration` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `base_module_update`
--

DROP TABLE IF EXISTS `base_module_update`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `base_module_update` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `updated` int(11) DEFAULT NULL,
  `added` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `base_module_upgrade`
--

DROP TABLE IF EXISTS `base_module_upgrade`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `base_module_upgrade` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `module_info` text DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `base_update_translations`
--

DROP TABLE IF EXISTS `base_update_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `base_update_translations` (
  `id` int(11) NOT NULL,
  `lang` varchar(255) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bi_tax_fees`
--

DROP TABLE IF EXISTS `bi_tax_fees`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bi_tax_fees` (
  `invoice_id` int(11) DEFAULT NULL,
  `gov_fee` decimal(10,0) DEFAULT NULL,
  `service_fee` decimal(10,0) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bi_tax_payment`
--

DROP TABLE IF EXISTS `bi_tax_payment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bi_tax_payment` (
  `District` text DEFAULT NULL,
  `Count` int(11) DEFAULT NULL,
  `Payment Date` date DEFAULT NULL,
  `Payment Year` int(11) DEFAULT NULL,
  `Month` int(11) DEFAULT NULL,
  `MonthName` text DEFAULT NULL,
  `Week` int(11) DEFAULT NULL,
  `Payment Qurater` int(11) DEFAULT NULL,
  `Tax Year` int(11) DEFAULT NULL,
  `Tax Quarter` int(11) DEFAULT NULL,
  `Tax Gov Fee` decimal(10,0) DEFAULT NULL,
  `Tax Service Fee` decimal(10,0) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bi_tax_record`
--

DROP TABLE IF EXISTS `bi_tax_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bi_tax_record` (
  `vehicle` int(11) DEFAULT NULL,
  `year` int(11) DEFAULT NULL,
  `quarter` int(11) DEFAULT NULL,
  `gov_fee` decimal(10,0) DEFAULT NULL,
  `service_fee` decimal(10,0) DEFAULT NULL,
  `status` text DEFAULT NULL,
  `count` int(11) DEFAULT NULL,
  KEY `vehicle` (`vehicle`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bi_tax_register`
--

DROP TABLE IF EXISTS `bi_tax_register`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bi_tax_register` (
  `count` int(11) DEFAULT NULL,
  `licenseplate` text DEFAULT NULL,
  `sticker_code` varchar(255) DEFAULT NULL,
  `district` varchar(255) DEFAULT NULL,
  `taxyear` int(11) DEFAULT NULL,
  `quarter` text DEFAULT NULL,
  `invoiceamount` decimal(10,0) DEFAULT NULL,
  `servicefee` decimal(10,0) DEFAULT NULL,
  `govfee` decimal(10,0) DEFAULT NULL,
  `invoicedate` date DEFAULT NULL,
  `paymentstatus` varchar(255) DEFAULT NULL,
  `paymentdate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `transactiondate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `customer` varchar(255) DEFAULT NULL,
  `anumber` text DEFAULT NULL,
  `paymentmethod` varchar(255) DEFAULT NULL,
  `taxexempt` tinyint(1) DEFAULT NULL,
  `taxexemptamount` double DEFAULT NULL,
  `payment_collected_by` varchar(255) DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `payment_id` int(11) DEFAULT NULL,
  KEY `anumber` (`anumber`(3072)),
  KEY `customer` (`customer`),
  KEY `licenseplate` (`licenseplate`(3072)),
  KEY `paymentdate` (`paymentdate`),
  KEY `transactiondate` (`transactiondate`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bi_title_detail`
--

DROP TABLE IF EXISTS `bi_title_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bi_title_detail` (
  `name` varchar(255) DEFAULT NULL,
  `ctype` varchar(255) DEFAULT NULL,
  `licenseplate` text DEFAULT NULL,
  `subcategory` varchar(255) DEFAULT NULL,
  `taxbase` varchar(255) DEFAULT NULL,
  `vehicleweight` double DEFAULT NULL,
  `vehicleyear` varchar(255) DEFAULT NULL,
  `make` varchar(255) DEFAULT NULL,
  `model` varchar(255) DEFAULT NULL,
  `pl` varchar(255) DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `customer` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bi_title_fees`
--

DROP TABLE IF EXISTS `bi_title_fees`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bi_title_fees` (
  `invoice_id` int(11) DEFAULT NULL,
  `gov_fee` decimal(10,0) DEFAULT NULL,
  `service_fee` decimal(10,0) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bi_title_register`
--

DROP TABLE IF EXISTS `bi_title_register`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bi_title_register` (
  `count` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `ctype` varchar(255) DEFAULT NULL,
  `licenseplate` text DEFAULT NULL,
  `subcategory` varchar(255) DEFAULT NULL,
  `taxbase` varchar(255) DEFAULT NULL,
  `vehicleweight` double DEFAULT NULL,
  `vehicleyear` varchar(255) DEFAULT NULL,
  `make` varchar(255) DEFAULT NULL,
  `model` varchar(255) DEFAULT NULL,
  `pl` varchar(255) DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `customer` varchar(255) DEFAULT NULL,
  `district` varchar(255) DEFAULT NULL,
  `invoiceamount` decimal(10,0) DEFAULT NULL,
  `servicefee` decimal(10,0) DEFAULT NULL,
  `govfee` decimal(10,0) DEFAULT NULL,
  `invoicedate` date DEFAULT NULL,
  `paymentstatus` varchar(255) DEFAULT NULL,
  `paymentdate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `transactiondate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `anumber` text DEFAULT NULL,
  `paymentmethod` varchar(255) DEFAULT NULL,
  `taxexempt` tinyint(1) DEFAULT NULL,
  `taxexemptamount` double DEFAULT NULL,
  `payment_collected_by` varchar(255) DEFAULT NULL,
  KEY `anumber` (`anumber`(3072)),
  KEY `licenseplate` (`licenseplate`(3072)),
  KEY `paymentdate` (`paymentdate`),
  KEY `transactiondate` (`transactiondate`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bi_vehicle`
--

DROP TABLE IF EXISTS `bi_vehicle`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bi_vehicle` (
  `id` int(11) DEFAULT NULL,
  `licenseplate` text DEFAULT NULL,
  `vinnumber` text DEFAULT NULL,
  `createddate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `lastupdateddate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `smarttag` varchar(255) DEFAULT NULL,
  `subcategory` varchar(255) DEFAULT NULL,
  `color` varchar(255) DEFAULT NULL,
  `taxbase` varchar(255) DEFAULT NULL,
  `vehicletype` varchar(255) DEFAULT NULL,
  `fueltype` varchar(255) DEFAULT NULL,
  `model` varchar(255) DEFAULT NULL,
  `make` varchar(255) DEFAULT NULL,
  KEY `licenseplate` (`licenseplate`(3072)),
  KEY `make` (`make`),
  KEY `model` (`model`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bi_vehicle_tax`
--

DROP TABLE IF EXISTS `bi_vehicle_tax`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bi_vehicle_tax` (
  `id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `tax_number` int(11) DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `quarterly_tax_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `legacy_tax_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `vehicle` int(11) DEFAULT NULL,
  `download` tinyint(1) DEFAULT NULL,
  `recurring_cost` double DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `label_code` varchar(255) DEFAULT NULL,
  `label_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bus_bus`
--

DROP TABLE IF EXISTS `bus_bus`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bus_bus` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `message` varchar(255) DEFAULT NULL,
  `channel` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bus_presence`
--

DROP TABLE IF EXISTS `bus_presence`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bus_presence` (
  `id` int(11) NOT NULL,
  `status` varchar(255) DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  `last_presence` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `last_poll` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `business_customer`
--

DROP TABLE IF EXISTS `business_customer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `business_customer` (
  `customer_id` text NOT NULL,
  `business_type` text NOT NULL,
  `business_ref_no` text NOT NULL,
  `business_category` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `business_customer22`
--

DROP TABLE IF EXISTS `business_customer22`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `business_customer22` (
  `customer_id` text NOT NULL,
  `business_type` text NOT NULL,
  `business_ref_no` text NOT NULL,
  `business_category` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `calendar_alarm`
--

DROP TABLE IF EXISTS `calendar_alarm`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `calendar_alarm` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `interval` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `duration_minutes` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `duration` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `type` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `calendar_alarm_calendar_event_rel`
--

DROP TABLE IF EXISTS `calendar_alarm_calendar_event_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `calendar_alarm_calendar_event_rel` (
  `calendar_event_id` int(11) NOT NULL,
  `calendar_alarm_id` int(11) NOT NULL,
  KEY `calendar_alarm_id` (`calendar_alarm_id`),
  KEY `calendar_event_id` (`calendar_event_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `calendar_attendee`
--

DROP TABLE IF EXISTS `calendar_attendee`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `calendar_attendee` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `access_token` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `event_id` int(11) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `common_name` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `availability` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `calendar_contacts`
--

DROP TABLE IF EXISTS `calendar_contacts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `calendar_contacts` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `partner_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `calendar_event`
--

DROP TABLE IF EXISTS `calendar_event`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `calendar_event` (
  `id` int(11) NOT NULL,
  `allday` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `fr` tinyint(1) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `start_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `month_by` varchar(255) DEFAULT NULL,
  `stop_date` date DEFAULT NULL,
  `rrule` varchar(255) DEFAULT NULL,
  `duration` double DEFAULT NULL,
  `final_date` date DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `privacy` varchar(255) DEFAULT NULL,
  `tu` tinyint(1) DEFAULT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `state` varchar(255) DEFAULT NULL,
  `week_list` varchar(255) DEFAULT NULL,
  `show_as` varchar(255) DEFAULT NULL,
  `start_date` date DEFAULT NULL,
  `location` varchar(255) DEFAULT NULL,
  `th` tinyint(1) DEFAULT NULL,
  `su` tinyint(1) DEFAULT NULL,
  `start` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `recurrent_id_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `description` text DEFAULT NULL,
  `stop` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `end_type` varchar(255) DEFAULT NULL,
  `stop_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `display_start` varchar(255) DEFAULT NULL,
  `active` tinyint(1) DEFAULT NULL,
  `day` int(11) DEFAULT NULL,
  `count` int(11) DEFAULT NULL,
  `byday` varchar(255) DEFAULT NULL,
  `rrule_type` varchar(255) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `we` tinyint(1) DEFAULT NULL,
  `mo` tinyint(1) DEFAULT NULL,
  `interval` int(11) DEFAULT NULL,
  `recurrent_id` int(11) DEFAULT NULL,
  `recurrency` tinyint(1) DEFAULT NULL,
  `sa` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `calendar_event_res_partner_rel`
--

DROP TABLE IF EXISTS `calendar_event_res_partner_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `calendar_event_res_partner_rel` (
  `calendar_event_id` int(11) NOT NULL,
  `res_partner_id` int(11) NOT NULL,
  KEY `calendar_event_id` (`calendar_event_id`),
  KEY `res_partner_id` (`res_partner_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `calendar_event_type`
--

DROP TABLE IF EXISTS `calendar_event_type`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `calendar_event_type` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `cash_box_in`
--

DROP TABLE IF EXISTS `cash_box_in`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cash_box_in` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `amount` decimal(10,0) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `ref` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `cash_box_out`
--

DROP TABLE IF EXISTS `cash_box_out`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cash_box_out` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `amount` decimal(10,0) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `change_license_plate`
--

DROP TABLE IF EXISTS `change_license_plate`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `change_license_plate` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `vehicle_id` int(11) NOT NULL,
  `date_of_change` date DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `new_license_plate` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `change_password_user`
--

DROP TABLE IF EXISTS `change_password_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `change_password_user` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `user_login` varchar(255) DEFAULT NULL,
  `new_passwd` varchar(255) DEFAULT NULL,
  `wizard_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `change_password_wizard`
--

DROP TABLE IF EXISTS `change_password_wizard`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `change_password_wizard` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `create_ownership`
--

DROP TABLE IF EXISTS `create_ownership`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `create_ownership` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `vehicle_id` int(11) NOT NULL,
  `security_interest` tinyint(1) DEFAULT NULL,
  `new_partner_id` int(11) DEFAULT NULL,
  `registration_date` date DEFAULT NULL,
  `transfer_date` date DEFAULT NULL,
  `purchase_date` date DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `transfer` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `partner_id` int(11) NOT NULL,
  `purchase_price` double DEFAULT NULL,
  `pl` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `create_tax`
--

DROP TABLE IF EXISTS `create_tax`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `create_tax` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `quarterly_tax_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `legacy_tax_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `vehicle` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `tax_number` int(11) NOT NULL,
  `partner_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `crm_team`
--

DROP TABLE IF EXISTS `crm_team`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `crm_team` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `color` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `company_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `reply_to` varchar(255) DEFAULT NULL,
  `use_quotations` tinyint(1) DEFAULT NULL,
  `invoiced_target` int(11) DEFAULT NULL,
  `use_invoices` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `customer`
--

DROP TABLE IF EXISTS `customer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer` (
  `customer_id` text NOT NULL,
  `mother_full_name` text NOT NULL,
  `date_of_birth` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `place_of_birth` text NOT NULL,
  `occupation` text DEFAULT NULL,
  `gender` text NOT NULL,
  `height` bigint(20) NOT NULL,
  `weight` bigint(20) NOT NULL,
  `eye_color` text NOT NULL,
  `hair_color` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `customer22`
--

DROP TABLE IF EXISTS `customer22`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer22` (
  `customer_id` text NOT NULL,
  `mother_full_name` text NOT NULL,
  `date_of_birth` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `place_of_birth` text NOT NULL,
  `occupation` text DEFAULT NULL,
  `gender` text NOT NULL,
  `height` bigint(20) NOT NULL,
  `weight` bigint(20) NOT NULL,
  `eye_color` text NOT NULL,
  `hair_color` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `customer_vehicle`
--

DROP TABLE IF EXISTS `customer_vehicle`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer_vehicle` (
  `customer_id` text NOT NULL,
  `vehicle_id` text NOT NULL,
  `status` text NOT NULL,
  `purchase_price` decimal(20,2) DEFAULT NULL,
  `status_change_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `luby` text DEFAULT NULL,
  `classification` text DEFAULT NULL,
  `title_number` text DEFAULT NULL,
  `id` bigint(20) DEFAULT NULL,
  `title_document_type` text DEFAULT NULL,
  KEY `vehicle_id` (`vehicle_id`(3072))
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `customer_vehicle22`
--

DROP TABLE IF EXISTS `customer_vehicle22`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer_vehicle22` (
  `customer_id` text NOT NULL,
  `vehicle_id` text NOT NULL,
  `status` text NOT NULL,
  `purchase_price` decimal(20,2) DEFAULT NULL,
  `status_change_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `luby` text DEFAULT NULL,
  `classification` text DEFAULT NULL,
  `title_number` text DEFAULT NULL,
  `id` bigint(20) DEFAULT NULL,
  `title_document_type` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `customer_vehicle_clean`
--

DROP TABLE IF EXISTS `customer_vehicle_clean`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer_vehicle_clean` (
  `id` int(11) NOT NULL,
  `customer_id` varchar(100) DEFAULT NULL,
  `vehicle_id` varchar(100) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `odoo_vehicle_id` int(11) DEFAULT NULL,
  `status` varchar(100) DEFAULT NULL,
  `purchase_price` decimal(20,2) DEFAULT NULL,
  `status_change_date` date DEFAULT NULL,
  `classification` varchar(100) DEFAULT NULL,
  `title_number` varchar(100) DEFAULT NULL,
  `transaction_id` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `customer_vehicle_clean22`
--

DROP TABLE IF EXISTS `customer_vehicle_clean22`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer_vehicle_clean22` (
  `id` int(11) NOT NULL,
  `customer_id` varchar(100) DEFAULT NULL,
  `vehicle_id` varchar(100) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `odoo_vehicle_id` int(11) DEFAULT NULL,
  `status` varchar(100) DEFAULT NULL,
  `purchase_price` decimal(20,2) DEFAULT NULL,
  `status_change_date` date DEFAULT NULL,
  `classification` varchar(100) DEFAULT NULL,
  `title_number` varchar(100) DEFAULT NULL,
  `transaction_id` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `customer_vehicle_ownership`
--

DROP TABLE IF EXISTS `customer_vehicle_ownership`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer_vehicle_ownership` (
  `id` int(11) NOT NULL,
  `ownership_change_date` date DEFAULT NULL,
  `new_owner_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `download` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `curr_ownership_status` varchar(255) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `vehicle_id` int(11) NOT NULL,
  `sale_date` date DEFAULT NULL,
  `purchase_date` date DEFAULT NULL,
  `purchase_price` decimal(10,0) DEFAULT NULL,
  `pl` varchar(255) DEFAULT NULL,
  `security_interest` tinyint(1) DEFAULT NULL,
  `registration_date` date DEFAULT NULL,
  `legacy_title_id` int(11) DEFAULT NULL,
  `title_number` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `old_owner_id` int(11) DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `transfer_date` date DEFAULT NULL,
  `legacy_customer_vehicle_id` int(11) DEFAULT NULL,
  `legacy_customer_vehicle` int(11) DEFAULT NULL,
  `license_plate` varchar(255) DEFAULT NULL,
  `license_plate_date` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `customer_vehicle_ownership_backup`
--

DROP TABLE IF EXISTS `customer_vehicle_ownership_backup`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer_vehicle_ownership_backup` (
  `id` int(11) DEFAULT NULL,
  `ownership_change_date` date DEFAULT NULL,
  `new_owner_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `download` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `curr_ownership_status` varchar(255) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `vehicle_id` int(11) DEFAULT NULL,
  `sale_date` date DEFAULT NULL,
  `purchase_date` date DEFAULT NULL,
  `purchase_price` decimal(10,0) DEFAULT NULL,
  `pl` varchar(255) DEFAULT NULL,
  `security_interest` tinyint(1) DEFAULT NULL,
  `registration_date` date DEFAULT NULL,
  `legacy_title_id` int(11) DEFAULT NULL,
  `title_number` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `old_owner_id` int(11) DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `transfer_date` date DEFAULT NULL,
  `legacy_customer_vehicle_id` int(11) DEFAULT NULL,
  `legacy_customer_vehicle` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `decimal_precision`
--

DROP TABLE IF EXISTS `decimal_precision`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `decimal_precision` (
  `id` int(11) NOT NULL,
  `digits` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `decimal_precision_test`
--

DROP TABLE IF EXISTS `decimal_precision_test`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `decimal_precision_test` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `float_2` decimal(10,0) DEFAULT NULL,
  `float` double DEFAULT NULL,
  `float_4` decimal(10,0) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `district_district`
--

DROP TABLE IF EXISTS `district_district`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `district_district` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `region` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `duplicate_vehicle`
--

DROP TABLE IF EXISTS `duplicate_vehicle`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `duplicate_vehicle` (
  `vehicle_id` text DEFAULT NULL,
  `license_plate` text DEFAULT NULL,
  `vin` text DEFAULT NULL,
  `year` bigint(20) DEFAULT NULL,
  `make` text DEFAULT NULL,
  `model` text DEFAULT NULL,
  `type` text DEFAULT NULL,
  `color` text DEFAULT NULL,
  `odometer` text DEFAULT NULL,
  `title` text DEFAULT NULL,
  `taxbase` text DEFAULT NULL,
  `purchase_price` double DEFAULT NULL,
  `vehicle_weight` bigint(20) DEFAULT NULL,
  `inspection_status` text DEFAULT NULL,
  `inspection_expiry` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `engine_capacity` text DEFAULT NULL,
  `engine_number` text DEFAULT NULL,
  `vin_chasis` text DEFAULT NULL,
  `fuel_type` text DEFAULT NULL,
  `security_interest` text DEFAULT NULL,
  `luby` text DEFAULT NULL,
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `current_title_document_type` text DEFAULT NULL,
  `sub_category` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `duplicate_vehicle22`
--

DROP TABLE IF EXISTS `duplicate_vehicle22`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `duplicate_vehicle22` (
  `vehicle_id` text DEFAULT NULL,
  `license_plate` text DEFAULT NULL,
  `vin` text DEFAULT NULL,
  `year` bigint(20) DEFAULT NULL,
  `make` text DEFAULT NULL,
  `model` text DEFAULT NULL,
  `type` text DEFAULT NULL,
  `color` text DEFAULT NULL,
  `odometer` text DEFAULT NULL,
  `title` text DEFAULT NULL,
  `taxbase` text DEFAULT NULL,
  `purchase_price` double DEFAULT NULL,
  `vehicle_weight` bigint(20) DEFAULT NULL,
  `inspection_status` text DEFAULT NULL,
  `inspection_expiry` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `engine_capacity` text DEFAULT NULL,
  `engine_number` text DEFAULT NULL,
  `vin_chasis` text DEFAULT NULL,
  `fuel_type` text DEFAULT NULL,
  `security_interest` text DEFAULT NULL,
  `luby` text DEFAULT NULL,
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `current_title_document_type` text DEFAULT NULL,
  `sub_category` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `duplicate_vin_vehicle`
--

DROP TABLE IF EXISTS `duplicate_vin_vehicle`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `duplicate_vin_vehicle` (
  `vehicle_id` varchar(55) DEFAULT NULL,
  `license_plate` varchar(100) DEFAULT NULL,
  `vin` varchar(100) DEFAULT NULL,
  `year` bigint(20) DEFAULT NULL,
  `make` varchar(45) DEFAULT NULL,
  `model` varchar(45) DEFAULT NULL,
  `type` varchar(45) DEFAULT NULL,
  `color` varchar(45) DEFAULT NULL,
  `odometer` varchar(45) DEFAULT NULL,
  `title` varchar(45) DEFAULT NULL,
  `taxbase` varchar(45) DEFAULT NULL,
  `purchase_price` double DEFAULT NULL,
  `vehicle_weight` bigint(20) DEFAULT NULL,
  `inspection_status` varchar(2) DEFAULT NULL,
  `inspection_expiry` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `engine_capacity` varchar(100) DEFAULT NULL,
  `engine_number` varchar(45) DEFAULT NULL,
  `vin_chasis` varchar(100) DEFAULT NULL,
  `fuel_type` varchar(45) DEFAULT NULL,
  `security_interest` varchar(2) DEFAULT NULL,
  `luby` varchar(45) DEFAULT NULL,
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `current_title_document_type` varchar(45) DEFAULT NULL,
  `sub_category` varchar(45) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `email_template_attachment_rel`
--

DROP TABLE IF EXISTS `email_template_attachment_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `email_template_attachment_rel` (
  `email_template_id` int(11) NOT NULL,
  `attachment_id` int(11) NOT NULL,
  KEY `attachment_id` (`attachment_id`),
  KEY `email_template_id` (`email_template_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `email_template_preview`
--

DROP TABLE IF EXISTS `email_template_preview`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `email_template_preview` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `sub_object` int(11) DEFAULT NULL,
  `auto_delete` tinyint(1) DEFAULT NULL,
  `mail_server_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `partner_to` varchar(255) DEFAULT NULL,
  `ref_ir_act_window` int(11) DEFAULT NULL,
  `subject` varchar(255) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `report_template` int(11) DEFAULT NULL,
  `ref_ir_value` int(11) DEFAULT NULL,
  `user_signature` tinyint(1) DEFAULT NULL,
  `null_value` varchar(255) DEFAULT NULL,
  `email_cc` varchar(255) DEFAULT NULL,
  `res_id` varchar(255) DEFAULT NULL,
  `model_id` int(11) DEFAULT NULL,
  `sub_model_object_field` int(11) DEFAULT NULL,
  `body_html` text DEFAULT NULL,
  `email_to` varchar(255) DEFAULT NULL,
  `scheduled_date` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `copyvalue` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `model_object_field` int(11) DEFAULT NULL,
  `report_name` varchar(255) DEFAULT NULL,
  `use_default_to` tinyint(1) DEFAULT NULL,
  `reply_to` varchar(255) DEFAULT NULL,
  `model` varchar(255) DEFAULT NULL,
  `email_from` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `model` (`model`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `email_template_preview_res_partner_rel`
--

DROP TABLE IF EXISTS `email_template_preview_res_partner_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `email_template_preview_res_partner_rel` (
  `email_template_preview_id` int(11) NOT NULL,
  `res_partner_id` int(11) NOT NULL,
  KEY `email_template_preview_id` (`email_template_preview_id`),
  KEY `res_partner_id` (`res_partner_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `employee_category_rel`
--

DROP TABLE IF EXISTS `employee_category_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `employee_category_rel` (
  `category_id` int(11) NOT NULL,
  `emp_id` int(11) NOT NULL,
  KEY `category_id` (`category_id`),
  KEY `emp_id` (`emp_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `expense_tax`
--

DROP TABLE IF EXISTS `expense_tax`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `expense_tax` (
  `expense_id` int(11) NOT NULL,
  `tax_id` int(11) NOT NULL,
  KEY `expense_id` (`expense_id`),
  KEY `tax_id` (`tax_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `fetchmail_server`
--

DROP TABLE IF EXISTS `fetchmail_server`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `fetchmail_server` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `active` tinyint(1) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `configuration` text DEFAULT NULL,
  `script` varchar(255) DEFAULT NULL,
  `object_id` int(11) DEFAULT NULL,
  `port` int(11) DEFAULT NULL,
  `priority` int(11) DEFAULT NULL,
  `attach` tinyint(1) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `type` varchar(255) NOT NULL,
  `action_id` int(11) DEFAULT NULL,
  `user` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `password` varchar(255) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `is_ssl` tinyint(1) DEFAULT NULL,
  `server` varchar(255) DEFAULT NULL,
  `original` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `state` (`state`),
  KEY `type` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `fuel_type`
--

DROP TABLE IF EXISTS `fuel_type`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `fuel_type` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_contract`
--

DROP TABLE IF EXISTS `hr_contract`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_contract` (
  `id` int(11) NOT NULL,
  `working_hours` int(11) DEFAULT NULL,
  `trial_date_end` date DEFAULT NULL,
  `date_end` date DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `visa_expire` date DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `employee_id` int(11) NOT NULL,
  `job_id` int(11) DEFAULT NULL,
  `date_start` date NOT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `visa_no` varchar(255) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `department_id` int(11) DEFAULT NULL,
  `wage` decimal(10,0) NOT NULL,
  `advantages` text DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `type_id` int(11) NOT NULL,
  `trial_date_start` date DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `notes` text DEFAULT NULL,
  `permit_no` varchar(255) DEFAULT NULL,
  `schedule_pay` varchar(255) DEFAULT NULL,
  `struct_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `schedule_pay` (`schedule_pay`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_contract_type`
--

DROP TABLE IF EXISTS `hr_contract_type`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_contract_type` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `sequence` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_contribution_register`
--

DROP TABLE IF EXISTS `hr_contribution_register`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_contribution_register` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `partner_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_department`
--

DROP TABLE IF EXISTS `hr_department`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_department` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `color` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `company_id` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `manager_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`),
  KEY `parent_id` (`parent_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_employee`
--

DROP TABLE IF EXISTS `hr_employee`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_employee` (
  `id` int(11) NOT NULL,
  `address_id` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `ssnid` varchar(255) DEFAULT NULL,
  `coach_id` int(11) DEFAULT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `color` int(11) DEFAULT NULL,
  `marital` varchar(255) DEFAULT NULL,
  `identification_id` varchar(255) DEFAULT NULL,
  `bank_account_id` int(11) DEFAULT NULL,
  `job_id` int(11) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `work_phone` varchar(255) DEFAULT NULL,
  `resource_id` int(11) NOT NULL,
  `country_id` int(11) DEFAULT NULL,
  `department_id` int(11) DEFAULT NULL,
  `mobile_phone` varchar(255) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `birthday` date DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `sinid` varchar(255) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `work_email` varchar(255) DEFAULT NULL,
  `work_location` varchar(255) DEFAULT NULL,
  `gender` varchar(255) DEFAULT NULL,
  `notes` text DEFAULT NULL,
  `address_home_id` int(11) DEFAULT NULL,
  `passport_id` varchar(255) DEFAULT NULL,
  `name_related` varchar(255) DEFAULT NULL,
  `manager` tinyint(1) DEFAULT NULL,
  `children` int(11) DEFAULT NULL,
  `medic_exam` date DEFAULT NULL,
  `vehicle` varchar(255) DEFAULT NULL,
  `place_of_birth` varchar(255) DEFAULT NULL,
  `vehicle_distance` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_employee_category`
--

DROP TABLE IF EXISTS `hr_employee_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_employee_category` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `color` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_employee_group_rel`
--

DROP TABLE IF EXISTS `hr_employee_group_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_employee_group_rel` (
  `payslip_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  KEY `employee_id` (`employee_id`),
  KEY `payslip_id` (`payslip_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_expense`
--

DROP TABLE IF EXISTS `hr_expense`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_expense` (
  `id` int(11) NOT NULL,
  `total_amount` decimal(10,0) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `reference` varchar(255) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `date` date DEFAULT NULL,
  `description` text DEFAULT NULL,
  `analytic_account_id` int(11) DEFAULT NULL,
  `untaxed_amount` decimal(10,0) DEFAULT NULL,
  `employee_id` int(11) NOT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `company_id` int(11) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `account_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `payment_mode` varchar(255) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `sheet_id` int(11) DEFAULT NULL,
  `product_id` int(11) NOT NULL,
  `product_uom_id` int(11) NOT NULL,
  `unit_amount` decimal(10,0) NOT NULL,
  `quantity` decimal(10,0) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `state` (`state`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_expense_config_settings`
--

DROP TABLE IF EXISTS `hr_expense_config_settings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_expense_config_settings` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `alias_prefix` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `alias_domain` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_expense_refuse_wizard`
--

DROP TABLE IF EXISTS `hr_expense_refuse_wizard`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_expense_refuse_wizard` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `description` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_expense_register_payment_wizard`
--

DROP TABLE IF EXISTS `hr_expense_register_payment_wizard`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_expense_register_payment_wizard` (
  `id` int(11) NOT NULL,
  `payment_date` date NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `communication` varchar(255) DEFAULT NULL,
  `journal_id` int(11) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `amount` decimal(10,0) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `partner_id` int(11) NOT NULL,
  `payment_method_id` int(11) NOT NULL,
  `check_amount_in_words` varchar(255) DEFAULT NULL,
  `check_number` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_expense_sheet`
--

DROP TABLE IF EXISTS `hr_expense_sheet`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_expense_sheet` (
  `id` int(11) NOT NULL,
  `address_id` int(11) DEFAULT NULL,
  `total_amount` decimal(10,0) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `journal_id` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `employee_id` int(11) NOT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `company_id` int(11) DEFAULT NULL,
  `state` varchar(255) NOT NULL,
  `accounting_date` date DEFAULT NULL,
  `department_id` int(11) DEFAULT NULL,
  `responsible_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `bank_journal_id` int(11) DEFAULT NULL,
  `account_move_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `state` (`state`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_holidays`
--

DROP TABLE IF EXISTS `hr_holidays`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_holidays` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `meeting_id` int(11) DEFAULT NULL,
  `payslip_status` tinyint(1) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `holiday_status_id` int(11) NOT NULL,
  `report_note` text DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `date_from` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `holiday_type` varchar(255) NOT NULL,
  `number_of_days_temp` double DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `manager_id` int(11) DEFAULT NULL,
  `type` varchar(255) NOT NULL,
  `department_id` int(11) DEFAULT NULL,
  `manager_id2` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_to` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) DEFAULT NULL,
  `notes` text DEFAULT NULL,
  `number_of_days` double DEFAULT NULL,
  `category_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `date_from` (`date_from`),
  KEY `employee_id` (`employee_id`),
  KEY `type` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_holidays_status`
--

DROP TABLE IF EXISTS `hr_holidays_status`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_holidays_status` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `double_validation` tinyint(1) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `color_name` varchar(255) NOT NULL,
  `limit` tinyint(1) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `categ_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_holidays_summary_dept`
--

DROP TABLE IF EXISTS `hr_holidays_summary_dept`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_holidays_summary_dept` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `date_from` date NOT NULL,
  `holiday_type` varchar(255) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_holidays_summary_employee`
--

DROP TABLE IF EXISTS `hr_holidays_summary_employee`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_holidays_summary_employee` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `date_from` date NOT NULL,
  `holiday_type` varchar(255) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_job`
--

DROP TABLE IF EXISTS `hr_job`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_job` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `requirements` text DEFAULT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `company_id` int(11) DEFAULT NULL,
  `state` varchar(255) NOT NULL,
  `expected_employees` int(11) DEFAULT NULL,
  `department_id` int(11) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `no_of_recruitment` int(11) DEFAULT NULL,
  `no_of_hired_employee` int(11) DEFAULT NULL,
  `no_of_employee` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_payroll_config_settings`
--

DROP TABLE IF EXISTS `hr_payroll_config_settings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_payroll_config_settings` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `module_hr_payroll_account` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_payroll_structure`
--

DROP TABLE IF EXISTS `hr_payroll_structure`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_payroll_structure` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `code` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `company_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_payslip`
--

DROP TABLE IF EXISTS `hr_payslip`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_payslip` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `payslip_run_id` int(11) DEFAULT NULL,
  `struct_id` int(11) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `employee_id` int(11) NOT NULL,
  `contract_id` int(11) DEFAULT NULL,
  `date_from` date NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `credit_note` tinyint(1) DEFAULT NULL,
  `paid` tinyint(1) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_to` date NOT NULL,
  `name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `state` (`state`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_payslip_employees`
--

DROP TABLE IF EXISTS `hr_payslip_employees`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_payslip_employees` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_payslip_input`
--

DROP TABLE IF EXISTS `hr_payslip_input`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_payslip_input` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `code` varchar(255) NOT NULL,
  `contract_id` int(11) NOT NULL,
  `sequence` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `amount` double DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `payslip_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `payslip_id` (`payslip_id`),
  KEY `sequence` (`sequence`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_payslip_line`
--

DROP TABLE IF EXISTS `hr_payslip_line`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_payslip_line` (
  `id` int(11) NOT NULL,
  `code` varchar(255) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `sequence` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `rate` decimal(10,0) DEFAULT NULL,
  `appears_on_payslip` tinyint(1) DEFAULT NULL,
  `condition_range` varchar(255) DEFAULT NULL,
  `total` decimal(10,0) DEFAULT NULL,
  `amount_fix` decimal(10,0) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `employee_id` int(11) NOT NULL,
  `contract_id` int(11) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `amount_percentage` decimal(10,0) DEFAULT NULL,
  `condition_range_min` double DEFAULT NULL,
  `condition_select` varchar(255) NOT NULL,
  `amount_percentage_base` varchar(255) DEFAULT NULL,
  `register_id` int(11) DEFAULT NULL,
  `slip_id` int(11) NOT NULL,
  `amount_select` varchar(255) NOT NULL,
  `active` tinyint(1) DEFAULT NULL,
  `condition_range_max` double DEFAULT NULL,
  `parent_rule_id` int(11) DEFAULT NULL,
  `salary_rule_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `condition_python` text NOT NULL,
  `amount_python_compute` text DEFAULT NULL,
  `amount` decimal(10,0) DEFAULT NULL,
  `category_id` int(11) NOT NULL,
  `quantity` decimal(10,0) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `amount_select` (`amount_select`),
  KEY `contract_id` (`contract_id`),
  KEY `parent_rule_id` (`parent_rule_id`),
  KEY `sequence` (`sequence`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_payslip_run`
--

DROP TABLE IF EXISTS `hr_payslip_run`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_payslip_run` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `credit_note` tinyint(1) DEFAULT NULL,
  `date_end` date NOT NULL,
  `date_start` date NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `state` (`state`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_payslip_worked_days`
--

DROP TABLE IF EXISTS `hr_payslip_worked_days`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_payslip_worked_days` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `code` varchar(255) NOT NULL,
  `contract_id` int(11) NOT NULL,
  `sequence` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `payslip_id` int(11) NOT NULL,
  `number_of_days` double DEFAULT NULL,
  `number_of_hours` double DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `payslip_id` (`payslip_id`),
  KEY `sequence` (`sequence`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_rule_input`
--

DROP TABLE IF EXISTS `hr_rule_input`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_rule_input` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `code` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `input_id` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_salary_rule`
--

DROP TABLE IF EXISTS `hr_salary_rule`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_salary_rule` (
  `id` int(11) NOT NULL,
  `code` varchar(255) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `sequence` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `appears_on_payslip` tinyint(1) DEFAULT NULL,
  `condition_range` varchar(255) DEFAULT NULL,
  `amount_fix` decimal(10,0) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `parent_rule_id` int(11) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `amount_percentage` decimal(10,0) DEFAULT NULL,
  `condition_range_min` double DEFAULT NULL,
  `condition_select` varchar(255) NOT NULL,
  `amount_percentage_base` varchar(255) DEFAULT NULL,
  `register_id` int(11) DEFAULT NULL,
  `amount_select` varchar(255) NOT NULL,
  `active` tinyint(1) DEFAULT NULL,
  `condition_range_max` double DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `condition_python` text NOT NULL,
  `amount_python_compute` text DEFAULT NULL,
  `category_id` int(11) NOT NULL,
  `quantity` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `amount_select` (`amount_select`),
  KEY `parent_rule_id` (`parent_rule_id`),
  KEY `sequence` (`sequence`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_salary_rule_category`
--

DROP TABLE IF EXISTS `hr_salary_rule_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_salary_rule_category` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `code` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hr_structure_salary_rule_rel`
--

DROP TABLE IF EXISTS `hr_structure_salary_rule_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hr_structure_salary_rule_rel` (
  `struct_id` int(11) NOT NULL,
  `rule_id` int(11) NOT NULL,
  KEY `rule_id` (`rule_id`),
  KEY `struct_id` (`struct_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `human_color`
--

DROP TABLE IF EXISTS `human_color`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `human_color` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `import_invoice`
--

DROP TABLE IF EXISTS `import_invoice`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `import_invoice` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `file_path` blob DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `import_title_invoice`
--

DROP TABLE IF EXISTS `import_title_invoice`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `import_title_invoice` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `file_path` blob DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_act_client`
--

DROP TABLE IF EXISTS `ir_act_client`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_act_client` (
  `res_model` varchar(255) DEFAULT NULL,
  `params_store` blob DEFAULT NULL,
  `tag` varchar(255) NOT NULL,
  `context` varchar(255) NOT NULL,
  `target` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_act_report_xml`
--

DROP TABLE IF EXISTS `ir_act_report_xml`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_act_report_xml` (
  `parser` varchar(255) DEFAULT NULL,
  `header` tinyint(1) DEFAULT NULL,
  `report_type` varchar(255) NOT NULL,
  `ir_values_id` int(11) DEFAULT NULL,
  `attachment` varchar(255) DEFAULT NULL,
  `report_sxw_content_data` blob DEFAULT NULL,
  `report_xml` varchar(255) DEFAULT NULL,
  `report_rml_content_data` blob DEFAULT NULL,
  `auto` tinyint(1) DEFAULT NULL,
  `report_file` varchar(255) DEFAULT NULL,
  `multi` tinyint(1) DEFAULT NULL,
  `report_xsl` varchar(255) DEFAULT NULL,
  `report_rml` varchar(255) DEFAULT NULL,
  `report_name` varchar(255) NOT NULL,
  `attachment_use` tinyint(1) DEFAULT NULL,
  `model` varchar(255) NOT NULL,
  `paperformat_id` int(11) DEFAULT NULL,
  `print_report_name` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_act_server`
--

DROP TABLE IF EXISTS `ir_act_server`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_act_server` (
  `code` text DEFAULT NULL,
  `sequence` int(11) DEFAULT NULL,
  `crud_model_id` int(11) DEFAULT NULL,
  `ref_object` varchar(255) DEFAULT NULL,
  `wkf_model_id` int(11) DEFAULT NULL,
  `crud_model_name` varchar(255) DEFAULT NULL,
  `use_relational_model` varchar(255) NOT NULL,
  `use_create` varchar(255) NOT NULL,
  `wkf_field_id` int(11) DEFAULT NULL,
  `id_object` varchar(255) DEFAULT NULL,
  `state` varchar(255) NOT NULL,
  `id_value` varchar(255) DEFAULT NULL,
  `action_id` int(11) DEFAULT NULL,
  `model_id` int(11) NOT NULL,
  `wkf_model_name` varchar(255) DEFAULT NULL,
  `sub_model_object_field` int(11) DEFAULT NULL,
  `link_new_record` tinyint(1) DEFAULT NULL,
  `wkf_transition_id` int(11) DEFAULT NULL,
  `sub_object` int(11) DEFAULT NULL,
  `use_write` varchar(255) NOT NULL,
  `condition` varchar(255) DEFAULT NULL,
  `copyvalue` varchar(255) DEFAULT NULL,
  `write_expression` varchar(255) DEFAULT NULL,
  `menu_ir_values_id` int(11) DEFAULT NULL,
  `model_object_field` int(11) DEFAULT NULL,
  `link_field_id` int(11) DEFAULT NULL,
  `template_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_act_url`
--

DROP TABLE IF EXISTS `ir_act_url`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_act_url` (
  `target` varchar(255) NOT NULL,
  `url` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_act_window`
--

DROP TABLE IF EXISTS `ir_act_window`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_act_window` (
  `domain` varchar(255) DEFAULT NULL,
  `res_model` varchar(255) NOT NULL,
  `search_view_id` int(11) DEFAULT NULL,
  `src_model` varchar(255) DEFAULT NULL,
  `view_type` varchar(255) NOT NULL,
  `view_id` int(11) DEFAULT NULL,
  `view_mode` varchar(255) NOT NULL,
  `multi` tinyint(1) DEFAULT NULL,
  `target` varchar(255) DEFAULT NULL,
  `auto_search` tinyint(1) DEFAULT NULL,
  `res_id` int(11) DEFAULT NULL,
  `filter` tinyint(1) DEFAULT NULL,
  `limit` int(11) DEFAULT NULL,
  `context` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_act_window_group_rel`
--

DROP TABLE IF EXISTS `ir_act_window_group_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_act_window_group_rel` (
  `act_id` int(11) NOT NULL,
  `gid` int(11) NOT NULL,
  KEY `act_id` (`act_id`),
  KEY `gid` (`gid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_act_window_view`
--

DROP TABLE IF EXISTS `ir_act_window_view`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_act_window_view` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `multi` tinyint(1) DEFAULT NULL,
  `sequence` int(11) DEFAULT NULL,
  `view_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `view_mode` varchar(255) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `act_window_id` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_actions`
--

DROP TABLE IF EXISTS `ir_actions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_actions` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `help` text DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `usage` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `type` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_actions_todo`
--

DROP TABLE IF EXISTS `ir_actions_todo`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_actions_todo` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `sequence` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `state` varchar(255) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `type` varchar(255) NOT NULL,
  `action_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `action_id` (`action_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_attachment`
--

DROP TABLE IF EXISTS `ir_attachment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_attachment` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `res_model` varchar(255) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `res_name` varchar(255) DEFAULT NULL,
  `db_datas` blob DEFAULT NULL,
  `file_size` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `res_id` int(11) DEFAULT NULL,
  `index_content` text DEFAULT NULL,
  `type` varchar(255) NOT NULL,
  `public` tinyint(1) DEFAULT NULL,
  `store_fname` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `res_field` varchar(255) DEFAULT NULL,
  `mimetype` varchar(255) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `url` text DEFAULT NULL,
  `checksum` varchar(40) DEFAULT NULL,
  `datas_fname` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `checksum` (`checksum`),
  KEY `res_model` (`res_model`,`res_id`),
  KEY `url` (`url`(3072))
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_config_parameter`
--

DROP TABLE IF EXISTS `ir_config_parameter`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_config_parameter` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `value` text NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `key` varchar(255) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_config_parameter_groups_rel`
--

DROP TABLE IF EXISTS `ir_config_parameter_groups_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_config_parameter_groups_rel` (
  `icp_id` int(11) NOT NULL,
  `group_id` int(11) NOT NULL,
  KEY `group_id` (`group_id`),
  KEY `icp_id` (`icp_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_cron`
--

DROP TABLE IF EXISTS `ir_cron`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_cron` (
  `id` int(11) NOT NULL,
  `function` varchar(255) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `interval_type` varchar(255) DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `args` text DEFAULT NULL,
  `numbercall` int(11) DEFAULT NULL,
  `nextcall` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `priority` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `doall` tinyint(1) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `interval_number` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `model` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_exports`
--

DROP TABLE IF EXISTS `ir_exports`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_exports` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `resource` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `resource` (`resource`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_exports_line`
--

DROP TABLE IF EXISTS `ir_exports_line`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_exports_line` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `export_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `export_id` (`export_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_filters`
--

DROP TABLE IF EXISTS `ir_filters`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_filters` (
  `id` int(11) NOT NULL,
  `sort` text NOT NULL,
  `model_id` varchar(255) NOT NULL,
  `domain` text NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `is_default` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `context` text NOT NULL,
  `active` tinyint(1) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `action_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_logging`
--

DROP TABLE IF EXISTS `ir_logging`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_logging` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `level` varchar(255) DEFAULT NULL,
  `message` text NOT NULL,
  `func` varchar(255) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `path` varchar(255) NOT NULL,
  `line` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `type` varchar(255) NOT NULL,
  `dbname` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dbname` (`dbname`),
  KEY `level` (`level`),
  KEY `type` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_mail_server`
--

DROP TABLE IF EXISTS `ir_mail_server`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_mail_server` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `sequence` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `smtp_port` int(11) NOT NULL,
  `smtp_host` varchar(255) NOT NULL,
  `smtp_user` varchar(64) DEFAULT NULL,
  `smtp_pass` varchar(64) DEFAULT NULL,
  `smtp_debug` tinyint(1) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `smtp_encryption` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_model`
--

DROP TABLE IF EXISTS `ir_model`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_model` (
  `id` int(11) NOT NULL,
  `model` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `state` varchar(255) DEFAULT NULL,
  `info` text DEFAULT NULL,
  `transient` tinyint(1) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `model` (`model`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_model_access`
--

DROP TABLE IF EXISTS `ir_model_access`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_model_access` (
  `id` int(11) NOT NULL,
  `model_id` int(11) NOT NULL,
  `perm_read` tinyint(1) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `perm_write` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `perm_unlink` tinyint(1) DEFAULT NULL,
  `active` tinyint(1) DEFAULT NULL,
  `perm_create` tinyint(1) DEFAULT NULL,
  `group_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `group_id` (`group_id`),
  KEY `model_id` (`model_id`),
  KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_model_constraint`
--

DROP TABLE IF EXISTS `ir_model_constraint`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_model_constraint` (
  `id` int(11) NOT NULL,
  `date_init` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_update` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `module` int(11) NOT NULL,
  `model` int(11) NOT NULL,
  `type` varchar(1) NOT NULL,
  `definition` varchar(255) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `model` (`model`),
  KEY `module` (`module`),
  KEY `name` (`name`),
  KEY `type` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_model_data`
--

DROP TABLE IF EXISTS `ir_model_data`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_model_data` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `noupdate` tinyint(1) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `date_init` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_update` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `module` varchar(255) NOT NULL,
  `model` varchar(255) NOT NULL,
  `res_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `model` (`model`,`res_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_model_fields`
--

DROP TABLE IF EXISTS `ir_model_fields`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_model_fields` (
  `id` int(11) NOT NULL,
  `model` varchar(255) NOT NULL,
  `model_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `state` varchar(255) DEFAULT 'base',
  `field_description` varchar(255) NOT NULL,
  `help` text DEFAULT NULL,
  `ttype` varchar(255) NOT NULL,
  `relation` varchar(255) DEFAULT NULL,
  `relation_field` varchar(255) DEFAULT NULL,
  `index` tinyint(1) DEFAULT NULL,
  `copy` tinyint(1) DEFAULT NULL,
  `related` varchar(255) DEFAULT NULL,
  `readonly` tinyint(1) DEFAULT 0,
  `required` tinyint(1) DEFAULT 0,
  `selectable` tinyint(1) DEFAULT 0,
  `translate` tinyint(1) DEFAULT 0,
  `serialization_field_id` int(11) DEFAULT NULL,
  `relation_table` varchar(255) DEFAULT NULL,
  `column1` varchar(255) DEFAULT NULL,
  `column2` varchar(255) DEFAULT NULL,
  `store` tinyint(1) DEFAULT NULL,
  `domain` varchar(255) DEFAULT NULL,
  `selection` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `on_delete` varchar(255) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `depends` varchar(255) DEFAULT NULL,
  `size` int(11) DEFAULT NULL,
  `complete_name` varchar(255) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `compute` text DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `complete_name` (`complete_name`),
  KEY `model_id` (`model_id`),
  KEY `model` (`model`),
  KEY `name` (`name`),
  KEY `state` (`state`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_model_fields_group_rel`
--

DROP TABLE IF EXISTS `ir_model_fields_group_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_model_fields_group_rel` (
  `field_id` int(11) NOT NULL,
  `group_id` int(11) NOT NULL,
  KEY `field_id` (`field_id`),
  KEY `group_id` (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_model_relation`
--

DROP TABLE IF EXISTS `ir_model_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_model_relation` (
  `id` int(11) NOT NULL,
  `date_init` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_update` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `module` int(11) NOT NULL,
  `model` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `model` (`model`),
  KEY `module` (`module`),
  KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_module_category`
--

DROP TABLE IF EXISTS `ir_module_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_module_category` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `sequence` int(11) DEFAULT NULL,
  `visible` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `name` (`name`),
  KEY `parent_id` (`parent_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_module_module`
--

DROP TABLE IF EXISTS `ir_module_module`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_module_module` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `website` varchar(255) DEFAULT NULL,
  `summary` varchar(255) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `author` varchar(255) DEFAULT NULL,
  `icon` varchar(255) DEFAULT NULL,
  `state` varchar(16) DEFAULT NULL,
  `latest_version` varchar(255) DEFAULT NULL,
  `shortdesc` varchar(255) DEFAULT NULL,
  `category_id` int(11) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `application` tinyint(1) DEFAULT 0,
  `demo` tinyint(1) DEFAULT 0,
  `web` tinyint(1) DEFAULT 0,
  `license` varchar(32) DEFAULT NULL,
  `sequence` int(11) DEFAULT 100,
  `auto_install` tinyint(1) DEFAULT 0,
  `maintainer` varchar(255) DEFAULT NULL,
  `contributors` text DEFAULT NULL,
  `views_by_module` text DEFAULT NULL,
  `published_version` varchar(255) DEFAULT NULL,
  `menus_by_module` text DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `reports_by_module` text DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `category_id` (`category_id`),
  KEY `name` (`name`),
  KEY `state` (`state`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_module_module_dependency`
--

DROP TABLE IF EXISTS `ir_module_module_dependency`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_module_module_dependency` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `module_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_property`
--

DROP TABLE IF EXISTS `ir_property`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_property` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `value_integer` int(11) DEFAULT NULL,
  `value_float` double DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `value_text` text DEFAULT NULL,
  `res_id` varchar(255) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `fields_id` int(11) NOT NULL,
  `value_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `value_binary` blob DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `value_reference` varchar(255) DEFAULT NULL,
  `type` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`),
  KEY `fields_id` (`fields_id`),
  KEY `name` (`name`),
  KEY `res_id` (`res_id`),
  KEY `type` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_rule`
--

DROP TABLE IF EXISTS `ir_rule`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_rule` (
  `id` int(11) NOT NULL,
  `model_id` int(11) NOT NULL,
  `domain_force` text DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `global` tinyint(1) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `perm_write` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `perm_unlink` tinyint(1) DEFAULT NULL,
  `active` tinyint(1) DEFAULT NULL,
  `perm_read` tinyint(1) DEFAULT NULL,
  `perm_create` tinyint(1) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `model_id` (`model_id`),
  KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_sequence`
--

DROP TABLE IF EXISTS `ir_sequence`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_sequence` (
  `id` int(11) NOT NULL,
  `use_date_range` tinyint(1) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `number_next` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `implementation` varchar(255) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `padding` int(11) NOT NULL,
  `number_increment` int(11) NOT NULL,
  `prefix` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `suffix` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_sequence_date_range`
--

DROP TABLE IF EXISTS `ir_sequence_date_range`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_sequence_date_range` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `number_next` int(11) NOT NULL,
  `date_from` date NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `sequence_id` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_to` date NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_server_object_lines`
--

DROP TABLE IF EXISTS `ir_server_object_lines`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_server_object_lines` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `server_id` int(11) DEFAULT NULL,
  `value` text NOT NULL,
  `col1` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `type` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_translation`
--

DROP TABLE IF EXISTS `ir_translation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_translation` (
  `id` int(11) NOT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `src` text DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `type` varchar(255) DEFAULT NULL,
  `module` varchar(255) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `comments` text DEFAULT NULL,
  `value` text DEFAULT NULL,
  `res_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `comments` (`comments`(3072)),
  KEY `name` (`name`,`lang`,`type`),
  KEY `module` (`module`),
  KEY `res_id` (`res_id`),
  KEY `type` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_ui_menu`
--

DROP TABLE IF EXISTS `ir_ui_menu`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_ui_menu` (
  `id` int(11) NOT NULL,
  `parent_left` int(11) DEFAULT NULL,
  `parent_right` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `web_icon` varchar(255) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `sequence` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `active` tinyint(1) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_uid` int(11) DEFAULT NULL,
  `action` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `load_xmlid` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `parent_id` (`parent_id`),
  KEY `parent_left` (`parent_left`),
  KEY `parent_right` (`parent_right`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_ui_menu_group_rel`
--

DROP TABLE IF EXISTS `ir_ui_menu_group_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_ui_menu_group_rel` (
  `menu_id` int(11) NOT NULL,
  `gid` int(11) NOT NULL,
  KEY `gid` (`gid`),
  KEY `menu_id` (`menu_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_ui_view`
--

DROP TABLE IF EXISTS `ir_ui_view`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_ui_view` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `field_parent` varchar(255) DEFAULT NULL,
  `inherit_id` int(11) DEFAULT NULL,
  `model_data_id` int(11) DEFAULT NULL,
  `priority` int(11) NOT NULL,
  `type` varchar(255) DEFAULT NULL,
  `arch_db` text DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `key` varchar(255) DEFAULT NULL,
  `active` tinyint(1) DEFAULT NULL,
  `arch_fs` varchar(255) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `mode` varchar(255) NOT NULL,
  `model` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inherit_id` (`inherit_id`),
  KEY `model` (`model`),
  KEY `model_2` (`model`,`inherit_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_ui_view_custom`
--

DROP TABLE IF EXISTS `ir_ui_view_custom`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_ui_view_custom` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  `ref_id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `arch` text NOT NULL,
  PRIMARY KEY (`id`),
  KEY `ref_id` (`ref_id`),
  KEY `user_id` (`user_id`),
  KEY `user_id_2` (`user_id`,`ref_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_ui_view_group_rel`
--

DROP TABLE IF EXISTS `ir_ui_view_group_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_ui_view_group_rel` (
  `view_id` int(11) NOT NULL,
  `group_id` int(11) NOT NULL,
  KEY `group_id` (`group_id`),
  KEY `view_id` (`view_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ir_values`
--

DROP TABLE IF EXISTS `ir_values`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ir_values` (
  `id` int(11) NOT NULL,
  `model_id` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `key2` varchar(255) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `value` text DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `key` varchar(255) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `model` varchar(255) NOT NULL,
  `res_id` int(11) DEFAULT NULL,
  `action_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`),
  KEY `key2` (`key2`),
  KEY `model` (`model`),
  KEY `res_id` (`res_id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `label_code`
--

DROP TABLE IF EXISTS `label_code`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `label_code` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `year` int(11) NOT NULL,
  `is_assigned` tinyint(1) DEFAULT NULL,
  `quarter` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `legacy_odoo_join`
--

DROP TABLE IF EXISTS `legacy_odoo_join`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `legacy_odoo_join` (
  `license_plate` varchar(255) DEFAULT NULL,
  `vin_number` varchar(255) DEFAULT NULL,
  `id` int(11) DEFAULT NULL,
  `payment_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `amount_paid` decimal(20,2) DEFAULT NULL,
  `service_fee_amount_due` double DEFAULT NULL,
  `service_fee_payment_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `licenseplate`
--

DROP TABLE IF EXISTS `licenseplate`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `licenseplate` (
  `license_plate` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `login_detail`
--

DROP TABLE IF EXISTS `login_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `login_detail` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `date_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `ip_address` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_alias`
--

DROP TABLE IF EXISTS `mail_alias`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_alias` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `alias_parent_thread_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `alias_defaults` text NOT NULL,
  `alias_contact` varchar(255) NOT NULL,
  `alias_parent_model_id` int(11) DEFAULT NULL,
  `alias_user_id` int(11) DEFAULT NULL,
  `alias_force_thread_id` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `alias_model_id` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `alias_name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_channel`
--

DROP TABLE IF EXISTS `mail_channel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_channel` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `alias_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `uuid` varchar(50) DEFAULT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `description` text DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `group_public_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `public` varchar(255) NOT NULL,
  `channel_type` varchar(255) DEFAULT NULL,
  `email_send` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `uuid` (`uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_channel_mail_wizard_invite_rel`
--

DROP TABLE IF EXISTS `mail_channel_mail_wizard_invite_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_channel_mail_wizard_invite_rel` (
  `mail_wizard_invite_id` int(11) NOT NULL,
  `mail_channel_id` int(11) NOT NULL,
  KEY `mail_channel_id` (`mail_channel_id`),
  KEY `mail_wizard_invite_id` (`mail_wizard_invite_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_channel_partner`
--

DROP TABLE IF EXISTS `mail_channel_partner`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_channel_partner` (
  `id` int(11) NOT NULL,
  `seen_message_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `is_minimized` tinyint(1) DEFAULT NULL,
  `is_pinned` tinyint(1) DEFAULT NULL,
  `channel_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `fold_state` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `channel_id` (`channel_id`,`partner_id`,`seen_message_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_channel_res_groups_rel`
--

DROP TABLE IF EXISTS `mail_channel_res_groups_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_channel_res_groups_rel` (
  `mail_channel_id` int(11) NOT NULL,
  `res_groups_id` int(11) NOT NULL,
  KEY `mail_channel_id` (`mail_channel_id`),
  KEY `res_groups_id` (`res_groups_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_compose_message`
--

DROP TABLE IF EXISTS `mail_compose_message`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_compose_message` (
  `id` int(11) NOT NULL,
  `auto_delete_message` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `auto_delete` tinyint(1) DEFAULT NULL,
  `mail_server_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `notify` tinyint(1) DEFAULT NULL,
  `active_domain` text DEFAULT NULL,
  `subject` varchar(255) DEFAULT NULL,
  `composition_mode` varchar(255) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `is_log` tinyint(1) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `subtype_id` int(11) DEFAULT NULL,
  `res_id` int(11) DEFAULT NULL,
  `message_id` varchar(255) DEFAULT NULL,
  `body` text DEFAULT NULL,
  `record_name` varchar(255) DEFAULT NULL,
  `no_auto_thread` tinyint(1) DEFAULT NULL,
  `date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `author_id` int(11) DEFAULT NULL,
  `use_active_domain` tinyint(1) DEFAULT NULL,
  `template_id` int(11) DEFAULT NULL,
  `reply_to` varchar(255) DEFAULT NULL,
  `model` varchar(255) DEFAULT NULL,
  `message_type` varchar(255) NOT NULL,
  `email_from` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `author_id` (`author_id`),
  KEY `message_id` (`message_id`),
  KEY `model` (`model`),
  KEY `parent_id` (`parent_id`),
  KEY `res_id` (`res_id`),
  KEY `subtype_id` (`subtype_id`),
  KEY `template_id` (`template_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_compose_message_ir_attachments_rel`
--

DROP TABLE IF EXISTS `mail_compose_message_ir_attachments_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_compose_message_ir_attachments_rel` (
  `wizard_id` int(11) NOT NULL,
  `attachment_id` int(11) NOT NULL,
  KEY `attachment_id` (`attachment_id`),
  KEY `wizard_id` (`wizard_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_compose_message_res_partner_rel`
--

DROP TABLE IF EXISTS `mail_compose_message_res_partner_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_compose_message_res_partner_rel` (
  `wizard_id` int(11) NOT NULL,
  `partner_id` int(11) NOT NULL,
  KEY `partner_id` (`partner_id`),
  KEY `wizard_id` (`wizard_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_followers`
--

DROP TABLE IF EXISTS `mail_followers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_followers` (
  `id` int(11) NOT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `channel_id` int(11) DEFAULT NULL,
  `res_model` varchar(255) NOT NULL,
  `res_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `channel_id` (`channel_id`),
  KEY `partner_id` (`partner_id`),
  KEY `res_id` (`res_id`),
  KEY `res_model` (`res_model`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_followers_mail_message_subtype_rel`
--

DROP TABLE IF EXISTS `mail_followers_mail_message_subtype_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_followers_mail_message_subtype_rel` (
  `mail_followers_id` int(11) NOT NULL,
  `mail_message_subtype_id` int(11) NOT NULL,
  KEY `mail_message_subtype_id` (`mail_message_subtype_id`),
  KEY `mail_followers_id` (`mail_followers_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_mail`
--

DROP TABLE IF EXISTS `mail_mail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_mail` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `auto_delete` tinyint(1) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `references` text DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `notification` tinyint(1) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `email_cc` varchar(255) DEFAULT NULL,
  `body_html` text DEFAULT NULL,
  `email_to` text DEFAULT NULL,
  `scheduled_date` varchar(255) DEFAULT NULL,
  `mail_message_id` int(11) NOT NULL,
  `failure_reason` text DEFAULT NULL,
  `headers` text DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `fetchmail_server_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fetchmail_server_id` (`fetchmail_server_id`),
  KEY `mail_message_id` (`mail_message_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_mail_res_partner_rel`
--

DROP TABLE IF EXISTS `mail_mail_res_partner_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_mail_res_partner_rel` (
  `mail_mail_id` int(11) NOT NULL,
  `res_partner_id` int(11) NOT NULL,
  KEY `mail_mail_id` (`mail_mail_id`),
  KEY `res_partner_id` (`res_partner_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_message`
--

DROP TABLE IF EXISTS `mail_message`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_message` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `mail_server_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `subject` varchar(255) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `subtype_id` int(11) DEFAULT NULL,
  `res_id` int(11) DEFAULT NULL,
  `message_id` varchar(255) DEFAULT NULL,
  `body` text DEFAULT NULL,
  `record_name` varchar(255) DEFAULT NULL,
  `no_auto_thread` tinyint(1) DEFAULT NULL,
  `date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `reply_to` varchar(255) DEFAULT NULL,
  `author_id` int(11) DEFAULT NULL,
  `model` varchar(255) DEFAULT NULL,
  `message_type` varchar(255) NOT NULL,
  `email_from` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `author_id` (`author_id`),
  KEY `message_id` (`message_id`),
  KEY `model` (`model`),
  KEY `model_2` (`model`,`res_id`),
  KEY `parent_id` (`parent_id`),
  KEY `res_id` (`res_id`),
  KEY `subtype_id` (`subtype_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_message_mail_channel_rel`
--

DROP TABLE IF EXISTS `mail_message_mail_channel_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_message_mail_channel_rel` (
  `mail_message_id` int(11) NOT NULL,
  `mail_channel_id` int(11) NOT NULL,
  KEY `mail_channel_id` (`mail_channel_id`),
  KEY `mail_message_id` (`mail_message_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_message_res_partner_needaction_rel`
--

DROP TABLE IF EXISTS `mail_message_res_partner_needaction_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_message_res_partner_needaction_rel` (
  `id` int(11) NOT NULL,
  `mail_message_id` int(11) NOT NULL,
  `is_email` tinyint(1) DEFAULT NULL,
  `is_read` tinyint(1) DEFAULT NULL,
  `res_partner_id` int(11) NOT NULL,
  `email_status` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `email_status` (`email_status`),
  KEY `is_email` (`is_email`),
  KEY `is_read` (`is_read`),
  KEY `mail_message_id` (`mail_message_id`),
  KEY `res_partner_id` (`res_partner_id`),
  KEY `res_partner_id_2` (`res_partner_id`,`is_read`,`email_status`,`mail_message_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_message_res_partner_rel`
--

DROP TABLE IF EXISTS `mail_message_res_partner_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_message_res_partner_rel` (
  `mail_message_id` int(11) NOT NULL,
  `res_partner_id` int(11) NOT NULL,
  KEY `mail_message_id` (`mail_message_id`),
  KEY `res_partner_id` (`res_partner_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_message_res_partner_starred_rel`
--

DROP TABLE IF EXISTS `mail_message_res_partner_starred_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_message_res_partner_starred_rel` (
  `mail_message_id` int(11) NOT NULL,
  `res_partner_id` int(11) NOT NULL,
  KEY `mail_message_id` (`mail_message_id`),
  KEY `res_partner_id` (`res_partner_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_message_subtype`
--

DROP TABLE IF EXISTS `mail_message_subtype`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_message_subtype` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `sequence` int(11) DEFAULT NULL,
  `default` tinyint(1) DEFAULT NULL,
  `res_model` varchar(255) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `internal` tinyint(1) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `relation_field` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `hidden` tinyint(1) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_shortcode`
--

DROP TABLE IF EXISTS `mail_shortcode`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_shortcode` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `source` varchar(255) NOT NULL,
  `shortcode_type` varchar(255) NOT NULL,
  `substitution` text NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `source` (`source`),
  KEY `substitution` (`substitution`(3072))
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_template`
--

DROP TABLE IF EXISTS `mail_template`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_template` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `sub_object` int(11) DEFAULT NULL,
  `auto_delete` tinyint(1) DEFAULT NULL,
  `mail_server_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `partner_to` varchar(255) DEFAULT NULL,
  `ref_ir_act_window` int(11) DEFAULT NULL,
  `subject` varchar(255) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `report_template` int(11) DEFAULT NULL,
  `ref_ir_value` int(11) DEFAULT NULL,
  `user_signature` tinyint(1) DEFAULT NULL,
  `null_value` varchar(255) DEFAULT NULL,
  `email_cc` varchar(255) DEFAULT NULL,
  `model_id` int(11) DEFAULT NULL,
  `sub_model_object_field` int(11) DEFAULT NULL,
  `body_html` text DEFAULT NULL,
  `email_to` varchar(255) DEFAULT NULL,
  `scheduled_date` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `copyvalue` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `model_object_field` int(11) DEFAULT NULL,
  `report_name` varchar(255) DEFAULT NULL,
  `use_default_to` tinyint(1) DEFAULT NULL,
  `reply_to` varchar(255) DEFAULT NULL,
  `model` varchar(255) DEFAULT NULL,
  `email_from` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `model` (`model`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_test`
--

DROP TABLE IF EXISTS `mail_test`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_test` (
  `id` int(11) NOT NULL,
  `name` varchar(255) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `alias_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_tracking_value`
--

DROP TABLE IF EXISTS `mail_tracking_value`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_tracking_value` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `old_value_monetary` double DEFAULT NULL,
  `new_value_text` text DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `field_type` varchar(255) DEFAULT NULL,
  `old_value_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `field` varchar(255) NOT NULL,
  `new_value_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `new_value_integer` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `new_value_monetary` double DEFAULT NULL,
  `old_value_text` text DEFAULT NULL,
  `field_desc` varchar(255) NOT NULL,
  `mail_message_id` int(11) NOT NULL,
  `new_value_char` varchar(255) DEFAULT NULL,
  `old_value_char` varchar(255) DEFAULT NULL,
  `new_value_float` double DEFAULT NULL,
  `old_value_float` double DEFAULT NULL,
  `old_value_integer` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mail_message_id` (`mail_message_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_wizard_invite`
--

DROP TABLE IF EXISTS `mail_wizard_invite`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_wizard_invite` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `res_model` varchar(255) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `message` text DEFAULT NULL,
  `res_id` int(11) DEFAULT NULL,
  `send_mail` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `res_id` (`res_id`),
  KEY `res_model` (`res_model`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mail_wizard_invite_res_partner_rel`
--

DROP TABLE IF EXISTS `mail_wizard_invite_res_partner_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail_wizard_invite_res_partner_rel` (
  `mail_wizard_invite_id` int(11) NOT NULL,
  `res_partner_id` int(11) NOT NULL,
  KEY `mail_wizard_invite_id` (`mail_wizard_invite_id`),
  KEY `res_partner_id` (`res_partner_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `make_procurement`
--

DROP TABLE IF EXISTS `make_procurement`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `make_procurement` (
  `id` int(11) NOT NULL,
  `uom_id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `product_id` int(11) NOT NULL,
  `date_planned` date NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `res_model` varchar(255) DEFAULT NULL,
  `qty` decimal(10,0) NOT NULL,
  `product_tmpl_id` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `warehouse_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `make_procurement_stock_location_route_rel`
--

DROP TABLE IF EXISTS `make_procurement_stock_location_route_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `make_procurement_stock_location_route_rel` (
  `make_procurement_id` int(11) NOT NULL,
  `stock_location_route_id` int(11) NOT NULL,
  KEY `stock_location_route_id` (`stock_location_route_id`),
  KEY `make_procurement_id` (`make_procurement_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `meeting_category_rel`
--

DROP TABLE IF EXISTS `meeting_category_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `meeting_category_rel` (
  `event_id` int(11) NOT NULL,
  `type_id` int(11) NOT NULL,
  KEY `event_id` (`event_id`),
  KEY `type_id` (`type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `message_attachment_rel`
--

DROP TABLE IF EXISTS `message_attachment_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `message_attachment_rel` (
  `message_id` int(11) NOT NULL,
  `attachment_id` int(11) NOT NULL,
  KEY `attachment_id` (`attachment_id`),
  KEY `message_id` (`message_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `missingvehicles`
--

DROP TABLE IF EXISTS `missingvehicles`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `missingvehicles` (
  `vehicle_id` text DEFAULT NULL,
  `license_plate` text DEFAULT NULL,
  `vin` text DEFAULT NULL,
  `year` bigint(20) DEFAULT NULL,
  `make` text DEFAULT NULL,
  `model` text DEFAULT NULL,
  `type` text DEFAULT NULL,
  `color` text DEFAULT NULL,
  `odometer` text DEFAULT NULL,
  `title` text DEFAULT NULL,
  `taxbase` text DEFAULT NULL,
  `purchase_price` double DEFAULT NULL,
  `vehicle_weight` bigint(20) DEFAULT NULL,
  `inspection_status` text DEFAULT NULL,
  `inspection_expiry` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `engine_capacity` text DEFAULT NULL,
  `engine_number` text DEFAULT NULL,
  `vin_chasis` text DEFAULT NULL,
  `fuel_type` text DEFAULT NULL,
  `security_interest` text DEFAULT NULL,
  `luby` text DEFAULT NULL,
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `current_title_document_type` text DEFAULT NULL,
  `sub_category` text DEFAULT NULL,
  `id` int(11) DEFAULT NULL,
  `odoo_vehicle_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `naturalization`
--

DROP TABLE IF EXISTS `naturalization`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `naturalization` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `output`
--

DROP TABLE IF EXISTS `output`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `output` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `note` text DEFAULT NULL,
  `flag` tinyint(1) DEFAULT NULL,
  `file` blob DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `file_path` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `payment_acquirer`
--

DROP TABLE IF EXISTS `payment_acquirer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payment_acquirer` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `fees_active` tinyint(1) DEFAULT NULL,
  `journal_id` int(11) DEFAULT NULL,
  `cancel_msg` text DEFAULT NULL,
  `registration_view_template_id` int(11) DEFAULT NULL,
  `module_id` int(11) DEFAULT NULL,
  `fees_dom_fixed` double DEFAULT NULL,
  `fees_int_fixed` double DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `save_token` varchar(255) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `environment` varchar(255) NOT NULL,
  `provider` varchar(255) NOT NULL,
  `website_published` tinyint(1) DEFAULT NULL,
  `auto_confirm` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `pending_msg` text DEFAULT NULL,
  `post_msg` text DEFAULT NULL,
  `fees_int_var` double DEFAULT NULL,
  `done_msg` text DEFAULT NULL,
  `pre_msg` text DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `error_msg` text DEFAULT NULL,
  `fees_dom_var` double DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `view_template_id` int(11) NOT NULL,
  `sequence` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `payment_token`
--

DROP TABLE IF EXISTS `payment_token`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payment_token` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `acquirer_ref` varchar(255) NOT NULL,
  `acquirer_id` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `partner_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `payment_transaction`
--

DROP TABLE IF EXISTS `payment_transaction`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payment_transaction` (
  `id` int(11) NOT NULL,
  `state_message` text DEFAULT NULL,
  `callback_eval` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `reference` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `currency_id` int(11) NOT NULL,
  `acquirer_id` int(11) NOT NULL,
  `fees` decimal(10,0) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `partner_name` varchar(255) DEFAULT NULL,
  `amount` decimal(10,0) NOT NULL,
  `state` varchar(255) NOT NULL,
  `type` varchar(255) NOT NULL,
  `partner_country_id` int(11) NOT NULL,
  `acquirer_reference` varchar(255) DEFAULT NULL,
  `partner_address` varchar(255) DEFAULT NULL,
  `partner_email` varchar(255) DEFAULT NULL,
  `partner_lang` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `payment_token_id` int(11) DEFAULT NULL,
  `partner_zip` varchar(255) DEFAULT NULL,
  `html_3ds` varchar(255) DEFAULT NULL,
  `date_validate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `partner_city` varchar(255) DEFAULT NULL,
  `partner_phone` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `payments`
--

DROP TABLE IF EXISTS `payments`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payments` (
  `invoice_number` text NOT NULL,
  `payment_id` text DEFAULT NULL,
  `transaction_id` text NOT NULL,
  `amount_due` decimal(20,2) DEFAULT NULL,
  `payment_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `amount_paid` decimal(20,2) DEFAULT NULL,
  `payment_method` text DEFAULT NULL,
  `payment_due_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `luby` text DEFAULT NULL,
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `receipt_number` varchar(100) DEFAULT NULL,
  `service_fee_amount_due` double DEFAULT NULL,
  `service_fee_payment_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `service_fee_amount_paid` double DEFAULT NULL,
  `service_fee_payment_method` text DEFAULT NULL,
  `service_fee_payment_due_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `service_fee_receipt_number` text DEFAULT NULL,
  `service_fee_service_location` text DEFAULT NULL,
  `service_fee_service_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `service_fee_processing_teller` text DEFAULT NULL,
  `golis_transaction_number` text DEFAULT NULL,
  `golis_transaction_amount` double DEFAULT NULL,
  `id` int(11) NOT NULL,
  `customer_id` varchar(255) DEFAULT NULL,
  `vehicle_id` varchar(255) DEFAULT NULL,
  `payment_location` varchar(255) DEFAULT NULL,
  `total_amount_due` double DEFAULT NULL,
  `total_amount_paid` double DEFAULT NULL,
  `product_type` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `payments22`
--

DROP TABLE IF EXISTS `payments22`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payments22` (
  `invoice_number` text NOT NULL,
  `payment_id` text DEFAULT NULL,
  `transaction_id` text NOT NULL,
  `amount_due` decimal(20,2) DEFAULT NULL,
  `payment_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `amount_paid` decimal(20,2) DEFAULT NULL,
  `payment_method` text DEFAULT NULL,
  `payment_due_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `luby` text DEFAULT NULL,
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `receipt_number` varchar(100) DEFAULT NULL,
  `service_fee_amount_due` double DEFAULT NULL,
  `service_fee_payment_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `service_fee_amount_paid` double DEFAULT NULL,
  `service_fee_payment_method` text DEFAULT NULL,
  `service_fee_payment_due_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `service_fee_receipt_number` text DEFAULT NULL,
  `service_fee_service_location` text DEFAULT NULL,
  `service_fee_service_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `service_fee_processing_teller` text DEFAULT NULL,
  `golis_transaction_number` text DEFAULT NULL,
  `golis_transaction_amount` double DEFAULT NULL,
  `id` int(11) NOT NULL,
  `customer_id` varchar(255) DEFAULT NULL,
  `vehicle_id` varchar(255) DEFAULT NULL,
  `payment_location` varchar(255) DEFAULT NULL,
  `total_amount_due` double DEFAULT NULL,
  `total_amount_paid` double DEFAULT NULL,
  `product_type` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `payments22_old`
--

DROP TABLE IF EXISTS `payments22_old`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payments22_old` (
  `invoice_number` text DEFAULT NULL,
  `payment_id` text DEFAULT NULL,
  `transaction_id` text DEFAULT NULL,
  `amount_due` decimal(20,2) DEFAULT NULL,
  `payment_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `amount_paid` decimal(20,2) DEFAULT NULL,
  `payment_method` text DEFAULT NULL,
  `payment_due_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `luby` text DEFAULT NULL,
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `receipt_number` varchar(100) DEFAULT NULL,
  `service_fee_amount_due` double DEFAULT NULL,
  `service_fee_payment_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `service_fee_amount_paid` double DEFAULT NULL,
  `service_fee_payment_method` text DEFAULT NULL,
  `service_fee_payment_due_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `service_fee_receipt_number` text DEFAULT NULL,
  `service_fee_service_location` text DEFAULT NULL,
  `service_fee_service_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `service_fee_processing_teller` text DEFAULT NULL,
  `golis_transaction_number` text DEFAULT NULL,
  `golis_transaction_amount` double DEFAULT NULL,
  `id` int(11) DEFAULT NULL,
  `customer_id` varchar(255) DEFAULT NULL,
  `vehicle_id` varchar(255) DEFAULT NULL,
  `payment_location` varchar(255) DEFAULT NULL,
  `total_amount_due` double DEFAULT NULL,
  `total_amount_paid` double DEFAULT NULL,
  `product_type` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `payments_old`
--

DROP TABLE IF EXISTS `payments_old`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payments_old` (
  `invoice_number` text DEFAULT NULL,
  `payment_id` text DEFAULT NULL,
  `transaction_id` text DEFAULT NULL,
  `amount_due` decimal(20,2) DEFAULT NULL,
  `payment_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `amount_paid` decimal(20,2) DEFAULT NULL,
  `payment_method` text DEFAULT NULL,
  `payment_due_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `luby` text DEFAULT NULL,
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `receipt_number` varchar(100) DEFAULT NULL,
  `service_fee_amount_due` double DEFAULT NULL,
  `service_fee_payment_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `service_fee_amount_paid` double DEFAULT NULL,
  `service_fee_payment_method` text DEFAULT NULL,
  `service_fee_payment_due_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `service_fee_receipt_number` text DEFAULT NULL,
  `service_fee_service_location` text DEFAULT NULL,
  `service_fee_service_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `service_fee_processing_teller` text DEFAULT NULL,
  `golis_transaction_number` text DEFAULT NULL,
  `golis_transaction_amount` double DEFAULT NULL,
  `id` int(11) DEFAULT NULL,
  `customer_id` varchar(255) DEFAULT NULL,
  `vehicle_id` varchar(255) DEFAULT NULL,
  `payment_location` varchar(255) DEFAULT NULL,
  `total_amount_due` double DEFAULT NULL,
  `total_amount_paid` double DEFAULT NULL,
  `product_type` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `payments_tax_clean`
--

DROP TABLE IF EXISTS `payments_tax_clean`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payments_tax_clean` (
  `id` int(11) NOT NULL,
  `amount_paid` decimal(20,2) DEFAULT NULL,
  `service_fee_amount_paid` decimal(20,2) DEFAULT NULL,
  `receipt_number` varchar(145) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `vehicle_id` varchar(145) DEFAULT NULL,
  `customer_id` varchar(145) DEFAULT NULL,
  `transaction_id` varchar(145) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `payments_tax_clean22`
--

DROP TABLE IF EXISTS `payments_tax_clean22`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payments_tax_clean22` (
  `id` int(11) NOT NULL,
  `amount_paid` decimal(20,2) DEFAULT NULL,
  `service_fee_amount_paid` decimal(20,2) DEFAULT NULL,
  `receipt_number` varchar(145) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `vehicle_id` varchar(145) DEFAULT NULL,
  `customer_id` varchar(145) DEFAULT NULL,
  `transaction_id` varchar(145) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `payments_title_clean`
--

DROP TABLE IF EXISTS `payments_title_clean`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payments_title_clean` (
  `id` int(11) NOT NULL,
  `amount_paid` decimal(20,2) DEFAULT NULL,
  `service_fee_amount_paid` decimal(20,2) DEFAULT NULL,
  `receipt_number` varchar(100) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `vehicle_id` varchar(100) DEFAULT NULL,
  `customer_id` varchar(100) DEFAULT NULL,
  `transaction_id` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `payments_title_clean22`
--

DROP TABLE IF EXISTS `payments_title_clean22`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payments_title_clean22` (
  `id` int(11) NOT NULL,
  `amount_paid` decimal(20,2) DEFAULT NULL,
  `service_fee_amount_paid` decimal(20,2) DEFAULT NULL,
  `receipt_number` varchar(100) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `vehicle_id` varchar(100) DEFAULT NULL,
  `customer_id` varchar(100) DEFAULT NULL,
  `transaction_id` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `payments_uniq_transaction`
--

DROP TABLE IF EXISTS `payments_uniq_transaction`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payments_uniq_transaction` (
  `id` int(11) NOT NULL,
  `amount_paid` decimal(20,2) DEFAULT NULL,
  `service_fee_amount_paid` decimal(20,2) DEFAULT NULL,
  `receipt_number` varchar(100) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `vehicle_id` varchar(145) DEFAULT NULL,
  `customer_id` varchar(145) DEFAULT NULL,
  `transaction_id` varchar(145) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `payslip_lines_contribution_register`
--

DROP TABLE IF EXISTS `payslip_lines_contribution_register`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payslip_lines_contribution_register` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `date_from` date NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_to` date NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `person`
--

DROP TABLE IF EXISTS `person`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `person` (
  `customer_id` text NOT NULL,
  `address` text NOT NULL,
  `customer_type` text NOT NULL,
  `district` text NOT NULL,
  `region` text NOT NULL,
  `province` text DEFAULT NULL,
  `zipcode` text DEFAULT NULL,
  `location_id` text NOT NULL,
  `contact_first_name` text NOT NULL,
  `contact_last_name` text NOT NULL,
  `registered_name` text NOT NULL,
  `mobile_number` text DEFAULT NULL,
  `phone_number` text DEFAULT NULL,
  `email` text DEFAULT NULL,
  `contact_middle_name` text NOT NULL,
  `created_date` timestamp NOT NULL DEFAULT current_timestamp(),
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `national_id_number` text DEFAULT NULL,
  `luby` text DEFAULT NULL,
  `id` int(11) NOT NULL,
  `partner_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `person22`
--

DROP TABLE IF EXISTS `person22`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `person22` (
  `customer_id` text NOT NULL,
  `address` text NOT NULL,
  `customer_type` text NOT NULL,
  `district` text NOT NULL,
  `region` text NOT NULL,
  `province` text DEFAULT NULL,
  `zipcode` text DEFAULT NULL,
  `location_id` text NOT NULL,
  `contact_first_name` text NOT NULL,
  `contact_last_name` text NOT NULL,
  `registered_name` text NOT NULL,
  `mobile_number` text DEFAULT NULL,
  `phone_number` text DEFAULT NULL,
  `email` text DEFAULT NULL,
  `contact_middle_name` text NOT NULL,
  `created_date` timestamp NOT NULL DEFAULT current_timestamp(),
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `national_id_number` text DEFAULT NULL,
  `luby` text DEFAULT NULL,
  `id` int(11) NOT NULL,
  `partner_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `portal_wizard`
--

DROP TABLE IF EXISTS `portal_wizard`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `portal_wizard` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `welcome_message` text DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `portal_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `portal_wizard_user`
--

DROP TABLE IF EXISTS `portal_wizard_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `portal_wizard_user` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `wizard_id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `in_portal` tinyint(1) DEFAULT NULL,
  `partner_id` int(11) NOT NULL,
  `email` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `print_prenumbered_checks`
--

DROP TABLE IF EXISTS `print_prenumbered_checks`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `print_prenumbered_checks` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `next_check_number` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `procurement_group`
--

DROP TABLE IF EXISTS `procurement_group`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `procurement_group` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `move_type` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `partner_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `procurement_order`
--

DROP TABLE IF EXISTS `procurement_order`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `procurement_order` (
  `id` int(11) NOT NULL,
  `origin` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `product_uom` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `product_qty` decimal(10,0) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `company_id` int(11) NOT NULL,
  `priority` varchar(255) NOT NULL,
  `state` varchar(255) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `product_id` int(11) NOT NULL,
  `group_id` int(11) DEFAULT NULL,
  `name` text NOT NULL,
  `date_planned` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `rule_id` int(11) DEFAULT NULL,
  `sale_line_id` int(11) DEFAULT NULL,
  `location_id` int(11) DEFAULT NULL,
  `partner_dest_id` int(11) DEFAULT NULL,
  `orderpoint_id` int(11) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `move_dest_id` int(11) DEFAULT NULL,
  `purchase_line_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `date_planned` (`date_planned`),
  KEY `priority` (`priority`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `procurement_order_compute_all`
--

DROP TABLE IF EXISTS `procurement_order_compute_all`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `procurement_order_compute_all` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `procurement_orderpoint_compute`
--

DROP TABLE IF EXISTS `procurement_orderpoint_compute`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `procurement_orderpoint_compute` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `procurement_rule`
--

DROP TABLE IF EXISTS `procurement_rule`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `procurement_rule` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `sequence` int(11) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `active` tinyint(1) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `action` varchar(255) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `group_id` int(11) DEFAULT NULL,
  `group_propagation_option` varchar(255) DEFAULT NULL,
  `partner_address_id` int(11) DEFAULT NULL,
  `location_id` int(11) DEFAULT NULL,
  `location_src_id` int(11) DEFAULT NULL,
  `picking_type_id` int(11) NOT NULL,
  `delay` int(11) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `propagate` tinyint(1) DEFAULT NULL,
  `procure_method` varchar(255) NOT NULL,
  `route_sequence` int(11) DEFAULT NULL,
  `route_id` int(11) DEFAULT NULL,
  `propagate_warehouse_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_attribute`
--

DROP TABLE IF EXISTS `product_attribute`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_attribute` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `sequence` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_variant` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_attribute_line`
--

DROP TABLE IF EXISTS `product_attribute_line`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_attribute_line` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `product_tmpl_id` int(11) NOT NULL,
  `attribute_id` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_attribute_line_product_attribute_value_rel`
--

DROP TABLE IF EXISTS `product_attribute_line_product_attribute_value_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_attribute_line_product_attribute_value_rel` (
  `product_attribute_line_id` int(11) NOT NULL,
  `product_attribute_value_id` int(11) NOT NULL,
  KEY `product_attribute_value_id` (`product_attribute_value_id`),
  KEY `product_attribute_line_id` (`product_attribute_line_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_attribute_price`
--

DROP TABLE IF EXISTS `product_attribute_price`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_attribute_price` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `price_extra` decimal(10,0) DEFAULT NULL,
  `product_tmpl_id` int(11) NOT NULL,
  `value_id` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_attribute_value`
--

DROP TABLE IF EXISTS `product_attribute_value`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_attribute_value` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `sequence` int(11) DEFAULT NULL,
  `attribute_id` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_attribute_value_product_product_rel`
--

DROP TABLE IF EXISTS `product_attribute_value_product_product_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_attribute_value_product_product_rel` (
  `product_product_id` int(11) NOT NULL,
  `product_attribute_value_id` int(11) NOT NULL,
  KEY `product_attribute_value_id` (`product_attribute_value_id`),
  KEY `product_product_id` (`product_product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_category`
--

DROP TABLE IF EXISTS `product_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_category` (
  `id` int(11) NOT NULL,
  `parent_left` int(11) DEFAULT NULL,
  `parent_right` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `type` varchar(255) DEFAULT NULL,
  `removal_strategy_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `name` (`name`),
  KEY `parent_id` (`parent_id`),
  KEY `parent_left` (`parent_left`),
  KEY `parent_right` (`parent_right`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_packaging`
--

DROP TABLE IF EXISTS `product_packaging`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_packaging` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `sequence` int(11) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `product_tmpl_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_price_history`
--

DROP TABLE IF EXISTS `product_price_history`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_price_history` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `product_id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `cost` decimal(10,0) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_price_list`
--

DROP TABLE IF EXISTS `product_price_list`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_price_list` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `price_list` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `qty1` int(11) DEFAULT NULL,
  `qty2` int(11) DEFAULT NULL,
  `qty3` int(11) DEFAULT NULL,
  `qty4` int(11) DEFAULT NULL,
  `qty5` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_pricelist`
--

DROP TABLE IF EXISTS `product_pricelist`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_pricelist` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `sequence` int(11) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `currency_id` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `discount_policy` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_pricelist_item`
--

DROP TABLE IF EXISTS `product_pricelist_item`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_pricelist_item` (
  `id` int(11) NOT NULL,
  `fixed_price` decimal(10,0) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `price_discount` decimal(10,0) DEFAULT NULL,
  `sequence` int(11) NOT NULL,
  `price_max_margin` decimal(10,0) DEFAULT NULL,
  `date_end` date DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `applied_on` varchar(255) NOT NULL,
  `min_quantity` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `percent_price` double DEFAULT NULL,
  `date_start` date DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `product_tmpl_id` int(11) DEFAULT NULL,
  `pricelist_id` int(11) DEFAULT NULL,
  `price_surcharge` decimal(10,0) DEFAULT NULL,
  `compute_price` varchar(255) DEFAULT NULL,
  `base` varchar(255) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `categ_id` int(11) DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `price_round` decimal(10,0) DEFAULT NULL,
  `price_min_margin` decimal(10,0) DEFAULT NULL,
  `base_pricelist_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `compute_price` (`compute_price`),
  KEY `pricelist_id` (`pricelist_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_product`
--

DROP TABLE IF EXISTS `product_product`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_product` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `weight` decimal(10,0) DEFAULT NULL,
  `default_code` varchar(255) DEFAULT NULL,
  `product_tmpl_id` int(11) NOT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_uid` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `barcode` varchar(255) DEFAULT NULL,
  `volume` double DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `default_code` (`default_code`),
  KEY `product_tmpl_id` (`product_tmpl_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_putaway`
--

DROP TABLE IF EXISTS `product_putaway`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_putaway` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `method` varchar(255) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_removal`
--

DROP TABLE IF EXISTS `product_removal`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_removal` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `method` varchar(255) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_supplier_taxes_rel`
--

DROP TABLE IF EXISTS `product_supplier_taxes_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_supplier_taxes_rel` (
  `prod_id` int(11) NOT NULL,
  `tax_id` int(11) NOT NULL,
  KEY `prod_id` (`prod_id`),
  KEY `tax_id` (`tax_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_supplierinfo`
--

DROP TABLE IF EXISTS `product_supplierinfo`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_supplierinfo` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `delay` int(11) NOT NULL,
  `name` int(11) NOT NULL,
  `sequence` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `date_end` date DEFAULT NULL,
  `date_start` date DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `product_name` varchar(255) DEFAULT NULL,
  `currency_id` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `min_qty` double NOT NULL,
  `product_code` varchar(255) DEFAULT NULL,
  `product_tmpl_id` int(11) DEFAULT NULL,
  `price` decimal(10,0) NOT NULL,
  `product_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`),
  KEY `product_tmpl_id` (`product_tmpl_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_taxes_rel`
--

DROP TABLE IF EXISTS `product_taxes_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_taxes_rel` (
  `prod_id` int(11) NOT NULL,
  `tax_id` int(11) NOT NULL,
  KEY `prod_id` (`prod_id`),
  KEY `tax_id` (`tax_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_template`
--

DROP TABLE IF EXISTS `product_template`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_template` (
  `id` int(11) NOT NULL,
  `warranty` double DEFAULT NULL,
  `list_price` decimal(10,0) DEFAULT NULL,
  `weight` decimal(10,0) DEFAULT NULL,
  `sequence` int(11) DEFAULT NULL,
  `color` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `uom_id` int(11) NOT NULL,
  `description_purchase` text DEFAULT NULL,
  `default_code` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_uid` int(11) DEFAULT NULL,
  `sale_ok` tinyint(1) DEFAULT NULL,
  `purchase_ok` tinyint(1) DEFAULT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `company_id` int(11) DEFAULT NULL,
  `uom_po_id` int(11) NOT NULL,
  `description_sale` text DEFAULT NULL,
  `description` text DEFAULT NULL,
  `volume` double DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `categ_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `rental` tinyint(1) DEFAULT NULL,
  `type` varchar(255) NOT NULL,
  `sale_line_warn` varchar(255) NOT NULL,
  `sale_line_warn_msg` text DEFAULT NULL,
  `track_service` varchar(255) DEFAULT NULL,
  `invoice_policy` varchar(255) DEFAULT NULL,
  `expense_policy` varchar(255) DEFAULT NULL,
  `tracking` varchar(255) NOT NULL,
  `location_id` int(11) DEFAULT NULL,
  `description_picking` text DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `sale_delay` double DEFAULT NULL,
  `purchase_line_warn_msg` text DEFAULT NULL,
  `purchase_method` varchar(255) DEFAULT NULL,
  `purchase_line_warn` varchar(255) NOT NULL,
  `can_be_expensed` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`),
  KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_uom`
--

DROP TABLE IF EXISTS `product_uom`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_uom` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `rounding` decimal(10,0) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `uom_type` varchar(255) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `factor` decimal(10,0) NOT NULL,
  `active` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `category_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `product_uom_categ`
--

DROP TABLE IF EXISTS `product_uom_categ`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_uom_categ` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `purchase_config_settings`
--

DROP TABLE IF EXISTS `purchase_config_settings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `purchase_config_settings` (
  `id` int(11) NOT NULL,
  `group_uom` int(11) DEFAULT NULL,
  `group_warning_purchase` int(11) DEFAULT NULL,
  `module_stock_dropshipping` int(11) DEFAULT NULL,
  `group_costing_method` int(11) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `group_manage_vendor_price` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `group_product_variant` int(11) DEFAULT NULL,
  `module_purchase_requisition` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `purchase_order`
--

DROP TABLE IF EXISTS `purchase_order`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `purchase_order` (
  `id` int(11) NOT NULL,
  `origin` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `currency_id` int(11) NOT NULL,
  `date_order` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `partner_id` int(11) NOT NULL,
  `dest_address_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `amount_untaxed` decimal(10,0) DEFAULT NULL,
  `picking_type_id` int(11) NOT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `company_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `amount_tax` decimal(10,0) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `date_approve` date DEFAULT NULL,
  `incoterm_id` int(11) DEFAULT NULL,
  `payment_term_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `partner_ref` varchar(255) DEFAULT NULL,
  `fiscal_position_id` int(11) DEFAULT NULL,
  `amount_total` decimal(10,0) DEFAULT NULL,
  `invoice_status` varchar(255) DEFAULT NULL,
  `date_planned` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `notes` text DEFAULT NULL,
  `group_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`),
  KEY `date_approve` (`date_approve`),
  KEY `date_order` (`date_order`),
  KEY `date_planned` (`date_planned`),
  KEY `name` (`name`),
  KEY `state` (`state`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `purchase_order_line`
--

DROP TABLE IF EXISTS `purchase_order_line`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `purchase_order_line` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `product_uom` int(11) NOT NULL,
  `price_unit` decimal(10,0) NOT NULL,
  `qty_invoiced` decimal(10,0) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `product_qty` decimal(10,0) NOT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `qty_received` decimal(10,0) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `price_tax` decimal(10,0) DEFAULT NULL,
  `sequence` int(11) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `account_analytic_id` int(11) DEFAULT NULL,
  `order_id` int(11) NOT NULL,
  `price_subtotal` decimal(10,0) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `product_id` int(11) NOT NULL,
  `price_total` decimal(10,0) DEFAULT NULL,
  `name` text NOT NULL,
  `date_planned` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `date_planned` (`date_planned`),
  KEY `order_id` (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `quarter_year`
--

DROP TABLE IF EXISTS `quarter_year`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `quarter_year` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `region_region`
--

DROP TABLE IF EXISTS `region_region`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `region_region` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `state` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rel_modules_langexport`
--

DROP TABLE IF EXISTS `rel_modules_langexport`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rel_modules_langexport` (
  `wiz_id` int(11) NOT NULL,
  `module_id` int(11) NOT NULL,
  KEY `module_id` (`module_id`),
  KEY `wiz_id` (`wiz_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rel_server_actions`
--

DROP TABLE IF EXISTS `rel_server_actions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rel_server_actions` (
  `server_id` int(11) NOT NULL,
  `action_id` int(11) NOT NULL,
  KEY `action_id` (`action_id`),
  KEY `server_id` (`server_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `report`
--

DROP TABLE IF EXISTS `report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `report` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `report_paperformat`
--

DROP TABLE IF EXISTS `report_paperformat`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `report_paperformat` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `page_width` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `header_line` tinyint(1) DEFAULT NULL,
  `default` tinyint(1) DEFAULT NULL,
  `format` varchar(255) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `margin_right` double DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `orientation` varchar(255) DEFAULT NULL,
  `margin_top` double DEFAULT NULL,
  `margin_left` double DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `page_height` int(11) DEFAULT NULL,
  `margin_bottom` double DEFAULT NULL,
  `dpi` int(11) NOT NULL,
  `header_spacing` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `report_stock_lines_date`
--

DROP TABLE IF EXISTS `report_stock_lines_date`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `report_stock_lines_date` (
  `id` int(11) DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `move_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_bank`
--

DROP TABLE IF EXISTS `res_bank`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_bank` (
  `id` int(11) NOT NULL,
  `city` varchar(255) DEFAULT NULL,
  `fax` varchar(255) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `zip` varchar(255) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `country` int(11) DEFAULT NULL,
  `street2` varchar(255) DEFAULT NULL,
  `bic` varchar(255) DEFAULT NULL,
  `phone` varchar(255) DEFAULT NULL,
  `state` int(11) DEFAULT NULL,
  `street` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `bic` (`bic`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_company`
--

DROP TABLE IF EXISTS `res_company`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_company` (
  `id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `partner_id` int(11) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `rml_footer` text DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `rml_header` text NOT NULL,
  `sequence` int(11) DEFAULT NULL,
  `rml_paper_format` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `logo_web` blob DEFAULT NULL,
  `font` int(11) DEFAULT NULL,
  `account_no` varchar(255) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `custom_footer` tinyint(1) DEFAULT NULL,
  `phone` varchar(255) DEFAULT NULL,
  `rml_header2` text NOT NULL,
  `rml_header3` text NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `rml_header1` varchar(255) DEFAULT NULL,
  `company_registry` varchar(255) DEFAULT NULL,
  `paperformat_id` int(11) DEFAULT NULL,
  `fiscalyear_lock_date` date DEFAULT NULL,
  `bank_account_code_prefix` varchar(255) DEFAULT NULL,
  `cash_account_code_prefix` varchar(255) DEFAULT NULL,
  `anglo_saxon_accounting` tinyint(1) DEFAULT NULL,
  `fiscalyear_last_day` int(11) NOT NULL,
  `expects_chart_of_accounts` tinyint(1) DEFAULT NULL,
  `property_stock_valuation_account_id` int(11) DEFAULT NULL,
  `property_stock_account_output_categ_id` int(11) DEFAULT NULL,
  `transfer_account_id` int(11) DEFAULT NULL,
  `currency_exchange_journal_id` int(11) DEFAULT NULL,
  `period_lock_date` date DEFAULT NULL,
  `tax_calculation_rounding_method` varchar(255) DEFAULT NULL,
  `accounts_code_digits` int(11) DEFAULT NULL,
  `chart_template_id` int(11) DEFAULT NULL,
  `overdue_msg` text DEFAULT NULL,
  `fiscalyear_last_month` int(11) NOT NULL,
  `property_stock_account_input_categ_id` int(11) DEFAULT NULL,
  `sale_note` text DEFAULT NULL,
  `propagation_minimum_delta` int(11) DEFAULT NULL,
  `internal_transit_location_id` int(11) DEFAULT NULL,
  `po_lead` double DEFAULT NULL,
  `po_double_validation_amount` decimal(10,0) DEFAULT NULL,
  `po_lock` varchar(255) DEFAULT NULL,
  `po_double_validation` varchar(255) DEFAULT NULL,
  `security_lead` double DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `parent_id` (`parent_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_company_users_rel`
--

DROP TABLE IF EXISTS `res_company_users_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_company_users_rel` (
  `cid` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  KEY `cid` (`cid`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_config`
--

DROP TABLE IF EXISTS `res_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_config` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_config_installer`
--

DROP TABLE IF EXISTS `res_config_installer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_config_installer` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_config_settings`
--

DROP TABLE IF EXISTS `res_config_settings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_config_settings` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_country`
--

DROP TABLE IF EXISTS `res_country`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_country` (
  `id` int(11) NOT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `code` varchar(2) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `address_format` text DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `phone_code` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_country_group`
--

DROP TABLE IF EXISTS `res_country_group`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_country_group` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_country_group_pricelist_rel`
--

DROP TABLE IF EXISTS `res_country_group_pricelist_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_country_group_pricelist_rel` (
  `pricelist_id` int(11) NOT NULL,
  `res_country_group_id` int(11) NOT NULL,
  KEY `pricelist_id` (`pricelist_id`),
  KEY `res_country_group_id` (`res_country_group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_country_res_country_group_rel`
--

DROP TABLE IF EXISTS `res_country_res_country_group_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_country_res_country_group_rel` (
  `res_country_id` int(11) NOT NULL,
  `res_country_group_id` int(11) NOT NULL,
  KEY `res_country_group_id` (`res_country_group_id`),
  KEY `res_country_id` (`res_country_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_country_state`
--

DROP TABLE IF EXISTS `res_country_state`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_country_state` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `code` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `country_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_currency`
--

DROP TABLE IF EXISTS `res_currency`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_currency` (
  `id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `symbol` varchar(255) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `rounding` decimal(10,0) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `position` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_currency_rate`
--

DROP TABLE IF EXISTS `res_currency_rate`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_currency_rate` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `company_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `rate` decimal(10,0) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_font`
--

DROP TABLE IF EXISTS `res_font`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_font` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `family` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `mode` varchar(255) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `path` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_groups`
--

DROP TABLE IF EXISTS `res_groups`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_groups` (
  `id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `comment` text DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `color` int(11) DEFAULT NULL,
  `share` tinyint(1) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `category_id` int(11) DEFAULT NULL,
  `is_portal` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `category_id` (`category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_groups_action_rel`
--

DROP TABLE IF EXISTS `res_groups_action_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_groups_action_rel` (
  `uid` int(11) NOT NULL,
  `gid` int(11) NOT NULL,
  KEY `gid` (`gid`),
  KEY `uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_groups_implied_rel`
--

DROP TABLE IF EXISTS `res_groups_implied_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_groups_implied_rel` (
  `gid` int(11) NOT NULL,
  `hid` int(11) NOT NULL,
  KEY `gid` (`gid`),
  KEY `hid` (`hid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_groups_report_rel`
--

DROP TABLE IF EXISTS `res_groups_report_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_groups_report_rel` (
  `uid` int(11) NOT NULL,
  `gid` int(11) NOT NULL,
  KEY `gid` (`gid`),
  KEY `uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_groups_users_rel`
--

DROP TABLE IF EXISTS `res_groups_users_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_groups_users_rel` (
  `gid` int(11) NOT NULL,
  `uid` int(11) NOT NULL,
  KEY `gid` (`gid`),
  KEY `uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_lang`
--

DROP TABLE IF EXISTS `res_lang`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_lang` (
  `id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `code` varchar(255) NOT NULL,
  `date_format` varchar(255) NOT NULL,
  `direction` varchar(255) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `thousands_sep` varchar(255) DEFAULT NULL,
  `translatable` tinyint(1) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `time_format` varchar(255) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `decimal_point` varchar(255) NOT NULL,
  `active` tinyint(1) DEFAULT NULL,
  `iso_code` varchar(255) DEFAULT NULL,
  `grouping` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_partner`
--

DROP TABLE IF EXISTS `res_partner`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_partner` (
  `id` int(11) NOT NULL,
  `name` varchar(255) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `comment` text DEFAULT NULL,
  `website` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `color` int(11) DEFAULT NULL,
  `active` tinyint(1) DEFAULT NULL,
  `street` varchar(255) DEFAULT NULL,
  `supplier` tinyint(1) DEFAULT NULL,
  `city` varchar(255) DEFAULT NULL,
  `display_name` varchar(255) DEFAULT NULL,
  `zip` varchar(255) DEFAULT NULL,
  `title` int(11) DEFAULT NULL,
  `country_id` int(11) DEFAULT NULL,
  `commercial_company_name` varchar(255) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `company_name` varchar(255) DEFAULT NULL,
  `employee` tinyint(1) DEFAULT NULL,
  `ref` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `is_company` tinyint(1) DEFAULT NULL,
  `function` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `fax` varchar(255) DEFAULT NULL,
  `street2` varchar(255) DEFAULT NULL,
  `barcode` varchar(255) DEFAULT NULL,
  `phone` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date` date DEFAULT NULL,
  `tz` varchar(255) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `customer` tinyint(1) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `credit_limit` double DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `mobile` varchar(255) DEFAULT NULL,
  `type` varchar(255) DEFAULT NULL,
  `partner_share` tinyint(1) DEFAULT NULL,
  `vat` varchar(255) DEFAULT NULL,
  `state_id` int(11) DEFAULT NULL,
  `commercial_partner_id` int(11) DEFAULT NULL,
  `notify_email` varchar(255) NOT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `opt_out` tinyint(1) DEFAULT NULL,
  `message_bounce` int(11) DEFAULT NULL,
  `signup_type` varchar(255) DEFAULT NULL,
  `signup_expiration` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `signup_token` varchar(255) DEFAULT NULL,
  `debit_limit` decimal(10,0) DEFAULT NULL,
  `last_time_entries_checked` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `invoice_warn_msg` text DEFAULT NULL,
  `invoice_warn` varchar(255) NOT NULL,
  `team_id` int(11) DEFAULT NULL,
  `sale_warn_msg` text DEFAULT NULL,
  `sale_warn` varchar(255) NOT NULL,
  `picking_warn` varchar(255) NOT NULL,
  `picking_warn_msg` text DEFAULT NULL,
  `purchase_warn` varchar(255) DEFAULT NULL,
  `purchase_warn_msg` text DEFAULT NULL,
  `hair_color` int(11) DEFAULT NULL,
  `father_fourth_name` varchar(255) DEFAULT NULL,
  `service_dist_id` int(11) DEFAULT NULL,
  `mother_firsrt_name` varchar(255) DEFAULT NULL,
  `second_name` varchar(255) DEFAULT NULL,
  `mother_third_name` varchar(255) DEFAULT NULL,
  `gender` varchar(255) DEFAULT NULL,
  `enroll_loc_id` int(11) DEFAULT NULL,
  `marital` varchar(255) DEFAULT NULL,
  `living` varchar(255) DEFAULT NULL,
  `father_second_name` varchar(255) DEFAULT NULL,
  `occupation` varchar(255) DEFAULT NULL,
  `post_code` varchar(255) DEFAULT NULL,
  `pickup_loc_id` int(11) DEFAULT NULL,
  `naturalization_id` int(11) DEFAULT NULL,
  `eye_color` int(11) DEFAULT NULL,
  `legacy_ref_no` int(11) DEFAULT NULL,
  `region` int(11) DEFAULT NULL,
  `father_firsrt_name` varchar(255) DEFAULT NULL,
  `third_name` varchar(255) DEFAULT NULL,
  `height` double DEFAULT NULL,
  `pob` varchar(255) DEFAULT NULL,
  `weight` double DEFAULT NULL,
  `district` int(11) DEFAULT NULL,
  `mother_second_name` varchar(255) DEFAULT NULL,
  `father_third_name` varchar(255) DEFAULT NULL,
  `fourth_name` varchar(255) DEFAULT NULL,
  `dob` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `is_family_head` tinyint(1) DEFAULT NULL,
  `can_vote` varchar(255) DEFAULT NULL,
  `mother_fourth_name` varchar(255) DEFAULT NULL,
  `ctype` varchar(255) DEFAULT NULL,
  `calendar_last_notif_ack` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `business_name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `commercial_partner_id` (`commercial_partner_id`),
  KEY `company_id` (`company_id`),
  KEY `date` (`date`),
  KEY `display_name` (`display_name`),
  KEY `name` (`name`),
  KEY `parent_id` (`parent_id`),
  KEY `ref` (`ref`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_partner_bank`
--

DROP TABLE IF EXISTS `res_partner_bank`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_partner_bank` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `sequence` int(11) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `bank_id` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `sanitized_acc_number` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `acc_number` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `partner_id` (`partner_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_partner_category`
--

DROP TABLE IF EXISTS `res_partner_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_partner_category` (
  `id` int(11) NOT NULL,
  `parent_left` int(11) DEFAULT NULL,
  `parent_right` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `color` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `parent_id` (`parent_id`),
  KEY `parent_left` (`parent_left`),
  KEY `parent_right` (`parent_right`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_partner_res_partner_category_rel`
--

DROP TABLE IF EXISTS `res_partner_res_partner_category_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_partner_res_partner_category_rel` (
  `category_id` int(11) NOT NULL,
  `partner_id` int(11) NOT NULL,
  KEY `category_id` (`category_id`),
  KEY `partner_id` (`partner_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_partner_title`
--

DROP TABLE IF EXISTS `res_partner_title`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_partner_title` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `shortcut` varchar(255) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_request_link`
--

DROP TABLE IF EXISTS `res_request_link`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_request_link` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `object` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `priority` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_users`
--

DROP TABLE IF EXISTS `res_users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_users` (
  `id` int(11) NOT NULL,
  `active` tinyint(1) DEFAULT 1,
  `login` varchar(255) NOT NULL,
  `password` varchar(255) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `partner_id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `share` tinyint(1) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `action_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `signature` text DEFAULT NULL,
  `password_crypt` varchar(255) DEFAULT NULL,
  `alias_id` int(11) DEFAULT NULL,
  `sale_team_id` int(11) DEFAULT NULL,
  `location_id` int(11) DEFAULT NULL,
  `developer_account` tinyint(1) DEFAULT NULL,
  `client_api_key` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_users_log`
--

DROP TABLE IF EXISTS `res_users_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_users_log` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `resource_calendar`
--

DROP TABLE IF EXISTS `resource_calendar`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `resource_calendar` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `manager` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `uom_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `resource_calendar_attendance`
--

DROP TABLE IF EXISTS `resource_calendar_attendance`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `resource_calendar_attendance` (
  `id` int(11) NOT NULL,
  `dayofweek` varchar(255) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `date_from` date DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `hour_from` double NOT NULL,
  `hour_to` double NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_to` date DEFAULT NULL,
  `calendar_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `dayofweek` (`dayofweek`),
  KEY `hour_from` (`hour_from`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `resource_calendar_leaves`
--

DROP TABLE IF EXISTS `resource_calendar_leaves`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `resource_calendar_leaves` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `resource_id` int(11) DEFAULT NULL,
  `date_from` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `company_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_to` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `calendar_id` int(11) DEFAULT NULL,
  `holiday_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `resource_resource`
--

DROP TABLE IF EXISTS `resource_resource`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `resource_resource` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `time_efficiency` double NOT NULL,
  `code` varchar(255) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `calendar_id` int(11) DEFAULT NULL,
  `resource_type` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rta_payment_report`
--

DROP TABLE IF EXISTS `rta_payment_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rta_payment_report` (
  `district` varchar(255) DEFAULT NULL,
  `feetype` varchar(255) DEFAULT NULL,
  `paymentyear` int(11) DEFAULT NULL,
  `monthnumber` int(11) DEFAULT NULL,
  `alphamonth` text DEFAULT NULL,
  `paymentdate` date DEFAULT NULL,
  `paymentweek` int(11) DEFAULT NULL,
  `paymentquarter` int(11) DEFAULT NULL,
  `amount` decimal(10,0) DEFAULT NULL,
  `count` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rta_price`
--

DROP TABLE IF EXISTS `rta_price`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rta_price` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `fee` double DEFAULT NULL,
  `product_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `frequency` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `sub_categ` int(11) NOT NULL,
  `pl` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rta_product_report`
--

DROP TABLE IF EXISTS `rta_product_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rta_product_report` (
  `district` varchar(255) DEFAULT NULL,
  `feetype` varchar(255) DEFAULT NULL,
  `paymentmethod` varchar(255) DEFAULT NULL,
  `anumber` text DEFAULT NULL,
  `smsconfirmationnumber` varchar(255) DEFAULT NULL,
  `taxexempt` tinyint(1) DEFAULT NULL,
  `taxexemptamount` double DEFAULT NULL,
  `paymentdate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `transactiondate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `amount` decimal(10,0) DEFAULT NULL,
  `count` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rule_group_rel`
--

DROP TABLE IF EXISTS `rule_group_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rule_group_rel` (
  `rule_group_id` int(11) NOT NULL,
  `group_id` int(11) NOT NULL,
  KEY `group_id` (`group_id`),
  KEY `rule_group_id` (`rule_group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sale_advance_payment_inv`
--

DROP TABLE IF EXISTS `sale_advance_payment_inv`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sale_advance_payment_inv` (
  `id` int(11) NOT NULL,
  `count` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `advance_payment_method` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `amount` decimal(10,0) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `deposit_account_id` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sale_config_settings`
--

DROP TABLE IF EXISTS `sale_config_settings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sale_config_settings` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `sale_show_tax` varchar(255) NOT NULL,
  `deposit_product_id_setting` int(11) DEFAULT NULL,
  `auto_done_setting` int(11) DEFAULT NULL,
  `group_display_incoterm` int(11) DEFAULT NULL,
  `group_pricelist_item` tinyint(1) DEFAULT NULL,
  `group_product_variant` int(11) DEFAULT NULL,
  `group_warning_sale` int(11) DEFAULT NULL,
  `module_website_quote` int(11) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `default_invoice_policy` varchar(255) DEFAULT NULL,
  `group_sale_layout` int(11) DEFAULT NULL,
  `group_product_pricelist` tinyint(1) DEFAULT NULL,
  `group_uom` int(11) DEFAULT NULL,
  `group_sale_pricelist` tinyint(1) DEFAULT NULL,
  `group_discount_per_so_line` int(11) DEFAULT NULL,
  `module_sale_margin` int(11) DEFAULT NULL,
  `sale_pricelist_setting` varchar(255) NOT NULL,
  `module_website_sale_digital` tinyint(1) DEFAULT NULL,
  `group_show_price_total` tinyint(1) DEFAULT NULL,
  `group_show_price_subtotal` tinyint(1) DEFAULT NULL,
  `group_sale_delivery_address` int(11) DEFAULT NULL,
  `module_sale_contract` tinyint(1) DEFAULT NULL,
  `module_sale_order_dates` int(11) DEFAULT NULL,
  `module_delivery` int(11) DEFAULT NULL,
  `group_mrp_properties` int(11) DEFAULT NULL,
  `group_route_so_lines` int(11) DEFAULT NULL,
  `default_picking_policy` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sale_layout_category`
--

DROP TABLE IF EXISTS `sale_layout_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sale_layout_category` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `sequence` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `pagebreak` tinyint(1) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `subtotal` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sale_order`
--

DROP TABLE IF EXISTS `sale_order`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sale_order` (
  `id` int(11) NOT NULL,
  `origin` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `team_id` int(11) DEFAULT NULL,
  `client_order_ref` varchar(255) DEFAULT NULL,
  `date_order` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `partner_id` int(11) NOT NULL,
  `note` text DEFAULT NULL,
  `procurement_group_id` int(11) DEFAULT NULL,
  `amount_untaxed` decimal(10,0) DEFAULT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `company_id` int(11) DEFAULT NULL,
  `amount_tax` decimal(10,0) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `pricelist_id` int(11) NOT NULL,
  `project_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `confirmation_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `validity_date` date DEFAULT NULL,
  `payment_term_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `partner_invoice_id` int(11) NOT NULL,
  `fiscal_position_id` int(11) DEFAULT NULL,
  `amount_total` decimal(10,0) DEFAULT NULL,
  `invoice_status` varchar(255) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `partner_shipping_id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `picking_policy` varchar(255) NOT NULL,
  `incoterm` int(11) DEFAULT NULL,
  `warehouse_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `confirmation_date` (`confirmation_date`),
  KEY `create_date` (`create_date`),
  KEY `date_order` (`date_order`),
  KEY `name` (`name`),
  KEY `partner_id` (`partner_id`),
  KEY `state` (`state`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sale_order_line`
--

DROP TABLE IF EXISTS `sale_order_line`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sale_order_line` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `product_uom` int(11) NOT NULL,
  `price_unit` decimal(10,0) NOT NULL,
  `product_uom_qty` decimal(10,0) NOT NULL,
  `price_subtotal` decimal(10,0) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `price_reduce_taxexcl` decimal(10,0) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `price_tax` decimal(10,0) DEFAULT NULL,
  `qty_to_invoice` decimal(10,0) DEFAULT NULL,
  `customer_lead` double NOT NULL,
  `layout_category_sequence` int(11) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `order_partner_id` int(11) DEFAULT NULL,
  `order_id` int(11) NOT NULL,
  `qty_invoiced` decimal(10,0) DEFAULT NULL,
  `sequence` int(11) DEFAULT NULL,
  `discount` decimal(10,0) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `price_reduce` decimal(10,0) DEFAULT NULL,
  `qty_delivered` decimal(10,0) DEFAULT NULL,
  `layout_category_id` int(11) DEFAULT NULL,
  `product_id` int(11) NOT NULL,
  `price_reduce_taxinc` decimal(10,0) DEFAULT NULL,
  `price_total` decimal(10,0) DEFAULT NULL,
  `invoice_status` varchar(255) DEFAULT NULL,
  `name` text NOT NULL,
  `salesman_id` int(11) DEFAULT NULL,
  `product_packaging` int(11) DEFAULT NULL,
  `route_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `order_id` (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sale_order_line_invoice_rel`
--

DROP TABLE IF EXISTS `sale_order_line_invoice_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sale_order_line_invoice_rel` (
  `invoice_line_id` int(11) NOT NULL,
  `order_line_id` int(11) NOT NULL,
  KEY `invoice_line_id` (`invoice_line_id`),
  KEY `order_line_id` (`order_line_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_backorder_confirmation`
--

DROP TABLE IF EXISTS `stock_backorder_confirmation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_backorder_confirmation` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `pick_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_change_product_qty`
--

DROP TABLE IF EXISTS `stock_change_product_qty`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_change_product_qty` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `product_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `product_tmpl_id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `lot_id` int(11) DEFAULT NULL,
  `new_quantity` decimal(10,0) NOT NULL,
  `location_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_change_standard_price`
--

DROP TABLE IF EXISTS `stock_change_standard_price`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_change_standard_price` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `new_price` decimal(10,0) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `counterpart_account_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_config_settings`
--

DROP TABLE IF EXISTS `stock_config_settings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_config_settings` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `module_stock_calendar` int(11) DEFAULT NULL,
  `module_stock_barcode` tinyint(1) DEFAULT NULL,
  `module_stock_picking_wave` int(11) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `group_stock_tracking_lot` int(11) DEFAULT NULL,
  `group_product_variant` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `group_warning_stock` int(11) DEFAULT NULL,
  `module_delivery_temando` tinyint(1) DEFAULT NULL,
  `group_stock_production_lot` int(11) DEFAULT NULL,
  `group_stock_multi_warehouses` tinyint(1) DEFAULT NULL,
  `group_stock_tracking_owner` int(11) DEFAULT NULL,
  `module_delivery_usps` tinyint(1) DEFAULT NULL,
  `module_stock_dropshipping` int(11) DEFAULT NULL,
  `module_quality` tinyint(1) DEFAULT NULL,
  `module_procurement_jit` int(11) DEFAULT NULL,
  `group_stock_packaging` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `module_delivery_fedex` tinyint(1) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `decimal_precision` int(11) DEFAULT NULL,
  `group_uom` int(11) DEFAULT NULL,
  `warehouse_and_location_usage_level` int(11) DEFAULT NULL,
  `module_delivery_ups` tinyint(1) DEFAULT NULL,
  `module_product_expiry` int(11) DEFAULT NULL,
  `group_stock_multi_locations` tinyint(1) DEFAULT NULL,
  `group_stock_adv_location` int(11) DEFAULT NULL,
  `module_delivery_dhl` tinyint(1) DEFAULT NULL,
  `module_stock_landed_costs` int(11) DEFAULT NULL,
  `group_stock_inventory_valuation` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_fixed_putaway_strat`
--

DROP TABLE IF EXISTS `stock_fixed_putaway_strat`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_fixed_putaway_strat` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `fixed_location_id` int(11) NOT NULL,
  `putaway_id` int(11) NOT NULL,
  `sequence` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `category_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_immediate_transfer`
--

DROP TABLE IF EXISTS `stock_immediate_transfer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_immediate_transfer` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `pick_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_incoterms`
--

DROP TABLE IF EXISTS `stock_incoterms`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_incoterms` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `code` varchar(3) NOT NULL,
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_inventory`
--

DROP TABLE IF EXISTS `stock_inventory`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_inventory` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `exhausted` tinyint(1) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `package_id` int(11) DEFAULT NULL,
  `lot_id` int(11) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `location_id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `state` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `product_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `filter` varchar(255) NOT NULL,
  `category_id` int(11) DEFAULT NULL,
  `accounting_date` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`),
  KEY `state` (`state`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_inventory_line`
--

DROP TABLE IF EXISTS `stock_inventory_line`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_inventory_line` (
  `id` int(11) NOT NULL,
  `theoretical_qty` decimal(10,0) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `package_id` int(11) DEFAULT NULL,
  `product_qty` decimal(10,0) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `product_code` varchar(255) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `location_name` varchar(255) DEFAULT NULL,
  `location_id` int(11) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `product_name` varchar(255) DEFAULT NULL,
  `prodlot_name` varchar(255) DEFAULT NULL,
  `inventory_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `product_id` int(11) NOT NULL,
  `product_uom_id` int(11) NOT NULL,
  `prod_lot_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`),
  KEY `inventory_id` (`inventory_id`),
  KEY `location_id` (`location_id`),
  KEY `package_id` (`package_id`),
  KEY `product_id` (`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_location`
--

DROP TABLE IF EXISTS `stock_location`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_location` (
  `id` int(11) NOT NULL,
  `parent_left` int(11) DEFAULT NULL,
  `parent_right` int(11) DEFAULT NULL,
  `comment` text DEFAULT NULL,
  `putaway_strategy_id` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `removal_strategy_id` int(11) DEFAULT NULL,
  `scrap_location` tinyint(1) DEFAULT NULL,
  `location_id` int(11) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `complete_name` varchar(255) DEFAULT NULL,
  `usage` varchar(255) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `barcode` varchar(255) DEFAULT NULL,
  `posz` int(11) DEFAULT NULL,
  `posx` int(11) DEFAULT NULL,
  `posy` int(11) DEFAULT NULL,
  `active` tinyint(1) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `return_location` tinyint(1) DEFAULT NULL,
  `valuation_in_account_id` int(11) DEFAULT NULL,
  `valuation_out_account_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`),
  KEY `location_id` (`location_id`),
  KEY `parent_left` (`parent_left`),
  KEY `parent_right` (`parent_right`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_location_path`
--

DROP TABLE IF EXISTS `stock_location_path`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_location_path` (
  `id` int(11) NOT NULL,
  `location_from_id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `route_sequence` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `picking_type_id` int(11) NOT NULL,
  `auto` varchar(255) NOT NULL,
  `sequence` int(11) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `delay` int(11) DEFAULT NULL,
  `route_id` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `location_dest_id` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `propagate` tinyint(1) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `auto` (`auto`),
  KEY `company_id` (`company_id`),
  KEY `location_dest_id` (`location_dest_id`),
  KEY `location_from_id` (`location_from_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_location_route`
--

DROP TABLE IF EXISTS `stock_location_route`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_location_route` (
  `id` int(11) NOT NULL,
  `supplier_wh_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `sequence` int(11) DEFAULT NULL,
  `warehouse_selectable` tinyint(1) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `company_id` int(11) DEFAULT NULL,
  `supplied_wh_id` int(11) DEFAULT NULL,
  `product_selectable` tinyint(1) DEFAULT NULL,
  `product_categ_selectable` tinyint(1) DEFAULT NULL,
  `active` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `sale_selectable` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_location_route_categ`
--

DROP TABLE IF EXISTS `stock_location_route_categ`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_location_route_categ` (
  `categ_id` int(11) NOT NULL,
  `route_id` int(11) NOT NULL,
  KEY `categ_id` (`categ_id`),
  KEY `route_id` (`route_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_location_route_move`
--

DROP TABLE IF EXISTS `stock_location_route_move`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_location_route_move` (
  `move_id` int(11) NOT NULL,
  `route_id` int(11) NOT NULL,
  KEY `move_id` (`move_id`),
  KEY `route_id` (`route_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_location_route_procurement`
--

DROP TABLE IF EXISTS `stock_location_route_procurement`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_location_route_procurement` (
  `procurement_id` int(11) NOT NULL,
  `route_id` int(11) NOT NULL,
  KEY `procurement_id` (`procurement_id`),
  KEY `route_id` (`route_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_move`
--

DROP TABLE IF EXISTS `stock_move`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_move` (
  `id` int(11) NOT NULL,
  `origin` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `restrict_partner_id` int(11) DEFAULT NULL,
  `product_uom` int(11) NOT NULL,
  `price_unit` double DEFAULT NULL,
  `product_uom_qty` decimal(10,0) NOT NULL,
  `procure_method` varchar(255) NOT NULL,
  `product_qty` decimal(10,0) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `priority` varchar(255) DEFAULT NULL,
  `picking_type_id` int(11) DEFAULT NULL,
  `location_id` int(11) NOT NULL,
  `sequence` int(11) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `note` text DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `ordered_qty` decimal(10,0) DEFAULT NULL,
  `origin_returned_move_id` int(11) DEFAULT NULL,
  `product_packaging` int(11) DEFAULT NULL,
  `restrict_lot_id` int(11) DEFAULT NULL,
  `date_expected` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `procurement_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `inventory_id` int(11) DEFAULT NULL,
  `partially_available` tinyint(1) DEFAULT NULL,
  `propagate` tinyint(1) DEFAULT NULL,
  `move_dest_id` int(11) DEFAULT NULL,
  `date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `scrapped` tinyint(1) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `product_id` int(11) NOT NULL,
  `push_rule_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `split_from` int(11) DEFAULT NULL,
  `rule_id` int(11) DEFAULT NULL,
  `location_dest_id` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `group_id` int(11) DEFAULT NULL,
  `picking_id` int(11) DEFAULT NULL,
  `purchase_line_id` int(11) DEFAULT NULL,
  `to_refund_so` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`),
  KEY `create_date` (`create_date`),
  KEY `date_expected` (`date_expected`),
  KEY `date` (`date`),
  KEY `location_dest_id` (`location_dest_id`),
  KEY `location_id` (`location_id`),
  KEY `move_dest_id` (`move_dest_id`),
  KEY `name` (`name`),
  KEY `picking_id` (`picking_id`),
  KEY `product_id` (`product_id`),
  KEY `product_id_2` (`product_id`,`location_id`,`location_dest_id`,`company_id`,`state`),
  KEY `purchase_line_id` (`purchase_line_id`),
  KEY `state` (`state`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_move_operation_link`
--

DROP TABLE IF EXISTS `stock_move_operation_link`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_move_operation_link` (
  `id` int(11) NOT NULL,
  `reserved_quant_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `operation_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `move_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_pack_operation`
--

DROP TABLE IF EXISTS `stock_pack_operation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_pack_operation` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `result_package_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `package_id` int(11) DEFAULT NULL,
  `product_qty` decimal(10,0) NOT NULL,
  `location_id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `ordered_qty` decimal(10,0) DEFAULT NULL,
  `qty_done` decimal(10,0) DEFAULT NULL,
  `owner_id` int(11) DEFAULT NULL,
  `fresh_record` tinyint(1) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `product_id` int(11) DEFAULT NULL,
  `product_uom_id` int(11) DEFAULT NULL,
  `location_dest_id` int(11) NOT NULL,
  `picking_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_pack_operation_lot`
--

DROP TABLE IF EXISTS `stock_pack_operation_lot`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_pack_operation_lot` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `lot_name` varchar(255) DEFAULT NULL,
  `qty_todo` double DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `operation_id` int(11) DEFAULT NULL,
  `lot_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_picking`
--

DROP TABLE IF EXISTS `stock_picking`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_picking` (
  `id` int(11) NOT NULL,
  `origin` varchar(255) DEFAULT NULL,
  `date_done` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `recompute_pack_op` tinyint(1) DEFAULT NULL,
  `launch_pack_operations` tinyint(1) DEFAULT NULL,
  `location_id` int(11) NOT NULL,
  `priority` varchar(255) DEFAULT NULL,
  `picking_type_id` int(11) NOT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `move_type` varchar(255) NOT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `company_id` int(11) NOT NULL,
  `note` text DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `owner_id` int(11) DEFAULT NULL,
  `backorder_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `min_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `printed` tinyint(1) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `group_id` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `location_dest_id` int(11) NOT NULL,
  `max_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `backorder_id` (`backorder_id`),
  KEY `company_id` (`company_id`),
  KEY `date` (`date`),
  KEY `max_date` (`max_date`),
  KEY `min_date` (`min_date`),
  KEY `name` (`name`),
  KEY `origin` (`origin`),
  KEY `priority` (`priority`),
  KEY `state` (`state`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_picking_type`
--

DROP TABLE IF EXISTS `stock_picking_type`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_picking_type` (
  `id` int(11) NOT NULL,
  `code` varchar(255) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `sequence` int(11) DEFAULT NULL,
  `color` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `use_create_lots` tinyint(1) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `default_location_dest_id` int(11) DEFAULT NULL,
  `show_entire_packs` tinyint(1) DEFAULT NULL,
  `barcode_nomenclature_id` int(11) DEFAULT NULL,
  `use_existing_lots` tinyint(1) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `sequence_id` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `return_picking_type_id` int(11) DEFAULT NULL,
  `default_location_src_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_production_lot`
--

DROP TABLE IF EXISTS `stock_production_lot`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_production_lot` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `message_last_post` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `ref` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `product_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `product_uom_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_quant`
--

DROP TABLE IF EXISTS `stock_quant`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_quant` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `qty` double NOT NULL,
  `propagated_from_id` int(11) DEFAULT NULL,
  `package_id` int(11) DEFAULT NULL,
  `cost` double DEFAULT NULL,
  `lot_id` int(11) DEFAULT NULL,
  `location_id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `reservation_id` int(11) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `owner_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `product_id` int(11) NOT NULL,
  `packaging_type_id` int(11) DEFAULT NULL,
  `negative_move_id` int(11) DEFAULT NULL,
  `in_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`),
  KEY `in_date` (`in_date`),
  KEY `location_id` (`location_id`),
  KEY `lot_id` (`lot_id`),
  KEY `owner_id` (`owner_id`),
  KEY `package_id` (`package_id`),
  KEY `product_id` (`product_id`),
  KEY `product_id_2` (`product_id`,`location_id`,`company_id`,`qty`,`in_date`,`reservation_id`),
  KEY `propagated_from_id` (`propagated_from_id`),
  KEY `qty` (`qty`),
  KEY `reservation_id` (`reservation_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_quant_move_rel`
--

DROP TABLE IF EXISTS `stock_quant_move_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_quant_move_rel` (
  `move_id` int(11) NOT NULL,
  `quant_id` int(11) NOT NULL,
  KEY `move_id` (`move_id`),
  KEY `quant_id` (`quant_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_quant_package`
--

DROP TABLE IF EXISTS `stock_quant_package`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_quant_package` (
  `id` int(11) NOT NULL,
  `parent_left` int(11) DEFAULT NULL,
  `parent_right` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `packaging_id` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `name` (`name`),
  KEY `packaging_id` (`packaging_id`),
  KEY `parent_left` (`parent_left`),
  KEY `parent_right` (`parent_right`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_return_picking`
--

DROP TABLE IF EXISTS `stock_return_picking`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_return_picking` (
  `id` int(11) NOT NULL,
  `move_dest_exists` tinyint(1) DEFAULT NULL,
  `original_location_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `parent_location_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `location_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_return_picking_line`
--

DROP TABLE IF EXISTS `stock_return_picking_line`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_return_picking_line` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `product_id` int(11) NOT NULL,
  `wizard_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `move_id` int(11) DEFAULT NULL,
  `quantity` decimal(10,0) NOT NULL,
  `to_refund_so` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_route_product`
--

DROP TABLE IF EXISTS `stock_route_product`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_route_product` (
  `product_id` int(11) NOT NULL,
  `route_id` int(11) NOT NULL,
  KEY `product_id` (`product_id`),
  KEY `route_id` (`route_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_route_warehouse`
--

DROP TABLE IF EXISTS `stock_route_warehouse`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_route_warehouse` (
  `route_id` int(11) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  KEY `route_id` (`route_id`),
  KEY `warehouse_id` (`warehouse_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_scrap`
--

DROP TABLE IF EXISTS `stock_scrap`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_scrap` (
  `id` int(11) NOT NULL,
  `origin` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `package_id` int(11) DEFAULT NULL,
  `scrap_qty` double NOT NULL,
  `lot_id` int(11) DEFAULT NULL,
  `location_id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `scrap_location_id` int(11) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `owner_id` int(11) DEFAULT NULL,
  `date_expected` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `move_id` int(11) DEFAULT NULL,
  `product_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `product_uom_id` int(11) NOT NULL,
  `picking_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_warehouse`
--

DROP TABLE IF EXISTS `stock_warehouse`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_warehouse` (
  `id` int(11) NOT NULL,
  `code` varchar(5) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `lot_stock_id` int(11) NOT NULL,
  `wh_pack_stock_loc_id` int(11) DEFAULT NULL,
  `reception_route_id` int(11) DEFAULT NULL,
  `pick_type_id` int(11) DEFAULT NULL,
  `crossdock_route_id` int(11) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `delivery_route_id` int(11) DEFAULT NULL,
  `wh_input_stock_loc_id` int(11) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `reception_steps` varchar(255) NOT NULL,
  `delivery_steps` varchar(255) NOT NULL,
  `view_location_id` int(11) NOT NULL,
  `wh_qc_stock_loc_id` int(11) DEFAULT NULL,
  `default_resupply_wh_id` int(11) DEFAULT NULL,
  `pack_type_id` int(11) DEFAULT NULL,
  `wh_output_stock_loc_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `mto_pull_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `in_type_id` int(11) DEFAULT NULL,
  `out_type_id` int(11) DEFAULT NULL,
  `int_type_id` int(11) DEFAULT NULL,
  `buy_pull_id` int(11) DEFAULT NULL,
  `buy_to_resupply` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`),
  KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_warehouse_orderpoint`
--

DROP TABLE IF EXISTS `stock_warehouse_orderpoint`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_warehouse_orderpoint` (
  `id` int(11) NOT NULL,
  `product_max_qty` decimal(10,0) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `qty_multiple` decimal(10,0) NOT NULL,
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `warehouse_id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `lead_days` int(11) DEFAULT NULL,
  `lead_type` varchar(255) NOT NULL,
  `product_min_qty` decimal(10,0) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `group_id` int(11) DEFAULT NULL,
  `location_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `stock_wh_resupply_table`
--

DROP TABLE IF EXISTS `stock_wh_resupply_table`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_wh_resupply_table` (
  `supplied_wh_id` int(11) NOT NULL,
  `supplier_wh_id` int(11) NOT NULL,
  KEY `supplied_wh_id` (`supplied_wh_id`),
  KEY `supplier_wh_id` (`supplier_wh_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sub_categ`
--

DROP TABLE IF EXISTS `sub_categ`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sub_categ` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `summary_dept_rel`
--

DROP TABLE IF EXISTS `summary_dept_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `summary_dept_rel` (
  `sum_id` int(11) NOT NULL,
  `dept_id` int(11) NOT NULL,
  KEY `dept_id` (`dept_id`),
  KEY `sum_id` (`sum_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `summary_emp_rel`
--

DROP TABLE IF EXISTS `summary_emp_rel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `summary_emp_rel` (
  `sum_id` int(11) NOT NULL,
  `emp_id` int(11) NOT NULL,
  KEY `emp_id` (`emp_id`),
  KEY `sum_id` (`sum_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tax`
--

DROP TABLE IF EXISTS `tax`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tax` (
  `transaction_id` text NOT NULL,
  `tax_number` text DEFAULT NULL,
  `expiration_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `valid_from` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `valid_until_month` text DEFAULT NULL,
  `valid_until_year` bigint(20) DEFAULT NULL,
  `color_code` text DEFAULT NULL,
  `id` int(11) NOT NULL,
  `valid_until_month_no` int(11) DEFAULT NULL,
  `quarter` varchar(255) DEFAULT NULL,
  `invoice_date` date DEFAULT NULL,
  `vehicle_id` varchar(255) DEFAULT NULL,
  `period` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tax22`
--

DROP TABLE IF EXISTS `tax22`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tax22` (
  `transaction_id` text NOT NULL,
  `tax_number` text DEFAULT NULL,
  `expiration_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `valid_from` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `valid_until_month` text DEFAULT NULL,
  `valid_until_year` bigint(20) DEFAULT NULL,
  `color_code` text DEFAULT NULL,
  `id` int(11) NOT NULL,
  `valid_until_month_no` int(11) DEFAULT NULL,
  `quarter` varchar(255) DEFAULT NULL,
  `invoice_date` date DEFAULT NULL,
  `vehicle_id` varchar(255) DEFAULT NULL,
  `period` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tax_adjustments_wizard`
--

DROP TABLE IF EXISTS `tax_adjustments_wizard`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tax_adjustments_wizard` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `reason` varchar(255) NOT NULL,
  `credit_account_id` int(11) NOT NULL,
  `journal_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `company_currency_id` int(11) DEFAULT NULL,
  `amount` decimal(10,0) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date` date NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `debit_account_id` int(11) NOT NULL,
  `tax_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tax_clean`
--

DROP TABLE IF EXISTS `tax_clean`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tax_clean` (
  `id` int(11) NOT NULL,
  `valid_until_year` int(11) DEFAULT NULL,
  `quarter` int(11) DEFAULT NULL,
  `color_code` varchar(100) DEFAULT NULL,
  `legacy_tax_number` varchar(100) DEFAULT NULL,
  `transaction_id` varchar(100) DEFAULT NULL,
  `vehicle_id` varchar(100) DEFAULT NULL,
  `odoo_vehicle_id` int(11) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `amount_paid` decimal(20,2) DEFAULT NULL,
  `service_fee_amount_paid` decimal(20,2) DEFAULT NULL,
  `receipt_number` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tax_clean22`
--

DROP TABLE IF EXISTS `tax_clean22`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tax_clean22` (
  `id` int(11) NOT NULL,
  `valid_until_year` int(11) DEFAULT NULL,
  `quarter` int(11) DEFAULT NULL,
  `color_code` varchar(100) DEFAULT NULL,
  `legacy_tax_number` varchar(100) DEFAULT NULL,
  `transaction_id` varchar(100) DEFAULT NULL,
  `vehicle_id` varchar(100) DEFAULT NULL,
  `odoo_vehicle_id` int(11) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `amount_paid` decimal(20,2) DEFAULT NULL,
  `service_fee_amount_paid` decimal(20,2) DEFAULT NULL,
  `receipt_number` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tax_export`
--

DROP TABLE IF EXISTS `tax_export`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tax_export` (
  `id` int(11) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `quarterly_tax_id` int(11) DEFAULT NULL,
  `odoo_vehicle_id` int(11) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `amount_paid` decimal(20,2) DEFAULT NULL,
  `service_fee_amount_paid` decimal(20,2) DEFAULT NULL,
  `receipt_number` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tax_quarter_color`
--

DROP TABLE IF EXISTS `tax_quarter_color`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tax_quarter_color` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `color_code` varchar(255) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `year` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `quarter` varchar(255) NOT NULL,
  `date_of_last_day` date DEFAULT NULL,
  `date_of_first_day` date DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tax_transpose`
--

DROP TABLE IF EXISTS `tax_transpose`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tax_transpose` (
  `invoice_id` int(11) DEFAULT NULL,
  `Tax Gov Fee` decimal(10,0) DEFAULT NULL,
  `Tax Service Fee` decimal(10,0) DEFAULT NULL,
  KEY `invoice_id` (`invoice_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `title`
--

DROP TABLE IF EXISTS `title`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `title` (
  `transaction_id` text NOT NULL,
  `title_number` text DEFAULT NULL,
  `expiration_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `transfer_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `previous_owner_id` text DEFAULT NULL,
  `title_transfer` varchar(255) DEFAULT 'N',
  `classification` text DEFAULT NULL,
  `luby` text DEFAULT NULL,
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `title_document_type` text DEFAULT NULL,
  `id` int(11) NOT NULL,
  `invoice_date` date DEFAULT NULL,
  `vehicle_id` varchar(255) DEFAULT NULL,
  `period` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `title22`
--

DROP TABLE IF EXISTS `title22`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `title22` (
  `transaction_id` text NOT NULL,
  `title_number` text DEFAULT NULL,
  `expiration_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `transfer_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `previous_owner_id` text DEFAULT NULL,
  `title_transfer` varchar(255) DEFAULT 'N',
  `classification` text DEFAULT NULL,
  `luby` text DEFAULT NULL,
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `title_document_type` text DEFAULT NULL,
  `id` int(11) NOT NULL,
  `invoice_date` date DEFAULT NULL,
  `vehicle_id` varchar(255) DEFAULT NULL,
  `period` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `title_export`
--

DROP TABLE IF EXISTS `title_export`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `title_export` (
  `?column?` text DEFAULT NULL,
  `id` int(11) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `vehicle_id` int(11) DEFAULT NULL,
  `amount_paid` decimal(20,2) DEFAULT NULL,
  `service_fee_amount_paid` decimal(20,2) DEFAULT NULL,
  `receipt_number` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `title_export22`
--

DROP TABLE IF EXISTS `title_export22`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `title_export22` (
  `?column?` text DEFAULT NULL,
  `id` int(11) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `vehicle_id` int(11) DEFAULT NULL,
  `amount_paid` decimal(20,2) DEFAULT NULL,
  `service_fee_amount_paid` decimal(20,2) DEFAULT NULL,
  `receipt_number` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `title_export_1`
--

DROP TABLE IF EXISTS `title_export_1`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `title_export_1` (
  `?column?` text DEFAULT NULL,
  `id` int(11) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `vehicle_id` int(11) DEFAULT NULL,
  `amount_paid` decimal(20,2) DEFAULT NULL,
  `service_fee_amount_paid` decimal(20,2) DEFAULT NULL,
  `receipt_number` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `title_export_2`
--

DROP TABLE IF EXISTS `title_export_2`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `title_export_2` (
  `?column?` text DEFAULT NULL,
  `id` int(11) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `vehicle_id` int(11) DEFAULT NULL,
  `amount_paid` decimal(20,2) DEFAULT NULL,
  `service_fee_amount_paid` decimal(20,2) DEFAULT NULL,
  `receipt_number` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `title_export_3`
--

DROP TABLE IF EXISTS `title_export_3`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `title_export_3` (
  `?column?` text DEFAULT NULL,
  `id` int(11) DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `vehicle_id` int(11) DEFAULT NULL,
  `amount_paid` decimal(20,2) DEFAULT NULL,
  `service_fee_amount_paid` decimal(20,2) DEFAULT NULL,
  `receipt_number` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `title_invoice_map`
--

DROP TABLE IF EXISTS `title_invoice_map`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `title_invoice_map` (
  `customer_vehicle_ownership_id` int(11) DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `transaction`
--

DROP TABLE IF EXISTS `transaction`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `transaction` (
  `transaction_id` text NOT NULL,
  `product_type` text NOT NULL,
  `statusupdatedby` text NOT NULL,
  `applicationdate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `processdate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `status` text NOT NULL,
  `comments` text DEFAULT NULL,
  `verification_officer` text DEFAULT NULL,
  `authorization_number` text DEFAULT NULL,
  `vehicle_id` text DEFAULT NULL,
  `customer_id` text NOT NULL,
  `invoice_number` text DEFAULT NULL,
  `location_id` text NOT NULL,
  `reject_reason` text DEFAULT NULL,
  `delivered_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `payment_location` varchar(20) DEFAULT NULL,
  `id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `transaction22`
--

DROP TABLE IF EXISTS `transaction22`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `transaction22` (
  `transaction_id` text NOT NULL,
  `product_type` text NOT NULL,
  `statusupdatedby` text NOT NULL,
  `applicationdate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `processdate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `status` text NOT NULL,
  `comments` text DEFAULT NULL,
  `verification_officer` text DEFAULT NULL,
  `authorization_number` text DEFAULT NULL,
  `vehicle_id` text DEFAULT NULL,
  `customer_id` text NOT NULL,
  `invoice_number` text DEFAULT NULL,
  `location_id` text NOT NULL,
  `reject_reason` text DEFAULT NULL,
  `delivered_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `payment_location` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `update_odometer`
--

DROP TABLE IF EXISTS `update_odometer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `update_odometer` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `odometer` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `update_rfid`
--

DROP TABLE IF EXISTS `update_rfid`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `update_rfid` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `rfid` varchar(255) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `validate_account_move`
--

DROP TABLE IF EXISTS `validate_account_move`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `validate_account_move` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `vehicle`
--

DROP TABLE IF EXISTS `vehicle`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vehicle` (
  `vehicle_id` text NOT NULL,
  `license_plate` text NOT NULL,
  `vin` text NOT NULL,
  `year` bigint(20) DEFAULT NULL,
  `make` text NOT NULL,
  `model` text DEFAULT NULL,
  `type` text DEFAULT NULL,
  `color` text DEFAULT NULL,
  `odometer` text NOT NULL,
  `title` text DEFAULT NULL,
  `taxbase` text DEFAULT NULL,
  `purchase_price` double DEFAULT NULL,
  `vehicle_weight` bigint(20) DEFAULT NULL,
  `inspection_status` varchar(255) DEFAULT 'N',
  `inspection_expiry` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `engine_capacity` text DEFAULT NULL,
  `engine_number` text DEFAULT NULL,
  `vin_chasis` text DEFAULT NULL,
  `fuel_type` text DEFAULT NULL,
  `security_interest` text DEFAULT NULL,
  `luby` text DEFAULT NULL,
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `current_title_document_type` text DEFAULT NULL,
  `sub_category` text DEFAULT NULL,
  `id` int(11) NOT NULL,
  `odoo_vehicle_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `vehicle22`
--

DROP TABLE IF EXISTS `vehicle22`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vehicle22` (
  `vehicle_id` text NOT NULL,
  `license_plate` text NOT NULL,
  `vin` text NOT NULL,
  `year` bigint(20) DEFAULT NULL,
  `make` text NOT NULL,
  `model` text DEFAULT NULL,
  `type` text DEFAULT NULL,
  `color` text DEFAULT NULL,
  `odometer` text NOT NULL,
  `title` text DEFAULT NULL,
  `taxbase` text DEFAULT NULL,
  `purchase_price` double DEFAULT NULL,
  `vehicle_weight` bigint(20) DEFAULT NULL,
  `inspection_status` varchar(255) DEFAULT 'N',
  `inspection_expiry` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `engine_capacity` text DEFAULT NULL,
  `engine_number` text DEFAULT NULL,
  `vin_chasis` text DEFAULT NULL,
  `fuel_type` text DEFAULT NULL,
  `security_interest` text DEFAULT NULL,
  `luby` text DEFAULT NULL,
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `current_title_document_type` text DEFAULT NULL,
  `sub_category` text DEFAULT NULL,
  `id` int(11) NOT NULL,
  `odoo_vehicle_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `vehicle_color`
--

DROP TABLE IF EXISTS `vehicle_color`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vehicle_color` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `vehicle_create_date`
--

DROP TABLE IF EXISTS `vehicle_create_date`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vehicle_create_date` (
  `odoo_vehicle_id` int(11) DEFAULT NULL,
  `min` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `vehicle_engine_capcaity`
--

DROP TABLE IF EXISTS `vehicle_engine_capcaity`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vehicle_engine_capcaity` (
  `vehicle_id` varchar(55) DEFAULT NULL,
  `license_plate` varchar(100) DEFAULT NULL,
  `vin` varchar(100) DEFAULT NULL,
  `year` bigint(20) DEFAULT NULL,
  `make` varchar(45) DEFAULT NULL,
  `model` varchar(45) DEFAULT NULL,
  `type` varchar(45) DEFAULT NULL,
  `color` varchar(45) DEFAULT NULL,
  `odometer` varchar(45) DEFAULT NULL,
  `title` varchar(45) DEFAULT NULL,
  `taxbase` varchar(45) DEFAULT NULL,
  `purchase_price` double DEFAULT NULL,
  `vehicle_weight` bigint(20) DEFAULT NULL,
  `inspection_status` varchar(2) DEFAULT NULL,
  `inspection_expiry` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `engine_capacity` varchar(100) DEFAULT NULL,
  `engine_number` varchar(45) DEFAULT NULL,
  `vin_chasis` varchar(100) DEFAULT NULL,
  `fuel_type` varchar(45) DEFAULT NULL,
  `security_interest` varchar(2) DEFAULT NULL,
  `luby` varchar(45) DEFAULT NULL,
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `current_title_document_type` varchar(45) DEFAULT NULL,
  `sub_category` varchar(45) DEFAULT NULL,
  `id` int(11) DEFAULT NULL,
  `created_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `vehicle_make`
--

DROP TABLE IF EXISTS `vehicle_make`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vehicle_make` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `vehicle_model`
--

DROP TABLE IF EXISTS `vehicle_model`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vehicle_model` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `make` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `vehicle_odometer_expcetion`
--

DROP TABLE IF EXISTS `vehicle_odometer_expcetion`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vehicle_odometer_expcetion` (
  `vehicle_id` varchar(55) DEFAULT NULL,
  `license_plate` varchar(100) DEFAULT NULL,
  `vin` varchar(100) DEFAULT NULL,
  `year` bigint(20) DEFAULT NULL,
  `make` varchar(45) DEFAULT NULL,
  `model` varchar(45) DEFAULT NULL,
  `type` varchar(45) DEFAULT NULL,
  `color` varchar(45) DEFAULT NULL,
  `odometer` varchar(45) DEFAULT NULL,
  `title` varchar(45) DEFAULT NULL,
  `taxbase` varchar(45) DEFAULT NULL,
  `purchase_price` double DEFAULT NULL,
  `vehicle_weight` bigint(20) DEFAULT NULL,
  `inspection_status` varchar(2) DEFAULT NULL,
  `inspection_expiry` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `engine_capacity` varchar(100) DEFAULT NULL,
  `engine_number` varchar(45) DEFAULT NULL,
  `vin_chasis` varchar(100) DEFAULT NULL,
  `fuel_type` varchar(45) DEFAULT NULL,
  `security_interest` varchar(2) DEFAULT NULL,
  `luby` varchar(45) DEFAULT NULL,
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `current_title_document_type` varchar(45) DEFAULT NULL,
  `sub_category` varchar(45) DEFAULT NULL,
  `id` int(11) DEFAULT NULL,
  `created_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `vehicle_t`
--

DROP TABLE IF EXISTS `vehicle_t`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vehicle_t` (
  `vehicle_id` varchar(55) DEFAULT NULL,
  `license_plate` varchar(100) DEFAULT NULL,
  `vin` varchar(100) DEFAULT NULL,
  `year` bigint(20) DEFAULT NULL,
  `make` varchar(45) DEFAULT NULL,
  `model` varchar(45) DEFAULT NULL,
  `type` varchar(45) DEFAULT NULL,
  `color` varchar(45) DEFAULT NULL,
  `odometer` varchar(45) DEFAULT NULL,
  `title` varchar(45) DEFAULT NULL,
  `taxbase` varchar(45) DEFAULT NULL,
  `purchase_price` double DEFAULT NULL,
  `vehicle_weight` bigint(20) DEFAULT NULL,
  `inspection_status` varchar(2) DEFAULT NULL,
  `inspection_expiry` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `engine_capacity` varchar(100) DEFAULT NULL,
  `engine_number` varchar(45) DEFAULT NULL,
  `vin_chasis` varchar(100) DEFAULT NULL,
  `fuel_type` varchar(45) DEFAULT NULL,
  `security_interest` varchar(2) DEFAULT NULL,
  `luby` varchar(45) DEFAULT NULL,
  `ludt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `current_title_document_type` varchar(45) DEFAULT NULL,
  `sub_category` varchar(45) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `vehicle_tax`
--

DROP TABLE IF EXISTS `vehicle_tax`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vehicle_tax` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `create_uid` int(11) DEFAULT NULL,
  `tax_number` int(11) NOT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `quarterly_tax_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `legacy_tax_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `vehicle` int(11) DEFAULT NULL,
  `download` tinyint(1) DEFAULT NULL,
  `recurring_cost` double DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `label_code` varchar(255) DEFAULT NULL,
  `label_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `invoice_id` (`invoice_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3070358 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `vehicle_tax1`
--

DROP TABLE IF EXISTS `vehicle_tax1`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vehicle_tax1` (
  `id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `tax_number` int(11) DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `quarterly_tax_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `legacy_tax_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `vehicle` int(11) DEFAULT NULL,
  `download` tinyint(1) DEFAULT NULL,
  `recurring_cost` double DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `label_code` varchar(255) DEFAULT NULL,
  `label_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `vehicle_tax_1511`
--

DROP TABLE IF EXISTS `vehicle_tax_1511`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vehicle_tax_1511` (
  `id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `tax_number` int(11) DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `quarterly_tax_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `legacy_tax_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `vehicle` int(11) DEFAULT NULL,
  `download` tinyint(1) DEFAULT NULL,
  `recurring_cost` double DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `vehicle_tax_all`
--

DROP TABLE IF EXISTS `vehicle_tax_all`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vehicle_tax_all` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `tax_number` int(11) NOT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `quarterly_tax_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `legacy_tax_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `vehicle` int(11) DEFAULT NULL,
  `download` tinyint(1) DEFAULT NULL,
  `recurring_cost` double DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `vehicle_tax_draft`
--

DROP TABLE IF EXISTS `vehicle_tax_draft`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vehicle_tax_draft` (
  `id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `tax_number` int(11) DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `quarterly_tax_id` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `legacy_tax_id` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `vehicle` int(11) DEFAULT NULL,
  `download` tinyint(1) DEFAULT NULL,
  `recurring_cost` double DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `vehicle_tax_label_wizard`
--

DROP TABLE IF EXISTS `vehicle_tax_label_wizard`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vehicle_tax_label_wizard` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `tax_id` int(11) DEFAULT NULL,
  `label_id` int(11) DEFAULT NULL,
  `year` int(11) DEFAULT NULL,
  `quarter` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `vehicle_type`
--

DROP TABLE IF EXISTS `vehicle_type`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vehicle_type` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `vehicle_vehicle`
--

DROP TABLE IF EXISTS `vehicle_vehicle`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vehicle_vehicle` (
  `id` int(11) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT current_timestamp(),
  `sub_category` int(11) DEFAULT NULL,
  `color` int(11) DEFAULT NULL,
  `image` blob DEFAULT NULL,
  `license_plate` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `year` int(11) DEFAULT NULL,
  `legacy_vehicle_id` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `current_title` varchar(255) DEFAULT NULL,
  `taxbase` varchar(255) DEFAULT NULL,
  `car_value` double DEFAULT NULL,
  `fuel_type` int(11) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `odometer` int(11) NOT NULL,
  `type` int(11) DEFAULT NULL,
  `sold` tinyint(1) DEFAULT NULL,
  `pl` varchar(255) DEFAULT NULL,
  `security_interest` tinyint(1) DEFAULT NULL,
  `inspection_status` tinyint(1) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `tax_exp_date` date DEFAULT NULL,
  `tax_valid_year` int(11) DEFAULT NULL,
  `engine_number` varchar(255) DEFAULT NULL,
  `customer` int(11) NOT NULL,
  `tax_valid_month` int(11) DEFAULT NULL,
  `owner_change_date` date DEFAULT NULL,
  `tax_num` int(11) DEFAULT NULL,
  `chassis_no` varchar(255) DEFAULT NULL,
  `vehicle_weight` double DEFAULT NULL,
  `engine_capacity` int(11) DEFAULT NULL,
  `model` int(11) NOT NULL,
  `vin_number` varchar(255) NOT NULL,
  `inspection_expiry` date DEFAULT NULL,
  `rfid` varchar(255) DEFAULT NULL,
  `blacklist_reason` varchar(255) DEFAULT NULL,
  `blacklist` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `web_editor_converter_test`
--

DROP TABLE IF EXISTS `web_editor_converter_test`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `web_editor_converter_test` (
  `id` int(11) NOT NULL,
  `binary` blob DEFAULT NULL,
  `selection` int(11) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `text` text DEFAULT NULL,
  `float` double DEFAULT NULL,
  `numeric` decimal(10,0) DEFAULT NULL,
  `datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `char` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `html` text DEFAULT NULL,
  `selection_str` varchar(255) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `many2one` int(11) DEFAULT NULL,
  `date` date DEFAULT NULL,
  `integer` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `web_editor_converter_test_sub`
--

DROP TABLE IF EXISTS `web_editor_converter_test_sub`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `web_editor_converter_test_sub` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `web_planner`
--

DROP TABLE IF EXISTS `web_planner`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `web_planner` (
  `id` int(11) NOT NULL,
  `menu_id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `planner_application` varchar(255) NOT NULL,
  `view_id` int(11) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) DEFAULT NULL,
  `tooltip_planner` text DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `web_tour_tour`
--

DROP TABLE IF EXISTS `web_tour_tour`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `web_tour_tour` (
  `id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `wizard_ir_model_menu_create`
--

DROP TABLE IF EXISTS `wizard_ir_model_menu_create`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `wizard_ir_model_menu_create` (
  `id` int(11) NOT NULL,
  `menu_id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `name` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `wizard_multi_charts_accounts`
--

DROP TABLE IF EXISTS `wizard_multi_charts_accounts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `wizard_multi_charts_accounts` (
  `id` int(11) NOT NULL,
  `bank_account_code_prefix` varchar(255) DEFAULT NULL,
  `cash_account_code_prefix` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `currency_id` int(11) NOT NULL,
  `only_one_chart_template` tinyint(1) DEFAULT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `complete_tax_set` tinyint(1) DEFAULT NULL,
  `transfer_account_id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `purchase_tax_rate` double DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `sale_tax_rate` double DEFAULT NULL,
  `code_digits` int(11) NOT NULL,
  `chart_template_id` int(11) NOT NULL,
  `sale_tax_id` int(11) DEFAULT NULL,
  `purchase_tax_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `wizard_valuation_history`
--

DROP TABLE IF EXISTS `wizard_valuation_history`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `wizard_valuation_history` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `choose_date` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `wkf`
--

DROP TABLE IF EXISTS `wkf`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `wkf` (
  `id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `osv` varchar(255) NOT NULL,
  `on_create` tinyint(1) DEFAULT 0,
  `create_uid` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `on_create` (`on_create`),
  KEY `osv` (`osv`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `wkf_activity`
--

DROP TABLE IF EXISTS `wkf_activity`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `wkf_activity` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `kind` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `join_mode` varchar(255) NOT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `flow_stop` tinyint(1) DEFAULT NULL,
  `subflow_id` int(11) DEFAULT NULL,
  `split_mode` varchar(255) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `action` text DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `signal_send` varchar(255) DEFAULT NULL,
  `action_id` int(11) DEFAULT NULL,
  `wkf_id` int(11) NOT NULL,
  `flow_start` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `wkf_id` (`wkf_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `wkf_instance`
--

DROP TABLE IF EXISTS `wkf_instance`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `wkf_instance` (
  `id` int(11) NOT NULL,
  `res_type` varchar(255) DEFAULT NULL,
  `uid` int(11) DEFAULT NULL,
  `wkf_id` int(11) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `res_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `res_id` (`res_id`,`wkf_id`),
  KEY `res_type` (`res_type`,`res_id`,`state`),
  KEY `wkf_id` (`wkf_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `wkf_transition`
--

DROP TABLE IF EXISTS `wkf_transition`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `wkf_transition` (
  `id` int(11) NOT NULL,
  `create_uid` int(11) DEFAULT NULL,
  `sequence` int(11) DEFAULT NULL,
  `write_uid` int(11) DEFAULT NULL,
  `signal` varchar(255) DEFAULT NULL,
  `trigger_model` varchar(255) DEFAULT NULL,
  `create_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `act_from` int(11) NOT NULL,
  `act_to` int(11) NOT NULL,
  `write_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `trigger_expr_id` varchar(255) DEFAULT NULL,
  `group_id` int(11) DEFAULT NULL,
  `condition` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `act_from` (`act_from`),
  KEY `act_to` (`act_to`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `wkf_triggers`
--

DROP TABLE IF EXISTS `wkf_triggers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `wkf_triggers` (
  `id` int(11) NOT NULL,
  `instance_id` int(11) DEFAULT NULL,
  `workitem_id` int(11) NOT NULL,
  `model` varchar(255) DEFAULT NULL,
  `res_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `res_id` (`res_id`,`model`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `wkf_witm_trans`
--

DROP TABLE IF EXISTS `wkf_witm_trans`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `wkf_witm_trans` (
  `inst_id` int(11) NOT NULL,
  `trans_id` int(11) NOT NULL,
  KEY `inst_id` (`inst_id`),
  KEY `trans_id` (`trans_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `wkf_workitem`
--

DROP TABLE IF EXISTS `wkf_workitem`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `wkf_workitem` (
  `id` int(11) NOT NULL,
  `act_id` int(11) NOT NULL,
  `inst_id` int(11) NOT NULL,
  `subflow_id` int(11) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `act_id` (`act_id`),
  KEY `inst_id` (`inst_id`),
  KEY `state` (`state`),
  KEY `subflow_id` (`subflow_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `zz_ai`
--

DROP TABLE IF EXISTS `zz_ai`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `zz_ai` (
  `id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `zz_vt`
--

DROP TABLE IF EXISTS `zz_vt`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `zz_vt` (
  `invoice_id` int(11) DEFAULT NULL,
  KEY `invoice_id` (`invoice_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2022-05-30 14:58:44
