INSERT INTO `llx_stock_mouvement` (`rowid`, `tms`, `datem`, `fk_product`, `batch`, `eatby`, `sellby`, `fk_entrepot`, `value`, `price`, `type_mouvement`, `fk_user_author`, `label`, `inventorycode`, `fk_project`, `fk_origin`, `origintype`, `model_pdf`, `fk_projet`) VALUES
(3181, '2022-12-21 14:11:52', '2022-12-21 15:11:52', 37, NULL, NULL, NULL, 5, -1, 28.26000000, 2, 1, 'Facture TC1-2212-0001 valid&eacute;e', NULL, NULL, 1424, 'facture', NULL, 0),
(3182, '2022-12-21 14:31:31', '2022-12-21 15:31:31', 1986, NULL, NULL, NULL, 5, -1, 105.46000000, 1, 7, 'Transfert de stock du produit TR17BRJACK22L750 dans un autre entrepôt', '20221221153118', NULL, 0, '', NULL, 0),
(3183, '2022-12-21 14:31:31', '2022-12-21 15:31:31', 1986, NULL, NULL, NULL, 1, 1, 105.46000000, 0, 7, 'Transfert de stock du produit TR17BRJACK22L750 dans un autre entrepôt', '20221221153118', NULL, 0, '', NULL, 0),
(3184, '2022-12-21 19:45:06', '2022-12-21 20:45:06', 65, NULL, NULL, NULL, 5, -1, 28.26000000, 2, 1, 'Facture TC1-2212-0002 valid&eacute;e', NULL, NULL, 1427, 'facture', NULL, 0),
(3185, '2022-12-21 19:45:06', '2022-12-21 20:45:06', 64, NULL, NULL, NULL, 5, -1, 28.26000000, 2, 1, 'Facture TC1-2212-0002 valid&eacute;e', NULL, NULL, 1427, 'facture', NULL, 0),
(3186, '2022-12-21 19:49:38', '2022-12-21 20:49:38', 64, NULL, NULL, NULL, 5, -1, 28.26000000, 2, 1, 'Facture TC1-2212-0003 valid&eacute;e', NULL, NULL, 1428, 'facture', NULL, 0),
(3187, '2022-12-21 19:58:50', '2022-12-21 20:58:50', 37, NULL, NULL, NULL, 5, -2, 28.26000000, 2, 1, 'Facture TC1-2212-0004 valid&eacute;e', NULL, NULL, 1431, 'facture', NULL, 0),
(3188, '2022-12-21 19:58:50', '2022-12-21 20:58:50', 65, NULL, NULL, NULL, 5, -2, 28.26000000, 2, 1, 'Facture TC1-2212-0004 valid&eacute;e', NULL, NULL, 1431, 'facture', NULL, 0),
(3189, '2022-12-21 19:58:50', '2022-12-21 20:58:50', 64, NULL, NULL, NULL, 5, -2, 28.26000000, 2, 1, 'Facture TC1-2212-0004 valid&eacute;e', NULL, NULL, 1431, 'facture', NULL, 0),
(3190, '2022-12-22 11:56:58', '2022-12-22 12:56:58', 946, NULL, NULL, NULL, 7, -1, 26.17000000, 2, 7, 'Exp&eacute;dition SH2212-0354 valid&eacute;e', NULL, NULL, 395, 'shipping', NULL, 0),
(3191, '2022-12-22 11:56:58', '2022-12-22 12:56:58', 653, NULL, NULL, NULL, 7, -1, 164.95000000, 2, 7, 'Exp&eacute;dition SH2212-0354 valid&eacute;e', NULL, NULL, 395, 'shipping', NULL, 0),
(3192, '2022-12-22 11:56:58', '2022-12-22 12:56:58', 66, NULL, NULL, NULL, 7, -1, 67.22000000, 2, 7, 'Exp&eacute;dition SH2212-0354 valid&eacute;e', NULL, NULL, 395, 'shipping', NULL, 0),
(3193, '2022-12-22 11:56:58', '2022-12-22 12:56:58', 756, NULL, NULL, NULL, 7, -1, 27.03000000, 2, 7, 'Exp&eacute;dition SH2212-0354 valid&eacute;e', NULL, NULL, 395, 'shipping', NULL, 0);

-- --------------------------------------------------------

--
-- Table structure for table `llx_subscription`
--

CREATE TABLE `llx_subscription` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `fk_adherent` int(11) DEFAULT NULL,
  `fk_type` int(11) DEFAULT NULL,
  `dateadh` datetime DEFAULT NULL,
  `datef` datetime DEFAULT NULL,
  `subscription` double(24,8) DEFAULT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `note` text COLLATE utf8_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_supplier_proposal`
--

CREATE TABLE `llx_supplier_proposal` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref_ext` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `ref_int` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_cloture` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_cloture` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT '0',
  `price` double DEFAULT '0',
  `remise_percent` double DEFAULT '0',
  `remise_absolue` double DEFAULT '0',
  `remise` double DEFAULT '0',
  `total_ht` double(24,8) DEFAULT '0.00000000',
  `total_tva` double(24,8) DEFAULT '0.00000000',
  `localtax1` double(24,8) DEFAULT '0.00000000',
  `localtax2` double(24,8) DEFAULT '0.00000000',
  `total_ttc` double(24,8) DEFAULT '0.00000000',
  `fk_account` int(11) DEFAULT NULL,
  `fk_currency` varchar(3) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT NULL,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `note_private` text COLLATE utf8_unicode_ci,
  `note_public` text COLLATE utf8_unicode_ci,
  `model_pdf` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `last_main_doc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `date_livraison` date DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL,
  `extraparams` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT '1.00000000',
  `multicurrency_total_ht` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_tva` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ttc` double(24,8) DEFAULT '0.00000000'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `llx_supplier_proposal`
--

INSERT INTO `llx_supplier_proposal` (`rowid`, `ref`, `entity`, `ref_ext`, `ref_int`, `fk_soc`, `fk_projet`, `tms`, `datec`, `date_valid`, `date_cloture`, `fk_user_author`, `fk_user_modif`, `fk_user_valid`, `fk_user_cloture`, `fk_statut`, `price`, `remise_percent`, `remise_absolue`, `remise`, `total_ht`, `total_tva`, `localtax1`, `localtax2`, `total_ttc`, `fk_account`, `fk_currency`, `fk_cond_reglement`, `fk_mode_reglement`, `note_private`, `note_public`, `model_pdf`, `last_main_doc`, `date_livraison`, `fk_shipping_method`, `import_key`, `extraparams`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_tx`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`) VALUES
(1, 'RQ2207-0001', 1, NULL, NULL, 6893, NULL, '2022-07-17 22:12:24', '2022-07-06 20:50:31', '2022-07-06 20:51:07', '2022-07-18 00:12:24', 7, NULL, 7, 7, 2, 0, NULL, NULL, 0, 5540.00000000, 0.00000000, 0.00000000, 0.00000000, 5540.00000000, NULL, NULL, 8, 2, '', '', 'aurore', 'supplier_proposal/RQ2207-0001/RQ2207-0001.pdf', '2022-07-04', 2, NULL, NULL, 1, 'EUR', 1.00000000, 5540.00000000, 0.00000000, 5540.00000000),
(2, 'RQ2209-0002', 1, NULL, NULL, 5672, NULL, '2022-09-16 08:42:25', '2022-09-16 09:33:50', '2022-09-16 10:01:52', NULL, 7, NULL, 7, NULL, 0, 0, NULL, NULL, 0, 2474.50000000, 0.00000000, 0.00000000, 0.00000000, 2474.50000000, NULL, NULL, NULL, NULL, '', '', 'aurore', 'supplier_proposal/RQ2209-0002/RQ2209-0002.pdf', '2022-09-16', NULL, NULL, NULL, 1, 'EUR', 1.00000000, 2474.50000000, 0.00000000, 2474.50000000),
(3, 'RQ2209-0003', 1, NULL, NULL, 6893, NULL, '2022-09-23 09:33:24', '2022-09-23 11:32:49', '2022-09-23 11:33:18', '2022-09-23 11:33:24', 7, NULL, 7, 7, 2, 0, NULL, NULL, 0, 10440.00000000, 0.00000000, 0.00000000, 0.00000000, 10440.00000000, NULL, NULL, 1, 2, '', '', 'aurore', 'supplier_proposal/RQ2209-0003/RQ2209-0003.pdf', '2022-09-30', NULL, NULL, NULL, 1, 'EUR', 1.00000000, 10440.00000000, 0.00000000, 10440.00000000);

-- --------------------------------------------------------

--
-- Table structure for table `llx_supplier_proposaldet`
--

CREATE TABLE `llx_supplier_proposaldet` (
  `rowid` int(11) NOT NULL,
  `fk_supplier_proposal` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `label` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8_unicode_ci,
  `fk_remise_except` int(11) DEFAULT NULL,
  `vat_src_code` varchar(10) COLLATE utf8_unicode_ci DEFAULT '',
  `tva_tx` double(6,3) DEFAULT '0.000',
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT '0',
  `remise` double DEFAULT '0',
  `price` double DEFAULT NULL,
  `subprice` double(24,8) DEFAULT '0.00000000',
  `total_ht` double(24,8) DEFAULT '0.00000000',
  `total_tva` double(24,8) DEFAULT '0.00000000',
  `total_localtax1` double(24,8) DEFAULT '0.00000000',
  `total_localtax2` double(24,8) DEFAULT '0.00000000',
  `total_ttc` double(24,8) DEFAULT '0.00000000',
  `product_type` int(11) DEFAULT '0',
  `date_start` datetime DEFAULT NULL,
  `date_end` datetime DEFAULT NULL,
  `info_bits` int(11) DEFAULT '0',
  `buy_price_ht` double(24,8) DEFAULT '0.00000000',
  `fk_product_fournisseur_price` int(11) DEFAULT NULL,
  `special_code` int(11) DEFAULT '0',
  `rang` int(11) DEFAULT '0',
  `ref_fourn` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ht` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_tva` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ttc` double(24,8) DEFAULT '0.00000000',
  `fk_unit` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `llx_supplier_proposaldet`
--

INSERT INTO `llx_supplier_proposaldet` (`rowid`, `fk_supplier_proposal`, `fk_parent_line`, `fk_product`, `label`, `description`, `fk_remise_except`, `vat_src_code`, `tva_tx`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `qty`, `remise_percent`, `remise`, `price`, `subprice`, `total_ht`, `total_tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `product_type`, `date_start`, `date_end`, `info_bits`, `buy_price_ht`, `fk_product_fournisseur_price`, `special_code`, `rang`, `ref_fourn`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_subprice`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `fk_unit`) VALUES
(1, 1, NULL, 703, 'Cintre Waw Ultimate Carbone 108', 'Cintre WAW Ultimate carbone 720 mm Up 7° Back 4° Rise 108 mm', NULL, '', 0.000, 0.000, '0', 0.000, '0', 100, 0, 0, NULL, 55.40000000, 5540.00000000, 0.00000000, 0.00000000, 0.00000000, 5540.00000000, 0, NULL, NULL, 0, 55.40000000, 19843, 0, 1, 'VHC-71', 1, 'EUR', 55.40000000, 5540.00000000, 0.00000000, 5540.00000000, NULL),
(2, 2, NULL, 948, 'Guidoline Hashtagg Logo Blanc', 'Guidoline Hashtagg logo Blanc', NULL, '', 0.000, 0.000, '0', 0.000, '0', 20, 0, 0, NULL, 9.45000000, 189.00000000, 0.00000000, 0.00000000, 0.00000000, 189.00000000, 0, NULL, NULL, 0, 7.00000000, 19871, 0, 1, 'GRIBTPWHI', 1, 'EUR', 9.45000000, 189.00000000, 0.00000000, 189.00000000, NULL),
(3, 2, NULL, 711, 'Grip Mousse Hashtagg', 'Grip mousse Hashtagg', NULL, '', 0.000, 0.000, '0', 0.000, '0', 10, 0, 0, NULL, 3.80000000, 38.00000000, 0.00000000, 0.00000000, 0.00000000, 38.00000000, 0, NULL, NULL, 0, 2.70000000, 19869, 0, 2, 'GRIFOAWHI', 1, 'EUR', 3.80000000, 38.00000000, 0.00000000, 38.00000000, NULL),
(4, 2, NULL, 1954, 'Jante Hashtagg 26\'\' 32 Mm 28H Noire', '', NULL, '', 0.000, 0.000, '0', 0.000, '0', 5, 0, 0, NULL, 32.44000000, 162.20000000, 0.00000000, 0.00000000, 0.00000000, 162.20000000, 0, NULL, NULL, 0, 24.28000000, 19881, 0, 3, 'HG17RI2632BK', 1, 'EUR', 32.44000000, 162.20000000, 0.00000000, 162.20000000, NULL),
(5, 2, NULL, 933, 'Jante Hashtagg 20\'\' 32 Mm 28h', 'Jante Hashtagg 20\'\' 32 mm 28h', NULL, '', 0.000, 0.000, '0', 0.000, '0', 5, 0, 0, NULL, 32.44000000, 162.20000000, 0.00000000, 0.00000000, 0.00000000, 162.20000000, 0, NULL, NULL, 0, 26.00000000, 19879, 0, 4, 'RIMBEF020032PK5', 1, 'EUR', 32.44000000, 162.20000000, 0.00000000, 162.20000000, NULL),
(6, 2, NULL, 932, 'Jante Hashtagg 19\'\' 47 Mm 32h', 'Jante Hashtagg 19\'\' 47 mm 32h', NULL, '', 0.000, 0.000, '0', 0.000, '0', 5, 0, 0, NULL, 42.17000000, 210.85000000, 0.00000000, 0.00000000, 0.00000000, 210.85000000, 0, NULL, NULL, 0, 33.00000000, 19878, 0, 5, 'RIMREA019047PK5', 1, 'EUR', 42.17000000, 210.85000000, 0.00000000, 210.85000000, NULL),
(7, 2, NULL, 551, 'Fond De Jante Hashtagg 26\'\' Arrière Noir', '', NULL, '', 0.000, 0.000, '0', 0.000, '0', 11, 0, 0, NULL, 1.80000000, 19.80000000, 0.00000000, 0.00000000, 0.00000000, 19.80000000, 0, NULL, NULL, 0, 1.17000000, 19889, 0, 6, 'RTP02647B', 1, 'EUR', 1.80000000, 19.80000000, 0.00000000, 19.80000000, NULL),
(8, 2, NULL, 552, 'Fond De Jante Hashtagg 26\'\' Avant Noir', '', NULL, '', 0.000, 0.000, '0', 0.000, '0', 10, 0, 0, NULL, 1.80000000, 18.00000000, 0.00000000, 0.00000000, 0.00000000, 18.00000000, 0, NULL, NULL, 0, 1.33000000, 19888, 0, 7, 'RTP02632B', 1, 'EUR', 1.80000000, 18.00000000, 0.00000000, 18.00000000, NULL),
(9, 2, NULL, 915, 'Paire De Cages 2 Mm Grise', 'Paire de cages 2 mm grise', NULL, '', 0.000, 0.000, '0', 0.000, '0', 3, 0, 0, NULL, 10.15000000, 30.45000000, 0.00000000, 0.00000000, 0.00000000, 30.45000000, 0, NULL, NULL, 0, 8.58000000, 19876, 0, 8, 'PEDCAGGRY2MM', 1, 'EUR', 10.15000000, 30.45000000, 0.00000000, 30.45000000, NULL),
(10, 2, NULL, 916, 'Paire De Cages 3 Mm Noire', 'Paire de cages 3 mm Noire', NULL, '', 0.000, 0.000, '0', 0.000, '0', 3, 0, 0, NULL, 10.15000000, 30.45000000, 0.00000000, 0.00000000, 0.00000000, 30.45000000, 0, NULL, NULL, 0, 9.00000000, 19877, 0, 9, 'PEDCAGBLK3MM', 1, 'EUR', 10.15000000, 30.45000000, 0.00000000, 30.45000000, NULL),
(11, 2, NULL, 912, 'Paire De Pedales Hashtagg Grise 2 Mm', 'Paire de pédales Hashtagg grise 2 mm', NULL, '', 0.000, 0.000, '0', 0.000, '0', 2, 0, 0, NULL, 31.65000000, 63.30000000, 0.00000000, 0.00000000, 0.00000000, 63.30000000, 0, NULL, NULL, 0, 22.00000000, 19873, 0, 10, 'PEDCAG2MM', 1, 'EUR', 31.65000000, 63.30000000, 0.00000000, 63.30000000, NULL),
(12, 2, NULL, 913, 'Paire De Pedales Hashtagg Noire 3 Mm', 'Paire de pédales Hashtagg Noire 3 mm', NULL, '', 0.000, 0.000, '0', 0.000, '0', 3, 0, 0, NULL, 31.65000000, 94.95000000, 0.00000000, 0.00000000, 0.00000000, 94.95000000, 0, NULL, NULL, 0, 22.00000000, 19874, 0, 11, 'PEDCAG3MM', 1, 'EUR', 31.65000000, 94.95000000, 0.00000000, 94.95000000, NULL),
(13, 2, NULL, 904, 'Coquilles Hashtagg  (2 Hautes, 2 Basses & 4 Vis)', 'Set coquilles Hashtagg', NULL, '', 0.000, 0.000, '0', 0.000, '0', 5, 0, 0, NULL, 28.15000000, 140.75000000, 0.00000000, 0.00000000, 0.00000000, 140.75000000, 0, NULL, NULL, 0, 14.75000000, 19847, 0, 12, 'BRKSTDCLP', 1, 'EUR', 28.15000000, 140.75000000, 0.00000000, 140.75000000, NULL),
(14, 2, NULL, 701, 'Chaine Rouge', 'Chaîne Rouge', NULL, '', 0.000, 0.000, '0', 0.000, '0', 5, 0, 0, NULL, 14.60000000, 73.00000000, 0.00000000, 0.00000000, 0.00000000, 73.00000000, 0, NULL, NULL, 0, 11.00000000, 19855, 0, 13, 'CHALIGBRED', 1, 'EUR', 14.60000000, 73.00000000, 0.00000000, 73.00000000, NULL),
(15, 2, NULL, 934, 'Jante Hashtagg 26\'\' 32 Mm 28h', 'Jante Hashtagg 26\'\' 32 mm 28h', NULL, '', 0.000, 0.000, '0', 0.000, '0', 5, 0, 0, NULL, 32.44000000, 162.20000000, 0.00000000, 0.00000000, 0.00000000, 162.20000000, 0, NULL, NULL, 0, 26.00000000, 19880, 0, 14, 'RIMBEF026032PK5', 1, 'EUR', 32.44000000, 162.20000000, 0.00000000, 162.20000000, NULL),
(16, 2, NULL, 935, 'Jante Hashtagg 26\'\' 47 Mm 32h', 'Jante Hashtagg 26\'\' 47 mm 32h', NULL, '', 0.000, 0.000, '0', 0.000, '0', 5, 0, 0, NULL, 42.17000000, 210.85000000, 0.00000000, 0.00000000, 0.00000000, 210.85000000, 0, NULL, NULL, 0, 32.00000000, 19882, 0, 15, 'RIMREA026047PK5', 1, 'EUR', 42.17000000, 210.85000000, 0.00000000, 210.85000000, NULL),
(17, 2, NULL, 3158, 'Chaine KMC Z1 eHX', 'Chaine KMC Z1 eHX 112 maillons', NULL, '', 0.000, 0.000, '0', 0.000, '0', 50, 0, 0, NULL, 14.60000000, 730.00000000, 0.00000000, 0.00000000, 0.00000000, 730.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 16, '', 1, 'EUR', 14.60000000, 730.00000000, 0.00000000, 730.00000000, NULL),
(18, 2, NULL, 911, 'Roue Libre Hashtagg 18t À Visser 120/9', 'Roue libre Hashtagg 18T à visser 120/9', NULL, '', 0.000, 0.000, '0', 0.000, '0', 2, 0, 0, NULL, 51.25000000, 102.50000000, 0.00000000, 0.00000000, 0.00000000, 102.50000000, 0, NULL, NULL, 0, 38.35000000, 19868, 0, 17, 'FWHISS18T', 1, 'EUR', 51.25000000, 102.50000000, 0.00000000, 102.50000000, NULL),
(19, 2, NULL, 1006, 'Transport', '', NULL, '', 0.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 36.00000000, 36.00000000, 0.00000000, 0.00000000, 0.00000000, 36.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 18, '', 1, 'EUR', 36.00000000, 36.00000000, 0.00000000, 36.00000000, NULL),
(20, 3, NULL, 704, 'Cintre Waw Ultimate Carbone 102', 'Cintre WAW Ultimate carbone 720 mm Up 9° Back 8° Rise 102 mm', NULL, '', 0.000, 0.000, '0', 0.000, '0', 100, 0, 0, NULL, 49.00000000, 4900.00000000, 0.00000000, 0.00000000, 0.00000000, 4900.00000000, 0, NULL, NULL, 0, 55.40000000, 19842, 0, 1, 'VHC-70', 1, 'EUR', 49.00000000, 4900.00000000, 0.00000000, 4900.00000000, NULL),
(21, 3, NULL, 703, 'Cintre Waw Ultimate Carbone 108', 'Cintre WAW Ultimate carbone 720 mm Up 7° Back 4° Rise 108 mm', NULL, '', 0.000, 0.000, '0', 0.000, '0', 100, 0, 0, NULL, 55.40000000, 5540.00000000, 0.00000000, 0.00000000, 0.00000000, 5540.00000000, 0, NULL, NULL, 0, 55.40000000, 19843, 0, 2, 'VHC-71', 1, 'EUR', 55.40000000, 5540.00000000, 0.00000000, 5540.00000000, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `llx_supplier_proposaldet_extrafields`
--

CREATE TABLE `llx_supplier_proposaldet_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL,
  `show_total_ht` int(10) DEFAULT NULL,
  `show_reduc` int(10) DEFAULT NULL,
  `subtotal_show_qty` int(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_supplier_proposal_extrafields`
--

CREATE TABLE `llx_supplier_proposal_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_takepos_floor_tables`
--

CREATE TABLE `llx_takepos_floor_tables` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `label` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `leftpos` float DEFAULT NULL,
  `toppos` float DEFAULT NULL,
  `floor` smallint(6) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_ticket`
--

CREATE TABLE `llx_ticket` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) DEFAULT '1',
  `ref` varchar(128) COLLATE utf8_unicode_ci NOT NULL,
  `track_id` varchar(128) COLLATE utf8_unicode_ci NOT NULL,
  `fk_soc` int(11) DEFAULT '0',
  `fk_project` int(11) DEFAULT '0',
  `origin_email` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fk_user_create` int(11) DEFAULT NULL,
  `fk_user_assign` int(11) DEFAULT NULL,
  `subject` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `message` text COLLATE utf8_unicode_ci,
  `fk_statut` int(11) DEFAULT NULL,
  `resolution` int(11) DEFAULT NULL,
  `progress` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `timing` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type_code` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `category_code` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `severity_code` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `date_read` datetime DEFAULT NULL,
  `date_close` datetime DEFAULT NULL,
  `notify_tiers_at_create` tinyint(4) DEFAULT NULL,
  `email_msgid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `import_key` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_ticket_extrafields`
--

CREATE TABLE `llx_ticket_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_tva`
--

CREATE TABLE `llx_tva` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `amount` double(24,8) NOT NULL DEFAULT '0.00000000',
  `fk_typepayment` int(11) DEFAULT NULL,
  `num_payment` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `label` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `note` text COLLATE utf8_unicode_ci,
  `paye` smallint(6) NOT NULL DEFAULT '0',
  `fk_account` int(11) DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `llx_tva`
--

INSERT INTO `llx_tva` (`rowid`, `tms`, `datec`, `datep`, `datev`, `amount`, `fk_typepayment`, `num_payment`, `label`, `entity`, `note`, `paye`, `fk_account`, `fk_user_creat`, `fk_user_modif`, `import_key`) VALUES
(1, '2022-12-10 04:30:45', '2022-12-10 05:30:45', '2021-12-03', '2021-12-03', -6080.00000000, 2, NULL, 'Remboursement TVA VIR SIE TOULOUSE RANGUEIL 120310690GAF219-2021', 1, '', 1, 1, 1, 1, NULL),
(2, '2022-12-13 22:30:53', '2022-12-13 23:30:53', '2022-11-29', '2022-11-29', 279.00000000, 3, NULL, 'Règlement TVA PRLV SEPA DGFIP 220310690800082662014 TVA1-112022-3310CA3', 1, '', 1, 1, 1, 1, NULL),
(3, '2022-12-13 22:31:07', '2022-12-13 23:31:07', '2022-10-27', '2022-10-27', 5029.00000000, 3, NULL, 'Règlement TVA PRLV SEPA DGFIP 220310690800081989402 TVA1-102022-3310CA3', 1, '', 1, 1, 1, 1, NULL),
(4, '2022-12-13 22:31:22', '2022-12-13 23:31:22', '2022-08-29', '2022-08-29', 303.00000000, 3, NULL, 'Règlement TVA PRLV SEPA DGFIP TVA1-082022-3310CA3', 1, '', 1, 1, 1, 1, NULL),
(5, '2022-12-13 22:31:37', '2022-12-13 23:31:37', '2022-07-28', '2022-07-28', 379.00000000, 3, NULL, 'Règlement TVA PRLV SEPA DGFIP TVA1-072022-3310CA3', 1, '', 1, 1, 1, 1, NULL),
(6, '2022-12-13 22:31:49', '2022-12-13 23:31:49', '2022-03-28', '2022-03-28', 214.00000000, 3, NULL, 'Règlement TVA PRLV SEPA DGFIP TVA1-032022-3310CA3', 1, '', 1, 1, 1, 1, NULL),
(7, '2022-12-13 22:31:59', '2022-12-13 23:31:59', '2022-03-01', '2022-03-01', 218.00000000, 3, NULL, 'Règlement TVA PRLV SEPA DGFIP TVA1-022022-3310CA3', 1, '', 1, 1, 1, 1, NULL),
(8, '2022-12-13 22:32:07', '2022-12-13 23:32:07', '2022-01-26', '2022-01-26', 531.00000000, 3, NULL, 'Règlement TVA PRLV SEPA DGFIP TVA1-012022-3310CA3', 1, '', 1, 1, 1, 1, NULL),
(9, '2022-12-13 22:32:16', '2022-12-13 23:32:16', '2021-10-29', '2021-10-29', 427.00000000, 3, NULL, 'Règlement TVA PRLV SEPA DGFIP TVA1-102021-3310CA3', 1, '', 1, 1, 1, 1, NULL),
(10, '2022-12-17 23:07:59', '2022-12-18 00:07:59', '2022-04-07', '2022-04-07', 2212.00000000, 3, NULL, 'Règlement TVA PRLV SEPA DIRECTION GENERALE DE 600175229901TLR2131052132386', 1, '', 1, 1, 1, 1, NULL),
(11, '2022-12-17 23:09:32', '2022-12-18 00:09:32', '2022-08-05', '2022-08-05', 1968.54000000, 2, NULL, 'Règlement TVA RB.IMP 07/22 0220420729204 00020729204 AMO', 1, '', 1, 1, 1, 1, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `llx_ultimatepdf`
--

CREATE TABLE `llx_ultimatepdf` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `description` text COLLATE utf8_unicode_ci,
  `datec` datetime DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `options` text COLLATE utf8_unicode_ci,
  `active` tinyint(4) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `llx_ultimatepdf`
--

INSERT INTO `llx_ultimatepdf` (`rowid`, `entity`, `tms`, `label`, `description`, `datec`, `fk_user_creat`, `options`, `active`) VALUES
(1, 1, '2022-06-23 14:59:22', 'Modèle maître', 'C\'est le modèle par défaut', '2022-05-26 18:31:13', 1, '{\"dashdotted\":null,\"bgcolor\":\"aad4ff\",\"opacity\":\"0.5\",\"roundradius\":\"2\",\"bordercolor\":\"003f7f\",\"senderstyle\":\"FD\",\"receiptstyle\":\"S\",\"textcolor\":\"191919\",\"footertextcolor\":\"191919\",\"qrcodecolor\":\"191919\",\"widthnumbering\":\"10\",\"widthdate\":\"20\",\"widthtype\":\"20\",\"widthproject\":\"20\",\"widthvat\":\"10\",\"widthup\":\"14\",\"widthqty\":\"12\",\"widthunit\":\"12\",\"widthdiscount\":\"10\",\"widthref\":null,\"withref\":\"no\",\"withoutvat\":\"no\",\"showdetails\":null,\"otherlogo\":null,\"otherlogo_file\":null,\"otherfont\":\"-1\",\"heightforfreetext\":\"20\",\"freetextfontsize\":\"7\",\"usebackground\":\"\",\"imglinesize\":\"20\",\"logoheight\":\"20\",\"logowidth\":\"40\",\"invertSenderRecipient\":\"no\",\"widthrecbox\":\"93\",\"otherlogoheight\":\"20\",\"otherlogowidth\":\"40\",\"marge_gauche\":\"10\",\"marge_droite\":\"10\",\"marge_haute\":\"10\",\"marge_basse\":\"10\",\"otherlogoname\":\"\",\"otherlogosmall\":\"\",\"aliascompany\":null,\"aliasaddress\":null,\"aliastown\":null,\"aliaszip\":null,\"country_id\":\"::\",\"aliasphone\":null,\"aliasfax\":null,\"aliasemail\":null,\"aliasurl\":null,\"title_bgcolor\":null,\"pdfbackground\":null,\"pdfbackground_file\":null,\"newfont\":null,\"background\":null,\"background_file\":null,\"backgroundx\":null,\"backgroundy\":null,\"transparency\":null,\"borderleft\":\"no\"}', 0),
(2, 1, '2022-06-26 08:11:54', 'Serious Modèle', 'Modèle Serious', '2022-06-23 16:47:59', 7, '{\"dashdotted\":null,\"bgcolor\":\"ffffff\",\"title_bgcolor\":\"ffffff\",\"opacity\":\"0.5\",\"roundradius\":\"2\",\"bordercolor\":\"000000\",\"senderstyle\":\"S\",\"receiptstyle\":\"S\",\"textcolor\":\"000000\",\"footertextcolor\":null,\"qrcodecolor\":\"000000\",\"widthnumbering\":\"10\",\"widthdate\":\"20\",\"widthtype\":\"20\",\"widthproject\":\"20\",\"widthvat\":\"10\",\"widthup\":\"14\",\"widthqty\":\"12\",\"widthunit\":\"10\",\"widthdiscount\":\"20\",\"withref\":\"no\",\"widthref\":null,\"withoutvat\":\"no\",\"showdetails\":null,\"otherlogo\":null,\"otherlogo_file\":null,\"pdfbackground\":null,\"pdfbackground_file\":null,\"newfont\":null,\"otherfont\":\"helvetica\",\"heightforfreetext\":\"20\",\"freetextfontsize\":null,\"background\":null,\"background_file\":null,\"backgroundx\":null,\"backgroundy\":null,\"transparency\":null,\"imglinesize\":\"20\",\"logoheight\":\"33\",\"logowidth\":\"50\",\"otherlogoheight\":null,\"otherlogowidth\":null,\"invertSenderRecipient\":\"no\",\"widthrecbox\":\"93\",\"marge_gauche\":\"5\",\"marge_droite\":\"5\",\"marge_haute\":\"5\",\"marge_basse\":\"5\",\"borderleft\":\"no\",\"aliascompany\":null,\"aliasaddress\":null,\"aliaszip\":null,\"aliastown\":null,\"aliasphone\":null,\"aliasfax\":null,\"aliasemail\":null,\"aliasurl\":null,\"country_id\":\"::\"}', 1);

-- --------------------------------------------------------

--
-- Table structure for table `llx_ultimatepdf_documentmergedpdf`
--

CREATE TABLE `llx_ultimatepdf_documentmergedpdf` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) DEFAULT NULL,
  `fk_element` int(11) DEFAULT NULL,
  `file_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `element_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_user`
--

CREATE TABLE `llx_user` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref_ext` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `ref_int` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `admin` smallint(6) DEFAULT '0',
  `employee` tinyint(4) DEFAULT '1',
  `fk_establishment` int(11) DEFAULT '0',
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `login` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `pass_encoding` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
  `pass` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `pass_crypted` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `pass_temp` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `api_key` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `gender` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `civility` varchar(6) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lastname` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `firstname` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `zip` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `town` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fk_state` int(11) DEFAULT '0',
  `fk_country` int(11) DEFAULT '0',
  `birth` date DEFAULT NULL,
  `job` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `office_phone` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `office_fax` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `user_mobile` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `personal_mobile` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `personal_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `signature` text COLLATE utf8_unicode_ci,
  `socialnetworks` text COLLATE utf8_unicode_ci,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_socpeople` int(11) DEFAULT NULL,
  `fk_member` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_user_expense_validator` int(11) DEFAULT NULL,
  `fk_user_holiday_validator` int(11) DEFAULT NULL,
  `idpers1` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `idpers2` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `idpers3` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `note_public` text COLLATE utf8_unicode_ci,
  `note` text COLLATE utf8_unicode_ci,
  `model_pdf` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `datelastlogin` datetime DEFAULT NULL,
  `datepreviouslogin` datetime DEFAULT NULL,
  `datelastpassvalidation` datetime DEFAULT NULL,
  `datestartvalidity` datetime DEFAULT NULL,
  `dateendvalidity` datetime DEFAULT NULL,
  `iplastlogin` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  `ippreviouslogin` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  `egroupware_id` int(11) DEFAULT NULL,
  `ldap_sid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `openid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `statut` tinyint(4) DEFAULT '1',
  `photo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lang` varchar(6) COLLATE utf8_unicode_ci DEFAULT NULL,
  `color` varchar(6) COLLATE utf8_unicode_ci DEFAULT NULL,
  `barcode` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fk_barcode_type` int(11) DEFAULT '0',
  `accountancy_code` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nb_holiday` int(11) DEFAULT '0',
  `thm` double(24,8) DEFAULT NULL,
  `tjm` double(24,8) DEFAULT NULL,
  `salary` double(24,8) DEFAULT NULL,
  `salaryextra` double(24,8) DEFAULT NULL,
  `dateemployment` date DEFAULT NULL,
  `dateemploymentend` date DEFAULT NULL,
  `weeklyhours` double(16,8) DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL,
  `default_range` int(11) DEFAULT NULL,
  `default_c_exp_tax_cat` int(11) DEFAULT NULL,
  `fk_warehouse` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `llx_user`
--

INSERT INTO `llx_user` (`rowid`, `entity`, `ref_ext`, `ref_int`, `admin`, `employee`, `fk_establishment`, `datec`, `tms`, `fk_user_creat`, `fk_user_modif`, `login`, `pass_encoding`, `pass`, `pass_crypted`, `pass_temp`, `api_key`, `gender`, `civility`, `lastname`, `firstname`, `address`, `zip`, `town`, `fk_state`, `fk_country`, `birth`, `job`, `office_phone`, `office_fax`, `user_mobile`, `personal_mobile`, `email`, `personal_email`, `signature`, `socialnetworks`, `fk_soc`, `fk_socpeople`, `fk_member`, `fk_user`, `fk_user_expense_validator`, `fk_user_holiday_validator`, `idpers1`, `idpers2`, `idpers3`, `note_public`, `note`, `model_pdf`, `datelastlogin`, `datepreviouslogin`, `datelastpassvalidation`, `datestartvalidity`, `dateendvalidity`, `iplastlogin`, `ippreviouslogin`, `egroupware_id`, `ldap_sid`, `openid`, `statut`, `photo`, `lang`, `color`, `barcode`, `fk_barcode_type`, `accountancy_code`, `nb_holiday`, `thm`, `tjm`, `salary`, `salaryextra`, `dateemployment`, `dateemploymentend`, `weeklyhours`, `import_key`, `default_range`, `default_c_exp_tax_cat`, `fk_warehouse`) VALUES
(1, 0, NULL, NULL, 1, 1, 0, '2022-05-26 15:58:21', '2022-05-26 13:58:21', NULL, NULL, 'admin', NULL, NULL, '$2y$10$PxdLiucs3jljyn/GSBwtTeaLnDiHN.YbYTW0OnC/IYHWZ5e4GZ5HG', NULL, NULL, '', '', 'SuperAdmin', '', '', '', '', NULL, NULL, NULL, '', '', '', '', '', '', '', '', 'null', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', NULL, '2022-12-13 16:40:22', '2022-12-06 18:18:08', NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, 1, NULL, NULL, '', NULL, 0, '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(6, 1, NULL, NULL, 1, 0, 0, '2022-05-30 11:36:29', '2022-05-30 09:36:29', NULL, NULL, 'bertille', NULL, NULL, '$2y$10$Brv83c0rP7VkmWlK0.5NZOs/CfHTD8ggL4YI97XeMhQxLbcttOOkW', NULL, NULL, 'woman', 'MME', 'DANTHON', 'Bertille', '', '', '', NULL, NULL, NULL, '', '', '', '', '', '', '', '', '[]', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', NULL, '2022-12-20 11:03:21', '2022-12-19 10:37:32', NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, 1, NULL, NULL, '', NULL, 0, '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(7, 1, NULL, NULL, 1, 0, 0, '2022-05-30 11:37:21', '2022-05-30 09:37:21', NULL, NULL, 'christian', NULL, NULL, '$2y$10$7r92pMK3gpt9Go3l9l6wveUcO/PPzvnoX9HXv9/7gaVSCZtE80hd.', NULL, NULL, 'man', 'MR', 'GUGLIOTTA', 'Christian', '', '', '', NULL, NULL, NULL, '', '', '', '', '', '', '', '', '[]', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', NULL, '2022-12-23 11:47:15', '2022-12-22 19:24:18', NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, 1, NULL, NULL, '', NULL, 0, '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(8, 0, NULL, NULL, 1, 1, 0, '2022-05-30 11:40:20', '2022-06-14 12:53:35', NULL, NULL, 'splash', NULL, NULL, '$2y$10$AOiNdWXg/u2ijd8th9kTJeXR.zyk1LwPtHQnDACKErDsHfmOhdXiy', NULL, NULL, NULL, '', 'SPLASH', 'Splash', '', '', '', NULL, NULL, NULL, '', '', '', '', '', 'contact@splashsync.com', '', '', '[]', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', NULL, '2022-09-14 12:26:08', '2022-07-04 11:46:47', NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, 1, NULL, NULL, '', NULL, 0, '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(9, 1, NULL, NULL, 0, 1, 0, '2022-07-04 20:17:40', '2022-07-04 18:17:40', NULL, NULL, 'david', NULL, NULL, '$2y$10$ktPTCAOamfwcSCuIM93hNeCha6h.m8LROuUQNVC7poDUDAgxzrAry', NULL, NULL, 'man', '', 'MILC', 'David', '', '', '', NULL, NULL, NULL, 'Responsable Logistique', '', '', '', '', '', '', '', '[]', NULL, NULL, NULL, 7, NULL, NULL, NULL, NULL, NULL, '', '', NULL, '2022-07-05 15:43:17', '2022-07-04 20:19:41', NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, 1, NULL, NULL, '', NULL, 0, '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(10, 1, NULL, NULL, 1, 0, 0, '2022-12-14 01:37:36', '2022-12-14 00:37:36', NULL, NULL, 'jerome', NULL, NULL, '$2y$10$rOXJQ2IofNdi.dHEs8qNl.0ypAe3D5E8zhjv0FP9ztEKalp2sUfCW', NULL, NULL, 'man', 'MR', 'REYNIS', 'Jerome', '', '', '', NULL, NULL, NULL, '', '', '', '', '', 'jreynis@pole-sud.com', '', '', '[]', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, 1, NULL, NULL, '', NULL, 0, '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(11, 1, NULL, NULL, 1, 1, 0, '2022-12-18 20:06:45', '2022-12-18 19:06:45', NULL, NULL, 'stephanie', NULL, NULL, '$2y$10$l7lHfsUXAcyPEikW7DfwXu6Dde.1jwPWLKfmQyegPbXy9.ju8SCJ2', NULL, NULL, 'woman', 'MME', 'GLINA', 'Stéphanie', '', '', '', NULL, NULL, NULL, '', '', '', '', '', 'sglina@pole-sud.com', '', '', '[]', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, 1, NULL, NULL, '', NULL, 0, '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(12, 1, NULL, NULL, 1, 0, 0, '2022-12-18 20:10:47', '2022-12-18 19:10:47', NULL, NULL, 'karine', NULL, NULL, '$2y$10$Krl./kY40SpIA8TKiuVwvunKSErISwc2u8WcE8Q5aKfNNVcndtVci', NULL, NULL, 'woman', 'MME', 'LAUGA', 'Karine', '', '', '', NULL, NULL, NULL, '', '', '', '', '', 'klauga@pole-sud.com', '', '', '[]', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', NULL, '2022-12-19 14:42:47', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, 1, NULL, NULL, '', NULL, 0, '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `llx_usergroup`
--

CREATE TABLE `llx_usergroup` (
  `rowid` int(11) NOT NULL,
  `nom` varchar(180) COLLATE utf8_unicode_ci NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `note` text COLLATE utf8_unicode_ci,
  `model_pdf` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_usergroup_extrafields`
--

CREATE TABLE `llx_usergroup_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_usergroup_rights`
--

CREATE TABLE `llx_usergroup_rights` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `fk_usergroup` int(11) NOT NULL,
  `fk_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_usergroup_user`
--

CREATE TABLE `llx_usergroup_user` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `fk_user` int(11) NOT NULL,
  `fk_usergroup` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_user_alert`
--

CREATE TABLE `llx_user_alert` (
  `rowid` int(11) NOT NULL,
  `type` int(11) DEFAULT NULL,
  `fk_contact` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_user_clicktodial`
--

CREATE TABLE `llx_user_clicktodial` (
  `fk_user` int(11) NOT NULL,
  `url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `login` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `pass` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `poste` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_user_employment`
--

CREATE TABLE `llx_user_employment` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `ref_ext` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `job` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` int(11) NOT NULL,
  `salary` double(24,8) DEFAULT NULL,
  `salaryextra` double(24,8) DEFAULT NULL,
  `weeklyhours` double(16,8) DEFAULT NULL,
  `dateemployment` date DEFAULT NULL,
  `dateemploymentend` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_user_extrafields`
--

CREATE TABLE `llx_user_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_user_param`
--

CREATE TABLE `llx_user_param` (
  `fk_user` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `param` varchar(180) COLLATE utf8_unicode_ci NOT NULL,
  `value` text COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `llx_user_param`
--

INSERT INTO `llx_user_param` (`fk_user`, `entity`, `param`, `value`) VALUES
(1, 1, 'MAIN_SELECTEDFIELDS_b4dbankrecordslist', 'br.rowid,br.id_record,br.sub_record_type,br.comment,br.commission,'),
(1, 1, 'MAIN_SELECTEDFIELDS_banking4dolibarr_banking4dolibarrbankaccounts_dictionarylineslist', 'datas,label,type_id,currency_code,bank_id,bic,iban,fk_bank_account,cron_refresh_bank_records,'),
(1, 1, 'MAIN_SELECTEDFIELDS_banktransactionlist', 'b.conciliated,balancebefore,ba.ref,b.rowid,b.label,b.dateo,b.datev,type,b.num_chq,bu.label,b.debit,b.credit,balance,b.num_releve,'),
(1, 1, 'MAIN_SELECTEDFIELDS_invoicelist', 'f.ref,f.ref_client,f.type,f.datef,f.date_lim_reglement,p.ref,s.nom,s.name_alias,s.zip,country.code_iso,f.total_ht,ef.invoice_origin_number_dolibarr,f.total_ttc,dynamount_payed,rtp,u.login,f.fk_mode_reglement,f.fk_statut,'),
(1, 1, 'MAIN_SELECTEDFIELDS_orderlist', 'el4.nom_utilisateur,el4.role_utilisateur,c.ref,c.ref_client,ef.percent_expense,s.nom,c.date_commande,c.date_delivery,c.total_ht,c.total_vat,c.total_ttc,ef.total_ht_no_transport,ef.frais_transport,ef.order_number_sage,u.login,shippable,c.facture,c.fk_statut,'),
(1, 1, 'MAIN_SELECTEDFIELDS_poslist', 'ef.nom_societe_sage,ef.type_client,s.price_level,s.email,s.town,s.nom,s.name_alias,s.code_client,s.zip,s.phone,typent.code,customerorsupplier,ef.nom_utilisateur,ef.client_newsletter,ef.role_utilisateur,ef.shop_official,ef.groupe_client,s.status,'),
(1, 1, 'MAIN_SELECTEDFIELDS_pricesuppliercard', 'ef.marque,ef.maker,ef.refmaker,pfp.datec,s.nom,pfp.quantity,pfp.unitprice,pfp.delivery_time_days,pfp.supplier_reputation,pfp.tms,'),
(1, 1, 'MAIN_SELECTEDFIELDS_productlist', 'p.weight_units,p.weight,p.ref,p.label,p.barcode,p.sellprice1,p.sellprice2,p.sellprice3,p.sellprice4,p.sellprice5,p.sellprice6,p.sellprice7,p.minbuyprice,p.numbuyprice,p.pmp,p.desiredstock,p.stock,stock_virtual,ef.slug_boutique,ef.statut_produit_site,ef.date_creation_produit,ef.derniere_modif_produit,p.tobuy,p.tosell,'),
(1, 1, 'MAIN_SELECTEDFIELDS_productservicelist', 'p.weight_units,p.weight,p.ref,p.label,p.barcode,p.sellprice1,p.sellprice2,p.sellprice3,p.sellprice4,p.sellprice5,p.sellprice6,p.sellprice7,p.minbuyprice,p.desiredstock,p.stock,stock_virtual,ef.slug_boutique,ef.statut_produit_site,ef.date_creation_produit,ef.derniere_modif_produit,p.tobuy,p.tosell,'),
(1, 1, 'MAIN_SELECTEDFIELDS_projectlist', 'opp_weighted_amount,p.usage_bill_time,ef.newtitle,p.ref,p.title,s.nom,p.dateo,p.datee,p.public,p.fk_opp_status,p.opp_percent,p.opp_amount,p.budget_amount,p.fk_statut,'),
(1, 1, 'MAIN_SELECTEDFIELDS_shipmentlist', 'e.datec,e.tms,e.ref,e.tracking_number,e.ref_customer,e.date_delivery,s.zip,s.town,s.nom,ef.status_livraison,ef.date_status,e.fk_statut,'),
(1, 1, 'MAIN_SELECTEDFIELDS_supplierinvoicelist', 'f.multicurrency_tx,f.multicurrency_total_ht,f.ref,multicurrency_dynamount_payed,f.multicurrency_code,rtp,dynamount_payed,u.login,multicurrency_rtp,f.ref_supplier,s.zip,s.nom,p.ref,f.date_lim_reglement,f.datef,f.type,f.fk_cond_reglement,f.fk_mode_reglement,f.total_ht,f.total_vat,f.total_ttc,f.fk_statut,'),
(1, 1, 'MAIN_SELECTEDFIELDS_supplierorderlist', 'cf.tms,cf.datec,cf.ref,cf.total_ht,ef.signature,cf.ref_supplier,cf.date_livraison,s.town,cf.date_commande,s.nom,u.login,s.zip,ef.order_number_sage_fourn,ef.total_ht_no_transport_fourn,ef.frais_transport_fourn,cf.fk_statut,cf.billed,'),
(1, 1, 'MAIN_SELECTEDFIELDS_thirdpartylist', 's.price_level,s.nom,s.name_alias,s.barcode,s.code_client,s.code_fournisseur,s.code_compta,s.code_compta_fournisseur,s.address,s.zip,s.town,country.code_iso,s.email,s.url,s.phone,s.fax,typent.code,customerorsupplier,s.fk_prospectlevel,s.fk_stcomm,ef.sirene_status,ef.sirene_update_date,ef.abrege_sage,ef.client_date_creation,ef.type_client,ef.categorie_comptable,ef.nom_societe_sage,ef.code_comptable_sage,ef.code_societe,ef.nom_utilisateur,ef.client_newsletter,ef.role_utilisateur,ef.shop_official,ef.groupe_client,s.tms,s.datec,s.status,s.import_key,'),
(6, 1, 'MAIN_SELECTEDFIELDS_invoicelist', 'f.ref_client,ef.signature,ef.newline,ef.newtitle,f.ref,f.datef,f.date_lim_reglement,p.ref,s.nom,s.name_alias,s.zip,f.total_ht,f.total_ttc,u.login,f.fk_statut,'),
(6, 1, 'MAIN_SELECTEDFIELDS_orderlist', 'c.ref_client,ef.newtitle,ef.newline,ef.signature,c.ref,ef.percent_expense,s.nom,c.date_commande,c.date_delivery,c.total_ht,ef.url_commande,ef.total_ht_no_transport,ef.frais_transport,ef.order_number_sage,u.login,shippable,c.facture,c.fk_statut,'),
(6, 1, 'MAIN_SELECTEDFIELDS_productlist', 'p.ref,p.label,p.weight,p.sellprice1,p.sellprice2,p.sellprice3,p.sellprice4,p.sellprice5,p.sellprice6,p.sellprice7,p.stock,stock_virtual,ef.description_produit,ef.slug_boutique,ef.statut_produit_site,ef.date_creation_produit,ef.derniere_modif_produit,p.tobuy,p.tosell,'),
(6, 1, 'MAIN_SELECTEDFIELDS_productservicelist', 'p.ref,p.label,p.barcode,p.sellprice1,p.sellprice2,p.sellprice3,p.sellprice4,p.sellprice5,p.sellprice6,p.sellprice7,p.desiredstock,p.stock,stock_virtual,ef.description_produit,ef.slug_boutique,ef.statut_produit_site,ef.date_creation_produit,ef.derniere_modif_produit,p.tobuy,p.tosell,'),
(6, 1, 'MAIN_SELECTEDFIELDS_servicelist', 'p.ref,p.label,p.tobuy,p.tosell,'),
(6, 1, 'MAIN_SELECTEDFIELDS_thirdpartylist', 's.email,s.nom,s.name_alias,s.barcode,s.code_client,s.zip,s.phone,typent.code,customerorsupplier,ef.sirene_status,ef.sirene_update_date,ef.abrege_sage,ef.client_date_creation,ef.type_client,ef.categorie_comptable,ef.nom_societe_sage,ef.code_comptable_sage,ef.code_societe,ef.role_utilisateur,ef.nom_utilisateur,ef.client_newsletter,ef.shop_official,ef.groupe_client,s.status,'),
(7, 1, 'MAIN_SELECTEDFIELDS_b4dbankrecordslist', 'br.sub_record_type,br.id_record,bank_list,br.coming,br.deleted_date,'),
(7, 1, 'MAIN_SELECTEDFIELDS_invoicelist', 'f.type,f.ref,f.ref_client,f.datef,s.nom,country.code_iso,f.total_ht,f.total_tva,f.total_ttc,dynamount_payed,rtp,u.login,f.fk_statut,'),
(7, 1, 'MAIN_SELECTEDFIELDS_movementlist', 'p.label,m.rowid,m.datem,p.ref,m.batch,e.ref,m.inventorycode,m.label,origin,m.value,'),
(7, 1, 'MAIN_SELECTEDFIELDS_orderlist', 'c.ref,c.ref_client,s.nom,c.date_commande,c.total_ht,c.total_vat,c.total_ttc,u.login,c.facture,c.fk_statut,'),
(7, 1, 'MAIN_SELECTEDFIELDS_productlist', 'p.sellprice1,p.ref,p.label,p.fk_product_type,p.weight,p.pmp,p.stock,stock_virtual,ef.statut_produit_site,p.tobuy,p.tosell,'),
(7, 1, 'MAIN_SELECTEDFIELDS_productservicelist', 'p.minbuyprice,p.cost_price,p.pmp,p.ref,p.label,p.fk_product_type,p.sellprice1,p.desiredstock,p.stock,stock_virtual,ef.statut_produit_site,ef.date_creation_produit,ef.derniere_modif_produit,p.tobuy,p.tosell,'),
(7, 1, 'MAIN_SELECTEDFIELDS_servicelist', 'p.ref,p.label,p.sellprice1,ef.statut_produit_site,ef.date_creation_produit,ef.derniere_modif_produit,p.tobuy,p.tosell,'),
(7, 1, 'MAIN_SELECTEDFIELDS_shipmentlist', 'e.datec,e.tms,ef.date_status,e.ref,e.tracking_number,e.ref_customer,e.date_delivery,s.zip,s.town,s.nom,ef.status_livraison,e.fk_statut,'),
(7, 1, 'MAIN_SELECTEDFIELDS_supplierinvoicelist', 'f.multicurrency_total_vat,f.ref,rtp,dynamount_payed,u.login,f.ref_supplier,country.code_iso,s.zip,s.nom,f.date_lim_reglement,f.datef,f.type,f.fk_cond_reglement,f.fk_mode_reglement,ef.total_invoice_ht_no_transport,ef.invoice_number_sage_fourn,ef.frais_facture_transport_fourn,f.total_ht,f.fk_statut,'),
(7, 1, 'MAIN_SELECTEDFIELDS_thirdpartylist', 'country.code_iso,s.nom,s.name_alias,s.barcode,s.code_client,s.zip,s.phone,typent.code,customerorsupplier,ef.sirene_status,ef.b4d_spe_name,ef.sirene_update_date,ef.abrege_sage,ef.client_date_creation,ef.type_client,ef.categorie_comptable,ef.nom_societe_sage,ef.code_comptable_sage,ef.code_societe,ef.nom_utilisateur,ef.client_newsletter,ef.role_utilisateur,ef.shop_official,ef.groupe_client,s.status,'),
(9, 1, 'MAIN_LANDING_PAGE', 'product/index.php?mainmenu=products&leftmenu='),
(9, 1, 'MAIN_SELECTEDFIELDS_shipmentlist', 'e.datec,e.tms,e.ref,e.tracking_number,e.ref_customer,e.date_delivery,country.code_iso,s.zip,s.town,s.nom,ef.status_livraison,e.fk_statut,');

-- --------------------------------------------------------

--
-- Table structure for table `llx_user_rib`
--

CREATE TABLE `llx_user_rib` (
  `rowid` int(11) NOT NULL,
  `fk_user` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `label` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bank` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `code_banque` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `code_guichet` varchar(6) COLLATE utf8_unicode_ci DEFAULT NULL,
  `number` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cle_rib` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bic` varchar(11) COLLATE utf8_unicode_ci DEFAULT NULL,
  `iban_prefix` varchar(34) COLLATE utf8_unicode_ci DEFAULT NULL,
  `domiciliation` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `proprio` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL,
  `owner_address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_user_rights`
--

CREATE TABLE `llx_user_rights` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `fk_user` int(11) NOT NULL,
  `fk_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `llx_user_rights`
--

INSERT INTO `llx_user_rights` (`rowid`, `entity`, `fk_user`, `fk_id`) VALUES
(3566, 1, 1, 11),
(3539, 1, 1, 12),
(3546, 1, 1, 13),
(3550, 1, 1, 14),
(3554, 1, 1, 15),
(3559, 1, 1, 16),
(3567, 1, 1, 19),
(52, 1, 1, 21),
(46, 1, 1, 22),
(47, 1, 1, 24),
(48, 1, 1, 25),
(49, 1, 1, 26),
(51, 1, 1, 27),
(53, 1, 1, 28),
(216, 1, 1, 31),
(211, 1, 1, 32),
(213, 1, 1, 34),
(215, 1, 1, 38),
(217, 1, 1, 39),
(264, 1, 1, 41),
(261, 1, 1, 42),
(263, 1, 1, 44),
(265, 1, 1, 45),
(3442, 1, 1, 81),
(3419, 1, 1, 82),
(3426, 1, 1, 84),
(3430, 1, 1, 86),
(3434, 1, 1, 87),
(3438, 1, 1, 88),
(3443, 1, 1, 89),
(168, 1, 1, 91),
(165, 1, 1, 92),
(167, 1, 1, 93),
(169, 1, 1, 94),
(70, 1, 1, 101),
(66, 1, 1, 102),
(67, 1, 1, 104),
(68, 1, 1, 105),
(69, 1, 1, 106),
(71, 1, 1, 109),
(3370, 1, 1, 111),
(3331, 1, 1, 112),
(3339, 1, 1, 113),
(3347, 1, 1, 114),
(3355, 1, 1, 115),
(3363, 1, 1, 116),
(3371, 1, 1, 117),
(3846, 1, 1, 121),
(3831, 1, 1, 122),
(3839, 1, 1, 125),
(3847, 1, 1, 126),
(269, 1, 1, 141),
(268, 1, 1, 142),
(270, 1, 1, 144),
(204, 1, 1, 151),
(201, 1, 1, 152),
(203, 1, 1, 153),
(205, 1, 1, 154),
(105, 1, 1, 161),
(98, 1, 1, 162),
(100, 1, 1, 163),
(102, 1, 1, 164),
(104, 1, 1, 165),
(106, 1, 1, 167),
(286, 1, 1, 241),
(285, 1, 1, 242),
(287, 1, 1, 243),
(4578, 1, 1, 251),
(4502, 1, 1, 252),
(4507, 1, 1, 253),
(4514, 1, 1, 254),
(4519, 1, 1, 255),
(4527, 1, 1, 256),
(3854, 1, 1, 262),
(3878, 1, 1, 281),
(3863, 1, 1, 282),
(3871, 1, 1, 283),
(3879, 1, 1, 286),
(3378, 1, 1, 301),
(3382, 1, 1, 302),
(291, 1, 1, 331),
(290, 1, 1, 332),
(292, 1, 1, 333),
(4534, 1, 1, 341),
(4538, 1, 1, 342),
(4542, 1, 1, 343),
(4546, 1, 1, 344),
(4570, 1, 1, 351),
(4555, 1, 1, 352),
(4563, 1, 1, 353),
(4571, 1, 1, 354),
(4579, 1, 1, 358),
(312, 1, 1, 431),
(177, 1, 1, 521),
(172, 1, 1, 522),
(174, 1, 1, 524),
(176, 1, 1, 525),
(178, 1, 1, 527),
(3818, 1, 1, 531),
(3803, 1, 1, 532),
(3811, 1, 1, 534),
(3819, 1, 1, 538),
(197, 1, 1, 561),
(194, 1, 1, 562),
(196, 1, 1, 563),
(198, 1, 1, 564),
(3318, 1, 1, 651),
(3311, 1, 1, 652),
(3319, 1, 1, 653),
(3758, 1, 1, 661),
(3751, 1, 1, 662),
(3759, 1, 1, 663),
(3526, 1, 1, 771),
(3479, 1, 1, 772),
(3487, 1, 1, 773),
(3495, 1, 1, 775),
(3503, 1, 1, 776),
(3511, 1, 1, 777),
(3519, 1, 1, 778),
(3527, 1, 1, 779),
(241, 1, 1, 1001),
(240, 1, 1, 1002),
(242, 1, 1, 1003),
(244, 1, 1, 1004),
(245, 1, 1, 1005),
(247, 1, 1, 1011),
(248, 1, 1, 1012),
(76, 1, 1, 1101),
(74, 1, 1, 1102),
(75, 1, 1, 1104),
(77, 1, 1, 1109),
(141, 1, 1, 1121),
(134, 1, 1, 1122),
(136, 1, 1, 1123),
(138, 1, 1, 1124),
(140, 1, 1, 1125),
(142, 1, 1, 1126),
(3582, 1, 1, 1181),
(3638, 1, 1, 1182),
(3591, 1, 1, 1183),
(3598, 1, 1, 1184),
(3603, 1, 1, 1185),
(3611, 1, 1, 1186),
(3619, 1, 1, 1187),
(3631, 1, 1, 1188),
(3626, 1, 1, 1189),
(3639, 1, 1, 1191),
(297, 1, 1, 1201),
(298, 1, 1, 1202),
(3674, 1, 1, 1231),
(3651, 1, 1, 1232),
(3658, 1, 1, 1233),
(3663, 1, 1, 1234),
(3670, 1, 1, 1235),
(3675, 1, 1, 1236),
(295, 1, 1, 1251),
(3574, 1, 1, 1321),
(3578, 1, 1, 1322),
(3450, 1, 1, 1421),
(3274, 1, 1, 2401),
(3267, 1, 1, 2402),
(3275, 1, 1, 2403),
(3294, 1, 1, 2411),
(3287, 1, 1, 2412),
(3295, 1, 1, 2413),
(3302, 1, 1, 2414),
(3466, 1, 1, 2501),
(3459, 1, 1, 2503),
(3467, 1, 1, 2515),
(302, 1, 1, 3201),
(5787, 1, 1, 9201),
(5760, 1, 1, 9202),
(5774, 1, 1, 9203),
(5788, 1, 1, 9204),
(3726, 1, 1, 20001),
(3687, 1, 1, 20002),
(3695, 1, 1, 20003),
(3711, 1, 1, 20004),
(3719, 1, 1, 20005),
(3727, 1, 1, 20006),
(3703, 1, 1, 20007),
(3406, 1, 1, 23001),
(3391, 1, 1, 23002),
(3399, 1, 1, 23003),
(3407, 1, 1, 23004),
(3914, 1, 1, 50151),
(3918, 1, 1, 50152),
(3922, 1, 1, 50153),
(3214, 1, 1, 50401),
(3246, 1, 1, 50411),
(3223, 1, 1, 50412),
(3231, 1, 1, 50414),
(3239, 1, 1, 50415),
(3247, 1, 1, 50418),
(3254, 1, 1, 50420),
(3258, 1, 1, 50430),
(3210, 1, 1, 50440),
(3906, 1, 1, 56001),
(3891, 1, 1, 56002),
(3899, 1, 1, 56003),
(3907, 1, 1, 56004),
(3734, 1, 1, 59001),
(3738, 1, 1, 59002),
(3742, 1, 1, 59003),
(3790, 1, 1, 63001),
(3775, 1, 1, 63002),
(3783, 1, 1, 63003),
(3791, 1, 1, 63004),
(3766, 1, 1, 64001),
(311, 1, 1, 67001),
(3018, 1, 1, 104021),
(3078, 1, 1, 104050),
(4999, 1, 1, 104130),
(4798, 1, 1, 141151),
(326, 1, 1, 163028),
(323, 1, 1, 163029),
(325, 1, 1, 163030),
(327, 1, 1, 163031),
(1982, 1, 1, 163061),
(1998, 1, 1, 163070),
(1991, 1, 1, 163071),
(1999, 1, 1, 163072),
(6228, 1, 1, 163073),
(6145, 1, 1, 163074),
(6159, 1, 1, 163075),
(6173, 1, 1, 163083),
(6187, 1, 1, 163084),
(6201, 1, 1, 163085),
(6215, 1, 1, 163086),
(6229, 1, 1, 163091),
(2066, 1, 1, 163099),
(6242, 1, 1, 163127),
(3042, 1, 1, 300100),
(3027, 1, 1, 300101),
(3035, 1, 1, 300102),
(3043, 1, 1, 300103),
(149, 1, 1, 941601),
(145, 1, 1, 941602),
(146, 1, 1, 941603),
(147, 1, 1, 941604),
(148, 1, 1, 941605),
(150, 1, 1, 941606),
(4989, 1, 1, 1040741),
(4960, 1, 1, 1040742),
(4970, 1, 1, 1040743),
(4980, 1, 1, 1040744),
(4990, 1, 1, 1040745),
(2998, 1, 1, 1048560),
(4894, 1, 1, 1048740),
(4899, 1, 1, 1048741),
(4904, 1, 1, 1048742),
(6284, 1, 1, 1600151),
(6257, 1, 1, 1600152),
(6271, 1, 1, 1600153),
(6285, 1, 1, 1600154),
(2070, 1, 1, 30250201),
(3568, 1, 6, 11),
(3541, 1, 6, 12),
(3547, 1, 6, 13),
(3551, 1, 6, 14),
(3555, 1, 6, 15),
(3561, 1, 6, 16),
(3569, 1, 6, 19),
(617, 1, 6, 21),
(618, 1, 6, 22),
(619, 1, 6, 24),
(620, 1, 6, 25),
(621, 1, 6, 26),
(622, 1, 6, 27),
(623, 1, 6, 28),
(624, 1, 6, 31),
(625, 1, 6, 32),
(626, 1, 6, 34),
(627, 1, 6, 38),
(628, 1, 6, 39),
(629, 1, 6, 41),
(630, 1, 6, 42),
(631, 1, 6, 44),
(632, 1, 6, 45),
(3444, 1, 6, 81),
(3421, 1, 6, 82),
(3427, 1, 6, 84),
(3431, 1, 6, 86),
(3435, 1, 6, 87),
(3439, 1, 6, 88),
(3445, 1, 6, 89),
(640, 1, 6, 91),
(641, 1, 6, 92),
(642, 1, 6, 93),
(643, 1, 6, 94),
(644, 1, 6, 101),
(645, 1, 6, 102),
(646, 1, 6, 104),
(647, 1, 6, 105),
(648, 1, 6, 106),
(649, 1, 6, 109),
(3372, 1, 6, 111),
(3333, 1, 6, 112),
(3341, 1, 6, 113),
(3349, 1, 6, 114),
(3357, 1, 6, 115),
(3365, 1, 6, 116),
(3373, 1, 6, 117),
(3848, 1, 6, 121),
(3833, 1, 6, 122),
(3841, 1, 6, 125),
(3849, 1, 6, 126),
(661, 1, 6, 141),
(662, 1, 6, 142),
(663, 1, 6, 144),
(664, 1, 6, 151),
(665, 1, 6, 152),
(666, 1, 6, 153),
(667, 1, 6, 154),
(668, 1, 6, 161),
(669, 1, 6, 162),
(670, 1, 6, 163),
(671, 1, 6, 164),
(672, 1, 6, 165),
(673, 1, 6, 167),
(674, 1, 6, 241),
(675, 1, 6, 242),
(676, 1, 6, 243),
(4580, 1, 6, 251),
(4503, 1, 6, 252),
(4509, 1, 6, 253),
(4515, 1, 6, 254),
(4521, 1, 6, 255),
(4529, 1, 6, 256),
(3855, 1, 6, 262),
(3880, 1, 6, 281),
(3865, 1, 6, 282),
(3873, 1, 6, 283),
(3881, 1, 6, 286),
(3379, 1, 6, 301),
(3383, 1, 6, 302),
(690, 1, 6, 331),
(691, 1, 6, 332),
(692, 1, 6, 333),
(4535, 1, 6, 341),
(4539, 1, 6, 342),
(4543, 1, 6, 343),
(4547, 1, 6, 344),
(4572, 1, 6, 351),
(4557, 1, 6, 352),
(4565, 1, 6, 353),
(4573, 1, 6, 354),
(4581, 1, 6, 358),
(702, 1, 6, 431),
(703, 1, 6, 521),
(704, 1, 6, 522),
(705, 1, 6, 524),
(706, 1, 6, 525),
(707, 1, 6, 527),
(3820, 1, 6, 531),
(3805, 1, 6, 532),
(3813, 1, 6, 534),
(3821, 1, 6, 538),
(712, 1, 6, 561),
(713, 1, 6, 562),
(714, 1, 6, 563),
(715, 1, 6, 564),
(3320, 1, 6, 651),
(3313, 1, 6, 652),
(3321, 1, 6, 653),
(3760, 1, 6, 661),
(3753, 1, 6, 662),
(3761, 1, 6, 663),
(3528, 1, 6, 771),
(3481, 1, 6, 772),
(3489, 1, 6, 773),
(3497, 1, 6, 775),
(3505, 1, 6, 776),
(3513, 1, 6, 777),
(3521, 1, 6, 778),
(3529, 1, 6, 779),
(730, 1, 6, 1001),
(731, 1, 6, 1002),
(732, 1, 6, 1003),
(733, 1, 6, 1004),
(734, 1, 6, 1005),
(735, 1, 6, 1011),
(736, 1, 6, 1012),
(737, 1, 6, 1014),
(738, 1, 6, 1015),
(739, 1, 6, 1016),
(740, 1, 6, 1101),
(741, 1, 6, 1102),
(742, 1, 6, 1104),
(743, 1, 6, 1109),
(744, 1, 6, 1121),
(745, 1, 6, 1122),
(746, 1, 6, 1123),
(747, 1, 6, 1124),
(748, 1, 6, 1125),
(749, 1, 6, 1126),
(3583, 1, 6, 1181),
(3640, 1, 6, 1182),
(3593, 1, 6, 1183),
(3599, 1, 6, 1184),
(3605, 1, 6, 1185),
(3613, 1, 6, 1186),
(3621, 1, 6, 1187),
(3633, 1, 6, 1188),
(3627, 1, 6, 1189),
(3641, 1, 6, 1191),
(760, 1, 6, 1201),
(761, 1, 6, 1202),
(3676, 1, 6, 1231),
(3653, 1, 6, 1232),
(3659, 1, 6, 1233),
(3665, 1, 6, 1234),
(3671, 1, 6, 1235),
(3677, 1, 6, 1236),
(768, 1, 6, 1251),
(3575, 1, 6, 1321),
(3579, 1, 6, 1322),
(3451, 1, 6, 1421),
(3276, 1, 6, 2401),
(3269, 1, 6, 2402),
(3277, 1, 6, 2403),
(3296, 1, 6, 2411),
(3289, 1, 6, 2412),
(3297, 1, 6, 2413),
(3303, 1, 6, 2414),
(3468, 1, 6, 2501),
(3461, 1, 6, 2503),
(3469, 1, 6, 2515),
(782, 1, 6, 3201),
(5789, 1, 6, 9201),
(5762, 1, 6, 9202),
(5776, 1, 6, 9203),
(5790, 1, 6, 9204),
(3728, 1, 6, 20001),
(3689, 1, 6, 20002),
(3697, 1, 6, 20003),
(3713, 1, 6, 20004),
(3721, 1, 6, 20005),
(3729, 1, 6, 20006),
(3705, 1, 6, 20007),
(3408, 1, 6, 23001),
(3393, 1, 6, 23002),
(3401, 1, 6, 23003),
(3409, 1, 6, 23004),
(3915, 1, 6, 50151),
(3919, 1, 6, 50152),
(3923, 1, 6, 50153),
(3215, 1, 6, 50401),
(3248, 1, 6, 50411),
(3225, 1, 6, 50412),
(3233, 1, 6, 50414),
(3241, 1, 6, 50415),
(3249, 1, 6, 50418),
(3255, 1, 6, 50420),
(3259, 1, 6, 50430),
(3211, 1, 6, 50440),
(3908, 1, 6, 56001),
(3893, 1, 6, 56002),
(3901, 1, 6, 56003),
(3909, 1, 6, 56004),
(3735, 1, 6, 59001),
(3739, 1, 6, 59002),
(3743, 1, 6, 59003),
(3792, 1, 6, 63001),
(3777, 1, 6, 63002),
(3785, 1, 6, 63003),
(3793, 1, 6, 63004),
(3767, 1, 6, 64001),
(818, 1, 6, 67001),
(3019, 1, 6, 104021),
(3079, 1, 6, 104050),
(5000, 1, 6, 104130),
(4799, 1, 6, 141151),
(820, 1, 6, 163028),
(821, 1, 6, 163029),
(822, 1, 6, 163030),
(823, 1, 6, 163031),
(1983, 1, 6, 163061),
(2000, 1, 6, 163070),
(1993, 1, 6, 163071),
(2001, 1, 6, 163072),
(6230, 1, 6, 163073),
(6147, 1, 6, 163074),
(6161, 1, 6, 163075),
(6175, 1, 6, 163083),
(6189, 1, 6, 163084),
(6203, 1, 6, 163085),
(6217, 1, 6, 163086),
(6231, 1, 6, 163091),
(2067, 1, 6, 163099),
(6243, 1, 6, 163127),
(3044, 1, 6, 300100),
(3029, 1, 6, 300101),
(3037, 1, 6, 300102),
(3045, 1, 6, 300103),
(829, 1, 6, 941601),
(830, 1, 6, 941602),
(831, 1, 6, 941603),
(832, 1, 6, 941604),
(833, 1, 6, 941605),
(834, 1, 6, 941606),
(4991, 1, 6, 1040741),
(4962, 1, 6, 1040742),
(4972, 1, 6, 1040743),
(4982, 1, 6, 1040744),
(4992, 1, 6, 1040745),
(2999, 1, 6, 1048560),
(4895, 1, 6, 1048740),
(4900, 1, 6, 1048741),
(4905, 1, 6, 1048742),
(6286, 1, 6, 1600151),
(6259, 1, 6, 1600152),
(6273, 1, 6, 1600153),
(6287, 1, 6, 1600154),
(2071, 1, 6, 30250201),
(3570, 1, 7, 11),
(3543, 1, 7, 12),
(3548, 1, 7, 13),
(3552, 1, 7, 14),
(3556, 1, 7, 15),
(3563, 1, 7, 16),
(3571, 1, 7, 19),
(392, 1, 7, 21),
(393, 1, 7, 22),
(394, 1, 7, 24),
(395, 1, 7, 25),
(396, 1, 7, 26),
(397, 1, 7, 27),
(398, 1, 7, 28),
(399, 1, 7, 31),
(400, 1, 7, 32),
(401, 1, 7, 34),
(402, 1, 7, 38),
(403, 1, 7, 39),
(404, 1, 7, 41),
(405, 1, 7, 42),
(406, 1, 7, 44),
(407, 1, 7, 45),
(3446, 1, 7, 81),
(3423, 1, 7, 82),
(3428, 1, 7, 84),
(3432, 1, 7, 86),
(3436, 1, 7, 87),
(3440, 1, 7, 88),
(3447, 1, 7, 89),
(415, 1, 7, 91),
(416, 1, 7, 92),
(417, 1, 7, 93),
(418, 1, 7, 94),
(419, 1, 7, 101),
(420, 1, 7, 102),
(421, 1, 7, 104),
(422, 1, 7, 105),
(423, 1, 7, 106),
(424, 1, 7, 109),
(3374, 1, 7, 111),
(3335, 1, 7, 112),
(3343, 1, 7, 113),
(3351, 1, 7, 114),
(3359, 1, 7, 115),
(3367, 1, 7, 116),
(3375, 1, 7, 117),
(3850, 1, 7, 121),
(3835, 1, 7, 122),
(3843, 1, 7, 125),
(3851, 1, 7, 126),
(436, 1, 7, 141),
(437, 1, 7, 142),
(438, 1, 7, 144),
(439, 1, 7, 151),
(440, 1, 7, 152),
(441, 1, 7, 153),
(442, 1, 7, 154),
(443, 1, 7, 161),
(444, 1, 7, 162),
(445, 1, 7, 163),
(446, 1, 7, 164),
(447, 1, 7, 165),
(448, 1, 7, 167),
(449, 1, 7, 241),
(450, 1, 7, 242),
(451, 1, 7, 243),
(4582, 1, 7, 251),
(4504, 1, 7, 252),
(4511, 1, 7, 253),
(4516, 1, 7, 254),
(4523, 1, 7, 255),
(4531, 1, 7, 256),
(3856, 1, 7, 262),
(3882, 1, 7, 281),
(3867, 1, 7, 282),
(3875, 1, 7, 283),
(3883, 1, 7, 286),
(3380, 1, 7, 301),
(3384, 1, 7, 302),
(465, 1, 7, 331),
(466, 1, 7, 332),
(467, 1, 7, 333),
(4536, 1, 7, 341),
(4540, 1, 7, 342),
(4544, 1, 7, 343),
(4548, 1, 7, 344),
(4574, 1, 7, 351),
(4559, 1, 7, 352),
(4567, 1, 7, 353),
(4575, 1, 7, 354),
(4583, 1, 7, 358),
(477, 1, 7, 431),
(478, 1, 7, 521),
(479, 1, 7, 522),
(480, 1, 7, 524),
(481, 1, 7, 525),
(482, 1, 7, 527),
(3822, 1, 7, 531),
(3807, 1, 7, 532),
(3815, 1, 7, 534),
(3823, 1, 7, 538),
(487, 1, 7, 561),
(488, 1, 7, 562),
(489, 1, 7, 563),
(490, 1, 7, 564),
(3322, 1, 7, 651),
(3315, 1, 7, 652),
(3323, 1, 7, 653),
(3762, 1, 7, 661),
(3755, 1, 7, 662),
(3763, 1, 7, 663),
(3530, 1, 7, 771),
(3483, 1, 7, 772),
(3491, 1, 7, 773),
(3499, 1, 7, 775),
(3507, 1, 7, 776),
(3515, 1, 7, 777),
(3523, 1, 7, 778),
(3531, 1, 7, 779),
(505, 1, 7, 1001),
(506, 1, 7, 1002),
(507, 1, 7, 1003),
(508, 1, 7, 1004),
(509, 1, 7, 1005),
(510, 1, 7, 1011),
(511, 1, 7, 1012),
(512, 1, 7, 1014),
(513, 1, 7, 1015),
(514, 1, 7, 1016),
(515, 1, 7, 1101),
(516, 1, 7, 1102),
(517, 1, 7, 1104),
(518, 1, 7, 1109),
(519, 1, 7, 1121),
(520, 1, 7, 1122),
(521, 1, 7, 1123),
(522, 1, 7, 1124),
(523, 1, 7, 1125),
(524, 1, 7, 1126),
(3584, 1, 7, 1181),
(3642, 1, 7, 1182),
(3595, 1, 7, 1183),
(3600, 1, 7, 1184),
(3607, 1, 7, 1185),
(3615, 1, 7, 1186),
(3623, 1, 7, 1187),
(3635, 1, 7, 1188),
(3628, 1, 7, 1189),
(3643, 1, 7, 1191),
(535, 1, 7, 1201),
(536, 1, 7, 1202),
(3678, 1, 7, 1231),
(3655, 1, 7, 1232),
(3660, 1, 7, 1233),
(3667, 1, 7, 1234),
(3672, 1, 7, 1235),
(3679, 1, 7, 1236),
(543, 1, 7, 1251),
(3576, 1, 7, 1321),
(3580, 1, 7, 1322),
(3452, 1, 7, 1421),
(3278, 1, 7, 2401),
(3271, 1, 7, 2402),
(3279, 1, 7, 2403),
(3298, 1, 7, 2411),
(3291, 1, 7, 2412),
(3299, 1, 7, 2413),
(3304, 1, 7, 2414),
(3470, 1, 7, 2501),
(3463, 1, 7, 2503),
(3471, 1, 7, 2515),
(557, 1, 7, 3201),
(5791, 1, 7, 9201),
(5764, 1, 7, 9202),
(5778, 1, 7, 9203),
(5792, 1, 7, 9204),
(3730, 1, 7, 20001),
(3691, 1, 7, 20002),
(3699, 1, 7, 20003),
(3715, 1, 7, 20004),
(3723, 1, 7, 20005),
(3731, 1, 7, 20006),
(3707, 1, 7, 20007),
(3410, 1, 7, 23001),
(3395, 1, 7, 23002),
(3403, 1, 7, 23003),
(3411, 1, 7, 23004),
(3916, 1, 7, 50151),
(3920, 1, 7, 50152),
(3924, 1, 7, 50153),
(3216, 1, 7, 50401),
(3250, 1, 7, 50411),
(3227, 1, 7, 50412),
(3235, 1, 7, 50414),
(3243, 1, 7, 50415),
(3251, 1, 7, 50418),
(3256, 1, 7, 50420),
(3260, 1, 7, 50430),
(3212, 1, 7, 50440),
(3910, 1, 7, 56001),
(3895, 1, 7, 56002),
(3903, 1, 7, 56003),
(3911, 1, 7, 56004),
(3736, 1, 7, 59001),
(3740, 1, 7, 59002),
(3744, 1, 7, 59003),
(3794, 1, 7, 63001),
(3779, 1, 7, 63002),
(3787, 1, 7, 63003),
(3795, 1, 7, 63004),
(3768, 1, 7, 64001),
(593, 1, 7, 67001),
(3020, 1, 7, 104021),
(3080, 1, 7, 104050),
(5001, 1, 7, 104130),
(4800, 1, 7, 141151),
(595, 1, 7, 163028),
(596, 1, 7, 163029),
(597, 1, 7, 163030),
(598, 1, 7, 163031),
(1984, 1, 7, 163061),
(2002, 1, 7, 163070),
(1995, 1, 7, 163071),
(2003, 1, 7, 163072),
(6232, 1, 7, 163073),
(6149, 1, 7, 163074),
(6163, 1, 7, 163075),
(6177, 1, 7, 163083),
(6191, 1, 7, 163084),
(6205, 1, 7, 163085),
(6219, 1, 7, 163086),
(6233, 1, 7, 163091),
(2068, 1, 7, 163099),
(6244, 1, 7, 163127),
(3046, 1, 7, 300100),
(3031, 1, 7, 300101),
(3039, 1, 7, 300102),
(3047, 1, 7, 300103),
(604, 1, 7, 941601),
(605, 1, 7, 941602),
(606, 1, 7, 941603),
(607, 1, 7, 941604),
(608, 1, 7, 941605),
(609, 1, 7, 941606),
(4993, 1, 7, 1040741),
(4964, 1, 7, 1040742),
(4974, 1, 7, 1040743),
(4984, 1, 7, 1040744),
(4994, 1, 7, 1040745),
(3000, 1, 7, 1048560),
(4896, 1, 7, 1048740),
(4901, 1, 7, 1048741),
(4906, 1, 7, 1048742),
(6288, 1, 7, 1600151),
(6261, 1, 7, 1600152),
(6275, 1, 7, 1600153),
(6289, 1, 7, 1600154),
(2072, 1, 7, 30250201),
(3572, 1, 8, 11),
(3545, 1, 8, 12),
(3549, 1, 8, 13),
(3553, 1, 8, 14),
(3557, 1, 8, 15),
(3565, 1, 8, 16),
(3573, 1, 8, 19),
(876, 1, 8, 21),
(877, 1, 8, 22),
(878, 1, 8, 24),
(879, 1, 8, 25),
(880, 1, 8, 26),
(881, 1, 8, 27),
(882, 1, 8, 28),
(883, 1, 8, 31),
(884, 1, 8, 32),
(885, 1, 8, 34),
(886, 1, 8, 38),
(887, 1, 8, 39),
(888, 1, 8, 41),
(889, 1, 8, 42),
(890, 1, 8, 44),
(891, 1, 8, 45),
(3448, 1, 8, 81),
(3425, 1, 8, 82),
(3429, 1, 8, 84),
(3433, 1, 8, 86),
(3437, 1, 8, 87),
(3441, 1, 8, 88),
(3449, 1, 8, 89),
(899, 1, 8, 91),
(900, 1, 8, 92),
(901, 1, 8, 93),
(902, 1, 8, 94),
(903, 1, 8, 101),
(904, 1, 8, 102),
(905, 1, 8, 104),
(906, 1, 8, 105),
(907, 1, 8, 106),
(908, 1, 8, 109),
(3376, 1, 8, 111),
(3337, 1, 8, 112),
(3345, 1, 8, 113),
(3353, 1, 8, 114),
(3361, 1, 8, 115),
(3369, 1, 8, 116),
(3377, 1, 8, 117),
(3852, 1, 8, 121),
(3837, 1, 8, 122),
(3845, 1, 8, 125),
(3853, 1, 8, 126),
(920, 1, 8, 141),
(921, 1, 8, 142),
(922, 1, 8, 144),
(923, 1, 8, 151),
(924, 1, 8, 152),
(925, 1, 8, 153),
(926, 1, 8, 154),
(927, 1, 8, 161),
(928, 1, 8, 162),
(929, 1, 8, 163),
(930, 1, 8, 164),
(931, 1, 8, 165),
(932, 1, 8, 167),
(933, 1, 8, 241),
(934, 1, 8, 242),
(935, 1, 8, 243),
(4584, 1, 8, 251),
(4505, 1, 8, 252),
(4513, 1, 8, 253),
(4517, 1, 8, 254),
(4525, 1, 8, 255),
(4533, 1, 8, 256),
(3857, 1, 8, 262),
(3884, 1, 8, 281),
(3869, 1, 8, 282),
(3877, 1, 8, 283),
(3885, 1, 8, 286),
(3381, 1, 8, 301),
(3385, 1, 8, 302),
(949, 1, 8, 331),
(950, 1, 8, 332),
(951, 1, 8, 333),
(4537, 1, 8, 341),
(4541, 1, 8, 342),
(4545, 1, 8, 343),
(4549, 1, 8, 344),
(4576, 1, 8, 351),
(4561, 1, 8, 352),
(4569, 1, 8, 353),
(4577, 1, 8, 354),
(4585, 1, 8, 358),
(961, 1, 8, 431),
(962, 1, 8, 521),
(963, 1, 8, 522),
(964, 1, 8, 524),
(965, 1, 8, 525),
(966, 1, 8, 527),
(3824, 1, 8, 531),
(3809, 1, 8, 532),
(3817, 1, 8, 534),
(3825, 1, 8, 538),
(971, 1, 8, 561),
(972, 1, 8, 562),
(973, 1, 8, 563),
(974, 1, 8, 564),
(3324, 1, 8, 651),
(3317, 1, 8, 652),
(3325, 1, 8, 653),
(3764, 1, 8, 661),
(3757, 1, 8, 662),
(3765, 1, 8, 663),
(3532, 1, 8, 771),
(3485, 1, 8, 772),
(3493, 1, 8, 773),
(3501, 1, 8, 775),
(3509, 1, 8, 776),
(3517, 1, 8, 777),
(3525, 1, 8, 778),
(3533, 1, 8, 779),
(989, 1, 8, 1001),
(990, 1, 8, 1002),
(991, 1, 8, 1003),
(992, 1, 8, 1004),
(993, 1, 8, 1005),
(994, 1, 8, 1011),
(995, 1, 8, 1012),
(996, 1, 8, 1014),
(997, 1, 8, 1015),
(998, 1, 8, 1016),
(999, 1, 8, 1101),
(1000, 1, 8, 1102),
(1001, 1, 8, 1104),
(1002, 1, 8, 1109),
(1003, 1, 8, 1121),
(1004, 1, 8, 1122),
(1005, 1, 8, 1123),
(1006, 1, 8, 1124),
(1007, 1, 8, 1125),
(1008, 1, 8, 1126),
(3585, 1, 8, 1181),
(3644, 1, 8, 1182),
(3597, 1, 8, 1183),
(3601, 1, 8, 1184),
(3609, 1, 8, 1185),
(3617, 1, 8, 1186),
(3625, 1, 8, 1187),
(3637, 1, 8, 1188),
(3629, 1, 8, 1189),
(3645, 1, 8, 1191),
(1019, 1, 8, 1201),
(1020, 1, 8, 1202),
(3680, 1, 8, 1231),
(3657, 1, 8, 1232),
(3661, 1, 8, 1233),
(3669, 1, 8, 1234),
(3673, 1, 8, 1235),
(3681, 1, 8, 1236),
(1027, 1, 8, 1251),
(3577, 1, 8, 1321),
(3581, 1, 8, 1322),
(3453, 1, 8, 1421),
(3280, 1, 8, 2401),
(3273, 1, 8, 2402),
(3281, 1, 8, 2403),
(3300, 1, 8, 2411),
(3293, 1, 8, 2412),
(3301, 1, 8, 2413),
(3305, 1, 8, 2414),
(3472, 1, 8, 2501),
(3465, 1, 8, 2503),
(3473, 1, 8, 2515),
(1041, 1, 8, 3201),
(5793, 1, 8, 9201),
(5766, 1, 8, 9202),
(5780, 1, 8, 9203),
(5794, 1, 8, 9204),
(3732, 1, 8, 20001),
(3693, 1, 8, 20002),
(3701, 1, 8, 20003),
(3717, 1, 8, 20004),
(3725, 1, 8, 20005),
(3733, 1, 8, 20006),
(3709, 1, 8, 20007),
(3412, 1, 8, 23001),
(3397, 1, 8, 23002),
(3405, 1, 8, 23003),
(3413, 1, 8, 23004),
(3917, 1, 8, 50151),
(3921, 1, 8, 50152),
(3925, 1, 8, 50153),
(3217, 1, 8, 50401),
(3252, 1, 8, 50411),
(3229, 1, 8, 50412),
(3237, 1, 8, 50414),
(3245, 1, 8, 50415),
(3253, 1, 8, 50418),
(3257, 1, 8, 50420),
(3261, 1, 8, 50430),
(3213, 1, 8, 50440),
(3912, 1, 8, 56001),
(3897, 1, 8, 56002),
(3905, 1, 8, 56003),
(3913, 1, 8, 56004),
(3737, 1, 8, 59001),
(3741, 1, 8, 59002),
(3745, 1, 8, 59003),
(3796, 1, 8, 63001),
(3781, 1, 8, 63002),
(3789, 1, 8, 63003),
(3797, 1, 8, 63004),
(3769, 1, 8, 64001),
(1081, 1, 8, 67001),
(3021, 1, 8, 104021),
(3081, 1, 8, 104050),
(5002, 1, 8, 104130),
(4801, 1, 8, 141151),
(1083, 1, 8, 163028),
(1084, 1, 8, 163029),
(1085, 1, 8, 163030),
(1086, 1, 8, 163031),
(1985, 1, 8, 163061),
(2004, 1, 8, 163070),
(1997, 1, 8, 163071),
(2005, 1, 8, 163072),
(6234, 1, 8, 163073),
(6151, 1, 8, 163074),
(6165, 1, 8, 163075),
(6179, 1, 8, 163083),
(6193, 1, 8, 163084),
(6207, 1, 8, 163085),
(6221, 1, 8, 163086),
(6235, 1, 8, 163091),
(2069, 1, 8, 163099),
(6245, 1, 8, 163127),
(3048, 1, 8, 300100),
(3033, 1, 8, 300101),
(3041, 1, 8, 300102),
(3049, 1, 8, 300103),
(1092, 1, 8, 941601),
(1093, 1, 8, 941602),
(1094, 1, 8, 941603),
(1095, 1, 8, 941604),
(1096, 1, 8, 941605),
(1097, 1, 8, 941606),
(4995, 1, 8, 1040741),
(4966, 1, 8, 1040742),
(4976, 1, 8, 1040743),
(4986, 1, 8, 1040744),
(4996, 1, 8, 1040745),
(3001, 1, 8, 1048560),
(4897, 1, 8, 1048740),
(4902, 1, 8, 1048741),
(4907, 1, 8, 1048742),
(6290, 1, 8, 1600151),
(6263, 1, 8, 1600152),
(6277, 1, 8, 1600153),
(6291, 1, 8, 1600154),
(2073, 1, 8, 30250201),
(1149, 1, 9, 31),
(1114, 1, 9, 101),
(1115, 1, 9, 102),
(1116, 1, 9, 104),
(1117, 1, 9, 105),
(1118, 1, 9, 106),
(1168, 1, 9, 121),
(1172, 1, 9, 262),
(1173, 1, 9, 281),
(1154, 1, 9, 531),
(1158, 1, 9, 1001),
(1161, 1, 9, 1004),
(1120, 1, 9, 1101),
(1121, 1, 9, 1102),
(1122, 1, 9, 1104),
(1100, 1, 9, 9201),
(1177, 1, 9, 67001),
(1102, 1, 9, 300100),
(1124, 1, 9, 941601),
(1125, 1, 9, 941602),
(1126, 1, 9, 941603),
(1127, 1, 9, 941604),
(1128, 1, 9, 941605),
(5146, 1, 10, 11),
(5147, 1, 10, 12),
(5148, 1, 10, 13),
(5149, 1, 10, 14),
(5150, 1, 10, 15),
(5151, 1, 10, 16),
(5152, 1, 10, 19),
(5153, 1, 10, 21),
(5154, 1, 10, 22),
(5155, 1, 10, 24),
(5156, 1, 10, 25),
(5157, 1, 10, 26),
(5158, 1, 10, 27),
(5159, 1, 10, 28),
(5160, 1, 10, 31),
(5161, 1, 10, 32),
(5162, 1, 10, 34),
(5163, 1, 10, 38),
(5164, 1, 10, 39),
(5165, 1, 10, 41),
(5166, 1, 10, 42),
(5167, 1, 10, 44),
(5168, 1, 10, 45),
(5169, 1, 10, 81),
(5170, 1, 10, 82),
(5171, 1, 10, 84),
(5172, 1, 10, 86),
(5173, 1, 10, 87),
(5174, 1, 10, 88),
(5175, 1, 10, 89),
(5176, 1, 10, 91),
(5177, 1, 10, 92),
(5178, 1, 10, 93),
(5179, 1, 10, 94),
(5180, 1, 10, 101),
(5181, 1, 10, 102),
(5182, 1, 10, 104),
(5183, 1, 10, 105),
(5184, 1, 10, 106),
(5185, 1, 10, 109),
(5186, 1, 10, 111),
(5187, 1, 10, 112),
(5188, 1, 10, 113),
(5189, 1, 10, 114),
(5190, 1, 10, 115),
(5191, 1, 10, 116),
(5192, 1, 10, 117),
(5193, 1, 10, 121),
(5194, 1, 10, 122),
(5195, 1, 10, 125),
(5196, 1, 10, 126),
(5197, 1, 10, 141),
(5198, 1, 10, 142),
(5199, 1, 10, 144),
(5200, 1, 10, 151),
(5201, 1, 10, 152),
(5202, 1, 10, 153),
(5203, 1, 10, 154),
(5204, 1, 10, 161),
(5205, 1, 10, 162),
(5206, 1, 10, 163),
(5207, 1, 10, 164),
(5208, 1, 10, 165),
(5209, 1, 10, 167),
(5210, 1, 10, 241),
(5211, 1, 10, 242),
(5212, 1, 10, 243),
(5213, 1, 10, 251),
(5214, 1, 10, 252),
(5215, 1, 10, 253),
(5216, 1, 10, 254),
(5217, 1, 10, 255),
(5218, 1, 10, 256),
(5219, 1, 10, 262),
(5220, 1, 10, 281),
(5221, 1, 10, 282),
(5222, 1, 10, 283),
(5223, 1, 10, 286),
(5224, 1, 10, 301),
(5225, 1, 10, 302),
(5226, 1, 10, 331),
(5227, 1, 10, 332),
(5228, 1, 10, 333),
(5229, 1, 10, 341),
(5230, 1, 10, 342),
(5231, 1, 10, 343),
(5232, 1, 10, 344),
(5233, 1, 10, 351),
(5234, 1, 10, 352),
(5235, 1, 10, 353),
(5236, 1, 10, 354),
(5237, 1, 10, 358),
(5238, 1, 10, 431),
(5239, 1, 10, 521),
(5240, 1, 10, 522),
(5241, 1, 10, 524),
(5242, 1, 10, 525),
(5243, 1, 10, 527),
(5244, 1, 10, 531),
(5245, 1, 10, 532),
(5246, 1, 10, 534),
(5247, 1, 10, 538),
(5248, 1, 10, 561),
(5249, 1, 10, 562),
(5250, 1, 10, 563),
(5251, 1, 10, 564),
(5252, 1, 10, 651),
(5253, 1, 10, 652),
(5254, 1, 10, 653),
(5255, 1, 10, 661),
(5256, 1, 10, 662),
(5257, 1, 10, 663),
(5258, 1, 10, 771),
(5259, 1, 10, 772),
(5260, 1, 10, 773),
(5261, 1, 10, 775),
(5262, 1, 10, 776),
(5263, 1, 10, 777),
(5264, 1, 10, 778),
(5265, 1, 10, 779),
(5266, 1, 10, 1001),
(5267, 1, 10, 1002),
(5268, 1, 10, 1003),
(5269, 1, 10, 1004),
(5270, 1, 10, 1005),
(5271, 1, 10, 1011),
(5272, 1, 10, 1012),
(5273, 1, 10, 1014),
(5274, 1, 10, 1015),
(5275, 1, 10, 1016),
(5276, 1, 10, 1101),
(5277, 1, 10, 1102),
(5278, 1, 10, 1104),
(5279, 1, 10, 1109),
(5280, 1, 10, 1121),
(5281, 1, 10, 1122),
(5282, 1, 10, 1123),
(5283, 1, 10, 1124),
(5284, 1, 10, 1125),
(5285, 1, 10, 1126),
(5286, 1, 10, 1181),
(5287, 1, 10, 1182),
(5288, 1, 10, 1183),
(5289, 1, 10, 1184),
(5290, 1, 10, 1185),
(5291, 1, 10, 1186),
(5292, 1, 10, 1187),
(5293, 1, 10, 1188),
(5294, 1, 10, 1189),
(5295, 1, 10, 1191),
(5296, 1, 10, 1201),
(5297, 1, 10, 1202),
(5298, 1, 10, 1231),
(5299, 1, 10, 1232),
(5300, 1, 10, 1233),
(5301, 1, 10, 1234),
(5302, 1, 10, 1235),
(5303, 1, 10, 1236),
(5304, 1, 10, 1251),
(5305, 1, 10, 1321),
(5306, 1, 10, 1322),
(5307, 1, 10, 1421),
(5308, 1, 10, 2401),
(5309, 1, 10, 2402),
(5310, 1, 10, 2403),
(5311, 1, 10, 2411),
(5312, 1, 10, 2412),
(5313, 1, 10, 2413),
(5314, 1, 10, 2414),
(5315, 1, 10, 2501),
(5316, 1, 10, 2503),
(5317, 1, 10, 2515),
(5318, 1, 10, 3201),
(5795, 1, 10, 9201),
(5768, 1, 10, 9202),
(5782, 1, 10, 9203),
(5796, 1, 10, 9204),
(5323, 1, 10, 20001),
(5324, 1, 10, 20002),
(5325, 1, 10, 20003),
(5326, 1, 10, 20004),
(5327, 1, 10, 20005),
(5328, 1, 10, 20006),
(5329, 1, 10, 20007),
(5330, 1, 10, 23001),
(5331, 1, 10, 23002),
(5332, 1, 10, 23003),
(5333, 1, 10, 23004),
(5334, 1, 10, 50151),
(5335, 1, 10, 50152),
(5336, 1, 10, 50153),
(5337, 1, 10, 50401),
(5338, 1, 10, 50411),
(5339, 1, 10, 50412),
(5340, 1, 10, 50414),
(5341, 1, 10, 50415),
(5342, 1, 10, 50418),
(5343, 1, 10, 50420),
(5344, 1, 10, 50430),
(5345, 1, 10, 50440),
(5346, 1, 10, 56001),
(5347, 1, 10, 56002),
(5348, 1, 10, 56003),
(5349, 1, 10, 56004),
(5350, 1, 10, 59001),
(5351, 1, 10, 59002),
(5352, 1, 10, 59003),
(5353, 1, 10, 63001),
(5354, 1, 10, 63002),
(5355, 1, 10, 63003),
(5356, 1, 10, 63004),
(5357, 1, 10, 64001),
(5358, 1, 10, 67001),
(5359, 1, 10, 104050),
(5360, 1, 10, 104130),
(5361, 1, 10, 141151),
(5362, 1, 10, 163028),
(5363, 1, 10, 163029),
(5364, 1, 10, 163030),
(5365, 1, 10, 163031),
(5366, 1, 10, 163061),
(6236, 1, 10, 163073),
(6153, 1, 10, 163074),
(6167, 1, 10, 163075),
(6181, 1, 10, 163083),
(6195, 1, 10, 163084),
(6209, 1, 10, 163085),
(6223, 1, 10, 163086),
(6237, 1, 10, 163091),
(6246, 1, 10, 163127),
(5376, 1, 10, 300100),
(5377, 1, 10, 300101),
(5378, 1, 10, 300102),
(5379, 1, 10, 300103),
(5380, 1, 10, 941601),
(5381, 1, 10, 941602),
(5382, 1, 10, 941603),
(5383, 1, 10, 941604),
(5384, 1, 10, 941605),
(5385, 1, 10, 941606),
(5386, 1, 10, 1040741),
(5387, 1, 10, 1040742),
(5388, 1, 10, 1040743),
(5389, 1, 10, 1040744),
(5390, 1, 10, 1040745),
(5391, 1, 10, 1048560),
(5392, 1, 10, 1048740),
(5393, 1, 10, 1048741),
(5394, 1, 10, 1048742),
(6292, 1, 10, 1600151),
(6265, 1, 10, 1600152),
(6279, 1, 10, 1600153),
(6293, 1, 10, 1600154),
(5395, 1, 10, 30250201),
(5407, 1, 11, 11),
(5408, 1, 11, 12),
(5409, 1, 11, 13),
(5410, 1, 11, 14),
(5411, 1, 11, 15),
(5412, 1, 11, 16),
(5413, 1, 11, 19),
(5403, 1, 11, 21),
(5440, 1, 11, 31),
(5432, 1, 11, 41),
(5405, 1, 11, 81),
(5477, 1, 11, 91),
(5478, 1, 11, 92),
(5479, 1, 11, 93),
(5480, 1, 11, 94),
(5453, 1, 11, 101),
(5481, 1, 11, 111),
(5482, 1, 11, 112),
(5483, 1, 11, 113),
(5484, 1, 11, 114),
(5485, 1, 11, 115),
(5486, 1, 11, 116),
(5487, 1, 11, 117),
(5397, 1, 11, 121),
(5398, 1, 11, 122),
(5433, 1, 11, 141),
(5492, 1, 11, 151),
(5493, 1, 11, 152),
(5494, 1, 11, 153),
(5495, 1, 11, 154),
(5456, 1, 11, 161),
(5439, 1, 11, 241),
(5004, 1, 11, 301),
(5005, 1, 11, 431),
(5472, 1, 11, 521),
(5473, 1, 11, 522),
(5474, 1, 11, 524),
(5475, 1, 11, 525),
(5476, 1, 11, 527),
(5441, 1, 11, 531),
(5488, 1, 11, 561),
(5489, 1, 11, 562),
(5490, 1, 11, 563),
(5491, 1, 11, 564),
(5457, 1, 11, 771),
(5458, 1, 11, 772),
(5459, 1, 11, 773),
(5460, 1, 11, 775),
(5461, 1, 11, 776),
(5462, 1, 11, 777),
(5463, 1, 11, 778),
(5464, 1, 11, 779),
(5443, 1, 11, 1001),
(5444, 1, 11, 1002),
(5445, 1, 11, 1003),
(5446, 1, 11, 1004),
(5447, 1, 11, 1005),
(5448, 1, 11, 1011),
(5449, 1, 11, 1012),
(5450, 1, 11, 1014),
(5451, 1, 11, 1015),
(5452, 1, 11, 1016),
(5454, 1, 11, 1101),
(5442, 1, 11, 1121),
(5416, 1, 11, 1181),
(5417, 1, 11, 1182),
(5418, 1, 11, 1183),
(5419, 1, 11, 1184),
(5420, 1, 11, 1185),
(5421, 1, 11, 1186),
(5422, 1, 11, 1187),
(5423, 1, 11, 1188),
(5424, 1, 11, 1189),
(5425, 1, 11, 1191),
(5509, 1, 11, 1201),
(5510, 1, 11, 1202),
(5426, 1, 11, 1231),
(5427, 1, 11, 1232),
(5428, 1, 11, 1233),
(5429, 1, 11, 1234),
(5430, 1, 11, 1235),
(5431, 1, 11, 1236),
(5508, 1, 11, 1251),
(5414, 1, 11, 1321),
(5415, 1, 11, 1322),
(5435, 1, 11, 2401),
(5436, 1, 11, 2402),
(5437, 1, 11, 2411),
(5400, 1, 11, 2501),
(5401, 1, 11, 2503),
(5797, 1, 11, 9201),
(5770, 1, 11, 9202),
(5784, 1, 11, 9203),
(5798, 1, 11, 9204),
(5465, 1, 11, 20001),
(5466, 1, 11, 20002),
(5467, 1, 11, 20003),
(5468, 1, 11, 20004),
(5469, 1, 11, 20005),
(5470, 1, 11, 20006),
(5471, 1, 11, 20007),
(5499, 1, 11, 50401),
(5500, 1, 11, 50411),
(5501, 1, 11, 50412),
(5502, 1, 11, 50414),
(5503, 1, 11, 50415),
(5504, 1, 11, 50418),
(5505, 1, 11, 50420),
(5506, 1, 11, 50430),
(5507, 1, 11, 50440),
(5496, 1, 11, 59001),
(5497, 1, 11, 59002),
(5498, 1, 11, 59003),
(5438, 1, 11, 63001),
(5513, 1, 11, 104050),
(5514, 1, 11, 141151),
(5524, 1, 11, 163028),
(5525, 1, 11, 163029),
(5526, 1, 11, 163030),
(5527, 1, 11, 163031),
(5007, 1, 11, 163061),
(6238, 1, 11, 163073),
(6155, 1, 11, 163074),
(6169, 1, 11, 163075),
(6183, 1, 11, 163083),
(6197, 1, 11, 163084),
(6211, 1, 11, 163085),
(6225, 1, 11, 163086),
(6239, 1, 11, 163091),
(6247, 1, 11, 163127),
(5008, 1, 11, 300100),
(5009, 1, 11, 300101),
(5010, 1, 11, 300102),
(5455, 1, 11, 941601),
(5511, 1, 11, 1040741),
(5512, 1, 11, 1048560),
(6294, 1, 11, 1600151),
(6267, 1, 11, 1600152),
(6281, 1, 11, 1600153),
(6295, 1, 11, 1600154),
(5032, 1, 12, 11),
(5033, 1, 12, 12),
(5031, 1, 12, 15),
(5028, 1, 12, 21),
(5043, 1, 12, 31),
(5040, 1, 12, 41),
(5029, 1, 12, 81),
(5080, 1, 12, 91),
(5077, 1, 12, 92),
(5079, 1, 12, 93),
(5081, 1, 12, 94),
(5049, 1, 12, 101),
(5093, 1, 12, 111),
(5086, 1, 12, 112),
(5088, 1, 12, 114),
(5090, 1, 12, 115),
(5092, 1, 12, 116),
(5094, 1, 12, 117),
(5020, 1, 12, 121),
(5021, 1, 12, 122),
(5052, 1, 12, 161),
(5042, 1, 12, 241),
(5023, 1, 12, 281),
(5024, 1, 12, 282),
(5011, 1, 12, 301),
(5066, 1, 12, 331),
(5067, 1, 12, 332),
(5012, 1, 12, 431),
(5082, 1, 12, 521),
(5070, 1, 12, 522),
(5072, 1, 12, 524),
(5074, 1, 12, 525),
(5083, 1, 12, 527),
(5044, 1, 12, 531),
(5100, 1, 12, 561),
(5097, 1, 12, 562),
(5099, 1, 12, 563),
(5101, 1, 12, 564),
(5058, 1, 12, 771),
(5055, 1, 12, 772),
(5057, 1, 12, 775),
(5059, 1, 12, 777),
(5046, 1, 12, 1001),
(5047, 1, 12, 1004),
(5048, 1, 12, 1011),
(5050, 1, 12, 1101),
(5045, 1, 12, 1121),
(5034, 1, 12, 1181),
(5035, 1, 12, 1182),
(5115, 1, 12, 1201),
(5116, 1, 12, 1202),
(5037, 1, 12, 1231),
(5038, 1, 12, 1232),
(5039, 1, 12, 1233),
(5117, 1, 12, 1251),
(5018, 1, 12, 2401),
(5041, 1, 12, 2411),
(5026, 1, 12, 2501),
(5027, 1, 12, 2503),
(5799, 1, 12, 9201),
(5772, 1, 12, 9202),
(5786, 1, 12, 9203),
(5800, 1, 12, 9204),
(5063, 1, 12, 20001),
(5062, 1, 12, 20002),
(5064, 1, 12, 20004),
(5105, 1, 12, 50401),
(5106, 1, 12, 50411),
(5107, 1, 12, 50412),
(5108, 1, 12, 50414),
(5109, 1, 12, 50415),
(5110, 1, 12, 50418),
(5111, 1, 12, 50420),
(5112, 1, 12, 50430),
(5113, 1, 12, 50440),
(5102, 1, 12, 59001),
(5103, 1, 12, 59002),
(5104, 1, 12, 59003),
(5123, 1, 12, 104050),
(5124, 1, 12, 104130),
(5125, 1, 12, 141151),
(5142, 1, 12, 163028),
(5143, 1, 12, 163029),
(5144, 1, 12, 163030),
(5145, 1, 12, 163031),
(5014, 1, 12, 163061),
(6240, 1, 12, 163073),
(6157, 1, 12, 163074),
(6171, 1, 12, 163075),
(6185, 1, 12, 163083),
(6199, 1, 12, 163084),
(6213, 1, 12, 163085),
(6227, 1, 12, 163086),
(6241, 1, 12, 163091),
(6248, 1, 12, 163127),
(5015, 1, 12, 300100),
(5016, 1, 12, 300101),
(5017, 1, 12, 300102),
(5051, 1, 12, 941601),
(5118, 1, 12, 1040741),
(5119, 1, 12, 1048560),
(5120, 1, 12, 1048740),
(5121, 1, 12, 1048741),
(5122, 1, 12, 1048742),
(6296, 1, 12, 1600151),
(6269, 1, 12, 1600152),
(6283, 1, 12, 1600153),
(6297, 1, 12, 1600154);

-- --------------------------------------------------------

--
-- Table structure for table `llx_website`
--

CREATE TABLE `llx_website` (
  `rowid` int(11) NOT NULL,
  `type_container` varchar(16) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'page',
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref` varchar(128) COLLATE utf8_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `maincolor` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL,
  `maincolorbis` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lang` varchar(8) COLLATE utf8_unicode_ci DEFAULT NULL,
  `otherlang` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` int(11) DEFAULT '1',
  `fk_default_home` int(11) DEFAULT NULL,
  `use_manifest` int(11) DEFAULT NULL,
  `virtualhost` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `position` int(11) DEFAULT '0',
  `lastaccess` datetime DEFAULT NULL,
  `pageviews_month` bigint(20) UNSIGNED DEFAULT '0',
  `pageviews_total` bigint(20) UNSIGNED DEFAULT '0',
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `import_key` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_website_extrafields`
--

CREATE TABLE `llx_website_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_website_page`
--

CREATE TABLE `llx_website_page` (
  `rowid` int(11) NOT NULL,
  `fk_website` int(11) NOT NULL,
  `type_container` varchar(16) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'page',
  `pageurl` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `aliasalt` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `keywords` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lang` varchar(6) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fk_page` int(11) DEFAULT NULL,
  `allowed_in_frames` int(11) DEFAULT '0',
  `htmlheader` text COLLATE utf8_unicode_ci,
  `content` mediumtext COLLATE utf8_unicode_ci,
  `status` int(11) DEFAULT '1',
  `grabbed_from` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `author_alias` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `import_key` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL,
  `object_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fk_object` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_workstation_workstation`
--

CREATE TABLE `llx_workstation_workstation` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '(PROV)',
  `label` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `note_public` text COLLATE utf8_unicode_ci,
  `entity` int(11) DEFAULT '1',
  `note_private` text COLLATE utf8_unicode_ci,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` smallint(6) NOT NULL,
  `nb_operators_required` int(11) DEFAULT NULL,
  `thm_operator_estimated` double DEFAULT NULL,
  `thm_machine_estimated` double DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_workstation_workstation_resource`
--

CREATE TABLE `llx_workstation_workstation_resource` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_resource` int(11) DEFAULT NULL,
  `fk_workstation` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_workstation_workstation_usergroup`
--

CREATE TABLE `llx_workstation_workstation_usergroup` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_usergroup` int(11) DEFAULT NULL,
  `fk_workstation` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `llx_zapier_hook`
--

CREATE TABLE `llx_zapier_hook` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `event` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `module` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `action` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `fk_user` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `import_key` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

/* -- --------------------------------------------------------

--
-- Structure for view `llx_banking4dolibarr_all_widthdraw_rejected`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`serioucon`@`localhost` SQL SECURITY DEFINER VIEW `llx_banking4dolibarr_all_widthdraw_rejected`  AS   (select `pl`.`fk_prelevement_bons` AS `fk_prelevement_bons`,sum(`pl`.`amount`) AS `amount` from (`llx_prelevement_rejet` `pr` left join `llx_prelevement_lignes` `pl` on((`pl`.`rowid` = `pr`.`fk_prelevement_lignes`))) group by `pl`.`fk_prelevement_bons`)  ;

-- --------------------------------------------------------

--
-- Structure for view `llx_banking4dolibarr_company_name`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`serioucon`@`localhost` SQL SECURITY DEFINER VIEW `llx_banking4dolibarr_company_name`  AS   (select `s`.`rowid` AS `fk_soc`,`s`.`nom` AS `company_name`,`s`.`name_alias` AS `company_alt_name`,`sef`.`b4d_spe_name` AS `company_spe_name` from (`llx_societe` `s` left join `llx_societe_extrafields` `sef` on((`sef`.`fk_object` = `s`.`rowid`))))  ;

-- --------------------------------------------------------

--
-- Structure for view `llx_banking4dolibarr_credit_note_invoice`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`serioucon`@`localhost` SQL SECURITY DEFINER VIEW `llx_banking4dolibarr_credit_note_invoice`  AS   (select `rc`.`fk_facture` AS `fk_facture`,sum(`rc`.`amount_ttc`) AS `amount`,sum(`rc`.`multicurrency_amount_ttc`) AS `multicurrency_amount` from ((`llx_societe_remise_except` `rc` left join `llx_facture` `fs` on((`fs`.`rowid` = `rc`.`fk_facture_source`))) left join `llx_facture` `f` on((`f`.`rowid` = `rc`.`fk_facture`))) where (((`fs`.`type` = 2) or (`fs`.`type` = 0)) and (`f`.`paye` = 0) and (`f`.`fk_statut` = 1)) group by `rc`.`fk_facture`)  ;

-- --------------------------------------------------------

--
-- Structure for view `llx_banking4dolibarr_credit_note_invoice_supplier`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`serioucon`@`localhost` SQL SECURITY DEFINER VIEW `llx_banking4dolibarr_credit_note_invoice_supplier`  AS   (select `rc`.`fk_invoice_supplier` AS `fk_invoice_supplier`,sum(`rc`.`amount_ttc`) AS `amount`,sum(`rc`.`multicurrency_amount_ttc`) AS `multicurrency_amount` from ((`llx_societe_remise_except` `rc` left join `llx_facture_fourn` `ffs` on((`ffs`.`rowid` = `rc`.`fk_invoice_supplier_source`))) left join `llx_facture_fourn` `ff` on((`ff`.`rowid` = `rc`.`fk_invoice_supplier`))) where ((`ffs`.`type` = 2) and (`ff`.`paye` = 0) and (`ff`.`fk_statut` = 1)) group by `rc`.`fk_invoice_supplier`)  ;

-- --------------------------------------------------------

--
-- Structure for view `llx_banking4dolibarr_dates_options`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`serioucon`@`localhost` SQL SECURITY DEFINER VIEW `llx_banking4dolibarr_dates_options`  AS   (select `c`.`entity` AS `entity`,max(if((`c`.`name` = 'BANKING4DOLIBARR_DEBIT_MIN_OFFSET_DATES'),if((`c`.`value` <> ''),cast(`c`.`value` as signed),NULL),NULL)) AS `debit_min_offset_dates`,max(if((`c`.`name` = 'BANKING4DOLIBARR_DEBIT_MAX_OFFSET_DATES'),if((`c`.`value` <> ''),cast(`c`.`value` as signed),NULL),NULL)) AS `debit_max_offset_dates`,max(if((`c`.`name` = 'BANKING4DOLIBARR_CREDIT_MIN_OFFSET_DATES'),if((`c`.`value` <> ''),cast(`c`.`value` as signed),NULL),NULL)) AS `credit_min_offset_dates`,max(if((`c`.`name` = 'BANKING4DOLIBARR_CREDIT_MAX_OFFSET_DATES'),if((`c`.`value` <> ''),cast(`c`.`value` as signed),NULL),NULL)) AS `credit_max_offset_dates` from `llx_const` `c` group by `c`.`entity`)  ;

-- --------------------------------------------------------

--
-- Structure for view `llx_banking4dolibarr_deposit_invoice`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`serioucon`@`localhost` SQL SECURITY DEFINER VIEW `llx_banking4dolibarr_deposit_invoice`  AS   (select `rc`.`fk_facture` AS `fk_facture`,sum(`rc`.`amount_ttc`) AS `amount`,sum(`rc`.`multicurrency_amount_ttc`) AS `multicurrency_amount` from ((`llx_societe_remise_except` `rc` left join `llx_facture` `fs` on((`fs`.`rowid` = `rc`.`fk_facture_source`))) left join `llx_facture` `f` on((`f`.`rowid` = `rc`.`fk_facture`))) where ((`fs`.`type` = 3) and (`f`.`paye` = 0) and (`f`.`fk_statut` = 1)) group by `rc`.`fk_facture`)  ;

-- --------------------------------------------------------

--
-- Structure for view `llx_banking4dolibarr_deposit_invoice_supplier`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`serioucon`@`localhost` SQL SECURITY DEFINER VIEW `llx_banking4dolibarr_deposit_invoice_supplier`  AS   (select `rc`.`fk_invoice_supplier` AS `fk_invoice_supplier`,sum(`rc`.`amount_ttc`) AS `amount`,sum(`rc`.`multicurrency_amount_ttc`) AS `multicurrency_amount` from ((`llx_societe_remise_except` `rc` left join `llx_facture_fourn` `ffs` on((`ffs`.`rowid` = `rc`.`fk_invoice_supplier_source`))) left join `llx_facture_fourn` `ff` on((`ff`.`rowid` = `rc`.`fk_invoice_supplier`))) where ((`ffs`.`type` = 3) and (`ff`.`paye` = 0) and (`ff`.`fk_statut` = 1)) group by `rc`.`fk_invoice_supplier`)  ;

-- --------------------------------------------------------

--
-- Structure for view `llx_banking4dolibarr_payment_charge`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`serioucon`@`localhost` SQL SECURITY DEFINER VIEW `llx_banking4dolibarr_payment_charge`  AS   (select `pc`.`fk_charge` AS `fk_charge`,sum(`pc`.`amount`) AS `amount` from (`llx_paiementcharge` `pc` left join `llx_chargesociales` `cs` on((`cs`.`rowid` = `pc`.`fk_charge`))) where (`cs`.`paye` = 0) group by `pc`.`fk_charge`)  ;

-- --------------------------------------------------------

--
-- Structure for view `llx_banking4dolibarr_payment_expensereport`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`serioucon`@`localhost` SQL SECURITY DEFINER VIEW `llx_banking4dolibarr_payment_expensereport`  AS   (select `per`.`fk_expensereport` AS `fk_expensereport`,sum(`per`.`amount`) AS `amount` from (`llx_payment_expensereport` `per` left join `llx_expensereport` `er` on((`er`.`rowid` = `per`.`fk_expensereport`))) where ((`er`.`paid` = 0) and (`er`.`fk_statut` = 5)) group by `per`.`fk_expensereport`)  ;

-- --------------------------------------------------------

--
-- Structure for view `llx_banking4dolibarr_payment_invoice`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`serioucon`@`localhost` SQL SECURITY DEFINER VIEW `llx_banking4dolibarr_payment_invoice`  AS   (select `pf`.`fk_facture` AS `fk_facture`,sum(`pf`.`amount`) AS `amount`,sum(`pf`.`multicurrency_amount`) AS `multicurrency_amount` from (`llx_paiement_facture` `pf` left join `llx_facture` `f` on((`f`.`rowid` = `pf`.`fk_facture`))) where ((`f`.`paye` = 0) and (`f`.`fk_statut` = 1)) group by `pf`.`fk_facture`)  ;

-- --------------------------------------------------------

--
-- Structure for view `llx_banking4dolibarr_payment_invoice_supplier`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`serioucon`@`localhost` SQL SECURITY DEFINER VIEW `llx_banking4dolibarr_payment_invoice_supplier`  AS   (select `pff`.`fk_facturefourn` AS `fk_facturefourn`,sum(`pff`.`amount`) AS `amount`,sum(`pff`.`multicurrency_amount`) AS `multicurrency_amount` from (`llx_paiementfourn_facturefourn` `pff` left join `llx_facture_fourn` `ff` on((`ff`.`rowid` = `pff`.`fk_facturefourn`))) where ((`ff`.`paye` = 0) and (`ff`.`fk_statut` = 1)) group by `pff`.`fk_facturefourn`)  ;

-- --------------------------------------------------------

--
-- Structure for view `llx_banking4dolibarr_payment_loan`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`serioucon`@`localhost` SQL SECURITY DEFINER VIEW `llx_banking4dolibarr_payment_loan`  AS   (select `pl`.`fk_loan` AS `fk_loan`,sum(`pl`.`amount_capital`) AS `amount` from (`llx_payment_loan` `pl` left join `llx_loan` `l` on((`l`.`rowid` = `pl`.`fk_loan`))) where (`l`.`paid` = 0) group by `pl`.`fk_loan`)  ;

-- --------------------------------------------------------

--
-- Structure for view `llx_banking4dolibarr_payment_vat`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`serioucon`@`localhost` SQL SECURITY DEFINER VIEW `llx_banking4dolibarr_payment_vat`  AS   (select `pv`.`fk_tva` AS `fk_tva`,sum(`pv`.`amount`) AS `amount` from (`llx_payment_vat` `pv` left join `llx_tva` `v` on((`v`.`rowid` = `pv`.`fk_tva`))) where (`v`.`paye` = 0) group by `pv`.`fk_tva`)  ;

-- --------------------------------------------------------

--
-- Structure for view `llx_banking4dolibarr_reconcile_same_ad`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`serioucon`@`localhost` SQL SECURITY DEFINER VIEW `llx_banking4dolibarr_reconcile_same_ad`  AS   (select `b`.`fk_account` AS `fk_account`,`b`.`rowid` AS `fk_bank`,`b4dbr`.`rowid` AS `fk_bank_record`,`b4dbr`.`id_category` AS `id_category`,if(isnull(`b4dbr`.`vdate`),`b4dbr`.`record_date`,`b4dbr`.`vdate`) AS `record_date` from ((((`llx_banking4dolibarr_bank_record` `b4dbr` left join `llx_c_banking4dolibarr_bank_account` `cb4dba` on((`cb4dba`.`rowid` = `b4dbr`.`id_account`))) left join `llx_bank` `b` on(((`b`.`fk_account` = `cb4dba`.`fk_bank_account`) and (`b`.`amount` = `b4dbr`.`amount`)))) left join `llx_banking4dolibarr_bank_record_link` `brl` on(((`brl`.`fk_bank` = `b`.`rowid`) or (`brl`.`fk_bank_record` = `b4dbr`.`rowid`)))) left join `llx_banking4dolibarr_dates_options` `b4ddo` on((`b4ddo`.`entity` = `cb4dba`.`entity`))) where ((`b`.`rowid` is not null) and isnull(`brl`.`rowid`) and (`b4dbr`.`status` = 0) and (((`b`.`dateo` between (`b4dbr`.`record_date` - interval if(isnull(`b4ddo`.`debit_min_offset_dates`),15,`b4ddo`.`debit_min_offset_dates`) day) and (`b4dbr`.`record_date` + interval if(isnull(`b4ddo`.`debit_max_offset_dates`),15,`b4ddo`.`debit_max_offset_dates`) day)) and (`b`.`datev` between (if(isnull(`b4dbr`.`vdate`),`b4dbr`.`record_date`,`b4dbr`.`vdate`) - interval if(isnull(`b4ddo`.`debit_min_offset_dates`),15,`b4ddo`.`debit_min_offset_dates`) day) and (if(isnull(`b4dbr`.`vdate`),`b4dbr`.`record_date`,`b4dbr`.`vdate`) + interval if(isnull(`b4ddo`.`debit_max_offset_dates`),15,`b4ddo`.`debit_max_offset_dates`) day)) and (`b4dbr`.`amount` < 0)) or ((`b`.`dateo` between (`b4dbr`.`record_date` - interval if(isnull(`b4ddo`.`credit_min_offset_dates`),15,`b4ddo`.`credit_min_offset_dates`) day) and (`b4dbr`.`record_date` + interval if(isnull(`b4ddo`.`credit_max_offset_dates`),15,`b4ddo`.`credit_max_offset_dates`) day)) and (`b`.`datev` between (if(isnull(`b4dbr`.`vdate`),`b4dbr`.`record_date`,`b4dbr`.`vdate`) - interval if(isnull(`b4ddo`.`credit_min_offset_dates`),15,`b4ddo`.`credit_min_offset_dates`) day) and (if(isnull(`b4dbr`.`vdate`),`b4dbr`.`record_date`,`b4dbr`.`vdate`) + interval if(isnull(`b4ddo`.`credit_max_offset_dates`),15,`b4ddo`.`credit_max_offset_dates`) day)) and (`b4dbr`.`amount` >= 0))) and (`b`.`fk_type` <> 'SOLD')))  ;

-- --------------------------------------------------------

--
-- Structure for view `llx_banking4dolibarr_reconcile_same_adp`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`serioucon`@`localhost` SQL SECURITY DEFINER VIEW `llx_banking4dolibarr_reconcile_same_adp`  AS   (select `b`.`fk_account` AS `fk_account`,`b`.`rowid` AS `fk_bank`,`b4dbr`.`rowid` AS `fk_bank_record`,`b4dbr`.`id_category` AS `id_category`,if(isnull(`b4dbr`.`vdate`),`b4dbr`.`record_date`,`b4dbr`.`vdate`) AS `record_date` from (((((`llx_banking4dolibarr_bank_record` `b4dbr` left join `llx_c_banking4dolibarr_bank_account` `cb4dba` on((`cb4dba`.`rowid` = `b4dbr`.`id_account`))) left join `llx_c_banking4dolibarr_bank_record_type` `cb4dbrt` on((`cb4dbrt`.`code` = `b4dbr`.`record_type`))) left join `llx_bank` `b` on(((`b`.`fk_account` = `cb4dba`.`fk_bank_account`) and (`b`.`amount` = `b4dbr`.`amount`)))) left join `llx_banking4dolibarr_bank_record_link` `brl` on(((`brl`.`fk_bank` = `b`.`rowid`) or (`brl`.`fk_bank_record` = `b4dbr`.`rowid`)))) left join `llx_banking4dolibarr_dates_options` `b4ddo` on((`b4ddo`.`entity` = `cb4dba`.`entity`))) where ((`b`.`rowid` is not null) and isnull(`brl`.`rowid`) and (`b4dbr`.`status` = 0) and (((`b`.`dateo` between (`b4dbr`.`record_date` - interval if(isnull(`b4ddo`.`debit_min_offset_dates`),15,`b4ddo`.`debit_min_offset_dates`) day) and (`b4dbr`.`record_date` + interval if(isnull(`b4ddo`.`debit_max_offset_dates`),15,`b4ddo`.`debit_max_offset_dates`) day)) and (`b`.`datev` between (if(isnull(`b4dbr`.`vdate`),`b4dbr`.`record_date`,`b4dbr`.`vdate`) - interval if(isnull(`b4ddo`.`debit_min_offset_dates`),15,`b4ddo`.`debit_min_offset_dates`) day) and (if(isnull(`b4dbr`.`vdate`),`b4dbr`.`record_date`,`b4dbr`.`vdate`) + interval if(isnull(`b4ddo`.`debit_max_offset_dates`),15,`b4ddo`.`debit_max_offset_dates`) day)) and (`b4dbr`.`amount` < 0)) or ((`b`.`dateo` between (`b4dbr`.`record_date` - interval if(isnull(`b4ddo`.`credit_min_offset_dates`),15,`b4ddo`.`credit_min_offset_dates`) day) and (`b4dbr`.`record_date` + interval if(isnull(`b4ddo`.`credit_max_offset_dates`),15,`b4ddo`.`credit_max_offset_dates`) day)) and (`b`.`datev` between (if(isnull(`b4dbr`.`vdate`),`b4dbr`.`record_date`,`b4dbr`.`vdate`) - interval if(isnull(`b4ddo`.`credit_min_offset_dates`),15,`b4ddo`.`credit_min_offset_dates`) day) and (if(isnull(`b4dbr`.`vdate`),`b4dbr`.`record_date`,`b4dbr`.`vdate`) + interval if(isnull(`b4ddo`.`credit_max_offset_dates`),15,`b4ddo`.`credit_max_offset_dates`) day)) and (`b4dbr`.`amount` >= 0))) and (`cb4dbrt`.`mode_reglement` = `b`.`fk_type`) and (`b`.`fk_type` <> 'SOLD')))  ;

-- --------------------------------------------------------

--
-- Structure for view `llx_banking4dolibarr_unpaid_list`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`serioucon`@`localhost` SQL SECURITY DEFINER VIEW `llx_banking4dolibarr_unpaid_list`  AS SELECT 'facture' AS `element_type`, `f`.`rowid` AS `element_id`, `f`.`ref` AS `ref`, `f`.`ref_client` AS `ref_ext`, '' AS `label`, `f`.`datef` AS `dateb`, `f`.`date_lim_reglement` AS `datee`, (((`f`.`total_ttc` - if(isnull(`fp`.`amount`),0,`fp`.`amount`)) - if(isnull(`fcn`.`amount`),0,`fcn`.`amount`)) - if(isnull(`fd`.`amount`),0,`fd`.`amount`)) AS `amount`, (((`f`.`multicurrency_total_ttc` - if(isnull(`fp`.`multicurrency_amount`),0,`fp`.`multicurrency_amount`)) - if(isnull(`fcn`.`multicurrency_amount`),0,`fcn`.`multicurrency_amount`)) - if(isnull(`fd`.`multicurrency_amount`),0,`fd`.`multicurrency_amount`)) AS `multicurrency_amount`, `f`.`fk_soc` AS `fk_soc`, `cn`.`company_name` AS `company_name`, `cn`.`company_alt_name` AS `company_alt_name`, `cn`.`company_spe_name` AS `company_spe_name`, `f`.`fk_account` AS `fk_account`, `f`.`fk_mode_reglement` AS `fk_payment_mode`, `f`.`entity` AS `entity`, if((isnull(`f`.`multicurrency_code`) or (`f`.`multicurrency_code` = 'EUR')),'EUR',`f`.`multicurrency_code`) AS `currency_code` FROM ((((`llx_facture` `f` left join `llx_banking4dolibarr_payment_invoice` `fp` on((`fp`.`fk_facture` = `f`.`rowid`))) left join `llx_banking4dolibarr_credit_note_invoice` `fcn` on((`fcn`.`fk_facture` = `f`.`rowid`))) left join `llx_banking4dolibarr_deposit_invoice` `fd` on((`fd`.`fk_facture` = `f`.`rowid`))) left join `llx_banking4dolibarr_company_name` `cn` on((`cn`.`fk_soc` = `f`.`fk_soc`))) WHERE ((`f`.`paye` = 0) AND (`f`.`fk_statut` = 1) AND ((((`f`.`total_ttc` - if(isnull(`fp`.`amount`),0,`fp`.`amount`)) - if(isnull(`fcn`.`amount`),0,`fcn`.`amount`)) - if(isnull(`fd`.`amount`),0,`fd`.`amount`)) <> 0)) union select 'invoice_supplier' AS `element_type`,`ff`.`rowid` AS `element_id`,`ff`.`ref` AS `ref`,`ff`.`ref_supplier` AS `ref_ext`,'' AS `label`,`ff`.`datef` AS `dateb`,`ff`.`date_lim_reglement` AS `datee`,-((((`ff`.`total_ttc` - if(isnull(`ffp`.`amount`),0,`ffp`.`amount`)) - if(isnull(`ffcn`.`amount`),0,`ffcn`.`amount`)) - if(isnull(`ffd`.`amount`),0,`ffd`.`amount`))) AS `amount`,-((((`ff`.`multicurrency_total_ttc` - if(isnull(`ffp`.`multicurrency_amount`),0,`ffp`.`multicurrency_amount`)) - if(isnull(`ffcn`.`multicurrency_amount`),0,`ffcn`.`multicurrency_amount`)) - if(isnull(`ffd`.`multicurrency_amount`),0,`ffd`.`multicurrency_amount`))) AS `multicurrency_amount`,`ff`.`fk_soc` AS `fk_soc`,`cn`.`company_name` AS `company_name`,`cn`.`company_alt_name` AS `company_alt_name`,`cn`.`company_spe_name` AS `company_spe_name`,`ff`.`fk_account` AS `fk_account`,`ff`.`fk_mode_reglement` AS `fk_payment_mode`,`ff`.`entity` AS `entity`,if((isnull(`ff`.`multicurrency_code`) or (`ff`.`multicurrency_code` = 'EUR')),'EUR',`ff`.`multicurrency_code`) AS `currency_code` from ((((`llx_facture_fourn` `ff` left join `llx_banking4dolibarr_payment_invoice_supplier` `ffp` on((`ffp`.`fk_facturefourn` = `ff`.`rowid`))) left join `llx_banking4dolibarr_credit_note_invoice_supplier` `ffcn` on((`ffcn`.`fk_invoice_supplier` = `ff`.`rowid`))) left join `llx_banking4dolibarr_deposit_invoice_supplier` `ffd` on((`ffd`.`fk_invoice_supplier` = `ff`.`rowid`))) left join `llx_banking4dolibarr_company_name` `cn` on((`cn`.`fk_soc` = `ff`.`fk_soc`))) where ((`ff`.`paye` = 0) and (`ff`.`fk_statut` = 1) and ((((`ff`.`total_ttc` - if(isnull(`ffp`.`amount`),0,`ffp`.`amount`)) - if(isnull(`ffcn`.`amount`),0,`ffcn`.`amount`)) - if(isnull(`ffd`.`amount`),0,`ffd`.`amount`)) <> 0)) union select 'chargesociales' AS `element_type`,`cs`.`rowid` AS `element_id`,NULL AS `ref`,NULL AS `ref_ext`,concat(`cs`.`rowid`,' - ',`cs`.`libelle`) AS `label`,`cs`.`periode` AS `dateb`,`cs`.`date_ech` AS `datee`,-((`cs`.`amount` - if(isnull(`csp`.`amount`),0,`csp`.`amount`))) AS `amount`,0 AS `multicurrency_amount`,0 AS `fk_soc`,NULL AS `company_name`,NULL AS `company_alt_name`,NULL AS `company_spe_name`,`cs`.`fk_account` AS `fk_account`,`cs`.`fk_mode_reglement` AS `fk_payment_mode`,`cs`.`entity` AS `entity`,'EUR' AS `currency_code` from (`llx_chargesociales` `cs` left join `llx_banking4dolibarr_payment_charge` `csp` on((`csp`.`fk_charge` = `cs`.`rowid`))) where ((`cs`.`paye` = 0) and ((`cs`.`amount` - if(isnull(`csp`.`amount`),0,`csp`.`amount`)) <> 0)) union select 'vat' AS `element_type`,`v`.`rowid` AS `element_id`,NULL AS `ref`,NULL AS `ref_ext`,`v`.`label` AS `label`,`v`.`datep` AS `dateb`,`v`.`datev` AS `datee`,-((`v`.`amount` - if(isnull(`vp`.`amount`),0,`vp`.`amount`))) AS `amount`,0 AS `multicurrency_amount`,0 AS `fk_soc`,NULL AS `company_name`,NULL AS `company_alt_name`,NULL AS `company_spe_name`,`v`.`fk_account` AS `fk_account`,`v`.`fk_typepayment` AS `fk_payment_mode`,`v`.`entity` AS `entity`,'EUR' AS `currency_code` from (`llx_tva` `v` left join `llx_banking4dolibarr_payment_vat` `vp` on((`vp`.`fk_tva` = `v`.`rowid`))) where ((`v`.`paye` = 0) and ((`v`.`amount` - if(isnull(`vp`.`amount`),0,`vp`.`amount`)) <> 0)) union select 'expensereport' AS `element_type`,`er`.`rowid` AS `element_id`,`er`.`ref` AS `ref`,NULL AS `ref_ext`,'' AS `label`,`er`.`date_approve` AS `dateb`,NULL AS `datee`,-((`er`.`total_ttc` - if(isnull(`erp`.`amount`),0,`erp`.`amount`))) AS `amount`,0 AS `multicurrency_amount`,0 AS `fk_soc`,NULL AS `company_name`,NULL AS `company_alt_name`,NULL AS `company_spe_name`,0 AS `fk_account`,0 AS `fk_payment_mode`,`er`.`entity` AS `entity`,'EUR' AS `currency_code` from (`llx_expensereport` `er` left join `llx_banking4dolibarr_payment_expensereport` `erp` on((`erp`.`fk_expensereport` = `er`.`rowid`))) where ((`er`.`paid` = 0) and (`er`.`fk_statut` = 5) and ((`er`.`total_ttc` - if(isnull(`erp`.`amount`),0,`erp`.`amount`)) <> 0)) union select 'loan' AS `element_type`,`l`.`rowid` AS `element_id`,NULL AS `ref`,NULL AS `ref_ext`,concat(`l`.`rowid`,' - ',`l`.`label`) AS `label`,`l`.`datestart` AS `dateb`,`l`.`dateend` AS `datee`,(`l`.`capital` - if(isnull(`lp`.`amount`),0,`lp`.`amount`)) AS `amount`,0 AS `multicurrency_amount`,0 AS `fk_soc`,NULL AS `company_name`,NULL AS `company_alt_name`,NULL AS `company_spe_name`,0 AS `fk_account`,0 AS `fk_payment_mode`,`l`.`entity` AS `entity`,'EUR' AS `currency_code` from (`llx_loan` `l` left join `llx_banking4dolibarr_payment_loan` `lp` on((`lp`.`fk_loan` = `l`.`rowid`))) where ((`l`.`paid` = 0) and ((`l`.`capital` - if(isnull(`lp`.`amount`),0,`lp`.`amount`)) <> 0)) union select 'chequereceipt' AS `element_type`,`bc`.`rowid` AS `element_id`,`bc`.`ref` AS `ref`,NULL AS `ref_ext`,'' AS `label`,`bc`.`date_bordereau` AS `dateb`,NULL AS `datee`,`bc`.`amount` AS `amount`,0 AS `multicurrency_amount`,0 AS `fk_soc`,NULL AS `company_name`,NULL AS `company_alt_name`,NULL AS `company_spe_name`,`bc`.`fk_bank_account` AS `fk_account`,7 AS `fk_payment_mode`,`bc`.`entity` AS `entity`,'EUR' AS `currency_code` from `llx_bordereau_cheque` `bc` where ((`bc`.`statut` = 0) and (`bc`.`amount` <> 0)) union select 'widthdraw' AS `element_type`,`pb`.`rowid` AS `element_id`,`pb`.`ref` AS `ref`,NULL AS `ref_ext`,'' AS `label`,`pb`.`date_trans` AS `dateb`,NULL AS `datee`,(`pb`.`amount` - if(isnull(`bwr`.`amount`),0,`bwr`.`amount`)) AS `amount`,0 AS `multicurrency_amount`,0 AS `fk_soc`,NULL AS `company_name`,NULL AS `company_alt_name`,NULL AS `company_spe_name`,0 AS `fk_account`,3 AS `fk_payment_mode`,`pb`.`entity` AS `entity`,'EUR' AS `currency_code` from (`llx_prelevement_bons` `pb` left join `llx_banking4dolibarr_widthdraw_rejected` `bwr` on((`bwr`.`fk_prelevement_bons` = `pb`.`rowid`))) where ((`pb`.`statut` = 1) and ((`pb`.`amount` - if(isnull(`bwr`.`amount`),0,`bwr`.`amount`)) <> 0))  ;

-- --------------------------------------------------------

--
-- Structure for view `llx_banking4dolibarr_unpaid_list_same_a`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`serioucon`@`localhost` SQL SECURITY DEFINER VIEW `llx_banking4dolibarr_unpaid_list_same_a`  AS   (select `br`.`rowid` AS `bank_records`,`t`.`element_type` AS `element_type`,`t`.`element_id` AS `element_id`,`cb4dba`.`fk_bank_account` AS `fk_bank_account`,`br`.`record_date` AS `record_date`,`t`.`dateb` AS `dateb`,`t`.`datee` AS `datee`,`t`.`amount` AS `amount`,`t`.`multicurrency_amount` AS `multicurrency_amount`,`br`.`label` AS `label`,`br`.`comment` AS `comment`,`t`.`company_name` AS `company_name`,`t`.`company_alt_name` AS `company_alt_name`,`t`.`company_spe_name` AS `company_spe_name`,`ba`.`entity` AS `entity`,`t`.`currency_code` AS `currency_code` from ((((`llx_banking4dolibarr_unpaid_list` `t` left join `llx_banking4dolibarr_bank_record` `br` on(((`br`.`amount` = `t`.`amount`) or (`br`.`amount` = `t`.`multicurrency_amount`)))) left join `llx_c_banking4dolibarr_bank_account` `cb4dba` on((`cb4dba`.`rowid` = `br`.`id_account`))) left join `llx_banking4dolibarr_bank_record_pre_link` `pl` on((`pl`.`fk_bank_record` = `br`.`rowid`))) left join `llx_bank_account` `ba` on((`ba`.`rowid` = `cb4dba`.`fk_bank_account`))) where ((`br`.`rowid` is not null) and (`br`.`status` = 0) and (`t`.`entity` = `ba`.`entity`) and isnull(`pl`.`rowid`) and isnull(`br`.`deleted_date`) and (isnull(`ba`.`currency_code`) or (`ba`.`currency_code` = 'EUR') or (`ba`.`currency_code` = `t`.`currency_code`)) and (`br`.`amount` = if((isnull(`ba`.`currency_code`) or (`ba`.`currency_code` = 'EUR')),`t`.`amount`,`t`.`multicurrency_amount`))))  ;

-- --------------------------------------------------------

--
-- Structure for view `llx_banking4dolibarr_widthdraw_rejected`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`serioucon`@`localhost` SQL SECURITY DEFINER VIEW `llx_banking4dolibarr_widthdraw_rejected`  AS   (select `awr`.`fk_prelevement_bons` AS `fk_prelevement_bons`,`awr`.`amount` AS `amount` from (`llx_banking4dolibarr_all_widthdraw_rejected` `awr` left join `llx_prelevement_bons` `pb` on((`pb`.`rowid` = `awr`.`fk_prelevement_bons`))) where (`pb`.`statut` = 1))  ;
*/ 

--
-- Indexes for dumped tables
--

--
-- Indexes for table `llx_accounting_account`
--
ALTER TABLE `llx_accounting_account`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_accounting_account` (`account_number`,`entity`,`fk_pcg_version`),
  ADD KEY `idx_accounting_account_fk_pcg_version` (`fk_pcg_version`),
  ADD KEY `idx_accounting_account_account_parent` (`account_parent`);

--
-- Indexes for table `llx_accounting_bookkeeping`
--
ALTER TABLE `llx_accounting_bookkeeping`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_accounting_bookkeeping_fk_doc` (`fk_doc`),
  ADD KEY `idx_accounting_bookkeeping_fk_docdet` (`fk_docdet`),
  ADD KEY `idx_accounting_bookkeeping_doc_date` (`doc_date`),
  ADD KEY `idx_accounting_bookkeeping_piece_num` (`piece_num`,`entity`),
  ADD KEY `idx_accounting_bookkeeping_numero_compte` (`numero_compte`,`entity`),
  ADD KEY `idx_accounting_bookkeeping_code_journal` (`code_journal`,`entity`);

--
-- Indexes for table `llx_accounting_bookkeeping_tmp`
--
ALTER TABLE `llx_accounting_bookkeeping_tmp`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_accounting_bookkeeping_tmp_doc_date` (`doc_date`),
  ADD KEY `idx_accounting_bookkeeping_tmp_fk_docdet` (`fk_docdet`),
  ADD KEY `idx_accounting_bookkeeping_tmp_numero_compte` (`numero_compte`),
  ADD KEY `idx_accounting_bookkeeping_tmp_code_journal` (`code_journal`);

--
-- Indexes for table `llx_accounting_fiscalyear`
--
ALTER TABLE `llx_accounting_fiscalyear`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_accounting_groups_account`
--
ALTER TABLE `llx_accounting_groups_account`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_accounting_journal`
--
ALTER TABLE `llx_accounting_journal`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_accounting_journal_code` (`code`,`entity`);

--
-- Indexes for table `llx_accounting_system`
--
ALTER TABLE `llx_accounting_system`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_accounting_system_pcg_version` (`pcg_version`);

--
-- Indexes for table `llx_actioncomm`
--
ALTER TABLE `llx_actioncomm`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_actioncomm_ref` (`ref`,`entity`),
  ADD KEY `idx_actioncomm_fk_soc` (`fk_soc`),
  ADD KEY `idx_actioncomm_fk_contact` (`fk_contact`),
  ADD KEY `idx_actioncomm_code` (`code`),
  ADD KEY `idx_actioncomm_fk_element` (`fk_element`),
  ADD KEY `idx_actioncomm_fk_user_action` (`fk_user_action`),
  ADD KEY `idx_actioncomm_fk_project` (`fk_project`),
  ADD KEY `idx_actioncomm_datep` (`datep`),
  ADD KEY `idx_actioncomm_datep2` (`datep2`),
  ADD KEY `idx_actioncomm_recurid` (`recurid`),
  ADD KEY `idx_actioncomm_ref_ext` (`ref_ext`);

--
-- Indexes for table `llx_actioncomm_extrafields`
--
ALTER TABLE `llx_actioncomm_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_actioncomm_extrafields` (`fk_object`);

--
-- Indexes for table `llx_actioncomm_reminder`
--
ALTER TABLE `llx_actioncomm_reminder`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_actioncomm_reminder_unique` (`fk_actioncomm`,`fk_user`,`typeremind`,`offsetvalue`,`offsetunit`),
  ADD KEY `idx_actioncomm_reminder_dateremind` (`dateremind`),
  ADD KEY `idx_actioncomm_reminder_fk_user` (`fk_user`),
  ADD KEY `idx_actioncomm_reminder_status` (`status`);

--
-- Indexes for table `llx_actioncomm_resources`
--
ALTER TABLE `llx_actioncomm_resources`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_actioncomm_resources` (`fk_actioncomm`,`element_type`,`fk_element`),
  ADD KEY `idx_actioncomm_resources_fk_element` (`fk_element`);

--
-- Indexes for table `llx_adherent`
--
ALTER TABLE `llx_adherent`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_adherent_ref` (`ref`,`entity`),
  ADD UNIQUE KEY `uk_adherent_login` (`login`,`entity`),
  ADD UNIQUE KEY `uk_adherent_fk_soc` (`fk_soc`),
  ADD KEY `idx_adherent_fk_adherent_type` (`fk_adherent_type`);

--
-- Indexes for table `llx_adherent_extrafields`
--
ALTER TABLE `llx_adherent_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_adherent_extrafields` (`fk_object`);

--
-- Indexes for table `llx_adherent_type`
--
ALTER TABLE `llx_adherent_type`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_adherent_type_libelle` (`libelle`,`entity`);

--
-- Indexes for table `llx_adherent_type_extrafields`
--
ALTER TABLE `llx_adherent_type_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_adherent_type_extrafields` (`fk_object`);

--
-- Indexes for table `llx_adherent_type_lang`
--
ALTER TABLE `llx_adherent_type_lang`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_advtargetemailing`
--
ALTER TABLE `llx_advtargetemailing`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_advtargetemailing_name` (`name`);

--
-- Indexes for table `llx_asset`
--
ALTER TABLE `llx_asset`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_asset_rowid` (`rowid`),
  ADD KEY `idx_asset_ref` (`ref`),
  ADD KEY `idx_asset_entity` (`entity`),
  ADD KEY `idx_asset_fk_asset_type` (`fk_asset_type`);

--
-- Indexes for table `llx_asset_extrafields`
--
ALTER TABLE `llx_asset_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_asset_extrafields` (`fk_object`);

--
-- Indexes for table `llx_asset_type`
--
ALTER TABLE `llx_asset_type`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_asset_type_label` (`label`,`entity`);

--
-- Indexes for table `llx_asset_type_extrafields`
--
ALTER TABLE `llx_asset_type_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_asset_type_extrafields` (`fk_object`);

--
-- Indexes for table `llx_bank`
--
ALTER TABLE `llx_bank`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_bank_datev` (`datev`),
  ADD KEY `idx_bank_dateo` (`dateo`),
  ADD KEY `idx_bank_fk_account` (`fk_account`),
  ADD KEY `idx_bank_rappro` (`rappro`),
  ADD KEY `idx_bank_num_releve` (`num_releve`);

--
-- Indexes for table `llx_bankimport_history`
--
ALTER TABLE `llx_bankimport_history`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `date_cre` (`date_cre`),
  ADD KEY `date_maj` (`date_maj`),
  ADD KEY `num_releve` (`num_releve`),
  ADD KEY `fk_bank` (`fk_bank`);

--
-- Indexes for table `llx_banking4dolibarr_bank_record`
--
ALTER TABLE `llx_banking4dolibarr_bank_record`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_b4d_bank_record` (`id_record`,`sub_record_type`,`id_account`),
  ADD KEY `idx_b4d_bank_record_fk_duplicate_of` (`fk_duplicate_of`),
  ADD KEY `idx_b4d_bank_record_id_account` (`id_account`),
  ADD KEY `idx_b4d_bank_record_id_category` (`id_category`),
  ADD KEY `idx_b4d_bank_record_original_currency` (`original_currency`),
  ADD KEY `idx_b4d_bank_record_commission_currency` (`commission_currency`);

--
-- Indexes for table `llx_banking4dolibarr_bank_record_link`
--
ALTER TABLE `llx_banking4dolibarr_bank_record_link`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_b4d_bank_record_link` (`fk_bank`,`fk_bank_record`),
  ADD KEY `idx_b4d_bank_record_link_fk_bank` (`fk_bank`),
  ADD KEY `idx_b4d_bank_record_link_fk_bank_record` (`fk_bank_record`);

--
-- Indexes for table `llx_banking4dolibarr_bank_record_pre_link`
--
ALTER TABLE `llx_banking4dolibarr_bank_record_pre_link`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_b4d_bank_record_pl_fk_list` (`fk_bank_record`,`element_type`,`element_id`),
  ADD UNIQUE KEY `uk_b4d_bank_record_pl_fk_bank` (`fk_bank`),
  ADD KEY `idx_b4d_bank_record_pl_fk_bank_account` (`fk_bank_account`),
  ADD KEY `idx_b4d_bank_record_pl_fk_bank_record` (`fk_bank_record`);

--
-- Indexes for table `llx_bank_account`
--
ALTER TABLE `llx_bank_account`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_bank_account_label` (`label`,`entity`),
  ADD KEY `idx_fk_accountancy_journal` (`fk_accountancy_journal`);

--
-- Indexes for table `llx_bank_account_extrafields`
--
ALTER TABLE `llx_bank_account_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_bank_account_extrafields` (`fk_object`);

--
-- Indexes for table `llx_bank_categ`
--
ALTER TABLE `llx_bank_categ`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_bank_class`
--
ALTER TABLE `llx_bank_class`
  ADD UNIQUE KEY `uk_bank_class_lineid` (`lineid`,`fk_categ`);

--
-- Indexes for table `llx_bank_url`
--
ALTER TABLE `llx_bank_url`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_bank_url` (`fk_bank`,`url_id`,`type`);

--
-- Indexes for table `llx_blockedlog`
--
ALTER TABLE `llx_blockedlog`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `signature` (`signature`),
  ADD KEY `fk_object_element` (`fk_object`,`element`),
  ADD KEY `entity` (`entity`),
  ADD KEY `fk_user` (`fk_user`),
  ADD KEY `entity_action` (`entity`,`action`),
  ADD KEY `entity_action_certified` (`entity`,`action`,`certified`);

--
-- Indexes for table `llx_blockedlog_authority`
--
ALTER TABLE `llx_blockedlog_authority`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `signature` (`signature`);

--
-- Indexes for table `llx_bom_bom`
--
ALTER TABLE `llx_bom_bom`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_bom_bom_ref` (`ref`,`entity`),
  ADD KEY `idx_bom_bom_rowid` (`rowid`),
  ADD KEY `idx_bom_bom_ref` (`ref`),
  ADD KEY `llx_bom_bom_fk_user_creat` (`fk_user_creat`),
  ADD KEY `idx_bom_bom_status` (`status`),
  ADD KEY `idx_bom_bom_fk_product` (`fk_product`);

--
-- Indexes for table `llx_bom_bomline`
--
ALTER TABLE `llx_bom_bomline`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_bom_bomline_rowid` (`rowid`),
  ADD KEY `idx_bom_bomline_fk_product` (`fk_product`),
  ADD KEY `idx_bom_bomline_fk_bom` (`fk_bom`);

--
-- Indexes for table `llx_bom_bomline_extrafields`
--
ALTER TABLE `llx_bom_bomline_extrafields`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_bom_bom_extrafields`
--
ALTER TABLE `llx_bom_bom_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_bom_bom_extrafields_fk_object` (`fk_object`);

--
-- Indexes for table `llx_bonderetour`
--
ALTER TABLE `llx_bonderetour`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_bonderetour_uk_ref` (`ref`,`entity`),
  ADD KEY `idx_bonderetour_fk_soc` (`fk_soc`),
  ADD KEY `idx_bonderetour_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_bonderetour_fk_user_valid` (`fk_user_valid`),
  ADD KEY `idx_bonderetour_fk_shipping_method` (`fk_shipping_method`);

--
-- Indexes for table `llx_bonderetourdet`
--
ALTER TABLE `llx_bonderetourdet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_bonderetourdet_fk_commande` (`fk_commande`);

--
-- Indexes for table `llx_bonderetourdet_batch`
--
ALTER TABLE `llx_bonderetourdet_batch`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_fk_bonderetourdet` (`fk_bonderetourdet`);

--
-- Indexes for table `llx_bonderetourdet_extrafields`
--
ALTER TABLE `llx_bonderetourdet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_bonderetourdet_extrafields` (`fk_object`);

--
-- Indexes for table `llx_bonderetour_extrafields`
--
ALTER TABLE `llx_bonderetour_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_bonderetour_extrafields` (`fk_object`);

--
-- Indexes for table `llx_bookmark`
--
ALTER TABLE `llx_bookmark`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_bookmark_title` (`fk_user`,`entity`,`title`);

--
-- Indexes for table `llx_bordereau_cheque`
--
ALTER TABLE `llx_bordereau_cheque`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_bordereau_cheque` (`ref`,`entity`);

--
-- Indexes for table `llx_boxes`
--
ALTER TABLE `llx_boxes`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_boxes` (`entity`,`box_id`,`position`,`fk_user`),
  ADD KEY `idx_boxes_boxid` (`box_id`),
  ADD KEY `idx_boxes_fk_user` (`fk_user`);

--
-- Indexes for table `llx_boxes_def`
--
ALTER TABLE `llx_boxes_def`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_boxes_def` (`file`,`entity`,`note`);

--
-- Indexes for table `llx_budget`
--
ALTER TABLE `llx_budget`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_budget_lines`
--
ALTER TABLE `llx_budget_lines`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_budget_lines` (`fk_budget`,`fk_project_ids`);

--
-- Indexes for table `llx_categorie`
--
ALTER TABLE `llx_categorie`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_categories_extrafields`
--
ALTER TABLE `llx_categories_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_categories_extrafields` (`fk_object`);

--
-- Indexes for table `llx_categorie_account`
--
ALTER TABLE `llx_categorie_account`
  ADD PRIMARY KEY (`fk_categorie`,`fk_account`),
  ADD KEY `idx_categorie_account_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_account_fk_account` (`fk_account`);

--
-- Indexes for table `llx_categorie_actioncomm`
--
ALTER TABLE `llx_categorie_actioncomm`
  ADD PRIMARY KEY (`fk_categorie`,`fk_actioncomm`),
  ADD KEY `idx_categorie_actioncomm_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_actioncomm_fk_actioncomm` (`fk_actioncomm`);

--
-- Indexes for table `llx_categorie_contact`
--
ALTER TABLE `llx_categorie_contact`
  ADD PRIMARY KEY (`fk_categorie`,`fk_socpeople`),
  ADD KEY `idx_categorie_contact_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_contact_fk_socpeople` (`fk_socpeople`);

--
-- Indexes for table `llx_categorie_fournisseur`
--
ALTER TABLE `llx_categorie_fournisseur`
  ADD PRIMARY KEY (`fk_categorie`,`fk_soc`),
  ADD KEY `idx_categorie_fournisseur_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_fournisseur_fk_societe` (`fk_soc`);

--
-- Indexes for table `llx_categorie_lang`
--
ALTER TABLE `llx_categorie_lang`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_category_lang` (`fk_category`,`lang`);

--
-- Indexes for table `llx_categorie_member`
--
ALTER TABLE `llx_categorie_member`
  ADD PRIMARY KEY (`fk_categorie`,`fk_member`),
  ADD KEY `idx_categorie_member_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_member_fk_member` (`fk_member`);

--
-- Indexes for table `llx_categorie_product`
--
ALTER TABLE `llx_categorie_product`
  ADD PRIMARY KEY (`fk_categorie`,`fk_product`),
  ADD KEY `idx_categorie_product_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_product_fk_product` (`fk_product`);

--
-- Indexes for table `llx_categorie_project`
--
ALTER TABLE `llx_categorie_project`
  ADD PRIMARY KEY (`fk_categorie`,`fk_project`),
  ADD KEY `idx_categorie_project_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_project_fk_project` (`fk_project`);

--
-- Indexes for table `llx_categorie_societe`
--
ALTER TABLE `llx_categorie_societe`
  ADD PRIMARY KEY (`fk_categorie`,`fk_soc`),
  ADD KEY `idx_categorie_societe_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_societe_fk_societe` (`fk_soc`);

--
-- Indexes for table `llx_categorie_user`
--
ALTER TABLE `llx_categorie_user`
  ADD PRIMARY KEY (`fk_categorie`,`fk_user`),
  ADD KEY `idx_categorie_user_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_user_fk_user` (`fk_user`);

--
-- Indexes for table `llx_categorie_warehouse`
--
ALTER TABLE `llx_categorie_warehouse`
  ADD PRIMARY KEY (`fk_categorie`,`fk_warehouse`),
  ADD KEY `idx_categorie_warehouse_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_warehouse_fk_warehouse` (`fk_warehouse`);

--
-- Indexes for table `llx_categorie_website_page`
--
ALTER TABLE `llx_categorie_website_page`
  ADD PRIMARY KEY (`fk_categorie`,`fk_website_page`),
  ADD KEY `idx_categorie_website_page_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_website_page_fk_website_page` (`fk_website_page`);

--
-- Indexes for table `llx_chargesociales`
--
ALTER TABLE `llx_chargesociales`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_commande`
--
ALTER TABLE `llx_commande`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_commande_ref` (`ref`,`entity`),
  ADD KEY `idx_commande_fk_soc` (`fk_soc`),
  ADD KEY `idx_commande_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_commande_fk_user_valid` (`fk_user_valid`),
  ADD KEY `idx_commande_fk_user_cloture` (`fk_user_cloture`),
  ADD KEY `idx_commande_fk_projet` (`fk_projet`),
  ADD KEY `idx_commande_fk_account` (`fk_account`),
  ADD KEY `idx_commande_fk_currency` (`fk_currency`);

--
-- Indexes for table `llx_commandedet`
--
ALTER TABLE `llx_commandedet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commandedet_fk_commande` (`fk_commande`),
  ADD KEY `idx_commandedet_fk_product` (`fk_product`),
  ADD KEY `fk_commandedet_fk_unit` (`fk_unit`),
  ADD KEY `fk_commandedet_fk_commandefourndet` (`fk_commandefourndet`);

--
-- Indexes for table `llx_commandedet_extrafields`
--
ALTER TABLE `llx_commandedet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commandedet_extrafields` (`fk_object`);

--
-- Indexes for table `llx_commande_extrafields`
--
ALTER TABLE `llx_commande_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_extrafields` (`fk_object`);

--
-- Indexes for table `llx_commande_fournisseur`
--
ALTER TABLE `llx_commande_fournisseur`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_commande_fournisseur_ref` (`ref`,`fk_soc`,`entity`),
  ADD KEY `idx_commande_fournisseur_fk_soc` (`fk_soc`),
  ADD KEY `billed` (`billed`);

--
-- Indexes for table `llx_commande_fournisseurdet`
--
ALTER TABLE `llx_commande_fournisseurdet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `fk_commande_fournisseurdet_fk_unit` (`fk_unit`),
  ADD KEY `idx_commande_fournisseurdet_fk_commande` (`fk_commande`),
  ADD KEY `idx_commande_fournisseurdet_fk_product` (`fk_product`);

--
-- Indexes for table `llx_commande_fournisseurdet_extrafields`
--
ALTER TABLE `llx_commande_fournisseurdet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_fournisseurdet_extrafields` (`fk_object`);

--
-- Indexes for table `llx_commande_fournisseur_dispatch`
--
ALTER TABLE `llx_commande_fournisseur_dispatch`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_fournisseur_dispatch_fk_commande` (`fk_commande`),
  ADD KEY `idx_commande_fournisseur_dispatch_fk_reception` (`fk_reception`);

--
-- Indexes for table `llx_commande_fournisseur_dispatch_extrafields`
--
ALTER TABLE `llx_commande_fournisseur_dispatch_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_fournisseur_dispatch_extrafields` (`fk_object`);

--
-- Indexes for table `llx_commande_fournisseur_extrafields`
--
ALTER TABLE `llx_commande_fournisseur_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_fournisseur_extrafields` (`fk_object`);

--
-- Indexes for table `llx_commande_fournisseur_log`
--
ALTER TABLE `llx_commande_fournisseur_log`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_comment`
--
ALTER TABLE `llx_comment`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_const`
--
ALTER TABLE `llx_const`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_const` (`name`,`entity`);

--
-- Indexes for table `llx_contrat`
--
ALTER TABLE `llx_contrat`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_contrat_ref` (`ref`,`entity`),
  ADD KEY `idx_contrat_fk_soc` (`fk_soc`),
  ADD KEY `idx_contrat_fk_user_author` (`fk_user_author`);

--
-- Indexes for table `llx_contratdet`
--
ALTER TABLE `llx_contratdet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_contratdet_fk_contrat` (`fk_contrat`),
  ADD KEY `idx_contratdet_fk_product` (`fk_product`),
  ADD KEY `idx_contratdet_date_ouverture_prevue` (`date_ouverture_prevue`),
  ADD KEY `idx_contratdet_date_ouverture` (`date_ouverture`),
  ADD KEY `idx_contratdet_date_fin_validite` (`date_fin_validite`),
  ADD KEY `fk_contratdet_fk_unit` (`fk_unit`);

--
-- Indexes for table `llx_contratdet_extrafields`
--
ALTER TABLE `llx_contratdet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_contratdet_extrafields` (`fk_object`);

--
-- Indexes for table `llx_contratdet_log`
--
ALTER TABLE `llx_contratdet_log`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_contratdet_log_fk_contratdet` (`fk_contratdet`),
  ADD KEY `idx_contratdet_log_date` (`date`);

--
-- Indexes for table `llx_contrat_extrafields`
--
ALTER TABLE `llx_contrat_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_contrat_extrafields` (`fk_object`);

--
-- Indexes for table `llx_cronjob`
--
ALTER TABLE `llx_cronjob`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_cronjob_status` (`status`),
  ADD KEY `idx_cronjob_datelastrun` (`datelastrun`),
  ADD KEY `idx_cronjob_datenextrun` (`datenextrun`),
  ADD KEY `idx_cronjob_datestart` (`datestart`),
  ADD KEY `idx_cronjob_dateend` (`dateend`);

--
-- Indexes for table `llx_customtooltip`
--
ALTER TABLE `llx_customtooltip`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_c_accounting_category`
--
ALTER TABLE `llx_c_accounting_category`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_accounting_category` (`code`,`entity`);

--
-- Indexes for table `llx_c_actioncomm`
--
ALTER TABLE `llx_c_actioncomm`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_actioncomm` (`code`);

--
-- Indexes for table `llx_c_action_trigger`
--
ALTER TABLE `llx_c_action_trigger`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_action_trigger_code` (`code`),
  ADD KEY `idx_action_trigger_rang` (`rang`);

--
-- Indexes for table `llx_c_availability`
--
ALTER TABLE `llx_c_availability`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_availability` (`code`);

--
-- Indexes for table `llx_c_banking4dolibarr_bank`
--
ALTER TABLE `llx_c_banking4dolibarr_bank`
  ADD PRIMARY KEY (`rowid`,`entity`);

--
-- Indexes for table `llx_c_banking4dolibarr_bank_account`
--
ALTER TABLE `llx_c_banking4dolibarr_bank_account`
  ADD PRIMARY KEY (`rowid`,`entity`),
  ADD KEY `idx_c_banking4dolibarr_bank_account_0` (`fk_bank_account`,`entity`);

--
-- Indexes for table `llx_c_banking4dolibarr_bank_account_type`
--
ALTER TABLE `llx_c_banking4dolibarr_bank_account_type`
  ADD PRIMARY KEY (`rowid`,`entity`);

--
-- Indexes for table `llx_c_banking4dolibarr_bank_record_category`
--
ALTER TABLE `llx_c_banking4dolibarr_bank_record_category`
  ADD PRIMARY KEY (`rowid`,`entity`);

--
-- Indexes for table `llx_c_banking4dolibarr_bank_record_type`
--
ALTER TABLE `llx_c_banking4dolibarr_bank_record_type`
  ADD PRIMARY KEY (`rowid`,`entity`),
  ADD UNIQUE KEY `idx_c_banking4dolibarr_bank_record_type_1` (`code`,`entity`);

--
-- Indexes for table `llx_c_barcode_type`
--
ALTER TABLE `llx_c_barcode_type`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_barcode_type` (`code`,`entity`);

--
-- Indexes for table `llx_c_chargesociales`
--
ALTER TABLE `llx_c_chargesociales`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `llx_c_civility`
--
ALTER TABLE `llx_c_civility`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_civility` (`code`);

--
-- Indexes for table `llx_c_codenaf`
--
ALTER TABLE `llx_c_codenaf`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_codenaf` (`code`),
  ADD UNIQUE KEY `idx_c_codenaf_1` (`code`);

--
-- Indexes for table `llx_c_country`
--
ALTER TABLE `llx_c_country`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_c_country_code` (`code`),
  ADD UNIQUE KEY `idx_c_country_label` (`label`),
  ADD UNIQUE KEY `idx_c_country_code_iso` (`code_iso`);

--
-- Indexes for table `llx_c_currencies`
--
ALTER TABLE `llx_c_currencies`
  ADD PRIMARY KEY (`code_iso`),
  ADD UNIQUE KEY `uk_c_currencies_code_iso` (`code_iso`);

--
-- Indexes for table `llx_c_departements`
--
ALTER TABLE `llx_c_departements`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_departements` (`code_departement`,`fk_region`),
  ADD KEY `idx_departements_fk_region` (`fk_region`);

--
-- Indexes for table `llx_c_documentstray_elements`
--
ALTER TABLE `llx_c_documentstray_elements`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_c_documentstray_elements_0` (`element_type`,`entity`);

--
-- Indexes for table `llx_c_ecotaxe`
--
ALTER TABLE `llx_c_ecotaxe`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_ecotaxe` (`code`);

--
-- Indexes for table `llx_c_effectif`
--
ALTER TABLE `llx_c_effectif`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_effectif` (`code`);

--
-- Indexes for table `llx_c_email_senderprofile`
--
ALTER TABLE `llx_c_email_senderprofile`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_email_senderprofile` (`entity`,`label`,`email`);

--
-- Indexes for table `llx_c_email_templates`
--
ALTER TABLE `llx_c_email_templates`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_email_templates` (`entity`,`label`,`lang`),
  ADD KEY `idx_type` (`type_template`);

--
-- Indexes for table `llx_c_exp_tax_cat`
--
ALTER TABLE `llx_c_exp_tax_cat`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_c_exp_tax_range`
--
ALTER TABLE `llx_c_exp_tax_range`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_c_field_list`
--
ALTER TABLE `llx_c_field_list`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_c_format_cards`
--
ALTER TABLE `llx_c_format_cards`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_c_forme_juridique`
--
ALTER TABLE `llx_c_forme_juridique`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_forme_juridique` (`code`);

--
-- Indexes for table `llx_c_holiday_types`
--
ALTER TABLE `llx_c_holiday_types`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_holiday_types` (`code`);

--
-- Indexes for table `llx_c_hrm_department`
--
ALTER TABLE `llx_c_hrm_department`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_c_hrm_function`
--
ALTER TABLE `llx_c_hrm_function`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_c_hrm_public_holiday`
--
ALTER TABLE `llx_c_hrm_public_holiday`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_hrm_public_holiday` (`entity`,`code`),
  ADD UNIQUE KEY `uk_c_hrm_public_holiday2` (`entity`,`fk_country`,`dayrule`,`day`,`month`,`year`);

--
-- Indexes for table `llx_c_incoterms`
--
ALTER TABLE `llx_c_incoterms`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_incoterms` (`code`);

--
-- Indexes for table `llx_c_input_method`
--
ALTER TABLE `llx_c_input_method`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_input_method` (`code`);

--
-- Indexes for table `llx_c_input_reason`
--
ALTER TABLE `llx_c_input_reason`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_input_reason` (`code`);

--
-- Indexes for table `llx_c_lead_status`
--
ALTER TABLE `llx_c_lead_status`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_lead_status_code` (`code`);

--
-- Indexes for table `llx_c_packinglist_packing_type`
--
ALTER TABLE `llx_c_packinglist_packing_type`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_c_packinglist_packing_type_0` (`code`,`entity`);

--
-- Indexes for table `llx_c_paiement`
--
ALTER TABLE `llx_c_paiement`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_paiement_code` (`entity`,`code`);

--
-- Indexes for table `llx_c_paper_format`
--
ALTER TABLE `llx_c_paper_format`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_c_partnership_type`
--
ALTER TABLE `llx_c_partnership_type`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_c_payment_term`
--
ALTER TABLE `llx_c_payment_term`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_payment_term_code` (`entity`,`code`);

--
-- Indexes for table `llx_c_price_expression`
--
ALTER TABLE `llx_c_price_expression`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_c_price_global_variable`
--
ALTER TABLE `llx_c_price_global_variable`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_c_price_global_variable_updater`
--
ALTER TABLE `llx_c_price_global_variable_updater`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_c_productbatch_qcstatus`
--
ALTER TABLE `llx_c_productbatch_qcstatus`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_productbatch_qcstatus` (`code`,`entity`);

--
-- Indexes for table `llx_c_product_nature`
--
ALTER TABLE `llx_c_product_nature`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_product_nature` (`code`);

--
-- Indexes for table `llx_c_propalst`
--
ALTER TABLE `llx_c_propalst`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_propalst` (`code`);

--
-- Indexes for table `llx_c_prospectcontactlevel`
--
ALTER TABLE `llx_c_prospectcontactlevel`
  ADD PRIMARY KEY (`code`);

--
-- Indexes for table `llx_c_prospectlevel`
--
ALTER TABLE `llx_c_prospectlevel`
  ADD PRIMARY KEY (`code`);

--
-- Indexes for table `llx_c_recruitment_origin`
--
ALTER TABLE `llx_c_recruitment_origin`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_c_regions`
--
ALTER TABLE `llx_c_regions`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_code_region` (`code_region`),
  ADD KEY `idx_c_regions_fk_pays` (`fk_pays`);

--
-- Indexes for table `llx_c_revenuestamp`
--
ALTER TABLE `llx_c_revenuestamp`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_c_shipment_mode`
--
ALTER TABLE `llx_c_shipment_mode`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_shipment_mode` (`code`,`entity`);

--
-- Indexes for table `llx_c_shipment_package_type`
--
ALTER TABLE `llx_c_shipment_package_type`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_c_sirene_country`
--
ALTER TABLE `llx_c_sirene_country`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_c_sirene_country_0` (`country_code`);

--
-- Indexes for table `llx_c_sirene_staff`
--
ALTER TABLE `llx_c_sirene_staff`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_c_sirene_staff_0` (`code_sirene_staff`);

--
-- Indexes for table `llx_c_socialnetworks`
--
ALTER TABLE `llx_c_socialnetworks`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_c_socialnetworks_code_entity` (`code`,`entity`);

--
-- Indexes for table `llx_c_stcomm`
--
ALTER TABLE `llx_c_stcomm`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_stcomm` (`code`);

--
-- Indexes for table `llx_c_stcommcontact`
--
ALTER TABLE `llx_c_stcommcontact`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_stcommcontact` (`code`);

--
-- Indexes for table `llx_c_subtotal_free_text`
--
ALTER TABLE `llx_c_subtotal_free_text`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_c_ticket_category`
--
ALTER TABLE `llx_c_ticket_category`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_code` (`code`,`entity`);

--
-- Indexes for table `llx_c_ticket_resolution`
--
ALTER TABLE `llx_c_ticket_resolution`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_code` (`code`,`entity`);

--
-- Indexes for table `llx_c_ticket_severity`
--
ALTER TABLE `llx_c_ticket_severity`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_code` (`code`,`entity`);

--
-- Indexes for table `llx_c_ticket_type`
--
ALTER TABLE `llx_c_ticket_type`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_code` (`code`,`entity`);

--
-- Indexes for table `llx_c_transport_mode`
--
ALTER TABLE `llx_c_transport_mode`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_transport_mode` (`code`,`entity`);

--
-- Indexes for table `llx_c_tva`
--
ALTER TABLE `llx_c_tva`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_tva_id` (`fk_pays`,`code`,`taux`,`recuperableonly`);

--
-- Indexes for table `llx_c_typent`
--
ALTER TABLE `llx_c_typent`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_typent` (`code`);

--
-- Indexes for table `llx_c_type_contact`
--
ALTER TABLE `llx_c_type_contact`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_type_contact_id` (`element`,`source`,`code`);

--
-- Indexes for table `llx_c_type_container`
--
ALTER TABLE `llx_c_type_container`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_type_container_id` (`code`,`entity`);

--
-- Indexes for table `llx_c_type_fees`
--
ALTER TABLE `llx_c_type_fees`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_type_fees` (`code`);

--
-- Indexes for table `llx_c_type_resource`
--
ALTER TABLE `llx_c_type_resource`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_type_resource_id` (`label`,`code`);

--
-- Indexes for table `llx_c_ultimatepdf_line`
--
ALTER TABLE `llx_c_ultimatepdf_line`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_ultimatepdf_line` (`code`,`entity`);

--
-- Indexes for table `llx_c_ultimatepdf_title`
--
ALTER TABLE `llx_c_ultimatepdf_title`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_ultimatepdf_title` (`code`,`entity`);

--
-- Indexes for table `llx_c_units`
--
ALTER TABLE `llx_c_units`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_units_code` (`code`);

--
-- Indexes for table `llx_c_ziptown`
--
ALTER TABLE `llx_c_ziptown`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_ziptown_fk_pays` (`zip`,`town`,`fk_pays`),
  ADD KEY `idx_c_ziptown_fk_county` (`fk_county`),
  ADD KEY `idx_c_ziptown_fk_pays` (`fk_pays`),
  ADD KEY `idx_c_ziptown_zip` (`zip`);

--
-- Indexes for table `llx_default_values`
--
ALTER TABLE `llx_default_values`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_default_values` (`type`,`entity`,`user_id`,`page`,`param`);

--
-- Indexes for table `llx_delivery`
--
ALTER TABLE `llx_delivery`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_delivery_uk_ref` (`ref`,`entity`),
  ADD KEY `idx_delivery_fk_soc` (`fk_soc`),
  ADD KEY `idx_delivery_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_delivery_fk_user_valid` (`fk_user_valid`);

--
-- Indexes for table `llx_deliverydet`
--
ALTER TABLE `llx_deliverydet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_deliverydet_fk_delivery` (`fk_delivery`);

--
-- Indexes for table `llx_deliverydet_extrafields`
--
ALTER TABLE `llx_deliverydet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_deliverydet_extrafields` (`fk_object`);

--
-- Indexes for table `llx_delivery_extrafields`
--
ALTER TABLE `llx_delivery_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_delivery_extrafields` (`fk_object`);

--
-- Indexes for table `llx_deplacement`
--
ALTER TABLE `llx_deplacement`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_document_model`
--
ALTER TABLE `llx_document_model`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_document_model` (`nom`,`type`,`entity`);

--
-- Indexes for table `llx_don`
--
ALTER TABLE `llx_don`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_don_extrafields`
--
ALTER TABLE `llx_don_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_don_extrafields` (`fk_object`);

--
-- Indexes for table `llx_ecm_directories`
--
ALTER TABLE `llx_ecm_directories`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_ecm_directories` (`label`,`fk_parent`,`entity`),
  ADD KEY `idx_ecm_directories_fk_user_c` (`fk_user_c`),
  ADD KEY `idx_ecm_directories_fk_user_m` (`fk_user_m`);

--
-- Indexes for table `llx_ecm_directories_extrafields`
--
ALTER TABLE `llx_ecm_directories_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_ecm_directories_extrafields` (`fk_object`);

--
-- Indexes for table `llx_ecm_files`
--
ALTER TABLE `llx_ecm_files`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_ecm_files` (`filepath`,`filename`,`entity`),
  ADD KEY `idx_ecm_files_label` (`label`);

--
-- Indexes for table `llx_ecm_files_extrafields`
--
ALTER TABLE `llx_ecm_files_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_ecm_files_extrafields` (`fk_object`);

--
-- Indexes for table `llx_element_contact`
--
ALTER TABLE `llx_element_contact`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_element_contact_idx1` (`element_id`,`fk_c_type_contact`,`fk_socpeople`),
  ADD KEY `fk_element_contact_fk_c_type_contact` (`fk_c_type_contact`),
  ADD KEY `idx_element_contact_fk_socpeople` (`fk_socpeople`);

--
-- Indexes for table `llx_element_element`
--
ALTER TABLE `llx_element_element`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_element_element_idx1` (`fk_source`,`sourcetype`,`fk_target`,`targettype`),
  ADD KEY `idx_element_element_fk_target` (`fk_target`);

--
-- Indexes for table `llx_element_resources`
--
ALTER TABLE `llx_element_resources`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_element_resources_idx1` (`resource_id`,`resource_type`,`element_id`,`element_type`),
  ADD KEY `idx_element_element_element_id` (`element_id`);

--
-- Indexes for table `llx_emailcollector_emailcollector`
--
ALTER TABLE `llx_emailcollector_emailcollector`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_emailcollector_emailcollector_ref` (`ref`,`entity`),
  ADD KEY `idx_emailcollector_entity` (`entity`),
  ADD KEY `idx_emailcollector_status` (`status`);

--
-- Indexes for table `llx_emailcollector_emailcollectoraction`
--
ALTER TABLE `llx_emailcollector_emailcollectoraction`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_emailcollector_emailcollectoraction` (`fk_emailcollector`,`type`),
  ADD KEY `idx_emailcollector_fk_emailcollector` (`fk_emailcollector`);

--
-- Indexes for table `llx_emailcollector_emailcollectorfilter`
--
ALTER TABLE `llx_emailcollector_emailcollectorfilter`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_emailcollector_emailcollectorfilter` (`fk_emailcollector`,`type`,`rulevalue`),
  ADD KEY `idx_emailcollector_fk_emailcollector` (`fk_emailcollector`);

--
-- Indexes for table `llx_entrepot`
--
ALTER TABLE `llx_entrepot`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_entrepot_label` (`ref`,`entity`);

--
-- Indexes for table `llx_entrepot_extrafields`
--
ALTER TABLE `llx_entrepot_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_entrepot_extrafields` (`fk_object`);

--
-- Indexes for table `llx_establishment`
--
ALTER TABLE `llx_establishment`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_eventorganization_conferenceorboothattendee`
--
ALTER TABLE `llx_eventorganization_conferenceorboothattendee`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_eventorganization_conferenceorboothattendee` (`fk_project`,`email`,`fk_actioncomm`),
  ADD KEY `idx_eventorganization_conferenceorboothattendee_rowid` (`rowid`),
  ADD KEY `idx_eventorganization_conferenceorboothattendee_ref` (`ref`),
  ADD KEY `idx_eventorganization_conferenceorboothattendee_fk_soc` (`fk_soc`),
  ADD KEY `idx_eventorganization_conferenceorboothattendee_fk_actioncomm` (`fk_actioncomm`),
  ADD KEY `idx_eventorganization_conferenceorboothattendee_fk_project` (`fk_project`),
  ADD KEY `idx_eventorganization_conferenceorboothattendee_email` (`email`),
  ADD KEY `idx_eventorganization_conferenceorboothattendee_status` (`status`);

--
-- Indexes for table `llx_eventorganization_conferenceorboothattendee_extrafields`
--
ALTER TABLE `llx_eventorganization_conferenceorboothattendee_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_conferenceorboothattendee_fk_object` (`fk_object`);

--
-- Indexes for table `llx_events`
--
ALTER TABLE `llx_events`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_events_dateevent` (`dateevent`);

--
-- Indexes for table `llx_event_element`
--
ALTER TABLE `llx_event_element`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_expedition`
--
ALTER TABLE `llx_expedition`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_expedition_uk_ref` (`ref`,`entity`),
  ADD KEY `idx_expedition_fk_soc` (`fk_soc`),
  ADD KEY `idx_expedition_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_expedition_fk_user_valid` (`fk_user_valid`),
  ADD KEY `idx_expedition_fk_shipping_method` (`fk_shipping_method`);

--
-- Indexes for table `llx_expeditiondet`
--
ALTER TABLE `llx_expeditiondet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_expeditiondet_fk_expedition` (`fk_expedition`),
  ADD KEY `idx_expeditiondet_fk_origin_line` (`fk_origin_line`);

--
-- Indexes for table `llx_expeditiondet_batch`
--
ALTER TABLE `llx_expeditiondet_batch`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_fk_expeditiondet` (`fk_expeditiondet`);

--
-- Indexes for table `llx_expeditiondet_extrafields`
--
ALTER TABLE `llx_expeditiondet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_expeditiondet_extrafields` (`fk_object`);

--
-- Indexes for table `llx_expedition_extrafields`
--
ALTER TABLE `llx_expedition_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_expedition_extrafields` (`fk_object`);

--
-- Indexes for table `llx_expedition_package`
--
ALTER TABLE `llx_expedition_package`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_expensereport`
--
ALTER TABLE `llx_expensereport`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_expensereport_uk_ref` (`ref`,`entity`),
  ADD KEY `idx_expensereport_date_debut` (`date_debut`),
  ADD KEY `idx_expensereport_date_fin` (`date_fin`),
  ADD KEY `idx_expensereport_fk_statut` (`fk_statut`),
  ADD KEY `idx_expensereport_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_expensereport_fk_user_valid` (`fk_user_valid`),
  ADD KEY `idx_expensereport_fk_user_approve` (`fk_user_approve`),
  ADD KEY `idx_expensereport_fk_refuse` (`fk_user_approve`);

--
-- Indexes for table `llx_expensereport_det`
--
ALTER TABLE `llx_expensereport_det`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_expensereport_extrafields`
--
ALTER TABLE `llx_expensereport_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_expensereport_extrafields` (`fk_object`);

--
-- Indexes for table `llx_expensereport_ik`
--
ALTER TABLE `llx_expensereport_ik`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_expensereport_rules`
--
ALTER TABLE `llx_expensereport_rules`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_export_compta`
--
ALTER TABLE `llx_export_compta`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_export_model`
--
ALTER TABLE `llx_export_model`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_export_model` (`label`,`type`);

--
-- Indexes for table `llx_extrafields`
--
ALTER TABLE `llx_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_extrafields_name` (`name`,`entity`,`elementtype`);

--
-- Indexes for table `llx_extralist`
--
ALTER TABLE `llx_extralist`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_extralistdet`
--
ALTER TABLE `llx_extralistdet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_extralistdet` (`fk_extralist`,`elementype`);

--
-- Indexes for table `llx_extralistdetfields`
--
ALTER TABLE `llx_extralistdetfields`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_extralistfields`
--
ALTER TABLE `llx_extralistfields`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_facture`
--
ALTER TABLE `llx_facture`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_facture_ref` (`ref`,`entity`),
  ADD KEY `idx_facture_fk_soc` (`fk_soc`),
  ADD KEY `idx_facture_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_facture_fk_user_valid` (`fk_user_valid`),
  ADD KEY `idx_facture_fk_facture_source` (`fk_facture_source`),
  ADD KEY `idx_facture_fk_projet` (`fk_projet`),
  ADD KEY `idx_facture_fk_account` (`fk_account`),
  ADD KEY `idx_facture_fk_currency` (`fk_currency`),
  ADD KEY `idx_facture_fk_statut` (`fk_statut`);

--
-- Indexes for table `llx_facturedet`
--
ALTER TABLE `llx_facturedet`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_fk_remise_except` (`fk_remise_except`,`fk_facture`),
  ADD KEY `idx_facturedet_fk_facture` (`fk_facture`),
  ADD KEY `idx_facturedet_fk_product` (`fk_product`),
  ADD KEY `idx_facturedet_fk_code_ventilation` (`fk_code_ventilation`),
  ADD KEY `fk_facturedet_fk_unit` (`fk_unit`);

--
-- Indexes for table `llx_facturedet_extrafields`
--
ALTER TABLE `llx_facturedet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facturedet_extrafields` (`fk_object`);

--
-- Indexes for table `llx_facturedet_rec`
--
ALTER TABLE `llx_facturedet_rec`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `fk_facturedet_rec_fk_unit` (`fk_unit`);

--
-- Indexes for table `llx_facturedet_rec_extrafields`
--
ALTER TABLE `llx_facturedet_rec_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facturedet_rec_extrafields` (`fk_object`);

--
-- Indexes for table `llx_facture_extrafields`
--
ALTER TABLE `llx_facture_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_extrafields` (`fk_object`);

--
-- Indexes for table `llx_facture_fourn`
--
ALTER TABLE `llx_facture_fourn`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_facture_fourn_ref` (`ref`,`entity`),
  ADD UNIQUE KEY `uk_facture_fourn_ref_supplier` (`ref_supplier`,`fk_soc`,`entity`),
  ADD KEY `idx_facture_fourn_date_lim_reglement` (`date_lim_reglement`),
  ADD KEY `idx_facture_fourn_fk_soc` (`fk_soc`),
  ADD KEY `idx_facture_fourn_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_facture_fourn_fk_user_valid` (`fk_user_valid`),
  ADD KEY `idx_facture_fourn_fk_projet` (`fk_projet`);

--
-- Indexes for table `llx_facture_fourn_det`
--
ALTER TABLE `llx_facture_fourn_det`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_fk_remise_except` (`fk_remise_except`,`fk_facture_fourn`),
  ADD KEY `idx_facture_fourn_det_fk_facture` (`fk_facture_fourn`),
  ADD KEY `idx_facture_fourn_det_fk_product` (`fk_product`),
  ADD KEY `idx_facture_fourn_det_fk_code_ventilation` (`fk_code_ventilation`),
  ADD KEY `fk_facture_fourn_det_fk_unit` (`fk_unit`);

--
-- Indexes for table `llx_facture_fourn_det_extrafields`
--
ALTER TABLE `llx_facture_fourn_det_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_fourn_det_extrafields` (`fk_object`);

--
-- Indexes for table `llx_facture_fourn_extrafields`
--
ALTER TABLE `llx_facture_fourn_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_fourn_extrafields` (`fk_object`);

--
-- Indexes for table `llx_facture_rec`
--
ALTER TABLE `llx_facture_rec`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_facture_rec_uk_titre` (`titre`,`entity`),
  ADD KEY `idx_facture_rec_fk_soc` (`fk_soc`),
  ADD KEY `idx_facture_rec_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_facture_rec_fk_projet` (`fk_projet`);

--
-- Indexes for table `llx_facture_rec_extrafields`
--
ALTER TABLE `llx_facture_rec_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_rec_extrafields` (`fk_object`);

--
-- Indexes for table `llx_fichinter`
--
ALTER TABLE `llx_fichinter`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_fichinter_ref` (`ref`,`entity`),
  ADD KEY `idx_fichinter_fk_soc` (`fk_soc`);

--
-- Indexes for table `llx_fichinterdet`
--
ALTER TABLE `llx_fichinterdet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_fichinterdet_fk_fichinter` (`fk_fichinter`);

--
-- Indexes for table `llx_fichinterdet_extrafields`
--
ALTER TABLE `llx_fichinterdet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_ficheinterdet_extrafields` (`fk_object`);

--
-- Indexes for table `llx_fichinterdet_rec`
--
ALTER TABLE `llx_fichinterdet_rec`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_fichinter_extrafields`
--
ALTER TABLE `llx_fichinter_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_ficheinter_extrafields` (`fk_object`);

--
-- Indexes for table `llx_fichinter_rec`
--
ALTER TABLE `llx_fichinter_rec`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_fichinter_rec_uk_titre` (`titre`,`entity`),
  ADD KEY `idx_fichinter_rec_fk_soc` (`fk_soc`),
  ADD KEY `idx_fichinter_rec_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_fichinter_rec_fk_projet` (`fk_projet`);

--
-- Indexes for table `llx_holiday`
--
ALTER TABLE `llx_holiday`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_holiday_entity` (`entity`),
  ADD KEY `idx_holiday_fk_user` (`fk_user`),
  ADD KEY `idx_holiday_fk_user_create` (`fk_user_create`),
  ADD KEY `idx_holiday_date_create` (`date_create`),
  ADD KEY `idx_holiday_date_debut` (`date_debut`),
  ADD KEY `idx_holiday_date_fin` (`date_fin`),
  ADD KEY `idx_holiday_fk_validator` (`fk_validator`);

--
-- Indexes for table `llx_holiday_config`
--
ALTER TABLE `llx_holiday_config`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_holiday_config` (`name`);

--
-- Indexes for table `llx_holiday_extrafields`
--
ALTER TABLE `llx_holiday_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_holiday_extrafields` (`fk_object`);

--
-- Indexes for table `llx_holiday_logs`
--
ALTER TABLE `llx_holiday_logs`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_holiday_users`
--
ALTER TABLE `llx_holiday_users`
  ADD UNIQUE KEY `uk_holiday_users` (`fk_user`,`fk_type`);

--
-- Indexes for table `llx_import_model`
--
ALTER TABLE `llx_import_model`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_import_model` (`label`,`type`);

--
-- Indexes for table `llx_intracommreport`
--
ALTER TABLE `llx_intracommreport`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_inventory`
--
ALTER TABLE `llx_inventory`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_inventory_ref` (`ref`,`entity`),
  ADD KEY `idx_inventory_tms` (`tms`),
  ADD KEY `idx_inventory_date_creation` (`date_creation`);

--
-- Indexes for table `llx_inventorydet`
--
ALTER TABLE `llx_inventorydet`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_inventorydet` (`fk_inventory`,`fk_warehouse`,`fk_product`,`batch`),
  ADD KEY `idx_inventorydet_tms` (`tms`),
  ADD KEY `idx_inventorydet_datec` (`datec`),
  ADD KEY `idx_inventorydet_fk_inventory` (`fk_inventory`);

--
-- Indexes for table `llx_knowledgemanagement_knowledgerecord`
--
ALTER TABLE `llx_knowledgemanagement_knowledgerecord`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_knowledgemanagement_knowledgerecord_rowid` (`rowid`),
  ADD KEY `idx_knowledgemanagement_knowledgerecord_ref` (`ref`),
  ADD KEY `llx_knowledgemanagement_knowledgerecord_fk_user_creat` (`fk_user_creat`),
  ADD KEY `idx_knowledgemanagement_knowledgerecord_status` (`status`);

--
-- Indexes for table `llx_knowledgemanagement_knowledgerecord_extrafields`
--
ALTER TABLE `llx_knowledgemanagement_knowledgerecord_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_knowledgerecord_fk_object` (`fk_object`);

--
-- Indexes for table `llx_links`
--
ALTER TABLE `llx_links`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_links` (`objectid`,`label`);

--
-- Indexes for table `llx_loan`
--
ALTER TABLE `llx_loan`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_loan_schedule`
--
ALTER TABLE `llx_loan_schedule`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_localtax`
--
ALTER TABLE `llx_localtax`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_mailing`
--
ALTER TABLE `llx_mailing`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_mailing_cibles`
--
ALTER TABLE `llx_mailing_cibles`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_mailing_cibles` (`fk_mailing`,`email`),
  ADD KEY `idx_mailing_cibles_email` (`email`),
  ADD KEY `idx_mailing_cibles_tag` (`tag`);

--
-- Indexes for table `llx_mailing_unsubscribe`
--
ALTER TABLE `llx_mailing_unsubscribe`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_mailing_unsubscribe` (`email`,`entity`,`unsubscribegroup`);

--
-- Indexes for table `llx_menu`
--
ALTER TABLE `llx_menu`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_menu_uk_menu` (`menu_handler`,`fk_menu`,`position`,`url`,`entity`),
  ADD KEY `idx_menu_menuhandler_type` (`menu_handler`,`type`);

--
-- Indexes for table `llx_mrp_mo`
--
ALTER TABLE `llx_mrp_mo`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_mrp_mo_ref` (`ref`),
  ADD KEY `idx_mrp_mo_entity` (`entity`),
  ADD KEY `idx_mrp_mo_fk_soc` (`fk_soc`),
  ADD KEY `fk_mrp_mo_fk_user_creat` (`fk_user_creat`),
  ADD KEY `idx_mrp_mo_status` (`status`),
  ADD KEY `idx_mrp_mo_fk_product` (`fk_product`),
  ADD KEY `idx_mrp_mo_date_start_planned` (`date_start_planned`),
  ADD KEY `idx_mrp_mo_date_end_planned` (`date_end_planned`),
  ADD KEY `idx_mrp_mo_fk_bom` (`fk_bom`),
  ADD KEY `idx_mrp_mo_fk_project` (`fk_project`);

--
-- Indexes for table `llx_mrp_mo_extrafields`
--
ALTER TABLE `llx_mrp_mo_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_mrp_mo_fk_object` (`fk_object`);

--
-- Indexes for table `llx_mrp_production`
--
ALTER TABLE `llx_mrp_production`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `fk_mrp_production_product` (`fk_product`),
  ADD KEY `fk_mrp_production_stock_movement` (`fk_stock_movement`),
  ADD KEY `idx_mrp_production_fk_mo` (`fk_mo`);

--
-- Indexes for table `llx_multicurrency`
--
ALTER TABLE `llx_multicurrency`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_multicurrency_rate`
--
ALTER TABLE `llx_multicurrency_rate`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_notify`
--
ALTER TABLE `llx_notify`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_notify_def`
--
ALTER TABLE `llx_notify_def`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_notify_def_object`
--
ALTER TABLE `llx_notify_def_object`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `llx_oauth_state`
--
ALTER TABLE `llx_oauth_state`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_oauth_token`
--
ALTER TABLE `llx_oauth_token`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_object_lang`
--
ALTER TABLE `llx_object_lang`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_object_lang` (`fk_object`,`type_object`,`property`,`lang`);

--
-- Indexes for table `llx_onlinesignature`
--
ALTER TABLE `llx_onlinesignature`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_opensurvey_comments`
--
ALTER TABLE `llx_opensurvey_comments`
  ADD PRIMARY KEY (`id_comment`),
  ADD KEY `idx_id_comment` (`id_comment`),
  ADD KEY `idx_id_sondage` (`id_sondage`);

--
-- Indexes for table `llx_opensurvey_formquestions`
--
ALTER TABLE `llx_opensurvey_formquestions`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_opensurvey_sondage`
--
ALTER TABLE `llx_opensurvey_sondage`
  ADD PRIMARY KEY (`id_sondage`),
  ADD KEY `idx_date_fin` (`date_fin`);

--
-- Indexes for table `llx_opensurvey_user_studs`
--
ALTER TABLE `llx_opensurvey_user_studs`
  ADD PRIMARY KEY (`id_users`),
  ADD KEY `idx_opensurvey_user_studs_id_users` (`id_users`),
  ADD KEY `idx_opensurvey_user_studs_nom` (`nom`),
  ADD KEY `idx_opensurvey_user_studs_id_sondage` (`id_sondage`);

--
-- Indexes for table `llx_overwrite_trans`
--
ALTER TABLE `llx_overwrite_trans`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_overwrite_trans` (`lang`,`transkey`);

--
-- Indexes for table `llx_packinglist`
--
ALTER TABLE `llx_packinglist`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_packinglist` (`fk_expedition`,`num`),
  ADD KEY `idx_packinglist_fk_expedition` (`fk_expedition`),
  ADD KEY `idx_packinglist_fk_packing_type` (`fk_packing_type`),
  ADD KEY `idx_packinglist_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_packinglist_fk_user_modif` (`fk_user_modif`),
  ADD KEY `idx_packinglist_fk_user_taken_over_by_carrier` (`fk_user_taken_over_by_carrier`),
  ADD KEY `idx_packinglist_fk_shipping_method` (`fk_shipping_method`);

--
-- Indexes for table `llx_packinglistdet`
--
ALTER TABLE `llx_packinglistdet`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_packinglistdet` (`fk_packinglist`,`fk_expeditiondet`),
  ADD KEY `idx_packinglistdet_fk_packinglist` (`fk_packinglist`),
  ADD KEY `idx_packinglistdet_fk_expeditiondet` (`fk_expeditiondet`);

--
-- Indexes for table `llx_paiement`
--
ALTER TABLE `llx_paiement`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_paiementcharge`
--
ALTER TABLE `llx_paiementcharge`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_paiementfourn`
--
ALTER TABLE `llx_paiementfourn`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_paiementfourn_facturefourn`
--
ALTER TABLE `llx_paiementfourn_facturefourn`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_paiementfourn_facturefourn` (`fk_paiementfourn`,`fk_facturefourn`),
  ADD KEY `idx_paiementfourn_facturefourn_fk_facture` (`fk_facturefourn`),
  ADD KEY `idx_paiementfourn_facturefourn_fk_paiement` (`fk_paiementfourn`);

--
-- Indexes for table `llx_paiement_facture`
--
ALTER TABLE `llx_paiement_facture`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_paiement_facture` (`fk_paiement`,`fk_facture`),
  ADD KEY `idx_paiement_facture_fk_facture` (`fk_facture`),
  ADD KEY `idx_paiement_facture_fk_paiement` (`fk_paiement`);

--
-- Indexes for table `llx_partnership`
--
ALTER TABLE `llx_partnership`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_partnership_ref` (`ref`,`entity`),
  ADD KEY `idx_partnership_entity` (`entity`),
  ADD KEY `idx_partnership_rowid` (`rowid`),
  ADD KEY `idx_partnership_ref` (`ref`),
  ADD KEY `idx_partnership_fk_soc` (`fk_soc`),
  ADD KEY `llx_partnership_fk_user_creat` (`fk_user_creat`),
  ADD KEY `idx_partnership_status` (`status`),
  ADD KEY `idx_partnership_fk_member` (`fk_member`);

--
-- Indexes for table `llx_partnership_extrafields`
--
ALTER TABLE `llx_partnership_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_partnership_extrafields` (`fk_object`),
  ADD KEY `idx_partnership_fk_object` (`fk_object`);

--
-- Indexes for table `llx_payment_donation`
--
ALTER TABLE `llx_payment_donation`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_payment_expensereport`
--
ALTER TABLE `llx_payment_expensereport`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_payment_loan`
--
ALTER TABLE `llx_payment_loan`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_payment_salary`
--
ALTER TABLE `llx_payment_salary`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_payment_salary_ref` (`num_payment`),
  ADD KEY `idx_payment_salary_user` (`fk_user`,`entity`),
  ADD KEY `idx_payment_salary_datep` (`datep`),
  ADD KEY `idx_payment_salary_datesp` (`datesp`),
  ADD KEY `idx_payment_salary_dateep` (`dateep`);

--
-- Indexes for table `llx_payment_various`
--
ALTER TABLE `llx_payment_various`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_payment_vat`
--
ALTER TABLE `llx_payment_vat`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_pos_cash_fence`
--
ALTER TABLE `llx_pos_cash_fence`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_prelevement_bons`
--
ALTER TABLE `llx_prelevement_bons`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_prelevement_bons_ref` (`ref`,`entity`);

--
-- Indexes for table `llx_prelevement_facture`
--
ALTER TABLE `llx_prelevement_facture`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_prelevement_facture_fk_prelevement_lignes` (`fk_prelevement_lignes`);

--
-- Indexes for table `llx_prelevement_facture_demande`
--
ALTER TABLE `llx_prelevement_facture_demande`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_prelevement_facture_demande_fk_facture` (`fk_facture`),
  ADD KEY `idx_prelevement_facture_demande_fk_facture_fourn` (`fk_facture_fourn`);

--
-- Indexes for table `llx_prelevement_lignes`
--
ALTER TABLE `llx_prelevement_lignes`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_prelevement_lignes_fk_prelevement_bons` (`fk_prelevement_bons`);

--
-- Indexes for table `llx_prelevement_rejet`
--
ALTER TABLE `llx_prelevement_rejet`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_printer_receipt`
--
ALTER TABLE `llx_printer_receipt`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_printer_receipt_template`
--
ALTER TABLE `llx_printer_receipt_template`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_printing`
--
ALTER TABLE `llx_printing`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_product`
--
ALTER TABLE `llx_product`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_ref` (`ref`,`entity`),
  ADD UNIQUE KEY `uk_product_barcode` (`barcode`,`fk_barcode_type`,`entity`),
  ADD KEY `idx_product_label` (`label`),
  ADD KEY `idx_product_barcode` (`barcode`),
  ADD KEY `idx_product_import_key` (`import_key`),
  ADD KEY `idx_product_seuil_stock_alerte` (`seuil_stock_alerte`),
  ADD KEY `idx_product_fk_country` (`fk_country`),
  ADD KEY `idx_product_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_product_fk_barcode_type` (`fk_barcode_type`),
  ADD KEY `idx_product_fk_project` (`fk_project`),
  ADD KEY `fk_product_fk_unit` (`fk_unit`),
  ADD KEY `fk_product_finished` (`finished`),
  ADD KEY `fk_product_default_warehouse` (`fk_default_warehouse`);

--
-- Indexes for table `llx_product_association`
--
ALTER TABLE `llx_product_association`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_association` (`fk_product_pere`,`fk_product_fils`),
  ADD KEY `idx_product_association_fils` (`fk_product_fils`);

--
-- Indexes for table `llx_product_attribute`
--
ALTER TABLE `llx_product_attribute`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_attribute_ref` (`ref`);

--
-- Indexes for table `llx_product_attribute_combination`
--
ALTER TABLE `llx_product_attribute_combination`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_product_att_com_product_parent` (`fk_product_parent`),
  ADD KEY `idx_product_att_com_product_child` (`fk_product_child`);

--
-- Indexes for table `llx_product_attribute_combination2val`
--
ALTER TABLE `llx_product_attribute_combination2val`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_product_attribute_combination_price_level`
--
ALTER TABLE `llx_product_attribute_combination_price_level`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `fk_product_attribute_combination` (`fk_product_attribute_combination`,`fk_price_level`);

--
-- Indexes for table `llx_product_attribute_value`
--
ALTER TABLE `llx_product_attribute_value`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_attribute_value` (`fk_product_attribute`,`ref`);

--
-- Indexes for table `llx_product_batch`
--
ALTER TABLE `llx_product_batch`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_batch` (`fk_product_stock`,`batch`),
  ADD KEY `idx_fk_product_stock` (`fk_product_stock`),
  ADD KEY `idx_batch` (`batch`);

--
-- Indexes for table `llx_product_customer_price`
--
ALTER TABLE `llx_product_customer_price`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_customer_price_fk_product_fk_soc` (`fk_product`,`fk_soc`),
  ADD KEY `idx_product_customer_price_fk_user` (`fk_user`),
  ADD KEY `idx_product_customer_price_fk_soc` (`fk_soc`);

--
-- Indexes for table `llx_product_customer_price_log`
--
ALTER TABLE `llx_product_customer_price_log`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_product_extrafields`
--
ALTER TABLE `llx_product_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_product_extrafields` (`fk_object`);

--
-- Indexes for table `llx_product_fournisseur_price`
--
ALTER TABLE `llx_product_fournisseur_price`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_fournisseur_price_ref` (`ref_fourn`,`fk_soc`,`quantity`,`entity`),
  ADD UNIQUE KEY `uk_product_barcode` (`barcode`,`fk_barcode_type`,`entity`),
  ADD KEY `idx_product_fournisseur_price_fk_user` (`fk_user`),
  ADD KEY `idx_product_fourn_price_fk_product` (`fk_product`,`entity`),
  ADD KEY `idx_product_fourn_price_fk_soc` (`fk_soc`,`entity`),
  ADD KEY `idx_product_barcode` (`barcode`),
  ADD KEY `idx_product_fk_barcode_type` (`fk_barcode_type`);

--
-- Indexes for table `llx_product_fournisseur_price_extrafields`
--
ALTER TABLE `llx_product_fournisseur_price_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_product_fournisseur_price_extrafields` (`fk_object`);

--
-- Indexes for table `llx_product_fournisseur_price_log`
--
ALTER TABLE `llx_product_fournisseur_price_log`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_product_lang`
--
ALTER TABLE `llx_product_lang`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_lang` (`fk_product`,`lang`);

--
-- Indexes for table `llx_product_lot`
--
ALTER TABLE `llx_product_lot`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_lot` (`fk_product`,`batch`);

--
-- Indexes for table `llx_product_lot_extrafields`
--
ALTER TABLE `llx_product_lot_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_product_lot_extrafields` (`fk_object`);

--
-- Indexes for table `llx_product_perentity`
--
ALTER TABLE `llx_product_perentity`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_perentity` (`fk_product`,`entity`),
  ADD KEY `idx_product_perentity_fk_product` (`fk_product`);

--
-- Indexes for table `llx_product_price`
--
ALTER TABLE `llx_product_price`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_product_price_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_product_price_fk_product` (`fk_product`);

--
-- Indexes for table `llx_product_pricerules`
--
ALTER TABLE `llx_product_pricerules`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `unique_level` (`level`);

--
-- Indexes for table `llx_product_price_by_qty`
--
ALTER TABLE `llx_product_price_by_qty`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_price_by_qty_level` (`fk_product_price`,`quantity`),
  ADD KEY `idx_product_price_by_qty_fk_product_price` (`fk_product_price`);

--
-- Indexes for table `llx_product_stock`
--
ALTER TABLE `llx_product_stock`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_stock` (`fk_product`,`fk_entrepot`),
  ADD KEY `idx_product_stock_fk_product` (`fk_product`),
  ADD KEY `idx_product_stock_fk_entrepot` (`fk_entrepot`);

--
-- Indexes for table `llx_product_warehouse_properties`
--
ALTER TABLE `llx_product_warehouse_properties`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_projet`
--
ALTER TABLE `llx_projet`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_projet_ref` (`ref`,`entity`),
  ADD KEY `idx_projet_fk_soc` (`fk_soc`);

--
-- Indexes for table `llx_projet_extrafields`
--
ALTER TABLE `llx_projet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_projet_extrafields` (`fk_object`);

--
-- Indexes for table `llx_projet_task`
--
ALTER TABLE `llx_projet_task`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_projet_task_ref` (`ref`,`entity`),
  ADD KEY `idx_projet_task_fk_projet` (`fk_projet`),
  ADD KEY `idx_projet_task_fk_user_creat` (`fk_user_creat`),
  ADD KEY `idx_projet_task_fk_user_valid` (`fk_user_valid`);

--
-- Indexes for table `llx_projet_task_extrafields`
--
ALTER TABLE `llx_projet_task_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_projet_task_extrafields` (`fk_object`);

--
-- Indexes for table `llx_projet_task_time`
--
ALTER TABLE `llx_projet_task_time`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_projet_task_time_task` (`fk_task`),
  ADD KEY `idx_projet_task_time_date` (`task_date`),
  ADD KEY `idx_projet_task_time_datehour` (`task_datehour`);

--
-- Indexes for table `llx_propal`
--
ALTER TABLE `llx_propal`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_propal_ref` (`ref`,`entity`),
  ADD KEY `idx_propal_fk_soc` (`fk_soc`),
  ADD KEY `idx_propal_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_propal_fk_user_valid` (`fk_user_valid`),
  ADD KEY `idx_propal_fk_user_signature` (`fk_user_signature`),
  ADD KEY `idx_propal_fk_user_cloture` (`fk_user_cloture`),
  ADD KEY `idx_propal_fk_projet` (`fk_projet`),
  ADD KEY `idx_propal_fk_account` (`fk_account`),
  ADD KEY `idx_propal_fk_currency` (`fk_currency`),
  ADD KEY `idx_propal_fk_warehouse` (`fk_warehouse`);

--
-- Indexes for table `llx_propaldet`
--
ALTER TABLE `llx_propaldet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_propaldet_fk_propal` (`fk_propal`),
  ADD KEY `idx_propaldet_fk_product` (`fk_product`),
  ADD KEY `fk_propaldet_fk_unit` (`fk_unit`);

--
-- Indexes for table `llx_propaldet_extrafields`
--
ALTER TABLE `llx_propaldet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_propaldet_extrafields` (`fk_object`);

--
-- Indexes for table `llx_propal_extrafields`
--
ALTER TABLE `llx_propal_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_propal_extrafields` (`fk_object`);

--
-- Indexes for table `llx_propal_merge_pdf_product`
--
ALTER TABLE `llx_propal_merge_pdf_product`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_reception`
--
ALTER TABLE `llx_reception`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_reception_uk_ref` (`ref`,`entity`),
  ADD KEY `idx_reception_fk_soc` (`fk_soc`),
  ADD KEY `idx_reception_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_reception_fk_user_valid` (`fk_user_valid`),
  ADD KEY `idx_reception_fk_shipping_method` (`fk_shipping_method`);

--
-- Indexes for table `llx_reception_extrafields`
--
ALTER TABLE `llx_reception_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_reception_extrafields` (`fk_object`);

--
-- Indexes for table `llx_recruitment_recruitmentcandidature`
--
ALTER TABLE `llx_recruitment_recruitmentcandidature`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_recruitmentcandidature_email_msgid` (`email_msgid`),
  ADD KEY `idx_recruitment_recruitmentcandidature_rowid` (`rowid`),
  ADD KEY `idx_recruitment_recruitmentcandidature_ref` (`ref`),
  ADD KEY `llx_recruitment_recruitmentcandidature_fk_user_creat` (`fk_user_creat`),
  ADD KEY `idx_recruitment_recruitmentcandidature_status` (`status`);

--
-- Indexes for table `llx_recruitment_recruitmentcandidature_extrafields`
--
ALTER TABLE `llx_recruitment_recruitmentcandidature_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_recruitmentcandidature_fk_object` (`fk_object`);

--
-- Indexes for table `llx_recruitment_recruitmentjobposition`
--
ALTER TABLE `llx_recruitment_recruitmentjobposition`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_recruitment_recruitmentjobposition_rowid` (`rowid`),
  ADD KEY `idx_recruitment_recruitmentjobposition_ref` (`ref`),
  ADD KEY `idx_recruitment_recruitmentjobposition_fk_soc` (`fk_soc`),
  ADD KEY `idx_recruitment_recruitmentjobposition_fk_project` (`fk_project`),
  ADD KEY `llx_recruitment_recruitmentjobposition_fk_user_recruiter` (`fk_user_recruiter`),
  ADD KEY `llx_recruitment_recruitmentjobposition_fk_user_supervisor` (`fk_user_supervisor`),
  ADD KEY `llx_recruitment_recruitmentjobposition_fk_establishment` (`fk_establishment`),
  ADD KEY `llx_recruitment_recruitmentjobposition_fk_user_creat` (`fk_user_creat`),
  ADD KEY `idx_recruitment_recruitmentjobposition_status` (`status`);

--
-- Indexes for table `llx_recruitment_recruitmentjobposition_extrafields`
--
ALTER TABLE `llx_recruitment_recruitmentjobposition_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_recruitmentjobposition_fk_object` (`fk_object`);

--
-- Indexes for table `llx_resource`
--
ALTER TABLE `llx_resource`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_resource_ref` (`ref`,`entity`),
  ADD KEY `fk_code_type_resource_idx` (`fk_code_type_resource`),
  ADD KEY `idx_resource_fk_country` (`fk_country`);

--
-- Indexes for table `llx_resource_extrafields`
--
ALTER TABLE `llx_resource_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_resource_extrafields` (`fk_object`);

--
-- Indexes for table `llx_rights_def`
--
ALTER TABLE `llx_rights_def`
  ADD PRIMARY KEY (`id`,`entity`);

--
-- Indexes for table `llx_salary`
--
ALTER TABLE `llx_salary`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_salary_extrafields`
--
ALTER TABLE `llx_salary_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_salary_extrafields` (`fk_object`);

--
-- Indexes for table `llx_session`
--
ALTER TABLE `llx_session`
  ADD PRIMARY KEY (`session_id`);

--
-- Indexes for table `llx_societe`
--
ALTER TABLE `llx_societe`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_societe_prefix_comm` (`prefix_comm`,`entity`),
  ADD UNIQUE KEY `uk_societe_code_client` (`code_client`,`entity`),
  ADD UNIQUE KEY `uk_societe_code_fournisseur` (`code_fournisseur`,`entity`),
  ADD UNIQUE KEY `uk_societe_barcode` (`barcode`,`fk_barcode_type`,`entity`),
  ADD KEY `idx_societe_user_creat` (`fk_user_creat`),
  ADD KEY `idx_societe_user_modif` (`fk_user_modif`),
  ADD KEY `idx_societe_stcomm` (`fk_stcomm`),
  ADD KEY `idx_societe_pays` (`fk_pays`),
  ADD KEY `idx_societe_account` (`fk_account`),
  ADD KEY `idx_societe_prospectlevel` (`fk_prospectlevel`),
  ADD KEY `idx_societe_typent` (`fk_typent`),
  ADD KEY `idx_societe_forme_juridique` (`fk_forme_juridique`),
  ADD KEY `idx_societe_shipping_method` (`fk_shipping_method`),
  ADD KEY `idx_societe_warehouse` (`fk_warehouse`);

--
-- Indexes for table `llx_societe_account`
--
ALTER TABLE `llx_societe_account`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_societe_account_login_website_soc` (`entity`,`fk_soc`,`login`,`site`,`fk_website`),
  ADD UNIQUE KEY `uk_societe_account_key_account_soc` (`entity`,`fk_soc`,`key_account`,`site`,`fk_website`),
  ADD KEY `idx_societe_account_rowid` (`rowid`),
  ADD KEY `idx_societe_account_login` (`login`),
  ADD KEY `idx_societe_account_status` (`status`),
  ADD KEY `idx_societe_account_fk_website` (`fk_website`),
  ADD KEY `idx_societe_account_fk_soc` (`fk_soc`);

--
-- Indexes for table `llx_societe_address`
--
ALTER TABLE `llx_societe_address`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_societe_commerciaux`
--
ALTER TABLE `llx_societe_commerciaux`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_societe_commerciaux` (`fk_soc`,`fk_user`);

--
-- Indexes for table `llx_societe_contacts`
--
ALTER TABLE `llx_societe_contacts`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_societe_contacts_idx1` (`entity`,`fk_soc`,`fk_c_type_contact`,`fk_socpeople`),
  ADD KEY `fk_societe_contacts_fk_c_type_contact` (`fk_c_type_contact`),
  ADD KEY `fk_societe_contacts_fk_soc` (`fk_soc`),
  ADD KEY `fk_societe_contacts_fk_socpeople` (`fk_socpeople`);

--
-- Indexes for table `llx_societe_extrafields`
--
ALTER TABLE `llx_societe_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_societe_extrafields` (`fk_object`);

--
-- Indexes for table `llx_societe_perentity`
--
ALTER TABLE `llx_societe_perentity`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_societe_perentity` (`fk_soc`,`entity`),
  ADD KEY `idx_societe_perentity_fk_soc` (`fk_soc`);

--
-- Indexes for table `llx_societe_prices`
--
ALTER TABLE `llx_societe_prices`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_societe_remise`
--
ALTER TABLE `llx_societe_remise`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_societe_remise_except`
--
ALTER TABLE `llx_societe_remise_except`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_societe_remise_except_fk_user` (`fk_user`),
  ADD KEY `idx_societe_remise_except_fk_soc` (`fk_soc`),
  ADD KEY `idx_societe_remise_except_fk_facture_line` (`fk_facture_line`),
  ADD KEY `idx_societe_remise_except_fk_facture` (`fk_facture`),
  ADD KEY `idx_societe_remise_except_fk_facture_source` (`fk_facture_source`),
  ADD KEY `idx_societe_remise_except_discount_type` (`discount_type`),
  ADD KEY `fk_soc_remise_fk_invoice_supplier_line` (`fk_invoice_supplier_line`),
  ADD KEY `fk_societe_remise_fk_invoice_supplier_source` (`fk_invoice_supplier`);

--
-- Indexes for table `llx_societe_remise_supplier`
--
ALTER TABLE `llx_societe_remise_supplier`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_societe_rib`
--
ALTER TABLE `llx_societe_rib`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_societe_rib` (`label`,`fk_soc`),
  ADD KEY `llx_societe_rib_fk_societe` (`fk_soc`);

--
-- Indexes for table `llx_socpeople`
--
ALTER TABLE `llx_socpeople`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_socpeople_fk_soc` (`fk_soc`),
  ADD KEY `idx_socpeople_fk_user_creat` (`fk_user_creat`);

--
-- Indexes for table `llx_socpeople_extrafields`
--
ALTER TABLE `llx_socpeople_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_socpeople_extrafields` (`fk_object`);

--
-- Indexes for table `llx_stock_mouvement`
--
ALTER TABLE `llx_stock_mouvement`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_stock_mouvement_fk_product` (`fk_product`),
  ADD KEY `idx_stock_mouvement_fk_entrepot` (`fk_entrepot`);

--
-- Indexes for table `llx_subscription`
--
ALTER TABLE `llx_subscription`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_subscription` (`fk_adherent`,`dateadh`);

--
-- Indexes for table `llx_supplier_proposal`
--
ALTER TABLE `llx_supplier_proposal`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_supplier_proposaldet`
--
ALTER TABLE `llx_supplier_proposaldet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_supplier_proposaldet_fk_supplier_proposal` (`fk_supplier_proposal`),
  ADD KEY `idx_supplier_proposaldet_fk_product` (`fk_product`),
  ADD KEY `fk_supplier_proposaldet_fk_unit` (`fk_unit`);

--
-- Indexes for table `llx_supplier_proposaldet_extrafields`
--
ALTER TABLE `llx_supplier_proposaldet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_supplier_proposaldet_extrafields` (`fk_object`);

--
-- Indexes for table `llx_supplier_proposal_extrafields`
--
ALTER TABLE `llx_supplier_proposal_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_supplier_proposal_extrafields` (`fk_object`);

--
-- Indexes for table `llx_takepos_floor_tables`
--
ALTER TABLE `llx_takepos_floor_tables`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_ticket`
--
ALTER TABLE `llx_ticket`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_ticket_track_id` (`track_id`),
  ADD UNIQUE KEY `uk_ticket_ref` (`ref`,`entity`),
  ADD KEY `idx_ticket_entity` (`entity`),
  ADD KEY `idx_ticket_fk_soc` (`fk_soc`),
  ADD KEY `idx_ticket_fk_user_assign` (`fk_user_assign`),
  ADD KEY `idx_ticket_fk_project` (`fk_project`),
  ADD KEY `idx_ticket_fk_statut` (`fk_statut`);

--
-- Indexes for table `llx_ticket_extrafields`
--
ALTER TABLE `llx_ticket_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_ticket_extrafields` (`fk_object`);

--
-- Indexes for table `llx_tva`
--
ALTER TABLE `llx_tva`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_ultimatepdf`
--
ALTER TABLE `llx_ultimatepdf`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_ultimatepdf_label` (`fk_user_creat`);

--
-- Indexes for table `llx_ultimatepdf_documentmergedpdf`
--
ALTER TABLE `llx_ultimatepdf_documentmergedpdf`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_ultimatepdf_documentmergedpdf_rowid` (`rowid`),
  ADD KEY `llx_ultimatepdf_documentmergedpdf_fk_user_creat` (`fk_user_creat`);

--
-- Indexes for table `llx_user`
--
ALTER TABLE `llx_user`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_user_login` (`login`,`entity`),
  ADD UNIQUE KEY `uk_user_fk_socpeople` (`fk_socpeople`),
  ADD UNIQUE KEY `uk_user_fk_member` (`fk_member`),
  ADD UNIQUE KEY `uk_user_api_key` (`api_key`),
  ADD KEY `idx_user_fk_societe` (`fk_soc`);

--
-- Indexes for table `llx_usergroup`
--
ALTER TABLE `llx_usergroup`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_usergroup_name` (`nom`,`entity`);

--
-- Indexes for table `llx_usergroup_extrafields`
--
ALTER TABLE `llx_usergroup_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_usergroup_extrafields` (`fk_object`);

--
-- Indexes for table `llx_usergroup_rights`
--
ALTER TABLE `llx_usergroup_rights`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_usergroup_rights` (`entity`,`fk_usergroup`,`fk_id`),
  ADD KEY `fk_usergroup_rights_fk_usergroup` (`fk_usergroup`);

--
-- Indexes for table `llx_usergroup_user`
--
ALTER TABLE `llx_usergroup_user`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_usergroup_user` (`entity`,`fk_user`,`fk_usergroup`),
  ADD KEY `fk_usergroup_user_fk_user` (`fk_user`),
  ADD KEY `fk_usergroup_user_fk_usergroup` (`fk_usergroup`);

--
-- Indexes for table `llx_user_alert`
--
ALTER TABLE `llx_user_alert`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_user_clicktodial`
--
ALTER TABLE `llx_user_clicktodial`
  ADD PRIMARY KEY (`fk_user`);

--
-- Indexes for table `llx_user_employment`
--
ALTER TABLE `llx_user_employment`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_user_employment` (`ref`,`entity`),
  ADD KEY `fk_user_employment_fk_user` (`fk_user`);

--
-- Indexes for table `llx_user_extrafields`
--
ALTER TABLE `llx_user_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_user_extrafields` (`fk_object`);

--
-- Indexes for table `llx_user_param`
--
ALTER TABLE `llx_user_param`
  ADD UNIQUE KEY `uk_user_param` (`fk_user`,`param`,`entity`);

--
-- Indexes for table `llx_user_rib`
--
ALTER TABLE `llx_user_rib`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_user_rights`
--
ALTER TABLE `llx_user_rights`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_user_rights` (`entity`,`fk_user`,`fk_id`),
  ADD KEY `fk_user_rights_fk_user_user` (`fk_user`);

--
-- Indexes for table `llx_website`
--
ALTER TABLE `llx_website`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_website_ref` (`ref`,`entity`);

--
-- Indexes for table `llx_website_extrafields`
--
ALTER TABLE `llx_website_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_website_extrafields` (`fk_object`);

--
-- Indexes for table `llx_website_page`
--
ALTER TABLE `llx_website_page`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_website_page_url` (`fk_website`,`pageurl`);

--
-- Indexes for table `llx_workstation_workstation`
--
ALTER TABLE `llx_workstation_workstation`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_workstation_workstation_rowid` (`rowid`),
  ADD KEY `idx_workstation_workstation_ref` (`ref`),
  ADD KEY `fk_workstation_workstation_fk_user_creat` (`fk_user_creat`),
  ADD KEY `idx_workstation_workstation_status` (`status`);

--
-- Indexes for table `llx_workstation_workstation_resource`
--
ALTER TABLE `llx_workstation_workstation_resource`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_workstation_workstation_usergroup`
--
ALTER TABLE `llx_workstation_workstation_usergroup`
  ADD PRIMARY KEY (`rowid`);

--
-- Indexes for table `llx_zapier_hook`
--
ALTER TABLE `llx_zapier_hook`
  ADD PRIMARY KEY (`rowid`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `llx_accounting_account`
--
ALTER TABLE `llx_accounting_account`
  MODIFY `rowid` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=100109316;

--
-- AUTO_INCREMENT for table `llx_accounting_bookkeeping`
--
ALTER TABLE `llx_accounting_bookkeeping`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=73982;

--
-- AUTO_INCREMENT for table `llx_accounting_bookkeeping_tmp`
--
ALTER TABLE `llx_accounting_bookkeeping_tmp`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `llx_accounting_fiscalyear`
--
ALTER TABLE `llx_accounting_fiscalyear`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_accounting_groups_account`
--
ALTER TABLE `llx_accounting_groups_account`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_accounting_journal`
--
ALTER TABLE `llx_accounting_journal`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `llx_accounting_system`
--
ALTER TABLE `llx_accounting_system`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=51;

--
-- AUTO_INCREMENT for table `llx_actioncomm`
--
ALTER TABLE `llx_actioncomm`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35266;

--
-- AUTO_INCREMENT for table `llx_actioncomm_extrafields`
--
ALTER TABLE `llx_actioncomm_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_actioncomm_reminder`
--
ALTER TABLE `llx_actioncomm_reminder`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_actioncomm_resources`
--
ALTER TABLE `llx_actioncomm_resources`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36284;

--
-- AUTO_INCREMENT for table `llx_adherent`
--
ALTER TABLE `llx_adherent`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_adherent_extrafields`
--
ALTER TABLE `llx_adherent_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_adherent_type`
--
ALTER TABLE `llx_adherent_type`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_adherent_type_extrafields`
--
ALTER TABLE `llx_adherent_type_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_adherent_type_lang`
--
ALTER TABLE `llx_adherent_type_lang`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_advtargetemailing`
--
ALTER TABLE `llx_advtargetemailing`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_asset`
--
ALTER TABLE `llx_asset`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_asset_extrafields`
--
ALTER TABLE `llx_asset_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_asset_type`
--
ALTER TABLE `llx_asset_type`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_asset_type_extrafields`
--
ALTER TABLE `llx_asset_type_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_bank`
--
ALTER TABLE `llx_bank`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1407;

--
-- AUTO_INCREMENT for table `llx_banking4dolibarr_bank_record`
--
ALTER TABLE `llx_banking4dolibarr_bank_record`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8075;

--
-- AUTO_INCREMENT for table `llx_banking4dolibarr_bank_record_link`
--
ALTER TABLE `llx_banking4dolibarr_bank_record_link`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1446;

--
-- AUTO_INCREMENT for table `llx_banking4dolibarr_bank_record_pre_link`
--
ALTER TABLE `llx_banking4dolibarr_bank_record_pre_link`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=752;

--
-- AUTO_INCREMENT for table `llx_bank_account`
--
ALTER TABLE `llx_bank_account`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `llx_bank_account_extrafields`
--
ALTER TABLE `llx_bank_account_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=150;

--
-- AUTO_INCREMENT for table `llx_bank_categ`
--
ALTER TABLE `llx_bank_categ`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_bank_url`
--
ALTER TABLE `llx_bank_url`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2296;

--
-- AUTO_INCREMENT for table `llx_blockedlog`
--
ALTER TABLE `llx_blockedlog`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2172;

--
-- AUTO_INCREMENT for table `llx_blockedlog_authority`
--
ALTER TABLE `llx_blockedlog_authority`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_bom_bom`
--
ALTER TABLE `llx_bom_bom`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `llx_bom_bomline`
--
ALTER TABLE `llx_bom_bomline`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=116;

--
-- AUTO_INCREMENT for table `llx_bom_bomline_extrafields`
--
ALTER TABLE `llx_bom_bomline_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_bom_bom_extrafields`
--
ALTER TABLE `llx_bom_bom_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_bonderetour`
--
ALTER TABLE `llx_bonderetour`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_bonderetourdet`
--
ALTER TABLE `llx_bonderetourdet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_bonderetourdet_batch`
--
ALTER TABLE `llx_bonderetourdet_batch`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_bonderetourdet_extrafields`
--
ALTER TABLE `llx_bonderetourdet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_bonderetour_extrafields`
--
ALTER TABLE `llx_bonderetour_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_bookmark`
--
ALTER TABLE `llx_bookmark`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `llx_bordereau_cheque`
--
ALTER TABLE `llx_bordereau_cheque`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_boxes`
--
ALTER TABLE `llx_boxes`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=85;

--
-- AUTO_INCREMENT for table `llx_boxes_def`
--
ALTER TABLE `llx_boxes_def`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=106;

--
-- AUTO_INCREMENT for table `llx_budget`
--
ALTER TABLE `llx_budget`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_budget_lines`
--
ALTER TABLE `llx_budget_lines`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_categorie`
--
ALTER TABLE `llx_categorie`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=490;

--
-- AUTO_INCREMENT for table `llx_categories_extrafields`
--
ALTER TABLE `llx_categories_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_categorie_lang`
--
ALTER TABLE `llx_categorie_lang`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_chargesociales`
--
ALTER TABLE `llx_chargesociales`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_commande`
--
ALTER TABLE `llx_commande`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=474;

--
-- AUTO_INCREMENT for table `llx_commandedet`
--
ALTER TABLE `llx_commandedet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2577;

--
-- AUTO_INCREMENT for table `llx_commandedet_extrafields`
--
ALTER TABLE `llx_commandedet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1626;

--
-- AUTO_INCREMENT for table `llx_commande_extrafields`
--
ALTER TABLE `llx_commande_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=269;

--
-- AUTO_INCREMENT for table `llx_commande_fournisseur`
--
ALTER TABLE `llx_commande_fournisseur`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=386;

--
-- AUTO_INCREMENT for table `llx_commande_fournisseurdet`
--
ALTER TABLE `llx_commande_fournisseurdet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=128;

--
-- AUTO_INCREMENT for table `llx_commande_fournisseurdet_extrafields`
--
ALTER TABLE `llx_commande_fournisseurdet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_commande_fournisseur_dispatch`
--
ALTER TABLE `llx_commande_fournisseur_dispatch`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=119;

--
-- AUTO_INCREMENT for table `llx_commande_fournisseur_dispatch_extrafields`
--
ALTER TABLE `llx_commande_fournisseur_dispatch_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_commande_fournisseur_extrafields`
--
ALTER TABLE `llx_commande_fournisseur_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38;

--
-- AUTO_INCREMENT for table `llx_commande_fournisseur_log`
--
ALTER TABLE `llx_commande_fournisseur_log`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_comment`
--
ALTER TABLE `llx_comment`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_const`
--
ALTER TABLE `llx_const`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3529;

--
-- AUTO_INCREMENT for table `llx_contrat`
--
ALTER TABLE `llx_contrat`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_contratdet`
--
ALTER TABLE `llx_contratdet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_contratdet_extrafields`
--
ALTER TABLE `llx_contratdet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_contratdet_log`
--
ALTER TABLE `llx_contratdet_log`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_contrat_extrafields`
--
ALTER TABLE `llx_contrat_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_cronjob`
--
ALTER TABLE `llx_cronjob`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;

--
-- AUTO_INCREMENT for table `llx_customtooltip`
--
ALTER TABLE `llx_customtooltip`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_c_accounting_category`
--
ALTER TABLE `llx_c_accounting_category`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=112;

--
-- AUTO_INCREMENT for table `llx_c_action_trigger`
--
ALTER TABLE `llx_c_action_trigger`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=117;

--
-- AUTO_INCREMENT for table `llx_c_availability`
--
ALTER TABLE `llx_c_availability`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `llx_c_banking4dolibarr_bank_record_type`
--
ALTER TABLE `llx_c_banking4dolibarr_bank_record_type`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=193;

--
-- AUTO_INCREMENT for table `llx_c_barcode_type`
--
ALTER TABLE `llx_c_barcode_type`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;

--
-- AUTO_INCREMENT for table `llx_c_chargesociales`
--
ALTER TABLE `llx_c_chargesociales`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4110;

--
-- AUTO_INCREMENT for table `llx_c_civility`
--
ALTER TABLE `llx_c_civility`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `llx_c_departements`
--
ALTER TABLE `llx_c_departements`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1541;

--
-- AUTO_INCREMENT for table `llx_c_documentstray_elements`
--
ALTER TABLE `llx_c_documentstray_elements`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `llx_c_ecotaxe`
--
ALTER TABLE `llx_c_ecotaxe`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT for table `llx_c_email_senderprofile`
--
ALTER TABLE `llx_c_email_senderprofile`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `llx_c_email_templates`
--
ALTER TABLE `llx_c_email_templates`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49;

--
-- AUTO_INCREMENT for table `llx_c_exp_tax_cat`
--
ALTER TABLE `llx_c_exp_tax_cat`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `llx_c_exp_tax_range`
--
ALTER TABLE `llx_c_exp_tax_range`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `llx_c_field_list`
--
ALTER TABLE `llx_c_field_list`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_c_format_cards`
--
ALTER TABLE `llx_c_format_cards`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `llx_c_forme_juridique`
--
ALTER TABLE `llx_c_forme_juridique`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=259;

--
-- AUTO_INCREMENT for table `llx_c_holiday_types`
--
ALTER TABLE `llx_c_holiday_types`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `llx_c_hrm_public_holiday`
--
ALTER TABLE `llx_c_hrm_public_holiday`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38;

--
-- AUTO_INCREMENT for table `llx_c_incoterms`
--
ALTER TABLE `llx_c_incoterms`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `llx_c_input_method`
--
ALTER TABLE `llx_c_input_method`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `llx_c_input_reason`
--
ALTER TABLE `llx_c_input_reason`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `llx_c_lead_status`
--
ALTER TABLE `llx_c_lead_status`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `llx_c_packinglist_packing_type`
--
ALTER TABLE `llx_c_packinglist_packing_type`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_c_paiement`
--
ALTER TABLE `llx_c_paiement`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=55;

--
-- AUTO_INCREMENT for table `llx_c_paper_format`
--
ALTER TABLE `llx_c_paper_format`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=226;

--
-- AUTO_INCREMENT for table `llx_c_partnership_type`
--
ALTER TABLE `llx_c_partnership_type`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_c_payment_term`
--
ALTER TABLE `llx_c_payment_term`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `llx_c_price_expression`
--
ALTER TABLE `llx_c_price_expression`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_c_price_global_variable`
--
ALTER TABLE `llx_c_price_global_variable`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_c_price_global_variable_updater`
--
ALTER TABLE `llx_c_price_global_variable_updater`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_c_productbatch_qcstatus`
--
ALTER TABLE `llx_c_productbatch_qcstatus`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `llx_c_product_nature`
--
ALTER TABLE `llx_c_product_nature`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `llx_c_recruitment_origin`
--
ALTER TABLE `llx_c_recruitment_origin`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_c_regions`
--
ALTER TABLE `llx_c_regions`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=273;

--
-- AUTO_INCREMENT for table `llx_c_revenuestamp`
--
ALTER TABLE `llx_c_revenuestamp`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1543;

--
-- AUTO_INCREMENT for table `llx_c_shipment_mode`
--
ALTER TABLE `llx_c_shipment_mode`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `llx_c_shipment_package_type`
--
ALTER TABLE `llx_c_shipment_package_type`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_c_sirene_country`
--
ALTER TABLE `llx_c_sirene_country`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=697;

--
-- AUTO_INCREMENT for table `llx_c_sirene_staff`
--
ALTER TABLE `llx_c_sirene_staff`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49;

--
-- AUTO_INCREMENT for table `llx_c_socialnetworks`
--
ALTER TABLE `llx_c_socialnetworks`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35;

--
-- AUTO_INCREMENT for table `llx_c_subtotal_free_text`
--
ALTER TABLE `llx_c_subtotal_free_text`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_c_ticket_category`
--
ALTER TABLE `llx_c_ticket_category`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `llx_c_ticket_resolution`
--
ALTER TABLE `llx_c_ticket_resolution`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `llx_c_ticket_severity`
--
ALTER TABLE `llx_c_ticket_severity`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `llx_c_ticket_type`
--
ALTER TABLE `llx_c_ticket_type`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `llx_c_transport_mode`
--
ALTER TABLE `llx_c_transport_mode`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `llx_c_tva`
--
ALTER TABLE `llx_c_tva`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2467;

--
-- AUTO_INCREMENT for table `llx_c_type_container`
--
ALTER TABLE `llx_c_type_container`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `llx_c_type_fees`
--
ALTER TABLE `llx_c_type_fees`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;

--
-- AUTO_INCREMENT for table `llx_c_type_resource`
--
ALTER TABLE `llx_c_type_resource`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `llx_c_ultimatepdf_line`
--
ALTER TABLE `llx_c_ultimatepdf_line`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `llx_c_ultimatepdf_title`
--
ALTER TABLE `llx_c_ultimatepdf_title`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `llx_c_units`
--
ALTER TABLE `llx_c_units`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;

--
-- AUTO_INCREMENT for table `llx_c_ziptown`
--
ALTER TABLE `llx_c_ziptown`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_default_values`
--
ALTER TABLE `llx_default_values`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `llx_delivery`
--
ALTER TABLE `llx_delivery`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_deliverydet`
--
ALTER TABLE `llx_deliverydet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_deliverydet_extrafields`
--
ALTER TABLE `llx_deliverydet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_delivery_extrafields`
--
ALTER TABLE `llx_delivery_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_deplacement`
--
ALTER TABLE `llx_deplacement`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_document_model`
--
ALTER TABLE `llx_document_model`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=90;

--
-- AUTO_INCREMENT for table `llx_don`
--
ALTER TABLE `llx_don`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_don_extrafields`
--
ALTER TABLE `llx_don_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_ecm_directories`
--
ALTER TABLE `llx_ecm_directories`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `llx_ecm_directories_extrafields`
--
ALTER TABLE `llx_ecm_directories_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_ecm_files`
--
ALTER TABLE `llx_ecm_files`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4031;

--
-- AUTO_INCREMENT for table `llx_ecm_files_extrafields`
--
ALTER TABLE `llx_ecm_files_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_element_contact`
--
ALTER TABLE `llx_element_contact`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=931;

--
-- AUTO_INCREMENT for table `llx_element_element`
--
ALTER TABLE `llx_element_element`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=847;

--
-- AUTO_INCREMENT for table `llx_element_resources`
--
ALTER TABLE `llx_element_resources`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_emailcollector_emailcollector`
--
ALTER TABLE `llx_emailcollector_emailcollector`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `llx_emailcollector_emailcollectoraction`
--
ALTER TABLE `llx_emailcollector_emailcollectoraction`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `llx_emailcollector_emailcollectorfilter`
--
ALTER TABLE `llx_emailcollector_emailcollectorfilter`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `llx_entrepot`
--
ALTER TABLE `llx_entrepot`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `llx_entrepot_extrafields`
--
ALTER TABLE `llx_entrepot_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_establishment`
--
ALTER TABLE `llx_establishment`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_eventorganization_conferenceorboothattendee`
--
ALTER TABLE `llx_eventorganization_conferenceorboothattendee`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_eventorganization_conferenceorboothattendee_extrafields`
--
ALTER TABLE `llx_eventorganization_conferenceorboothattendee_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_events`
--
ALTER TABLE `llx_events`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=665;

--
-- AUTO_INCREMENT for table `llx_event_element`
--
ALTER TABLE `llx_event_element`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_expedition`
--
ALTER TABLE `llx_expedition`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=396;

--
-- AUTO_INCREMENT for table `llx_expeditiondet`
--
ALTER TABLE `llx_expeditiondet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1929;

--
-- AUTO_INCREMENT for table `llx_expeditiondet_batch`
--
ALTER TABLE `llx_expeditiondet_batch`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_expeditiondet_extrafields`
--
ALTER TABLE `llx_expeditiondet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_expedition_extrafields`
--
ALTER TABLE `llx_expedition_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=520;

--
-- AUTO_INCREMENT for table `llx_expedition_package`
--
ALTER TABLE `llx_expedition_package`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_expensereport`
--
ALTER TABLE `llx_expensereport`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_expensereport_det`
--
ALTER TABLE `llx_expensereport_det`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_expensereport_extrafields`
--
ALTER TABLE `llx_expensereport_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_expensereport_ik`
--
ALTER TABLE `llx_expensereport_ik`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `llx_expensereport_rules`
--
ALTER TABLE `llx_expensereport_rules`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_export_compta`
--
ALTER TABLE `llx_export_compta`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_export_model`
--
ALTER TABLE `llx_export_model`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `llx_extrafields`
--
ALTER TABLE `llx_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=318;

--
-- AUTO_INCREMENT for table `llx_extralist`
--
ALTER TABLE `llx_extralist`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=160071;

--
-- AUTO_INCREMENT for table `llx_extralistdet`
--
ALTER TABLE `llx_extralistdet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45;

--
-- AUTO_INCREMENT for table `llx_extralistdetfields`
--
ALTER TABLE `llx_extralistdetfields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `llx_extralistfields`
--
ALTER TABLE `llx_extralistfields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_facture`
--
ALTER TABLE `llx_facture`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1433;

--
-- AUTO_INCREMENT for table `llx_facturedet`
--
ALTER TABLE `llx_facturedet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8423;

--
-- AUTO_INCREMENT for table `llx_facturedet_extrafields`
--
ALTER TABLE `llx_facturedet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7392;

--
-- AUTO_INCREMENT for table `llx_facturedet_rec`
--
ALTER TABLE `llx_facturedet_rec`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_facturedet_rec_extrafields`
--
ALTER TABLE `llx_facturedet_rec_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_facture_extrafields`
--
ALTER TABLE `llx_facture_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1163;

--
-- AUTO_INCREMENT for table `llx_facture_fourn`
--
ALTER TABLE `llx_facture_fourn`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=488;

--
-- AUTO_INCREMENT for table `llx_facture_fourn_det`
--
ALTER TABLE `llx_facture_fourn_det`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1670;

--
-- AUTO_INCREMENT for table `llx_facture_fourn_det_extrafields`
--
ALTER TABLE `llx_facture_fourn_det_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_facture_fourn_extrafields`
--
ALTER TABLE `llx_facture_fourn_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=537;

--
-- AUTO_INCREMENT for table `llx_facture_rec`
--
ALTER TABLE `llx_facture_rec`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_facture_rec_extrafields`
--
ALTER TABLE `llx_facture_rec_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_fichinter`
--
ALTER TABLE `llx_fichinter`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_fichinterdet`
--
ALTER TABLE `llx_fichinterdet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_fichinterdet_extrafields`
--
ALTER TABLE `llx_fichinterdet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_fichinterdet_rec`
--
ALTER TABLE `llx_fichinterdet_rec`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_fichinter_extrafields`
--
ALTER TABLE `llx_fichinter_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_fichinter_rec`
--
ALTER TABLE `llx_fichinter_rec`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_holiday`
--
ALTER TABLE `llx_holiday`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_holiday_config`
--
ALTER TABLE `llx_holiday_config`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `llx_holiday_extrafields`
--
ALTER TABLE `llx_holiday_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_holiday_logs`
--
ALTER TABLE `llx_holiday_logs`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_import_model`
--
ALTER TABLE `llx_import_model`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;

--
-- AUTO_INCREMENT for table `llx_intracommreport`
--
ALTER TABLE `llx_intracommreport`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_inventory`
--
ALTER TABLE `llx_inventory`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `llx_inventorydet`
--
ALTER TABLE `llx_inventorydet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3524;

--
-- AUTO_INCREMENT for table `llx_knowledgemanagement_knowledgerecord`
--
ALTER TABLE `llx_knowledgemanagement_knowledgerecord`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_knowledgemanagement_knowledgerecord_extrafields`
--
ALTER TABLE `llx_knowledgemanagement_knowledgerecord_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_links`
--
ALTER TABLE `llx_links`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_loan`
--
ALTER TABLE `llx_loan`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_loan_schedule`
--
ALTER TABLE `llx_loan_schedule`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_localtax`
--
ALTER TABLE `llx_localtax`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_mailing`
--
ALTER TABLE `llx_mailing`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_mailing_cibles`
--
ALTER TABLE `llx_mailing_cibles`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_mailing_unsubscribe`
--
ALTER TABLE `llx_mailing_unsubscribe`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_menu`
--
ALTER TABLE `llx_menu`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=231;

--
-- AUTO_INCREMENT for table `llx_mrp_mo`
--
ALTER TABLE `llx_mrp_mo`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `llx_mrp_mo_extrafields`
--
ALTER TABLE `llx_mrp_mo_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_mrp_production`
--
ALTER TABLE `llx_mrp_production`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=177;

--
-- AUTO_INCREMENT for table `llx_multicurrency`
--
ALTER TABLE `llx_multicurrency`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `llx_multicurrency_rate`
--
ALTER TABLE `llx_multicurrency_rate`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `llx_notify`
--
ALTER TABLE `llx_notify`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_notify_def`
--
ALTER TABLE `llx_notify_def`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_notify_def_object`
--
ALTER TABLE `llx_notify_def_object`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_oauth_state`
--
ALTER TABLE `llx_oauth_state`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_oauth_token`
--
ALTER TABLE `llx_oauth_token`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `llx_object_lang`
--
ALTER TABLE `llx_object_lang`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_onlinesignature`
--
ALTER TABLE `llx_onlinesignature`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_opensurvey_comments`
--
ALTER TABLE `llx_opensurvey_comments`
  MODIFY `id_comment` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_opensurvey_formquestions`
--
ALTER TABLE `llx_opensurvey_formquestions`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_opensurvey_user_studs`
--
ALTER TABLE `llx_opensurvey_user_studs`
  MODIFY `id_users` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_overwrite_trans`
--
ALTER TABLE `llx_overwrite_trans`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_packinglist`
--
ALTER TABLE `llx_packinglist`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_packinglistdet`
--
ALTER TABLE `llx_packinglistdet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_paiement`
--
ALTER TABLE `llx_paiement`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=542;

--
-- AUTO_INCREMENT for table `llx_paiementcharge`
--
ALTER TABLE `llx_paiementcharge`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_paiementfourn`
--
ALTER TABLE `llx_paiementfourn`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=361;

--
-- AUTO_INCREMENT for table `llx_paiementfourn_facturefourn`
--
ALTER TABLE `llx_paiementfourn_facturefourn`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=410;

--
-- AUTO_INCREMENT for table `llx_paiement_facture`
--
ALTER TABLE `llx_paiement_facture`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=584;

--
-- AUTO_INCREMENT for table `llx_partnership`
--
ALTER TABLE `llx_partnership`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_partnership_extrafields`
--
ALTER TABLE `llx_partnership_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_payment_donation`
--
ALTER TABLE `llx_payment_donation`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_payment_expensereport`
--
ALTER TABLE `llx_payment_expensereport`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_payment_loan`
--
ALTER TABLE `llx_payment_loan`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_payment_salary`
--
ALTER TABLE `llx_payment_salary`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_payment_various`
--
ALTER TABLE `llx_payment_various`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=438;

--
-- AUTO_INCREMENT for table `llx_payment_vat`
--
ALTER TABLE `llx_payment_vat`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `llx_pos_cash_fence`
--
ALTER TABLE `llx_pos_cash_fence`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_prelevement_bons`
--
ALTER TABLE `llx_prelevement_bons`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_prelevement_facture`
--
ALTER TABLE `llx_prelevement_facture`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_prelevement_facture_demande`
--
ALTER TABLE `llx_prelevement_facture_demande`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `llx_prelevement_lignes`
--
ALTER TABLE `llx_prelevement_lignes`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_prelevement_rejet`
--
ALTER TABLE `llx_prelevement_rejet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_printer_receipt`
--
ALTER TABLE `llx_printer_receipt`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_printer_receipt_template`
--
ALTER TABLE `llx_printer_receipt_template`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `llx_printing`
--
ALTER TABLE `llx_printing`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_product`
--
ALTER TABLE `llx_product`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3171;

--
-- AUTO_INCREMENT for table `llx_product_association`
--
ALTER TABLE `llx_product_association`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_product_attribute`
--
ALTER TABLE `llx_product_attribute`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;

--
-- AUTO_INCREMENT for table `llx_product_attribute_combination`
--
ALTER TABLE `llx_product_attribute_combination`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=516;

--
-- AUTO_INCREMENT for table `llx_product_attribute_combination2val`
--
ALTER TABLE `llx_product_attribute_combination2val`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=517;

--
-- AUTO_INCREMENT for table `llx_product_attribute_combination_price_level`
--
ALTER TABLE `llx_product_attribute_combination_price_level`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3536;

--
-- AUTO_INCREMENT for table `llx_product_attribute_value`
--
ALTER TABLE `llx_product_attribute_value`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=136;

--
-- AUTO_INCREMENT for table `llx_product_batch`
--
ALTER TABLE `llx_product_batch`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_product_customer_price`
--
ALTER TABLE `llx_product_customer_price`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_product_customer_price_log`
--
ALTER TABLE `llx_product_customer_price_log`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_product_extrafields`
--
ALTER TABLE `llx_product_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32865;

--
-- AUTO_INCREMENT for table `llx_product_fournisseur_price`
--
ALTER TABLE `llx_product_fournisseur_price`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20947;

--
-- AUTO_INCREMENT for table `llx_product_fournisseur_price_extrafields`
--
ALTER TABLE `llx_product_fournisseur_price_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19982;

--
-- AUTO_INCREMENT for table `llx_product_fournisseur_price_log`
--
ALTER TABLE `llx_product_fournisseur_price_log`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT for table `llx_product_lang`
--
ALTER TABLE `llx_product_lang`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_product_lot`
--
ALTER TABLE `llx_product_lot`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_product_lot_extrafields`
--
ALTER TABLE `llx_product_lot_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_product_perentity`
--
ALTER TABLE `llx_product_perentity`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_product_price`
--
ALTER TABLE `llx_product_price`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=126531;

--
-- AUTO_INCREMENT for table `llx_product_pricerules`
--
ALTER TABLE `llx_product_pricerules`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_product_price_by_qty`
--
ALTER TABLE `llx_product_price_by_qty`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_product_stock`
--
ALTER TABLE `llx_product_stock`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=100216;

--
-- AUTO_INCREMENT for table `llx_product_warehouse_properties`
--
ALTER TABLE `llx_product_warehouse_properties`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_projet`
--
ALTER TABLE `llx_projet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `llx_projet_extrafields`
--
ALTER TABLE `llx_projet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38;

--
-- AUTO_INCREMENT for table `llx_projet_task`
--
ALTER TABLE `llx_projet_task`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_projet_task_extrafields`
--
ALTER TABLE `llx_projet_task_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_projet_task_time`
--
ALTER TABLE `llx_projet_task_time`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_propal`
--
ALTER TABLE `llx_propal`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `llx_propaldet`
--
ALTER TABLE `llx_propaldet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=499;

--
-- AUTO_INCREMENT for table `llx_propaldet_extrafields`
--
ALTER TABLE `llx_propaldet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=825;

--
-- AUTO_INCREMENT for table `llx_propal_extrafields`
--
ALTER TABLE `llx_propal_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `llx_propal_merge_pdf_product`
--
ALTER TABLE `llx_propal_merge_pdf_product`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_reception`
--
ALTER TABLE `llx_reception`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;

--
-- AUTO_INCREMENT for table `llx_reception_extrafields`
--
ALTER TABLE `llx_reception_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_recruitment_recruitmentcandidature`
--
ALTER TABLE `llx_recruitment_recruitmentcandidature`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_recruitment_recruitmentcandidature_extrafields`
--
ALTER TABLE `llx_recruitment_recruitmentcandidature_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_recruitment_recruitmentjobposition`
--
ALTER TABLE `llx_recruitment_recruitmentjobposition`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_recruitment_recruitmentjobposition_extrafields`
--
ALTER TABLE `llx_recruitment_recruitmentjobposition_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_resource`
--
ALTER TABLE `llx_resource`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_resource_extrafields`
--
ALTER TABLE `llx_resource_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_salary`
--
ALTER TABLE `llx_salary`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_salary_extrafields`
--
ALTER TABLE `llx_salary_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_societe`
--
ALTER TABLE `llx_societe`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7679;

--
-- AUTO_INCREMENT for table `llx_societe_account`
--
ALTER TABLE `llx_societe_account`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_societe_address`
--
ALTER TABLE `llx_societe_address`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_societe_commerciaux`
--
ALTER TABLE `llx_societe_commerciaux`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_societe_contacts`
--
ALTER TABLE `llx_societe_contacts`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `llx_societe_extrafields`
--
ALTER TABLE `llx_societe_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14222;

--
-- AUTO_INCREMENT for table `llx_societe_perentity`
--
ALTER TABLE `llx_societe_perentity`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_societe_prices`
--
ALTER TABLE `llx_societe_prices`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38;

--
-- AUTO_INCREMENT for table `llx_societe_remise`
--
ALTER TABLE `llx_societe_remise`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `llx_societe_remise_except`
--
ALTER TABLE `llx_societe_remise_except`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=64;

--
-- AUTO_INCREMENT for table `llx_societe_remise_supplier`
--
ALTER TABLE `llx_societe_remise_supplier`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_societe_rib`
--
ALTER TABLE `llx_societe_rib`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `llx_socpeople`
--
ALTER TABLE `llx_socpeople`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21626;

--
-- AUTO_INCREMENT for table `llx_socpeople_extrafields`
--
ALTER TABLE `llx_socpeople_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18279;

--
-- AUTO_INCREMENT for table `llx_stock_mouvement`
--
ALTER TABLE `llx_stock_mouvement`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3194;

--
-- AUTO_INCREMENT for table `llx_subscription`
--
ALTER TABLE `llx_subscription`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_supplier_proposal`
--
ALTER TABLE `llx_supplier_proposal`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `llx_supplier_proposaldet`
--
ALTER TABLE `llx_supplier_proposaldet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;

--
-- AUTO_INCREMENT for table `llx_supplier_proposaldet_extrafields`
--
ALTER TABLE `llx_supplier_proposaldet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_supplier_proposal_extrafields`
--
ALTER TABLE `llx_supplier_proposal_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_takepos_floor_tables`
--
ALTER TABLE `llx_takepos_floor_tables`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_ticket`
--
ALTER TABLE `llx_ticket`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_ticket_extrafields`
--
ALTER TABLE `llx_ticket_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_tva`
--
ALTER TABLE `llx_tva`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `llx_ultimatepdf`
--
ALTER TABLE `llx_ultimatepdf`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `llx_ultimatepdf_documentmergedpdf`
--
ALTER TABLE `llx_ultimatepdf_documentmergedpdf`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_user`
--
ALTER TABLE `llx_user`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `llx_usergroup`
--
ALTER TABLE `llx_usergroup`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_usergroup_extrafields`
--
ALTER TABLE `llx_usergroup_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_usergroup_rights`
--
ALTER TABLE `llx_usergroup_rights`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_usergroup_user`
--
ALTER TABLE `llx_usergroup_user`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_user_alert`
--
ALTER TABLE `llx_user_alert`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_user_employment`
--
ALTER TABLE `llx_user_employment`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_user_extrafields`
--
ALTER TABLE `llx_user_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_user_rib`
--
ALTER TABLE `llx_user_rib`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_user_rights`
--
ALTER TABLE `llx_user_rights`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6298;

--
-- AUTO_INCREMENT for table `llx_website`
--
ALTER TABLE `llx_website`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_website_extrafields`
--
ALTER TABLE `llx_website_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_website_page`
--
ALTER TABLE `llx_website_page`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_workstation_workstation`
--
ALTER TABLE `llx_workstation_workstation`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_workstation_workstation_resource`
--
ALTER TABLE `llx_workstation_workstation_resource`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_workstation_workstation_usergroup`
--
ALTER TABLE `llx_workstation_workstation_usergroup`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `llx_zapier_hook`
--
ALTER TABLE `llx_zapier_hook`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `llx_accounting_account`
--
ALTER TABLE `llx_accounting_account`
  ADD CONSTRAINT `fk_accounting_account_fk_pcg_version` FOREIGN KEY (`fk_pcg_version`) REFERENCES `llx_accounting_system` (`pcg_version`);

--
-- Constraints for table `llx_adherent`
--
ALTER TABLE `llx_adherent`
  ADD CONSTRAINT `adherent_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_adherent_adherent_type` FOREIGN KEY (`fk_adherent_type`) REFERENCES `llx_adherent_type` (`rowid`);

--
-- Constraints for table `llx_asset`
--
ALTER TABLE `llx_asset`
  ADD CONSTRAINT `fk_asset_asset_type` FOREIGN KEY (`fk_asset_type`) REFERENCES `llx_asset_type` (`rowid`);

--
-- Constraints for table `llx_banking4dolibarr_bank_record`
--
ALTER TABLE `llx_banking4dolibarr_bank_record`
  ADD CONSTRAINT `fk_b4d_bank_record_commission_currency` FOREIGN KEY (`commission_currency`) REFERENCES `llx_c_currencies` (`code_iso`),
  ADD CONSTRAINT `fk_b4d_bank_record_fk_duplicate_of` FOREIGN KEY (`fk_duplicate_of`) REFERENCES `llx_banking4dolibarr_bank_record` (`rowid`),
  ADD CONSTRAINT `fk_b4d_bank_record_id_account` FOREIGN KEY (`id_account`) REFERENCES `llx_c_banking4dolibarr_bank_account` (`rowid`),
  ADD CONSTRAINT `fk_b4d_bank_record_id_category` FOREIGN KEY (`id_category`) REFERENCES `llx_c_banking4dolibarr_bank_record_category` (`rowid`),
  ADD CONSTRAINT `fk_b4d_bank_record_original_currency` FOREIGN KEY (`original_currency`) REFERENCES `llx_c_currencies` (`code_iso`);

--
-- Constraints for table `llx_banking4dolibarr_bank_record_link`
--
ALTER TABLE `llx_banking4dolibarr_bank_record_link`
  ADD CONSTRAINT `fk_b4d_bank_record_link_fk_bank` FOREIGN KEY (`fk_bank`) REFERENCES `llx_bank` (`rowid`),
  ADD CONSTRAINT `fk_b4d_bank_record_link_fk_bank_record` FOREIGN KEY (`fk_bank_record`) REFERENCES `llx_banking4dolibarr_bank_record` (`rowid`);

--
-- Constraints for table `llx_banking4dolibarr_bank_record_pre_link`
--
ALTER TABLE `llx_banking4dolibarr_bank_record_pre_link`
  ADD CONSTRAINT `fk_b4d_bank_record_pl_fk_bank` FOREIGN KEY (`fk_bank`) REFERENCES `llx_bank` (`rowid`),
  ADD CONSTRAINT `fk_b4d_bank_record_pl_fk_bank_account` FOREIGN KEY (`fk_bank_account`) REFERENCES `llx_bank_account` (`rowid`),
  ADD CONSTRAINT `fk_b4d_bank_record_pl_fk_bank_record` FOREIGN KEY (`fk_bank_record`) REFERENCES `llx_banking4dolibarr_bank_record` (`rowid`);

--
-- Constraints for table `llx_bank_account`
--
ALTER TABLE `llx_bank_account`
  ADD CONSTRAINT `fk_bank_account_accountancy_journal` FOREIGN KEY (`fk_accountancy_journal`) REFERENCES `llx_accounting_journal` (`rowid`);

--
-- Constraints for table `llx_bom_bom`
--
ALTER TABLE `llx_bom_bom`
  ADD CONSTRAINT `llx_bom_bom_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_bom_bomline`
--
ALTER TABLE `llx_bom_bomline`
  ADD CONSTRAINT `llx_bom_bomline_fk_bom` FOREIGN KEY (`fk_bom`) REFERENCES `llx_bom_bom` (`rowid`);

--
-- Constraints for table `llx_bonderetour`
--
ALTER TABLE `llx_bonderetour`
  ADD CONSTRAINT `fk_bonderetour_fk_shipping_method` FOREIGN KEY (`fk_shipping_method`) REFERENCES `llx_c_shipment_mode` (`rowid`),
  ADD CONSTRAINT `fk_bonderetour_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_bonderetour_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_bonderetour_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_bonderetourdet_batch`
--
ALTER TABLE `llx_bonderetourdet_batch`
  ADD CONSTRAINT `fk_bonderetourdet_batch_fk_bonderetourdet` FOREIGN KEY (`fk_bonderetourdet`) REFERENCES `llx_bonderetourdet` (`rowid`);

--
-- Constraints for table `llx_boxes`
--
ALTER TABLE `llx_boxes`
  ADD CONSTRAINT `fk_boxes_box_id` FOREIGN KEY (`box_id`) REFERENCES `llx_boxes_def` (`rowid`);

--
-- Constraints for table `llx_budget_lines`
--
ALTER TABLE `llx_budget_lines`
  ADD CONSTRAINT `fk_budget_lines_budget` FOREIGN KEY (`fk_budget`) REFERENCES `llx_budget` (`rowid`);

--
-- Constraints for table `llx_categorie_account`
--
ALTER TABLE `llx_categorie_account`
  ADD CONSTRAINT `fk_categorie_account_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_account_fk_account` FOREIGN KEY (`fk_account`) REFERENCES `llx_bank_account` (`rowid`);

--
-- Constraints for table `llx_categorie_actioncomm`
--
ALTER TABLE `llx_categorie_actioncomm`
  ADD CONSTRAINT `fk_categorie_actioncomm_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_actioncomm_fk_actioncomm` FOREIGN KEY (`fk_actioncomm`) REFERENCES `llx_actioncomm` (`id`);

--
-- Constraints for table `llx_categorie_contact`
--
ALTER TABLE `llx_categorie_contact`
  ADD CONSTRAINT `fk_categorie_contact_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_contact_fk_socpeople` FOREIGN KEY (`fk_socpeople`) REFERENCES `llx_socpeople` (`rowid`);

--
-- Constraints for table `llx_categorie_fournisseur`
--
ALTER TABLE `llx_categorie_fournisseur`
  ADD CONSTRAINT `fk_categorie_fournisseur_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_fournisseur_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`);

--
-- Constraints for table `llx_categorie_lang`
--
ALTER TABLE `llx_categorie_lang`
  ADD CONSTRAINT `fk_category_lang_fk_category` FOREIGN KEY (`fk_category`) REFERENCES `llx_categorie` (`rowid`);

--
-- Constraints for table `llx_categorie_member`
--
ALTER TABLE `llx_categorie_member`
  ADD CONSTRAINT `fk_categorie_member_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_member_member_rowid` FOREIGN KEY (`fk_member`) REFERENCES `llx_adherent` (`rowid`);

--
-- Constraints for table `llx_categorie_product`
--
ALTER TABLE `llx_categorie_product`
  ADD CONSTRAINT `fk_categorie_product_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_product_product_rowid` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`);

--
-- Constraints for table `llx_categorie_project`
--
ALTER TABLE `llx_categorie_project`
  ADD CONSTRAINT `fk_categorie_project_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_project_fk_project_rowid` FOREIGN KEY (`fk_project`) REFERENCES `llx_projet` (`rowid`);

--
-- Constraints for table `llx_categorie_societe`
--
ALTER TABLE `llx_categorie_societe`
  ADD CONSTRAINT `fk_categorie_societe_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_societe_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`);

--
-- Constraints for table `llx_categorie_user`
--
ALTER TABLE `llx_categorie_user`
  ADD CONSTRAINT `fk_categorie_user_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_user_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_categorie_warehouse`
--
ALTER TABLE `llx_categorie_warehouse`
  ADD CONSTRAINT `fk_categorie_warehouse_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_warehouse_fk_warehouse_rowid` FOREIGN KEY (`fk_warehouse`) REFERENCES `llx_entrepot` (`rowid`);

--
-- Constraints for table `llx_categorie_website_page`
--
ALTER TABLE `llx_categorie_website_page`
  ADD CONSTRAINT `fk_categorie_websitepage_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_websitepage_website_page_rowid` FOREIGN KEY (`fk_website_page`) REFERENCES `llx_website_page` (`rowid`);

--
-- Constraints for table `llx_commande`
--
ALTER TABLE `llx_commande`
  ADD CONSTRAINT `fk_commande_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_user_cloture` FOREIGN KEY (`fk_user_cloture`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_commandedet`
--
ALTER TABLE `llx_commandedet`
  ADD CONSTRAINT `fk_commandedet_fk_commande` FOREIGN KEY (`fk_commande`) REFERENCES `llx_commande` (`rowid`),
  ADD CONSTRAINT `fk_commandedet_fk_commandefourndet` FOREIGN KEY (`fk_commandefourndet`) REFERENCES `llx_commande_fournisseurdet` (`rowid`),
  ADD CONSTRAINT `fk_commandedet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`);

--
-- Constraints for table `llx_commande_fournisseur`
--
ALTER TABLE `llx_commande_fournisseur`
  ADD CONSTRAINT `fk_commande_fournisseur_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`);

--
-- Constraints for table `llx_commande_fournisseurdet`
--
ALTER TABLE `llx_commande_fournisseurdet`
  ADD CONSTRAINT `fk_commande_fournisseurdet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`);

--
-- Constraints for table `llx_commande_fournisseur_dispatch`
--
ALTER TABLE `llx_commande_fournisseur_dispatch`
  ADD CONSTRAINT `fk_commande_fournisseur_dispatch_fk_reception` FOREIGN KEY (`fk_reception`) REFERENCES `llx_reception` (`rowid`);

--
-- Constraints for table `llx_contrat`
--
ALTER TABLE `llx_contrat`
  ADD CONSTRAINT `fk_contrat_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_contrat_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_contratdet`
--
ALTER TABLE `llx_contratdet`
  ADD CONSTRAINT `fk_contratdet_fk_contrat` FOREIGN KEY (`fk_contrat`) REFERENCES `llx_contrat` (`rowid`),
  ADD CONSTRAINT `fk_contratdet_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`),
  ADD CONSTRAINT `fk_contratdet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`);

--
-- Constraints for table `llx_contratdet_log`
--
ALTER TABLE `llx_contratdet_log`
  ADD CONSTRAINT `fk_contratdet_log_fk_contratdet` FOREIGN KEY (`fk_contratdet`) REFERENCES `llx_contratdet` (`rowid`);

--
-- Constraints for table `llx_c_departements`
--
ALTER TABLE `llx_c_departements`
  ADD CONSTRAINT `fk_departements_fk_region` FOREIGN KEY (`fk_region`) REFERENCES `llx_c_regions` (`code_region`);

--
-- Constraints for table `llx_c_regions`
--
ALTER TABLE `llx_c_regions`
  ADD CONSTRAINT `fk_c_regions_fk_pays` FOREIGN KEY (`fk_pays`) REFERENCES `llx_c_country` (`rowid`);

--
-- Constraints for table `llx_c_ziptown`
--
ALTER TABLE `llx_c_ziptown`
  ADD CONSTRAINT `fk_c_ziptown_fk_county` FOREIGN KEY (`fk_county`) REFERENCES `llx_c_departements` (`rowid`),
  ADD CONSTRAINT `fk_c_ziptown_fk_pays` FOREIGN KEY (`fk_pays`) REFERENCES `llx_c_country` (`rowid`);

--
-- Constraints for table `llx_delivery`
--
ALTER TABLE `llx_delivery`
  ADD CONSTRAINT `fk_delivery_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_delivery_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_delivery_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_deliverydet`
--
ALTER TABLE `llx_deliverydet`
  ADD CONSTRAINT `fk_deliverydet_fk_delivery` FOREIGN KEY (`fk_delivery`) REFERENCES `llx_delivery` (`rowid`);

--
-- Constraints for table `llx_ecm_directories`
--
ALTER TABLE `llx_ecm_directories`
  ADD CONSTRAINT `fk_ecm_directories_fk_user_c` FOREIGN KEY (`fk_user_c`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_ecm_directories_fk_user_m` FOREIGN KEY (`fk_user_m`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_element_contact`
--
ALTER TABLE `llx_element_contact`
  ADD CONSTRAINT `fk_element_contact_fk_c_type_contact` FOREIGN KEY (`fk_c_type_contact`) REFERENCES `llx_c_type_contact` (`rowid`);

--
-- Constraints for table `llx_emailcollector_emailcollectoraction`
--
ALTER TABLE `llx_emailcollector_emailcollectoraction`
  ADD CONSTRAINT `fk_emailcollectoraction_fk_emailcollector` FOREIGN KEY (`fk_emailcollector`) REFERENCES `llx_emailcollector_emailcollector` (`rowid`);

--
-- Constraints for table `llx_emailcollector_emailcollectorfilter`
--
ALTER TABLE `llx_emailcollector_emailcollectorfilter`
  ADD CONSTRAINT `fk_emailcollectorfilter_fk_emailcollector` FOREIGN KEY (`fk_emailcollector`) REFERENCES `llx_emailcollector_emailcollector` (`rowid`);

--
-- Constraints for table `llx_expedition`
--
ALTER TABLE `llx_expedition`
  ADD CONSTRAINT `fk_expedition_fk_shipping_method` FOREIGN KEY (`fk_shipping_method`) REFERENCES `llx_c_shipment_mode` (`rowid`),
  ADD CONSTRAINT `fk_expedition_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_expedition_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_expedition_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_expeditiondet`
--
ALTER TABLE `llx_expeditiondet`
  ADD CONSTRAINT `fk_expeditiondet_fk_expedition` FOREIGN KEY (`fk_expedition`) REFERENCES `llx_expedition` (`rowid`);

--
-- Constraints for table `llx_expeditiondet_batch`
--
ALTER TABLE `llx_expeditiondet_batch`
  ADD CONSTRAINT `fk_expeditiondet_batch_fk_expeditiondet` FOREIGN KEY (`fk_expeditiondet`) REFERENCES `llx_expeditiondet` (`rowid`);

--
-- Constraints for table `llx_facture`
--
ALTER TABLE `llx_facture`
  ADD CONSTRAINT `fk_facture_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `llx_facture` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_facturedet`
--
ALTER TABLE `llx_facturedet`
  ADD CONSTRAINT `fk_facturedet_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `llx_facture` (`rowid`),
  ADD CONSTRAINT `fk_facturedet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`);

--
-- Constraints for table `llx_facturedet_rec`
--
ALTER TABLE `llx_facturedet_rec`
  ADD CONSTRAINT `fk_facturedet_rec_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`);

--
-- Constraints for table `llx_facture_fourn`
--
ALTER TABLE `llx_facture_fourn`
  ADD CONSTRAINT `fk_facture_fourn_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  ADD CONSTRAINT `fk_facture_fourn_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_facture_fourn_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_facture_fourn_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_facture_fourn_det`
--
ALTER TABLE `llx_facture_fourn_det`
  ADD CONSTRAINT `fk_facture_fourn_det_fk_facture` FOREIGN KEY (`fk_facture_fourn`) REFERENCES `llx_facture_fourn` (`rowid`),
  ADD CONSTRAINT `fk_facture_fourn_det_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`);

--
-- Constraints for table `llx_facture_rec`
--
ALTER TABLE `llx_facture_rec`
  ADD CONSTRAINT `fk_facture_rec_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  ADD CONSTRAINT `fk_facture_rec_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_facture_rec_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_fichinter`
--
ALTER TABLE `llx_fichinter`
  ADD CONSTRAINT `fk_fichinter_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`);

--
-- Constraints for table `llx_fichinterdet`
--
ALTER TABLE `llx_fichinterdet`
  ADD CONSTRAINT `fk_fichinterdet_fk_fichinter` FOREIGN KEY (`fk_fichinter`) REFERENCES `llx_fichinter` (`rowid`);

--
-- Constraints for table `llx_fichinter_rec`
--
ALTER TABLE `llx_fichinter_rec`
  ADD CONSTRAINT `fk_fichinter_rec_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  ADD CONSTRAINT `fk_fichinter_rec_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_knowledgemanagement_knowledgerecord`
--
ALTER TABLE `llx_knowledgemanagement_knowledgerecord`
  ADD CONSTRAINT `llx_knowledgemanagement_knowledgerecord_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_mrp_mo`
--
ALTER TABLE `llx_mrp_mo`
  ADD CONSTRAINT `fk_mrp_mo_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_mrp_production`
--
ALTER TABLE `llx_mrp_production`
  ADD CONSTRAINT `fk_mrp_production_mo` FOREIGN KEY (`fk_mo`) REFERENCES `llx_mrp_mo` (`rowid`),
  ADD CONSTRAINT `fk_mrp_production_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`),
  ADD CONSTRAINT `fk_mrp_production_stock_movement` FOREIGN KEY (`fk_stock_movement`) REFERENCES `llx_stock_mouvement` (`rowid`);

--
-- Constraints for table `llx_packinglist`
--
ALTER TABLE `llx_packinglist`
  ADD CONSTRAINT `fk_packinglist_fk_expedition` FOREIGN KEY (`fk_expedition`) REFERENCES `llx_expedition` (`rowid`),
  ADD CONSTRAINT `fk_packinglist_fk_packing_type` FOREIGN KEY (`fk_packing_type`) REFERENCES `llx_c_packinglist_packing_type` (`rowid`),
  ADD CONSTRAINT `fk_packinglist_fk_shipping_method` FOREIGN KEY (`fk_shipping_method`) REFERENCES `llx_c_shipment_mode` (`rowid`),
  ADD CONSTRAINT `fk_packinglist_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_packinglist_fk_user_modif` FOREIGN KEY (`fk_user_modif`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_packinglist_fk_user_taken_over_by_carrier` FOREIGN KEY (`fk_user_taken_over_by_carrier`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_packinglistdet`
--
ALTER TABLE `llx_packinglistdet`
  ADD CONSTRAINT `fk_packinglistdet_fk_expeditiondet` FOREIGN KEY (`fk_expeditiondet`) REFERENCES `llx_expeditiondet` (`rowid`),
  ADD CONSTRAINT `fk_packinglistdet_fk_packinglist` FOREIGN KEY (`fk_packinglist`) REFERENCES `llx_packinglist` (`rowid`);

--
-- Constraints for table `llx_paiement_facture`
--
ALTER TABLE `llx_paiement_facture`
  ADD CONSTRAINT `fk_paiement_facture_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `llx_facture` (`rowid`),
  ADD CONSTRAINT `fk_paiement_facture_fk_paiement` FOREIGN KEY (`fk_paiement`) REFERENCES `llx_paiement` (`rowid`);

--
-- Constraints for table `llx_partnership`
--
ALTER TABLE `llx_partnership`
  ADD CONSTRAINT `llx_partnership_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_payment_salary`
--
ALTER TABLE `llx_payment_salary`
  ADD CONSTRAINT `fk_payment_salary_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_prelevement_facture`
--
ALTER TABLE `llx_prelevement_facture`
  ADD CONSTRAINT `fk_prelevement_facture_fk_prelevement_lignes` FOREIGN KEY (`fk_prelevement_lignes`) REFERENCES `llx_prelevement_lignes` (`rowid`);

--
-- Constraints for table `llx_prelevement_lignes`
--
ALTER TABLE `llx_prelevement_lignes`
  ADD CONSTRAINT `fk_prelevement_lignes_fk_prelevement_bons` FOREIGN KEY (`fk_prelevement_bons`) REFERENCES `llx_prelevement_bons` (`rowid`);

--
-- Constraints for table `llx_product`
--
ALTER TABLE `llx_product`
  ADD CONSTRAINT `fk_product_barcode_type` FOREIGN KEY (`fk_barcode_type`) REFERENCES `llx_c_barcode_type` (`rowid`),
  ADD CONSTRAINT `fk_product_default_warehouse` FOREIGN KEY (`fk_default_warehouse`) REFERENCES `llx_entrepot` (`rowid`),
  ADD CONSTRAINT `fk_product_finished` FOREIGN KEY (`finished`) REFERENCES `llx_c_product_nature` (`code`),
  ADD CONSTRAINT `fk_product_fk_country` FOREIGN KEY (`fk_country`) REFERENCES `llx_c_country` (`rowid`),
  ADD CONSTRAINT `fk_product_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`);

--
-- Constraints for table `llx_product_batch`
--
ALTER TABLE `llx_product_batch`
  ADD CONSTRAINT `fk_product_batch_fk_product_stock` FOREIGN KEY (`fk_product_stock`) REFERENCES `llx_product_stock` (`rowid`);

--
-- Constraints for table `llx_product_customer_price`
--
ALTER TABLE `llx_product_customer_price`
  ADD CONSTRAINT `fk_product_customer_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`),
  ADD CONSTRAINT `fk_product_customer_price_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_product_customer_price_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_product_fournisseur_price`
--
ALTER TABLE `llx_product_fournisseur_price`
  ADD CONSTRAINT `fk_product_fournisseur_price_barcode_type` FOREIGN KEY (`fk_barcode_type`) REFERENCES `llx_c_barcode_type` (`rowid`),
  ADD CONSTRAINT `fk_product_fournisseur_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`),
  ADD CONSTRAINT `fk_product_fournisseur_price_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_product_lang`
--
ALTER TABLE `llx_product_lang`
  ADD CONSTRAINT `fk_product_lang_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`);

--
-- Constraints for table `llx_product_price`
--
ALTER TABLE `llx_product_price`
  ADD CONSTRAINT `fk_product_price_product` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_product_price_user_author` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`);

--
-- Constraints for table `llx_product_price_by_qty`
--
ALTER TABLE `llx_product_price_by_qty`
  ADD CONSTRAINT `fk_product_price_by_qty_fk_product_price` FOREIGN KEY (`fk_product_price`) REFERENCES `llx_product_price` (`rowid`);

--
-- Constraints for table `llx_projet`
--
ALTER TABLE `llx_projet`
  ADD CONSTRAINT `fk_projet_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`);

--
-- Constraints for table `llx_projet_task`
--
ALTER TABLE `llx_projet_task`
  ADD CONSTRAINT `fk_projet_task_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  ADD CONSTRAINT `fk_projet_task_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_projet_task_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_propal`
--
ALTER TABLE `llx_propal`
  ADD CONSTRAINT `fk_propal_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_user_cloture` FOREIGN KEY (`fk_user_cloture`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_user_signature` FOREIGN KEY (`fk_user_signature`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_propaldet`
--
ALTER TABLE `llx_propaldet`
  ADD CONSTRAINT `fk_propaldet_fk_propal` FOREIGN KEY (`fk_propal`) REFERENCES `llx_propal` (`rowid`),
  ADD CONSTRAINT `fk_propaldet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`);

--
-- Constraints for table `llx_reception`
--
ALTER TABLE `llx_reception`
  ADD CONSTRAINT `fk_reception_fk_shipping_method` FOREIGN KEY (`fk_shipping_method`) REFERENCES `llx_c_shipment_mode` (`rowid`),
  ADD CONSTRAINT `fk_reception_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_reception_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_reception_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_recruitment_recruitmentcandidature`
--
ALTER TABLE `llx_recruitment_recruitmentcandidature`
  ADD CONSTRAINT `llx_recruitment_recruitmentcandidature_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_recruitment_recruitmentjobposition`
--
ALTER TABLE `llx_recruitment_recruitmentjobposition`
  ADD CONSTRAINT `llx_recruitment_recruitmentjobposition_fk_establishment` FOREIGN KEY (`fk_establishment`) REFERENCES `llx_establishment` (`rowid`),
  ADD CONSTRAINT `llx_recruitment_recruitmentjobposition_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `llx_recruitment_recruitmentjobposition_fk_user_recruiter` FOREIGN KEY (`fk_user_recruiter`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `llx_recruitment_recruitmentjobposition_fk_user_supervisor` FOREIGN KEY (`fk_user_supervisor`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_resource`
--
ALTER TABLE `llx_resource`
  ADD CONSTRAINT `fk_resource_fk_country` FOREIGN KEY (`fk_country`) REFERENCES `llx_c_country` (`rowid`);

--
-- Constraints for table `llx_societe_account`
--
ALTER TABLE `llx_societe_account`
  ADD CONSTRAINT `llx_societe_account_fk_societe` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `llx_societe_account_fk_website` FOREIGN KEY (`fk_website`) REFERENCES `llx_website` (`rowid`);

--
-- Constraints for table `llx_societe_contacts`
--
ALTER TABLE `llx_societe_contacts`
  ADD CONSTRAINT `fk_societe_contacts_fk_c_type_contact` FOREIGN KEY (`fk_c_type_contact`) REFERENCES `llx_c_type_contact` (`rowid`),
  ADD CONSTRAINT `fk_societe_contacts_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_societe_contacts_fk_socpeople` FOREIGN KEY (`fk_socpeople`) REFERENCES `llx_socpeople` (`rowid`);

--
-- Constraints for table `llx_societe_remise_except`
--
ALTER TABLE `llx_societe_remise_except`
  ADD CONSTRAINT `fk_soc_remise_fk_facture_line` FOREIGN KEY (`fk_facture_line`) REFERENCES `llx_facturedet` (`rowid`),
  ADD CONSTRAINT `fk_soc_remise_fk_invoice_supplier_line` FOREIGN KEY (`fk_invoice_supplier_line`) REFERENCES `llx_facture_fourn_det` (`rowid`),
  ADD CONSTRAINT `fk_soc_remise_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `llx_facture` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `llx_facture` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_invoice_supplier` FOREIGN KEY (`fk_invoice_supplier`) REFERENCES `llx_facture_fourn` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_invoice_supplier_source` FOREIGN KEY (`fk_invoice_supplier`) REFERENCES `llx_facture_fourn` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_societe_rib`
--
ALTER TABLE `llx_societe_rib`
  ADD CONSTRAINT `llx_societe_rib_fk_societe` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`);

--
-- Constraints for table `llx_socpeople`
--
ALTER TABLE `llx_socpeople`
  ADD CONSTRAINT `fk_socpeople_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_socpeople_user_creat_user_rowid` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_supplier_proposaldet`
--
ALTER TABLE `llx_supplier_proposaldet`
  ADD CONSTRAINT `fk_supplier_proposaldet_fk_supplier_proposal` FOREIGN KEY (`fk_supplier_proposal`) REFERENCES `llx_supplier_proposal` (`rowid`),
  ADD CONSTRAINT `fk_supplier_proposaldet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`);

--
-- Constraints for table `llx_ultimatepdf`
--
ALTER TABLE `llx_ultimatepdf`
  ADD CONSTRAINT `fk_ultimatepdf_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_ultimatepdf_documentmergedpdf`
--
ALTER TABLE `llx_ultimatepdf_documentmergedpdf`
  ADD CONSTRAINT `llx_ultimatepdf_documentmergedpdf_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_usergroup_rights`
--
ALTER TABLE `llx_usergroup_rights`
  ADD CONSTRAINT `fk_usergroup_rights_fk_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `llx_usergroup` (`rowid`);

--
-- Constraints for table `llx_usergroup_user`
--
ALTER TABLE `llx_usergroup_user`
  ADD CONSTRAINT `fk_usergroup_user_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_usergroup_user_fk_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `llx_usergroup` (`rowid`);

--
-- Constraints for table `llx_user_employment`
--
ALTER TABLE `llx_user_employment`
  ADD CONSTRAINT `fk_user_employment_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_user_rights`
--
ALTER TABLE `llx_user_rights`
  ADD CONSTRAINT `fk_user_rights_fk_user_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`);

--
-- Constraints for table `llx_website_page`
--
ALTER TABLE `llx_website_page`
  ADD CONSTRAINT `fk_website_page_website` FOREIGN KEY (`fk_website`) REFERENCES `llx_website` (`rowid`);

--
-- Constraints for table `llx_workstation_workstation`
--
ALTER TABLE `llx_workstation_workstation`
  ADD CONSTRAINT `fk_workstation_workstation_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`);
COMMIT;

