CREATE TABLE `b67182907_propaldet_extrafields` (
  `rowid` int NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_propal_extrafields`
--

CREATE TABLE `b67182907_propal_extrafields` (
  `rowid` int NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_propal_merge_pdf_product`
--

CREATE TABLE `b67182907_propal_merge_pdf_product` (
  `rowid` int NOT NULL,
  `fk_product` int NOT NULL,
  `file_name` varchar(200) NOT NULL,
  `lang` varchar(5) DEFAULT NULL,
  `fk_user_author` int DEFAULT NULL,
  `fk_user_mod` int NOT NULL,
  `datec` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_resource`
--

CREATE TABLE `b67182907_resource` (
  `rowid` int NOT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `ref` varchar(255) DEFAULT NULL,
  `asset_number` varchar(255) DEFAULT NULL,
  `description` text,
  `fk_code_type_resource` varchar(32) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_author` int DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `fk_user_valid` int DEFAULT NULL,
  `fk_statut` smallint NOT NULL DEFAULT '0',
  `note_public` text,
  `note_private` text,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_country` int DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_resource_extrafields`
--

CREATE TABLE `b67182907_resource_extrafields` (
  `rowid` int NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_rights_def`
--

CREATE TABLE `b67182907_rights_def` (
  `id` int NOT NULL,
  `libelle` varchar(255) DEFAULT NULL,
  `module` varchar(64) DEFAULT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `perms` varchar(50) DEFAULT NULL,
  `subperms` varchar(50) DEFAULT NULL,
  `type` varchar(1) DEFAULT NULL,
  `bydefault` tinyint DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Volcado de datos para la tabla `b67182907_rights_def`
--

INSERT INTO `b67182907_rights_def` (`id`, `libelle`, `module`, `entity`, `perms`, `subperms`, `type`, `bydefault`) VALUES
(11, 'Read invoices', 'facture', 1, 'lire', NULL, 'a', 0),
(12, 'Create and update invoices', 'facture', 1, 'creer', NULL, 'a', 0),
(13, 'Devalidate invoices', 'facture', 1, 'invoice_advance', 'unvalidate', 'a', 0),
(14, 'Validate invoices', 'facture', 1, 'invoice_advance', 'validate', 'a', 0),
(15, 'Send invoices by email', 'facture', 1, 'invoice_advance', 'send', 'a', 0),
(16, 'Issue payments on invoices', 'facture', 1, 'paiement', NULL, 'a', 0),
(19, 'Delete invoices', 'facture', 1, 'supprimer', NULL, 'a', 0),
(21, 'Read commercial proposals', 'propale', 1, 'lire', NULL, 'r', 0),
(22, 'Create and update commercial proposals', 'propale', 1, 'creer', NULL, 'w', 0),
(24, 'Validate commercial proposals', 'propale', 1, 'propal_advance', 'validate', 'd', 0),
(25, 'Send commercial proposals to customers', 'propale', 1, 'propal_advance', 'send', 'd', 0),
(26, 'Close commercial proposals', 'propale', 1, 'cloturer', NULL, 'd', 0),
(27, 'Delete commercial proposals', 'propale', 1, 'supprimer', NULL, 'd', 0),
(28, 'Exporting commercial proposals and attributes', 'propale', 1, 'export', NULL, 'r', 0),
(31, 'Lire les produits', 'produit', 1, 'lire', NULL, 'r', 0),
(32, 'Creer/modifier les produits', 'produit', 1, 'creer', NULL, 'w', 0),
(34, 'Supprimer les produits', 'produit', 1, 'supprimer', NULL, 'd', 0),
(38, 'Exporter les produits', 'produit', 1, 'export', NULL, 'r', 0),
(41, 'Read projects and tasks (shared projects or projects I am contact for). Can also enter time consumed on assigned tasks (timesheet)', 'projet', 1, 'lire', NULL, 'r', 0),
(42, 'Create/modify projects and tasks (shared projects or projects I am contact for)', 'projet', 1, 'creer', NULL, 'w', 0),
(44, 'Delete project and tasks (shared projects or projects I am contact for)', 'projet', 1, 'supprimer', NULL, 'd', 0),
(45, 'Export projects', 'projet', 1, 'export', NULL, 'd', 0),
(81, 'Lire les commandes clients', 'commande', 1, 'lire', NULL, 'r', 0),
(82, 'Creer/modifier les commandes clients', 'commande', 1, 'creer', NULL, 'w', 0),
(84, 'Valider les commandes clients', 'commande', 1, 'order_advance', 'validate', 'd', 0),
(86, 'Envoyer les commandes clients', 'commande', 1, 'order_advance', 'send', 'd', 0),
(87, 'Cloturer les commandes clients', 'commande', 1, 'cloturer', NULL, 'd', 0),
(88, 'Annuler les commandes clients', 'commande', 1, 'order_advance', 'annuler', 'd', 0),
(89, 'Supprimer les commandes clients', 'commande', 1, 'supprimer', NULL, 'd', 0),
(91, 'Lire les charges', 'tax', 1, 'charges', 'lire', 'r', 0),
(92, 'Creer/modifier les charges', 'tax', 1, 'charges', 'creer', 'w', 0),
(93, 'Supprimer les charges', 'tax', 1, 'charges', 'supprimer', 'd', 0),
(94, 'Exporter les charges', 'tax', 1, 'charges', 'export', 'r', 0),
(111, 'Lire les comptes bancaires', 'banque', 1, 'lire', NULL, 'r', 0),
(112, 'Creer/modifier montant/supprimer ecriture bancaire', 'banque', 1, 'modifier', NULL, 'w', 0),
(113, 'Configurer les comptes bancaires (creer, gerer categories)', 'banque', 1, 'configurer', NULL, 'a', 0),
(114, 'Rapprocher les ecritures bancaires', 'banque', 1, 'consolidate', NULL, 'w', 0),
(115, 'Exporter transactions et releves', 'banque', 1, 'export', NULL, 'r', 0),
(116, 'Virements entre comptes', 'banque', 1, 'transfer', NULL, 'w', 0),
(117, 'Gerer les envois de cheques', 'banque', 1, 'cheque', NULL, 'w', 0),
(121, 'Read third parties', 'societe', 1, 'lire', NULL, 'r', 0),
(122, 'Create and update third parties', 'societe', 1, 'creer', NULL, 'w', 0),
(125, 'Delete third parties', 'societe', 1, 'supprimer', NULL, 'd', 0),
(126, 'Export third parties', 'societe', 1, 'export', NULL, 'r', 0),
(141, 'Read all projects and tasks (also private projects I am not contact for)', 'projet', 1, 'all', 'lire', 'r', 0),
(142, 'Create/modify all projects and tasks (also private projects I am not contact for). Can also enter time consumed on assigned tasks (timesheet)', 'projet', 1, 'all', 'creer', 'w', 0),
(144, 'Delete all projects and tasks (also private projects I am not contact for)', 'projet', 1, 'all', 'supprimer', 'd', 0),
(151, 'Read direct debit payment orders', 'prelevement', 1, 'bons', 'lire', 'r', 0),
(152, 'Create/modify a direct debit payment order', 'prelevement', 1, 'bons', 'creer', 'w', 0),
(153, 'Send/Transmit direct debit payment orders', 'prelevement', 1, 'bons', 'send', 'a', 0),
(154, 'Record Credits/Rejects of direct debit payment orders', 'prelevement', 1, 'bons', 'credit', 'a', 0),
(251, 'Consulter les autres utilisateurs', 'user', 1, 'user', 'lire', 'r', 0),
(252, 'Consulter les permissions des autres utilisateurs', 'user', 1, 'user_advance', 'readperms', 'r', 0),
(253, 'Creer/modifier utilisateurs internes et externes', 'user', 1, 'user', 'creer', 'w', 0),
(254, 'Creer/modifier utilisateurs externes seulement', 'user', 1, 'user_advance', 'write', 'w', 0),
(255, 'Modifier le mot de passe des autres utilisateurs', 'user', 1, 'user', 'password', 'w', 0),
(256, 'Supprimer ou desactiver les autres utilisateurs', 'user', 1, 'user', 'supprimer', 'd', 0),
(262, 'Read all third parties by internal users (otherwise only if commercial contact). Not effective for external users (limited to themselves).', 'societe', 1, 'client', 'voir', 'r', 0),
(281, 'Read contacts', 'societe', 1, 'contact', 'lire', 'r', 0),
(282, 'Create and update contact', 'societe', 1, 'contact', 'creer', 'w', 0),
(283, 'Delete contacts', 'societe', 1, 'contact', 'supprimer', 'd', 0),
(286, 'Export contacts', 'societe', 1, 'contact', 'export', 'd', 0),
(341, 'Consulter ses propres permissions', 'user', 1, 'self_advance', 'readperms', 'r', 0),
(342, 'Creer/modifier ses propres infos utilisateur', 'user', 1, 'self', 'creer', 'w', 0),
(343, 'Modifier son propre mot de passe', 'user', 1, 'self', 'password', 'w', 0),
(344, 'Modifier ses propres permissions', 'user', 1, 'self_advance', 'writeperms', 'w', 0),
(351, 'Consulter les groupes', 'user', 1, 'group_advance', 'read', 'r', 0),
(352, 'Consulter les permissions des groupes', 'user', 1, 'group_advance', 'readperms', 'r', 0),
(353, 'Creer/modifier les groupes et leurs permissions', 'user', 1, 'group_advance', 'write', 'w', 0),
(354, 'Supprimer ou desactiver les groupes', 'user', 1, 'group_advance', 'delete', 'd', 0),
(358, 'Exporter les utilisateurs', 'user', 1, 'user', 'export', 'r', 0),
(501, 'Read employee contracts/salaries', 'salaries', 1, 'read', NULL, 'r', 0),
(502, 'Create/modify employee contracts/salaries', 'salaries', 1, 'write', NULL, 'w', 0),
(511, 'Read payment of salaries', 'salaries', 1, 'payment', 'read', 'w', 0),
(512, 'Create/modify payment of salaries', 'salaries', 1, 'payment', 'write', 'w', 0),
(514, 'Delete contracts/salaries', 'salaries', 1, 'delete', NULL, 'd', 0),
(517, 'Export employee contracts and salaries payments', 'salaries', 1, 'export', NULL, 'r', 0),
(520, 'Read loans', 'loan', 1, 'read', NULL, 'r', 0),
(522, 'Create/modify loans', 'loan', 1, 'write', NULL, 'w', 0),
(524, 'Delete loans', 'loan', 1, 'delete', NULL, 'd', 0),
(525, 'Access loan calculator', 'loan', 1, 'calc', NULL, 'r', 0),
(527, 'Export loans', 'loan', 1, 'export', NULL, 'r', 0),
(531, 'Lire les services', 'service', 1, 'lire', NULL, 'r', 0),
(532, 'Creer/modifier les services', 'service', 1, 'creer', NULL, 'w', 0),
(534, 'Supprimer les services', 'service', 1, 'supprimer', NULL, 'd', 0),
(538, 'Exporter les services', 'service', 1, 'export', NULL, 'r', 0),
(771, 'Read expense reports (yours and your subordinates)', 'expensereport', 1, 'lire', NULL, 'r', 0),
(772, 'Create/modify expense reports', 'expensereport', 1, 'creer', NULL, 'w', 0),
(773, 'Delete expense reports', 'expensereport', 1, 'supprimer', NULL, 'd', 0),
(775, 'Approve expense reports', 'expensereport', 1, 'approve', NULL, 'w', 0),
(776, 'Pay expense reports', 'expensereport', 1, 'to_paid', NULL, 'w', 0),
(777, 'Read expense reports of everybody', 'expensereport', 1, 'readall', NULL, 'r', 1),
(778, 'Create expense reports for everybody', 'expensereport', 1, 'writeall_advance', NULL, 'w', 0),
(779, 'Export expense reports', 'expensereport', 1, 'export', NULL, 'r', 0),
(1181, 'Consulter les fournisseurs', 'fournisseur', 1, 'lire', NULL, 'r', 0),
(1182, 'Consulter les commandes fournisseur', 'fournisseur', 1, 'commande', 'lire', 'r', 0),
(1183, 'Creer une commande fournisseur', 'fournisseur', 1, 'commande', 'creer', 'w', 0),
(1184, 'Valider une commande fournisseur', 'fournisseur', 1, 'supplier_order_advance', 'validate', 'w', 0),
(1185, 'Approuver une commande fournisseur', 'fournisseur', 1, 'commande', 'approuver', 'w', 0),
(1186, 'Commander une commande fournisseur', 'fournisseur', 1, 'commande', 'commander', 'w', 0),
(1187, 'Receptionner une commande fournisseur', 'fournisseur', 1, 'commande', 'receptionner', 'd', 0),
(1188, 'Supprimer une commande fournisseur', 'fournisseur', 1, 'commande', 'supprimer', 'd', 0),
(1189, 'Check/Uncheck a supplier order reception', 'fournisseur', 1, 'commande_advance', 'check', 'w', 0),
(1231, 'Consulter les factures fournisseur', 'fournisseur', 1, 'facture', 'lire', 'r', 0),
(1232, 'Creer une facture fournisseur', 'fournisseur', 1, 'facture', 'creer', 'w', 0),
(1233, 'Valider une facture fournisseur', 'fournisseur', 1, 'supplier_invoice_advance', 'validate', 'w', 0),
(1234, 'Supprimer une facture fournisseur', 'fournisseur', 1, 'facture', 'supprimer', 'd', 0),
(1235, 'Envoyer les factures par mail', 'fournisseur', 1, 'supplier_invoice_advance', 'send', 'a', 0),
(1236, 'Exporter les factures fournisseurs, attributs et reglements', 'fournisseur', 1, 'facture', 'export', 'r', 0),
(1237, 'Exporter les commande fournisseurs, attributs', 'fournisseur', 1, 'commande', 'export', 'r', 0),
(1321, 'Export customer invoices, attributes and payments', 'facture', 1, 'facture', 'export', 'r', 0),
(1322, 'Re-open a fully paid invoice', 'facture', 1, 'invoice_advance', 'reopen', 'r', 0),
(1421, 'Exporter les commandes clients et attributs', 'commande', 1, 'commande', 'export', 'r', 0),
(2401, 'Read actions/tasks linked to his account', 'agenda', 1, 'myactions', 'read', 'r', 0),
(2402, 'Create/modify actions/tasks linked to his account', 'agenda', 1, 'myactions', 'create', 'w', 0),
(2403, 'Delete actions/tasks linked to his account', 'agenda', 1, 'myactions', 'delete', 'w', 0),
(2411, 'Read actions/tasks of others', 'agenda', 1, 'allactions', 'read', 'r', 0),
(2412, 'Create/modify actions/tasks of others', 'agenda', 1, 'allactions', 'create', 'w', 0),
(2413, 'Delete actions/tasks of others', 'agenda', 1, 'allactions', 'delete', 'w', 0),
(2414, 'Export actions/tasks of others', 'agenda', 1, 'export', NULL, 'w', 0),
(20001, 'Read your own holidays', 'holiday', 1, 'read', NULL, 'w', 0),
(20002, 'Create/modify your own holidays', 'holiday', 1, 'write', NULL, 'w', 0),
(20003, 'Delete holidays', 'holiday', 1, 'delete', NULL, 'w', 0),
(20004, 'Read holidays for everybody', 'holiday', 1, 'read_all', NULL, 'w', 0),
(20005, 'Create/modify holidays for everybody', 'holiday', 1, 'write_all', NULL, 'w', 0),
(20006, 'Setup holidays of users (setup and update balance)', 'holiday', 1, 'define_holiday', NULL, 'w', 0),
(23001, 'Read cron jobs', 'cron', 1, 'read', NULL, 'w', 0),
(23002, 'Create cron Jobs', 'cron', 1, 'create', NULL, 'w', 0),
(23003, 'Delete cron Jobs', 'cron', 1, 'delete', NULL, 'w', 0),
(23004, 'Execute cron Jobs', 'cron', 1, 'execute', NULL, 'w', 0),
(50401, 'Bind products and invoices with accounting accounts', 'accounting', 1, 'bind', 'write', 'r', 0),
(50411, 'Read operations in Ledger', 'accounting', 1, 'mouvements', 'lire', 'r', 0),
(50412, 'Write/Edit operations in Ledger', 'accounting', 1, 'mouvements', 'creer', 'w', 0),
(50420, 'Report and export reports (turnover, balance, journals, ledger)', 'accounting', 1, 'comptarapport', 'lire', 'r', 0),
(50430, 'Define and close a fiscal year', 'accounting', 1, 'fiscalyear', NULL, 'r', 0),
(50440, 'Manage chart of accounts, setup of accountancy', 'accounting', 1, 'chartofaccount', NULL, 'r', 0),
(59001, 'Visualiser les marges', 'margins', 1, 'liretous', NULL, 'r', 0),
(59002, 'Définir les marges', 'margins', 1, 'creer', NULL, 'w', 0),
(59003, 'Read every user margin', 'margins', 1, 'read', 'all', 'r', 0);

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

--
-- Estructura de tabla para la tabla `b67182907_societe`
--

CREATE TABLE `b67182907_societe` (
  `rowid` int NOT NULL,
  `nom` varchar(128) DEFAULT NULL,
  `name_alias` varchar(128) DEFAULT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `statut` tinyint DEFAULT '0',
  `parent` int DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `status` tinyint DEFAULT '1',
  `code_client` varchar(24) DEFAULT NULL,
  `code_fournisseur` varchar(24) DEFAULT NULL,
  `code_compta` varchar(24) DEFAULT NULL,
  `code_compta_fournisseur` varchar(24) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(25) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_departement` int DEFAULT '0',
  `fk_pays` int DEFAULT '0',
  `fk_account` int DEFAULT '0',
  `phone` varchar(20) DEFAULT NULL,
  `fax` varchar(20) DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `email` varchar(128) DEFAULT NULL,
  `skype` varchar(255) DEFAULT NULL,
  `fk_effectif` int DEFAULT '0',
  `fk_typent` int DEFAULT '0',
  `fk_forme_juridique` int DEFAULT '0',
  `fk_currency` varchar(3) DEFAULT NULL,
  `siren` varchar(128) DEFAULT NULL,
  `siret` varchar(128) DEFAULT NULL,
  `ape` varchar(128) DEFAULT NULL,
  `idprof4` varchar(128) DEFAULT NULL,
  `idprof5` varchar(128) DEFAULT NULL,
  `idprof6` varchar(128) DEFAULT NULL,
  `tva_intra` varchar(20) DEFAULT NULL,
  `capital` double(24,8) DEFAULT NULL,
  `fk_stcomm` int NOT NULL DEFAULT '0',
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) DEFAULT NULL,
  `prefix_comm` varchar(5) DEFAULT NULL,
  `client` tinyint DEFAULT '0',
  `fournisseur` tinyint DEFAULT '0',
  `supplier_account` varchar(32) DEFAULT NULL,
  `fk_prospectlevel` varchar(12) DEFAULT NULL,
  `fk_incoterms` int DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `customer_bad` tinyint DEFAULT '0',
  `customer_rate` double DEFAULT '0',
  `supplier_rate` double DEFAULT '0',
  `fk_user_creat` int DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `remise_client` double DEFAULT '0',
  `mode_reglement` tinyint DEFAULT NULL,
  `cond_reglement` tinyint DEFAULT NULL,
  `mode_reglement_supplier` tinyint DEFAULT NULL,
  `cond_reglement_supplier` tinyint DEFAULT NULL,
  `fk_shipping_method` int DEFAULT NULL,
  `tva_assuj` tinyint DEFAULT '1',
  `localtax1_assuj` tinyint DEFAULT '0',
  `localtax1_value` double(6,3) DEFAULT NULL,
  `localtax2_assuj` tinyint DEFAULT '0',
  `localtax2_value` double(6,3) DEFAULT NULL,
  `barcode` varchar(180) DEFAULT NULL,
  `fk_barcode_type` int DEFAULT '0',
  `price_level` int DEFAULT NULL,
  `outstanding_limit` double(24,8) DEFAULT NULL,
  `default_lang` varchar(6) DEFAULT NULL,
  `logo` varchar(255) DEFAULT NULL,
  `canvas` varchar(32) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `webservices_url` varchar(255) DEFAULT NULL,
  `webservices_key` varchar(128) DEFAULT NULL,
  `fk_multicurrency` int DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Volcado de datos para la tabla `b67182907_societe`
--

INSERT INTO `b67182907_societe` (`rowid`, `nom`, `name_alias`, `entity`, `ref_ext`, `ref_int`, `statut`, `parent`, `tms`, `datec`, `status`, `code_client`, `code_fournisseur`, `code_compta`, `code_compta_fournisseur`, `address`, `zip`, `town`, `fk_departement`, `fk_pays`, `fk_account`, `phone`, `fax`, `url`, `email`, `skype`, `fk_effectif`, `fk_typent`, `fk_forme_juridique`, `fk_currency`, `siren`, `siret`, `ape`, `idprof4`, `idprof5`, `idprof6`, `tva_intra`, `capital`, `fk_stcomm`, `note_private`, `note_public`, `model_pdf`, `prefix_comm`, `client`, `fournisseur`, `supplier_account`, `fk_prospectlevel`, `fk_incoterms`, `location_incoterms`, `customer_bad`, `customer_rate`, `supplier_rate`, `fk_user_creat`, `fk_user_modif`, `remise_client`, `mode_reglement`, `cond_reglement`, `mode_reglement_supplier`, `cond_reglement_supplier`, `fk_shipping_method`, `tva_assuj`, `localtax1_assuj`, `localtax1_value`, `localtax2_assuj`, `localtax2_value`, `barcode`, `fk_barcode_type`, `price_level`, `outstanding_limit`, `default_lang`, `logo`, `canvas`, `import_key`, `webservices_url`, `webservices_key`, `fk_multicurrency`, `multicurrency_code`) VALUES
(189, 'Isabel Rodríguez Fernández', '', 1, NULL, NULL, 0, NULL, '2018-03-21 15:53:42', '2015-03-12 14:17:28', 1, 'CU1803-0002', NULL, NULL, NULL, 'C/. Sant Josep, 59 Baixos', '08520', 'Les Franqueses del Vallés', 524, 4, 0, '938473075', '9384924125', 'www.azor-serveis.com', 'azor-serveis@azor-serveis.com', NULL, NULL, 8, NULL, NULL, '52163977T', '', '8690', '', '', '', '', 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, 0, ''),
(190, 'CSI Partner Spain, S.L.U.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-03-14 00:37:52', 0, '039', NULL, NULL, NULL, 'Av. Diagonal, 514 3º Local 4', '08006', 'Barcelona', 0, 4, 0, '902442050', '902442052', 'www.csipartner.es', 'griselda.cami@csipartner.es', NULL, NULL, 3, 0, NULL, 'B63853055', NULL, '4651', NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(192, 'Outservico Informática, S.L.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-03-14 19:03:30', 0, '141', NULL, NULL, NULL, 'Calle Tarragona, 149-151, 5ª planta', '08015', 'Barcelona', 0, 4, 0, NULL, NULL, 'www.outservico.net', 'j.lizana@outservico.net', NULL, NULL, 3, 0, NULL, 'B61717088', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(193, 'Supremo Coffee Systems, S.L.', '', 1, NULL, NULL, 0, NULL, '2018-03-21 12:23:30', '2015-03-14 19:26:52', 1, 'CU1803-0001', NULL, NULL, NULL, 'Santa Margarida de Boada Vell, 21', '08184', 'Palau-Solità i Plegamans', 0, 4, 2, NULL, NULL, 'www.supremocs.es', 'administracion@supremocs.es', NULL, NULL, 3, NULL, NULL, 'B65787921', '', '', '', '', '', '', 0.00000000, 0, NULL, NULL, 'sepamandate', NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 1, 0, 3, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, 500.00000000, NULL, NULL, NULL, '20180306173700', NULL, NULL, 0, ''),
(194, 'ARTEMI NOLLA GRUP GESTIÓ DE RESTAURANTS, S.L.', '', 1, NULL, NULL, 0, NULL, '2018-03-21 15:25:34', '2015-03-14 19:50:11', 1, 'CU1803-0005', NULL, NULL, NULL, 'C/ Diputació, 273, Pral.', '08007', 'Barcelona', 0, 4, 0, '934677020', '934677045', 'www.angrup.com', 'mllop@angrup.com', NULL, NULL, 3, NULL, NULL, 'B62840673', '', '', '', '', '', '', 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, 0, ''),
(195, 'EDICIONES Y ESTUDIOS S.L.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-03-14 20:09:51', 0, '052', NULL, NULL, NULL, 'C/ Enrique Larreta, 5-1ª', '28036', 'Madrid', 0, 4, 0, NULL, NULL, 'www.edicionesyestudios.com', 'jmurraca@edicionesyestudios.com', NULL, NULL, 3, 0, NULL, 'B28921195', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(196, 'Kawasaki Motors Europe NV', '', 1, NULL, NULL, 0, NULL, '2018-03-21 15:25:11', '2015-03-14 20:17:58', 1, 'CU1803-0004', NULL, NULL, NULL, 'José Agustín Goytisolo 29 -31', '08908', 'Hospitalet de Llobregat', 0, 4, 0, NULL, NULL, 'www.kawasaki.es', 'l.ensenyat@kawasaki.es', NULL, NULL, 2, NULL, NULL, 'W0032780I', '', '', '', '', '', '', 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, 0, ''),
(197, 'BRILLIANT IBÉRICA, S.L.', '', 1, NULL, NULL, 0, NULL, '2018-03-21 15:46:44', '2015-03-14 21:00:02', 1, 'CU1803-0003', NULL, NULL, NULL, 'Av. Castilla, 1, Centro Empresarial Best Point', '28830', 'Madrid', 0, 4, 2, NULL, NULL, NULL, 'robertoperez@icam.es', NULL, NULL, 3, NULL, NULL, 'B59147629', '', '', '', '', '', '', 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 1, 0, 3, 1, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, 500.00000000, NULL, NULL, NULL, '20180306173700', NULL, NULL, 0, ''),
(198, 'everis BPO S.L.', '', 1, NULL, NULL, 0, NULL, '2018-03-21 15:29:55', '2015-03-14 21:22:36', 1, 'CU1803-0015', NULL, NULL, NULL, 'Avda Diagonal, 605', '08028', 'Barcelona', 0, 4, 0, '917491010', NULL, NULL, 'spain.supplier.invoices@everis.com', NULL, NULL, 2, NULL, NULL, 'B91251082', '', '', '', '', '', '', 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, 0, ''),
(201, 'TIC AND TAG CONSULTORIA, S.L.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-03-14 23:44:52', 1, NULL, NULL, NULL, NULL, 'C/. Londres, 37 5º', '08029', 'Barcelona', 0, 4, 0, NULL, NULL, NULL, 'xlopez@tic-tag.es', NULL, NULL, 3, 0, NULL, 'B65932469', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(204, 'Orange Spagne, S.A.U.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-03-16 18:03:02', 1, NULL, NULL, NULL, NULL, 'Paseo del Club Deportivo, 1 Edif. 8 Parque Emp. La Finca', '28223', 'Pozuelo de Alarcón', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, NULL, 'A82009812', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(206, 'CINC BUSINESS CENTER, S.L.', '', 1, NULL, NULL, 0, NULL, '2018-03-21 15:28:08', '2015-03-17 11:08:03', 1, NULL, 'SU1803-0002', NULL, NULL, 'C/ Llull, 321', '08019', 'Barcelona', 0, 4, 0, '933030060', '933030080', 'www.cinc.es', 'enric.urreta@cinc.es', NULL, NULL, 3, NULL, NULL, 'B17912833', '', '', '', '', '', '', 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 2, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, 0, ''),
(207, 'Viva Aqua Service Spain, S.A.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-03-17 11:20:37', 1, NULL, NULL, NULL, NULL, 'Calle Brosquill, S/N Pol. Ind. Nº 7', '46540', 'El Puig', 0, 4, 0, '638937361', NULL, NULL, 'juan.canumil@viva-aquaservice.com', NULL, NULL, 3, 0, NULL, 'A41810920', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(208, 'Sociedad Estatal Correos y Telégrafos, S.A.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-03-17 11:27:55', 1, NULL, NULL, NULL, NULL, 'Vía Dublín, 7', '28042', 'Madrid', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, NULL, 'A83052407', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(212, 'Material Informático - Varios', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-03-17 12:39:29', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(213, 'EMBUTIDOS Y JAMONES DIAZ S.L.', '', 1, NULL, NULL, 0, NULL, '2018-03-21 15:26:13', '2015-03-17 16:51:02', 1, 'CU1803-0006', NULL, NULL, NULL, 'C/ LLUVIA Nº 21', '28918', 'LEGANÉS', 0, 4, 0, NULL, NULL, 'www.jamonesyembutidosdiaz.com', 'info@jamonesyembutidosdiaz.com', NULL, NULL, 3, NULL, NULL, 'B83860064', '', '', '', '', '', '', 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, 0, ''),
(214, 'TENYCOL, S.L.', '', 1, NULL, NULL, 0, NULL, '2018-03-21 15:26:31', '2015-03-17 17:53:32', 1, 'CU1803-0007', NULL, NULL, NULL, 'C/ Pisuerga, 33 Pol. Ind Sta Margarita', '08223', 'Terrassa', 0, 4, 0, NULL, NULL, NULL, 'tonibeltran@tenycol.com', NULL, NULL, 3, NULL, NULL, 'B08264806', '', '', '', '', '', '', 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, 0, ''),
(215, 'CHATARRAS R. GARCIA, S.A.U.', '', 1, NULL, NULL, 0, NULL, '2018-03-21 15:27:27', '2015-03-17 18:20:58', 1, 'CU1803-0010', NULL, NULL, NULL, 'AV. VERGE DE MONTSERRAT, 10', '08820', 'El Prat de Llobregat', 0, 4, 0, NULL, NULL, 'www.chargsa.com', 'ana@chargsa.com', NULL, NULL, 3, NULL, NULL, 'A58372525', '', '', '', '', '', '', 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, 0, ''),
(216, 'Asesores Titulados S.A.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-03-17 18:37:07', 0, '132', NULL, NULL, NULL, 'C/ Trópico nº 6, Pol.Ind. Las Monjas Edificio ATISA', '28850', 'Torrejón de Ardoz', 0, 4, 0, NULL, NULL, 'www.atisa.es', 'm.monforte@atisa.es', NULL, NULL, 3, 0, NULL, 'A28713667', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(217, 'PC Componentes y Multimedia, S.L.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-03-18 15:19:31', 1, NULL, NULL, NULL, NULL, 'Avda Europa, 2-3 Pol.Ind. Las Salinas', '30840', 'Alhama de Murcia', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 3, 0, NULL, 'B73347494', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(218, 'SOLRED, S.A.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-03-18 16:41:37', 1, NULL, NULL, NULL, NULL, 'Méndez Álvaro, 44', '28045', 'MADRID', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, NULL, 'A79707345', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(219, 'HOTEL GRILL ALCALA DE HENARES, S.L.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-03-18 17:13:39', 1, NULL, NULL, NULL, NULL, 'Calle Fausto Elhuyar, 3', '28806', 'Alcalá de Henares', 0, 4, 0, '918025612', '918029741', NULL, 'madrid.alcala@campanile.com', NULL, NULL, 2, 0, NULL, 'B62949763', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(221, 'Egregia Activos SL', '', 1, NULL, NULL, 0, NULL, '2019-01-29 15:46:48', '2015-04-07 13:13:42', 1, 'CU1803-0013', NULL, NULL, NULL, 'Aragón, 383 P.9', '08013', 'Barcelona', 0, 4, 0, NULL, NULL, NULL, 'elisa.luque@egregia.net', NULL, NULL, 3, NULL, NULL, 'B66025271', '', '', '', '', '', '', 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, 0, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, 0, ''),
(222, 'Motorlife Comunicación S.L.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-04-10 11:04:08', 0, '94', NULL, NULL, NULL, 'Ctra. Fuencarral a Alcobendas, 44 Edif. 6 loft L37', '28110', 'ALGETE', 0, 4, 0, NULL, NULL, NULL, 'msant@motorlife.es', NULL, NULL, 3, 0, NULL, 'B85773836', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(236, 'BanSabadell Renting, SL', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-04-17 12:29:11', 1, NULL, NULL, NULL, NULL, 'Parque de A.E. Can Sant Joan Calle Sena, 12', '08017', 'Sant Cugat del Vallés', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, NULL, 'B60854932', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(238, 'Rubes Editorial S.L.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-05-13 13:42:35', 0, '80', NULL, NULL, NULL, 'Girona 36, local', '08010', 'Barcelona', 0, 4, 0, NULL, NULL, NULL, 'gerencia@rubes.es', NULL, NULL, 0, NULL, NULL, 'B60478351', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(240, 'Magatzem d\'Idees, SL', '', 1, NULL, NULL, 0, NULL, '2018-03-21 15:28:37', '2015-05-17 11:40:59', 1, 'CU1803-0011', NULL, NULL, NULL, 'Ramon Turró, 203 1P', '08005', 'Barcelona', 0, 4, 0, NULL, NULL, NULL, 'admin@mdi-co.eu', NULL, NULL, 3, NULL, NULL, 'B60695251', '', '', '', '', '', '', 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, 0, ''),
(241, 'Sinergia LEDs S.L.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-06-29 10:16:23', 0, NULL, NULL, NULL, NULL, 'Ronda Guinardó 62 Bajo 2 08025-Barcelona', '08025', 'Barcelona', 0, 4, 0, '615150408', NULL, NULL, 'administracion@sinergialeds.com', NULL, NULL, 3, 0, NULL, 'B66432329', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(245, 'Repsol Comercial de Productos Petrolíferos, SA', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-07-14 14:35:37', 1, NULL, NULL, NULL, NULL, 'Méndez Álvaro, 44', '28045', 'MADRID', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, NULL, 'A80298839', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(246, 'Qloudea - Informática Serrano Mas, SL - Fashion PC\'s', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-07-14 15:54:52', 1, NULL, NULL, NULL, NULL, 'Hilarión Eslava, 178', '03204', 'Elx', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 3, 0, NULL, 'B53947149', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(249, 'RENFE Viajeros, SA', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-07-14 16:25:50', 1, NULL, NULL, NULL, NULL, 'Avda. Pio XII, 110', '28036', 'Madrid', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, NULL, 'A86868189', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(250, 'Holiday Autos', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-07-14 16:59:54', 1, NULL, NULL, NULL, NULL, 'GLORIETA DE ATOCHA S/N', '28045', 'MADRID', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 3, 0, NULL, 'E4693898K', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(251, 'Hostelería Franycer, SL', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-07-14 17:53:49', 1, NULL, NULL, NULL, NULL, 'CC Glorias Av. Diagonal, 280 local 405', '08002', 'Barcelona', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 3, 0, NULL, 'B65049041', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(252, 'Personal Computer Green, SLU', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-07-14 18:07:40', 1, NULL, NULL, NULL, NULL, 'SEPULVEDA, 172 TIENDA 2', '08011', 'Barcelona', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 3, 0, NULL, 'B61195202', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(274, 'SIXT RENT A CAR S.L.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-09-07 11:59:34', 1, NULL, NULL, NULL, NULL, 'Carrer del Canal de Sant Jordi 29', '07610', 'Palma de Mallorca', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, NULL, 'B07947591', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(277, 'GRUPO GENERALI ESPAÑA, Agrupación de Interés Económico', '', 1, NULL, NULL, 0, NULL, '2018-03-21 15:29:41', '2015-10-13 09:35:53', 1, 'CU1803-0014', NULL, NULL, NULL, 'Calle Orense, 2', '28020', 'Madrid', 0, 4, 0, NULL, NULL, NULL, 'giulia.dinapoli@generali.com', NULL, NULL, 2, NULL, NULL, 'V81570335', '', '', '', '', '', '', 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, 0, ''),
(296, 'Material Oficina - Varios', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-10-20 12:36:45', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(298, 'Parking', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2015-10-20 15:21:03', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(299, 'YHERLA, S.L.', '', 1, NULL, NULL, 0, NULL, '2018-03-21 15:49:35', '2015-11-18 11:45:14', 1, 'CU1803-0008', NULL, NULL, NULL, 'Paseo les Massies, 11', '08780', 'Pallejà', 524, 4, 0, '639353070', NULL, NULL, 'jordi@yherla.cat', NULL, NULL, 3, 405, NULL, 'B60517984', '', '', '', '', '', '', 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, 0, ''),
(302, 'Marcil, SA', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2016-01-29 11:29:24', 1, NULL, NULL, NULL, NULL, 'Johann Sebastian Bach, 24', '08021', 'Barcelona', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 3, 0, NULL, 'A08510364', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(321, 'ACENS TECHNOLOGIES SL', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2016-01-31 11:38:02', 1, NULL, NULL, NULL, NULL, 'C/ San Rafael 14', '28108', 'ALCOBENDAS', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 3, 0, NULL, 'B8494873', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(324, 'Transportes', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2016-02-05 11:20:12', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(326, 'ASSESSORIA CATAFAL, S.L.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2016-04-13 12:00:20', 1, NULL, NULL, NULL, NULL, 'CL BAC DE RODA 176 EN', '08020', 'Barcelona', 0, 4, 0, '932661074', '932661633', NULL, NULL, NULL, NULL, 3, 0, NULL, 'B61511614', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(327, 'ADAMO TELECOM IBERIA S.A,', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2016-04-13 12:21:02', 1, NULL, NULL, NULL, NULL, 'C/ LLACUNA, 22', '08005,', 'Barcelona', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, NULL, 'A65232357', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(331, 'Time Logistic S.L.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2016-05-20 10:21:23', 0, '147', NULL, NULL, NULL, 'C/ Duran I Jorda, 6-8', '08960', 'Sant Just Desvern', 0, 4, 0, NULL, NULL, NULL, 'jariza@festina.com', NULL, NULL, 2, 0, NULL, 'B61756490', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(332, 'Daniel Rodríguez Prieto', '', 1, NULL, NULL, 0, NULL, '2019-10-25 07:26:59', '2016-06-29 10:38:28', 1, 'CU1910-0030', 'SU1803-0001', NULL, NULL, 'Francesc Ferrer i Guardia, 2D Int. 6-3', '08100', 'Mollet del Valles, España', 0, 4, 0, '649693995', NULL, NULL, 'dani.rodriguez@idaliza.com', NULL, NULL, 8, NULL, NULL, '46654792M', '', '', '', '', '', '', 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 1, NULL, '', 0, NULL, 0, 0, 0, 2, 2, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, 1, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, 0, ''),
(333, 'VIAJES EL CORTE INGLÉS, S.A.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2016-07-11 19:25:00', 1, NULL, NULL, NULL, NULL, 'Hermosilla, 112', '28009', 'Madrid', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, NULL, 'A2822981', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(334, 'Peaje', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2016-07-12 18:42:46', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(336, 'Festina Lotus S.A.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2016-08-01 23:53:55', 0, NULL, NULL, NULL, NULL, 'C/ VELAZQUEZ 150 3-1', '28002', 'Madrid', 0, 4, 0, NULL, NULL, NULL, 'jariza@festina.com', NULL, NULL, 2, 0, NULL, 'A08663684', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(338, 'Carrefour', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2016-08-16 15:21:23', 1, NULL, NULL, NULL, NULL, 'Calle Llacuna, 155', '08018', 'Barcelona', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, NULL, 'A28425270', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(341, 'Anovo Ibérica Madrid SL', '', 1, NULL, NULL, 0, NULL, '2019-01-23 13:14:44', '2016-11-02 08:35:18', 1, 'CU1803-0009', NULL, NULL, NULL, 'Isla de la Palma 32 Nave 15-16', '28703', 'San Sebastián de los Reyes', 0, 4, 2, NULL, NULL, NULL, 'jjmarcos@anovo.com', NULL, NULL, 3, NULL, NULL, 'B82479197', '', '', '', '', '', '', 0.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, 0, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, 0, ''),
(342, 'GEHOZAS, SL Hotel Madrid Las Rozas', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2016-11-23 16:52:08', 1, NULL, NULL, NULL, NULL, 'Crta. A Coruña (NVI) km 22,5', '28230', 'Las Rozas', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, NULL, 'B84079649', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(343, 'Awan Sport Europa S.L.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2016-11-23 19:22:55', 0, NULL, NULL, NULL, NULL, 'C/ Modena, 30', '28230', 'Las Rozas', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 2, 0, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(344, 'AECSA APARCAMIENTOS ESTELA CASANOVAS S.L.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2016-11-24 15:52:33', 1, NULL, NULL, NULL, NULL, 'Dr. August Pi i Sunyer 3 Local 2', '08034', 'Barcelona', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 3, 0, NULL, 'B58630286', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(346, 'FNMT - Fábrica Nacional de Moneda y Timbre', '', 1, NULL, NULL, 0, NULL, '2018-05-16 11:10:27', '2016-12-02 21:29:36', 1, NULL, 'SU1805-0005', NULL, NULL, 'C/ Jorge Juan, 106', '28009', 'Madrid', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 5, NULL, NULL, 'Q2826004J', '', '', '', '', '', '', 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 2, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, 0, ''),
(349, 'Endesa', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2017-01-09 12:07:53', 1, NULL, NULL, NULL, NULL, 'Ribera del Loira, 60', '28042', 'Madrid', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, NULL, 'A81948077', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(352, 'MAPFRE ESPAÑA, COMPAÑIA DE SEGUROS Y REASEGUROS SA', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2017-01-23 12:41:13', 1, NULL, NULL, NULL, NULL, 'CARRETERA DE POZUELO (M-515), 50', '28222', 'MAJADAHONDA', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, NULL, 'A28141935', NULL, '6512', NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(353, 'Apple Distribution International', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2017-01-23 17:50:44', 1, NULL, NULL, NULL, NULL, 'Hollyhill Industrial Estate', NULL, NULL, 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 2, NULL, NULL, 'N0072469J', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(354, 'Banco de Sabadell, S.A.', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2017-02-15 17:54:07', 1, NULL, NULL, NULL, NULL, 'Pl. de Sant Roc, 20', '08205', 'Sabadell', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, NULL, 'A08000143', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(355, 'Precintia Internacional, S.A.', '', 1, NULL, NULL, 0, NULL, '2018-03-21 15:41:46', '2017-03-19 08:30:27', 1, 'CU1803-0012', NULL, NULL, NULL, 'c/ Vic, 26-28', '08120', 'La Llagosta', 0, 4, 0, NULL, NULL, NULL, 'jaime.baucells@precintia.com', NULL, NULL, 2, 406, NULL, 'A08843252', '', '2229', '', '', '', '', 2542230.00000000, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, 0, ''),
(357, 'Paradores de Turismo de España, SME, SA', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2017-03-23 10:39:14', 1, NULL, NULL, NULL, NULL, 'José Abascal, 2-4, planta 6', '28003', 'Madrid', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, NULL, 'A79855201', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(361, 'Anticipa', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2017-05-28 13:40:57', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 2, 0, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(364, 'Hotel Izán Trujillo', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2017-07-11 13:06:16', 1, NULL, NULL, NULL, NULL, 'Plaza del Campillo, 1', '10200', 'Trujillo', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 'B82811571', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(366, 'Hotel Cristina', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2017-07-11 16:19:19', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 'A78312469', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(367, 'Hotel Ciudad de Cordoba', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2017-07-11 16:23:23', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 'B14532147', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(368, 'Jamón Jarote, SL', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2017-07-12 16:22:51', 1, NULL, NULL, NULL, NULL, 'Av. del Matadero, 40', '14440', 'Villanueva de Córdoba', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 3, 0, NULL, 'B14320733', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(374, 'Hotel Entredos servicios Hoteleros, SL', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2018-01-23 20:28:35', 1, NULL, NULL, NULL, NULL, NULL, '37770', 'Guijuelo', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 3, 0, NULL, 'B37420940', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(375, 'José Antonio Camacho Martínez', NULL, 1, NULL, NULL, 0, NULL, '2018-04-08 17:27:39', '2018-02-06 16:05:41', 1, NULL, NULL, NULL, NULL, 'Calle Navarra 67, atico 1', '08401', 'Granollers', 0, 4, 0, '+34652642129', NULL, NULL, 'josecamacho85@gmail.com', NULL, 0, 8, 0, NULL, '47703149E', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, 1.000, 1, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(376, 'Copistería TPI', NULL, 1, NULL, NULL, 0, NULL, '2018-03-06 16:09:50', '2018-02-20 12:27:21', 1, NULL, NULL, NULL, NULL, 'María Aguiló, 92', '08005', 'Barcelona', 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 3, 0, NULL, '46758536L', NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 2, NULL, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '20180306173700', NULL, NULL, NULL, NULL),
(377, 'Juan Carlos Alonso Álvarez', 'Notaría Poble Nou', 1, NULL, NULL, 0, NULL, '2018-04-09 13:42:40', '2018-04-06 18:22:26', 1, NULL, 'SU1804-0003', NULL, NULL, 'Av. Diagonal, 117', '08005', 'Barcelona', 524, 4, 0, '933939110', NULL, NULL, 'info@notariapoblenou.com', NULL, NULL, 8, 401, NULL, '35549354W', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, 2, 7, NULL, 1, 0, 1.000, 1, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(378, 'Registro Mercantil de Barcelona', 'Registro Mercantil de Barcelona', 1, NULL, NULL, 0, NULL, '2018-04-09 13:38:07', '2018-04-09 15:58:33', 1, NULL, 'SU1804-0004', NULL, NULL, 'Gran Vía de les Corts Catalanes, 184  1ª', '08038', 'Barcelona', 524, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 5, NULL, NULL, 'E58902883', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, 1.000, 1, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(381, 'Expo Center BMC, SL', 'BMC', 1, NULL, NULL, 0, NULL, '2018-06-01 11:50:21', '2018-06-01 14:20:55', 1, NULL, 'SU1806-0006', NULL, NULL, 'Ronda Maiols, 1', '08192', 'Sant Quirze del Vallés', 524, 4, 0, '937454500', NULL, NULL, 'info@bmc-moda.com', NULL, NULL, 2, 405, NULL, 'B60789922', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(382, 'LAMPISTERIA ILLA SL', 'LAMPISTERIA ILLA SL', 1, NULL, NULL, 0, NULL, '2021-04-14 09:53:18', '2018-06-14 14:27:17', 1, 'CU1806-0018', NULL, NULL, NULL, 'PLAZA MAJOR, 3', '08460', 'SANTA MARIA DE PALAUTORDERA', 524, 4, 2, '938480064', '938479537', NULL, 'illa@lampisteriailla.cat', NULL, NULL, 3, 405, NULL, 'B58672585', '', '4322', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, 2, 1, NULL, NULL, NULL, 1, NULL, 0.000, 0, 0.000, NULL, 0, NULL, 500.00000000, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(383, 'SUSANA ORTEGA PALOMARES', 'ROTULOS LEVANTE', 1, NULL, NULL, 0, NULL, '2018-06-22 15:25:58', '2018-06-22 17:56:38', 1, NULL, 'SU1806-0007', NULL, NULL, 'CALLE FRANCIA 143', '12006', 'Castellón', 528, 4, 0, NULL, NULL, NULL, 'administracion@rotuloslevante.com', NULL, NULL, 3, 401, NULL, '53726557Y', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, 2, 6, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(384, 'Telefónica de España, S.A.U.', 'Movistar', 1, NULL, NULL, 0, NULL, '2018-07-04 09:46:09', '2018-07-04 12:17:59', 1, NULL, 'SU1807-0008', NULL, NULL, 'Gran Vía, 20', '28013', 'Madrid', 544, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 2, 406, NULL, 'A82018474', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(385, 'EXSEL UNDERWRITING AGENCY SL RE29700', '', 1, NULL, NULL, 0, NULL, '2018-07-04 14:56:36', '2018-07-04 17:27:06', 1, NULL, 'SU1807-0009', NULL, NULL, 'CALLE HERMOSILLA, 77', '28001', 'Madrid', 544, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, 405, NULL, 'B61551628', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(386, 'addapta Technological Services SL', 'addapta', 1, NULL, NULL, 0, NULL, '2019-01-23 13:14:09', '2018-07-05 13:02:26', 1, 'CU1807-0019', 'SU1807-0010', NULL, NULL, 'Llull, 321', '08019', 'Barcelona', 524, 4, 2, NULL, NULL, 'www.addapta.com', 'adm.facturacion@addapta.com', NULL, NULL, 3, 405, NULL, 'B65362949', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 1, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, 2, 1, NULL, NULL, NULL, 1, NULL, 0.000, 0, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(387, 'Francisco Javier Ros Cortes', 'RQ SERVEIS', 1, NULL, NULL, 0, NULL, '2018-07-18 09:45:24', '2018-07-17 16:18:29', 1, 'CU1807-0020', NULL, NULL, NULL, 'C/Nou, 41', '08270', 'Navarcles', 524, 4, 0, NULL, NULL, NULL, 'xavier.ros@rqserveis.es', NULL, NULL, 0, 401, NULL, '39333912W', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, 0, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(388, 'Enrique Viola Tarragona', 'Notaría Viola y Córdoba', 1, NULL, NULL, 0, NULL, '2018-07-18 08:11:49', '2018-07-18 10:22:59', 1, NULL, 'SU1807-0011', NULL, NULL, 'Gran Vía de les Corts Catalanes, 613, 3º', '08007', 'Barcelona', 524, 4, 0, NULL, NULL, NULL, 'despacho@notariabcn.com', NULL, NULL, 8, 401, NULL, '37650354K', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, 0, 0.000, 1, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(389, '2byte Soluciones Informáticas S.L.', '', 1, NULL, NULL, 0, NULL, '2018-07-25 13:25:23', '2018-07-25 15:58:00', 1, NULL, 'SU1807-0012', NULL, NULL, 'C/ San Ramón, 5', '46702', 'Gandia', 562, 4, 0, '985675996', NULL, 'www.2byte.es', 'info@2byte.es', NULL, NULL, 3, 405, NULL, 'B98051832', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(390, 'Adding Serveis de Gestió, SLU', 'Microempresa', 1, NULL, NULL, 0, NULL, '2018-10-04 14:01:05', '2018-10-04 16:36:27', 1, NULL, 'SU1810-0013', NULL, NULL, 'Ronda Maiols, 1 Oficina 354', '08192', 'Sant Quirze del Valles', 524, 4, 0, '937252694', NULL, NULL, 'info@adding.cat', NULL, NULL, 3, 405, NULL, 'B66368374', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(391, 'CONTINENTAL ELECTRICA SA', 'Contielec', 1, NULL, NULL, 0, NULL, '2019-01-23 13:13:31', '2018-11-07 16:44:00', 1, 'CU1811-0021', NULL, NULL, NULL, 'Calle Bolivia 218-220', '08018', 'Barcelona', 524, 4, 0, NULL, NULL, 'www.contielec.es', 'admin@contielec.es', NULL, NULL, 3, 406, NULL, 'A58160904', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, 0, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(392, 'Air Time Telecom SAU', 'ACOM', 1, NULL, NULL, 0, NULL, '2023-01-04 18:28:08', '2018-11-27 13:44:49', 1, 'CU1811-0022', NULL, NULL, NULL, 'AVENIDA DE PAU CASALS, 87', '08907', 'Hospitalet de Llobregat', 524, 4, 0, '902200655', NULL, 'www.aaccoomm.net', 'iniciativasparets@aaccoomm.com', NULL, 3, 3, 406, NULL, 'A62078399', '', '', '', '', '', '', NULL, 0, NULL, NULL, 'sepamandate', NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, 2, 1, NULL, NULL, NULL, 1, NULL, 0.000, 0, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(393, 'The Macnificos Store S.L.', '', 1, NULL, NULL, 0, NULL, '2018-11-27 14:24:14', '2018-11-27 15:53:00', 1, NULL, 'SU1811-0014', NULL, NULL, 'Girona, 157-159', '08037', 'Barcelona', 524, 4, 0, '931122033', NULL, 'www.macnificos.com', 'info@macnificos.com', NULL, NULL, 3, 405, NULL, 'B64673155', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, 6, 1, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(394, 'Eptisa Tecnologías de la Información SA', 'Eptisa', 1, NULL, NULL, 0, NULL, '2019-01-23 13:12:46', '2018-12-11 11:32:12', 1, 'CU1812-0023', NULL, NULL, NULL, 'C/ Emilio Muñoz 35-37', '28037', 'Madrid', 544, 4, 2, '915949500', '902011530', 'www.ti.eptisa.com', NULL, NULL, NULL, 3, 406, NULL, 'A79851341', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, 7, 13, NULL, NULL, NULL, 1, NULL, 0.000, 0, 0.000, NULL, 0, NULL, 15000.00000000, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(395, 'NORTHGATE ESPAÑA RENTING FLEXIBLE, SA', 'NORTHGATE', 1, NULL, NULL, 0, NULL, '2018-12-24 15:16:14', '2018-12-24 16:46:23', 1, NULL, 'SU1812-0015', NULL, NULL, 'Calle Isaac Newton, 3', '28906', 'Getafe', 544, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 2, 406, NULL, 'A28659423', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(396, 'Dietas', 'Dietas', 1, NULL, NULL, 0, NULL, '2018-12-24 15:46:04', '2018-12-24 17:16:13', 1, NULL, 'SU1812-0016', NULL, NULL, '', NULL, NULL, 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 100, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(397, 'Material Oficina', 'Material Oficina', 1, NULL, NULL, 0, NULL, '2018-12-24 15:46:49', '2018-12-24 17:16:57', 1, NULL, 'SU1812-0017', NULL, NULL, '', NULL, NULL, 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 100, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(398, 'Saltor Talent SL', 'Saltor', 1, NULL, NULL, 0, NULL, '2019-01-23 13:13:10', '2019-01-23 13:28:13', 1, 'CU1901-0024', NULL, NULL, NULL, 'Calle Llull, 321', '08019', 'Barcelona', 524, 4, 0, NULL, NULL, 'www.saltortalent.com', 'isaltor@saltortalent.com', NULL, NULL, 3, 405, NULL, 'B66714668', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, 0, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(399, 'INICIATIVAS PARETS SLU', '', 1, NULL, NULL, 0, NULL, '2020-12-04 11:38:11', '2019-02-05 14:32:17', 1, 'CU1902-0025', NULL, NULL, NULL, 'Avda. Carrilet, 243, 1ª planta oficna 3A', '08907', 'Hospitalet de Llobregat', 524, 4, 0, NULL, NULL, NULL, 'iniciativasparets@aaccoomm.com', NULL, 3, 3, 405, NULL, 'B08233363', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, 3, 7, NULL, NULL, NULL, 1, NULL, 0.000, 0, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(400, 'BK Service GmbH', '', 1, NULL, NULL, 0, NULL, '2019-02-19 14:42:29', '2019-02-19 15:42:32', 1, NULL, 'SU1902-0018', NULL, NULL, 'Max-Abelshauser-Str. 1', 'D-85653', 'Aying', 0, 5, 0, NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, 'DE282282928', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(401, 'Iussum Soluciones SL', '', 1, NULL, NULL, 0, NULL, '2019-03-01 14:50:05', '2019-03-01 15:50:07', 1, NULL, 'SU1903-0019', NULL, NULL, 'AV. JUAN CARLOS I, Nº 3 - 7º PISO - PTA. 11', '46900', 'Torrent', 562, 4, 0, NULL, NULL, NULL, 'info@circulantis.com', NULL, NULL, 3, 405, NULL, 'B97991061', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(402, 'Vallés Pont, SL - MRW', 'MRW', 1, NULL, NULL, 0, NULL, '2019-04-10 11:27:48', '2019-04-10 13:28:00', 1, NULL, 'SU1904-0020', NULL, NULL, '', NULL, NULL, 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 'B60967858', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, '');
INSERT INTO `b67182907_societe` (`rowid`, `nom`, `name_alias`, `entity`, `ref_ext`, `ref_int`, `statut`, `parent`, `tms`, `datec`, `status`, `code_client`, `code_fournisseur`, `code_compta`, `code_compta_fournisseur`, `address`, `zip`, `town`, `fk_departement`, `fk_pays`, `fk_account`, `phone`, `fax`, `url`, `email`, `skype`, `fk_effectif`, `fk_typent`, `fk_forme_juridique`, `fk_currency`, `siren`, `siret`, `ape`, `idprof4`, `idprof5`, `idprof6`, `tva_intra`, `capital`, `fk_stcomm`, `note_private`, `note_public`, `model_pdf`, `prefix_comm`, `client`, `fournisseur`, `supplier_account`, `fk_prospectlevel`, `fk_incoterms`, `location_incoterms`, `customer_bad`, `customer_rate`, `supplier_rate`, `fk_user_creat`, `fk_user_modif`, `remise_client`, `mode_reglement`, `cond_reglement`, `mode_reglement_supplier`, `cond_reglement_supplier`, `fk_shipping_method`, `tva_assuj`, `localtax1_assuj`, `localtax1_value`, `localtax2_assuj`, `localtax2_value`, `barcode`, `fk_barcode_type`, `price_level`, `outstanding_limit`, `default_lang`, `logo`, `canvas`, `import_key`, `webservices_url`, `webservices_key`, `fk_multicurrency`, `multicurrency_code`) VALUES
(403, 'Odissey Loira, SL - IBIS', 'IBIS', 1, NULL, NULL, 0, NULL, '2019-04-10 11:34:12', '2019-04-10 13:34:24', 1, NULL, 'SU1904-0021', NULL, NULL, '', NULL, NULL, 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 'B85619278', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(404, 'Dominion', '', 1, NULL, NULL, 0, NULL, '2019-05-27 08:07:06', '2019-05-27 10:07:49', 1, 'CU1905-0026', NULL, NULL, NULL, '', NULL, NULL, 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 2, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 2, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(405, 'GROUPE LDLC ESPAÑA, SL', 'LDLC', 1, NULL, NULL, 0, NULL, '2019-06-18 16:34:26', '2019-06-18 18:35:23', 1, NULL, 'SU1906-0022', NULL, NULL, 'Paseo de la Castellana 144-146', '28046', 'Madrid', 544, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 3, 405, NULL, 'B88071899', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(406, 'Amazon EU S.à r.l., Sucursal en España', 'Amazon', 1, NULL, NULL, 0, NULL, '2019-07-15 09:32:50', '2019-07-15 11:36:40', 1, NULL, 'SU1907-0023', NULL, NULL, 'Calle de Ramírez de Prado 5', '28045', 'Madrid', 544, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 2, NULL, NULL, 'W0184081H', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(407, 'Aparthotel Tribunal', '', 1, NULL, NULL, 0, NULL, '2019-07-15 11:27:54', '2019-07-15 13:31:43', 1, NULL, 'SU1907-0024', NULL, NULL, 'San Vicente Ferrer, 1', '08004', 'Madrid', 544, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, '78138187', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(408, 'Xavier Sans', '', 1, NULL, NULL, 0, NULL, '2019-09-05 11:49:02', '2019-08-06 17:04:17', 1, 'CU1908-0027', 'SU1908-0025', NULL, NULL, 'Maria Aguiló, 96', '08005', 'Barcelona', 524, 4, 0, NULL, NULL, NULL, 'xavisans@xavisans.com', NULL, NULL, 8, 401, NULL, '46044431H', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 1, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, 0, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(409, 'Friselva S.A.', '', 1, NULL, NULL, 0, NULL, '2019-09-30 06:56:08', '2019-09-30 09:06:13', 1, 'CU1909-0028', NULL, NULL, NULL, '', NULL, NULL, 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 2, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 2, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(410, 'Ezcaray Internacional', '', 1, NULL, NULL, 0, NULL, '2019-10-02 11:59:04', '2019-10-02 14:09:20', 1, 'CU1910-0029', NULL, NULL, NULL, '', NULL, NULL, 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 3, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 2, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(411, 'Dinahosting S.L', 'Dinahosting', 1, NULL, NULL, 0, NULL, '2019-11-14 12:52:20', '2019-11-14 14:06:06', 1, NULL, 'SU1911-0026', NULL, NULL, 'Calle Salvadas, 41 bajo', '15705', 'Santiago de Compostela', 531, 4, 0, '900854000', NULL, NULL, NULL, NULL, NULL, 3, 405, NULL, 'B15805419', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(412, 'Privalia Venta Directa, SA', 'Privalia', 1, NULL, NULL, 0, NULL, '2020-02-18 09:16:04', '2020-02-18 10:16:38', 1, NULL, 'SU2002-0027', NULL, NULL, 'Calle Llull, 113-119', '08005', 'Barcelona', 524, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 'A64080781', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(413, 'Addapta Trace Technologies S.L.', '', 1, NULL, NULL, 0, NULL, '2020-10-19 21:57:36', '2020-10-19 23:56:57', 1, 'CU2010-0031', NULL, NULL, NULL, '', NULL, NULL, 0, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 'B67594010', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 2, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(414, 'JOAN DIAZ ABAD', 'JOAN DIAZ ABAD', 1, NULL, NULL, 0, NULL, '2020-10-26 12:02:19', '2020-10-26 13:01:39', 1, 'CU2010-0032', NULL, NULL, NULL, 'ROCAFORT 87 2º 3ª', '08015', 'Barcelona', 524, 4, 0, NULL, NULL, NULL, 'joandabad@hotmail.com', NULL, NULL, 8, 401, NULL, '78060687K', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(415, 'SupliServicios S.A.', '', 1, NULL, NULL, 0, NULL, '2021-01-24 09:50:41', '2021-01-24 10:50:41', 1, 'CU2101-0033', NULL, NULL, NULL, 'Casa Matriz, San José Costa Rica 75 este Piscinas Sylvia Poll, Edificio Supliservicios', NULL, NULL, 0, 75, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 2, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 2, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(416, 'FOODRATION4ALL, SL', '', 1, NULL, NULL, 0, NULL, '2021-11-29 09:43:38', '2021-11-29 10:43:38', 1, 'CU2111-0034', NULL, NULL, NULL, 'Av. Sos Baynat – UJI – Ed.Espaitec', '12071', 'Castellón de la Plana', 528, 4, 0, NULL, NULL, NULL, 'direccion@foodration4all.com', NULL, NULL, 3, 405, NULL, 'B44520369', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(417, 'Mega Fortris Ibérica S.L.', '', 1, NULL, NULL, 0, NULL, '2022-01-11 11:00:35', '2021-12-28 10:35:26', 1, 'CU2112-0035', NULL, NULL, NULL, 'Polígono Industrial Santa Rita, Carrer Òptica, Nave 3', '08755', 'Castellbisbal', 524, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 'B42930610', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 2, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(418, 'VAGSPEED MOTORSPORT TECHNOLOGY SL', 'VAGSPEED BARCELONA', 1, NULL, NULL, 0, NULL, '2022-04-01 10:56:54', '2022-04-01 12:22:48', 1, 'CU2204-0036', NULL, NULL, NULL, 'AVGDA CARRILET, NUM. 243', '08907', 'Hospitalet de Llobregat', 524, 4, 0, NULL, NULL, NULL, 'iniciativasparets@aaccoomm.com', NULL, NULL, 3, 405, NULL, 'B67406884', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, 0, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(419, 'NORTCONSULTING SOLUCIONES, S.L.', '', 1, NULL, NULL, 0, NULL, '2022-06-09 06:00:09', '2022-06-09 07:59:32', 1, 'CU2206-0037', NULL, NULL, NULL, 'Calle Albasanz, s/n, portal 75, planta 1, puerta C', '28037', 'Madrid', 544, 4, 0, NULL, NULL, NULL, 'noemi.alvarez@nortconsulting.com', NULL, NULL, 0, 405, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 2, 2, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(420, 'CENTRALES NUCLEARES ALMARAZ TRILLO, AIE', 'CNAT', 1, NULL, NULL, 0, NULL, '2022-11-03 09:27:04', '2022-11-03 10:27:04', 1, 'CU2211-0038', NULL, NULL, NULL, 'Avenida de Manoteras, 46-bis. Edificio Delta Nova 6 - Planta 5ª', '28050', 'Madrid', 544, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, 413, NULL, 'V-8248362', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, '');

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

--
-- Estructura de tabla para la tabla `b67182907_societe_address`
--

CREATE TABLE `b67182907_societe_address` (
  `rowid` int NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `label` varchar(30) DEFAULT NULL,
  `fk_soc` int DEFAULT '0',
  `name` varchar(60) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(10) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_pays` int DEFAULT '0',
  `phone` varchar(20) DEFAULT NULL,
  `fax` varchar(20) DEFAULT NULL,
  `note` text,
  `fk_user_creat` int DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_societe_commerciaux`
--

CREATE TABLE `b67182907_societe_commerciaux` (
  `rowid` int NOT NULL,
  `fk_soc` int DEFAULT NULL,
  `fk_user` int DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Volcado de datos para la tabla `b67182907_societe_commerciaux`
--

INSERT INTO `b67182907_societe_commerciaux` (`rowid`, `fk_soc`, `fk_user`, `import_key`) VALUES
(3, 381, 1, NULL),
(4, 382, 3, NULL),
(5, 383, 1, NULL),
(6, 384, 1, NULL),
(7, 385, 1, NULL),
(8, 386, 1, NULL),
(9, 387, 1, NULL),
(10, 388, 1, NULL),
(11, 389, 1, NULL),
(12, 390, 1, NULL),
(13, 391, 1, NULL),
(14, 395, 1, NULL),
(15, 396, 1, NULL),
(16, 397, 1, NULL),
(17, 398, 1, NULL),
(18, 399, 1, NULL),
(19, 400, 1, NULL),
(20, 401, 1, NULL),
(21, 402, 1, NULL),
(22, 403, 1, NULL),
(23, 404, 2, NULL),
(24, 405, 1, NULL),
(25, 406, 1, NULL),
(26, 407, 1, NULL),
(27, 408, 1, NULL),
(28, 409, 2, NULL),
(29, 410, 2, NULL),
(30, 411, 1, NULL),
(31, 412, 1, NULL),
(32, 413, 2, NULL),
(33, 414, 1, NULL),
(34, 415, 2, NULL),
(35, 416, 1, NULL),
(36, 417, 2, NULL),
(37, 418, 1, NULL),
(38, 419, 2, NULL),
(39, 420, 1, NULL);

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

--
-- Estructura de tabla para la tabla `b67182907_societe_extrafields`
--

CREATE TABLE `b67182907_societe_extrafields` (
  `rowid` int NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_societe_log`
--

CREATE TABLE `b67182907_societe_log` (
  `id` int NOT NULL,
  `datel` datetime DEFAULT NULL,
  `fk_soc` int DEFAULT NULL,
  `fk_statut` int DEFAULT NULL,
  `fk_user` int DEFAULT NULL,
  `author` varchar(30) DEFAULT NULL,
  `label` varchar(128) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_societe_prices`
--

CREATE TABLE `b67182907_societe_prices` (
  `rowid` int NOT NULL,
  `fk_soc` int DEFAULT '0',
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `fk_user_author` int DEFAULT NULL,
  `price_level` tinyint DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_societe_remise`
--

CREATE TABLE `b67182907_societe_remise` (
  `rowid` int NOT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `fk_soc` int NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `fk_user_author` int DEFAULT NULL,
  `remise_client` double(6,3) NOT NULL DEFAULT '0.000',
  `note` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_societe_remise_except`
--

CREATE TABLE `b67182907_societe_remise_except` (
  `rowid` int NOT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `fk_soc` int NOT NULL,
  `datec` datetime DEFAULT NULL,
  `amount_ht` double(24,8) NOT NULL,
  `amount_tva` double(24,8) NOT NULL DEFAULT '0.00000000',
  `amount_ttc` double(24,8) NOT NULL DEFAULT '0.00000000',
  `tva_tx` double(6,3) NOT NULL DEFAULT '0.000',
  `fk_user` int NOT NULL,
  `fk_facture_line` int DEFAULT NULL,
  `fk_facture` int DEFAULT NULL,
  `fk_facture_source` int DEFAULT NULL,
  `fk_invoice_supplier_line` int DEFAULT NULL,
  `fk_invoice_supplier` int DEFAULT NULL,
  `fk_invoice_supplier_source` int DEFAULT NULL,
  `description` text NOT NULL,
  `multicurrency_amount_ht` double(24,8) NOT NULL DEFAULT '0.00000000',
  `multicurrency_amount_tva` double(24,8) NOT NULL DEFAULT '0.00000000',
  `multicurrency_amount_ttc` double(24,8) NOT NULL DEFAULT '0.00000000'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_societe_rib`
--

CREATE TABLE `b67182907_societe_rib` (
  `rowid` int NOT NULL,
  `fk_soc` int NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `label` varchar(30) DEFAULT NULL,
  `bank` varchar(255) DEFAULT NULL,
  `code_banque` varchar(128) DEFAULT NULL,
  `code_guichet` varchar(6) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `cle_rib` varchar(5) DEFAULT NULL,
  `bic` varchar(20) DEFAULT NULL,
  `iban_prefix` varchar(34) DEFAULT NULL,
  `domiciliation` varchar(255) DEFAULT NULL,
  `proprio` varchar(60) DEFAULT NULL,
  `owner_address` varchar(255) DEFAULT NULL,
  `default_rib` smallint NOT NULL DEFAULT '0',
  `rum` varchar(32) DEFAULT NULL,
  `date_rum` date DEFAULT NULL,
  `frstrecur` varchar(16) DEFAULT 'FRST',
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Volcado de datos para la tabla `b67182907_societe_rib`
--

INSERT INTO `b67182907_societe_rib` (`rowid`, `fk_soc`, `datec`, `tms`, `label`, `bank`, `code_banque`, `code_guichet`, `number`, `cle_rib`, `bic`, `iban_prefix`, `domiciliation`, `proprio`, `owner_address`, `default_rib`, `rum`, `date_rum`, `frstrecur`, `import_key`) VALUES
(1, 189, '2018-03-06 18:34:52', '2018-03-06 17:07:41', 'Caixa Sabadell - 8527', 'Caixa Sabadell', '2059', '0240', '0001028527', '54', 'BBVAESMMXXX', 'ES42 2059 0240 5400 0102 8527', '', 'Isabel Rodríguez Fernández', '', 1, 'RUM-019-1-1520357692', '2018-03-06', 'RECUR', NULL),
(2, 193, '2018-03-21 13:18:44', '2018-03-21 11:50:59', '9665', 'Banco Sabadell Atlántico', '0081', '0060', '0001559665', '91', 'BSABESBBXXX', 'ES19 0081 0060 9100 0155 9665', '', 'Supremo Coffee Systems, S.L.', '', 1, 'RUM-061-2-1521634724', '2018-03-21', 'RECUR', NULL),
(3, 299, '2018-03-21 17:19:18', '2018-03-21 15:51:32', 'BBVA - 1223', 'BBVA', '0182', '4890', '0201531223', '07', 'BBVAESMMXXX', 'ES93 0182 4890 0702 0153 1223', '', 'YHERLA, S.L.', '', 1, 'RUM-CU1803-0008-3-1521649158', '2018-03-21', 'RECUR', NULL),
(4, 387, '2018-07-17 16:28:24', '2018-07-17 13:56:04', 'BBVA-3553', 'BBVA', '0182', '4143', '0201703553', '21', 'BBVAESMMXXX', 'ES25 0182 4143 2102 0170 3553', '', '', '', 1, 'RUM-CU1807-0020-4-1531837704', '2018-07-17', 'RECUR', NULL),
(5, 399, '2019-02-05 15:20:15', '2019-02-05 14:20:17', 'BS-5841', 'Banco Sabadell Atlántico', '0081', '0603', '0001365841', '07', 'BSABESBB', 'ES66 0081 0603 0700 0136 5841', '', 'INICIATIVAS PARETS SLU', '', 1, 'RUM-CU1902-0025-5-1549376415', '2019-02-05', 'RECUR', NULL),
(6, 392, '2023-01-04 19:27:46', '2023-01-04 18:27:44', 'CC TargoBank', 'Targo Bank', '0216', '1435', '8700137270', '81', 'CMCIESMM', 'ES04 0216 1435 8187 0013 7270', '', '', '', 1, 'RUM-CU1811-0022-6-1672856866', '2023-01-04', 'RECUR', NULL);

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

--
-- Estructura de tabla para la tabla `b67182907_socpeople`
--

CREATE TABLE `b67182907_socpeople` (
  `rowid` int NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_soc` int DEFAULT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `ref_ext` varchar(255) DEFAULT NULL,
  `civility` varchar(6) DEFAULT NULL,
  `lastname` varchar(50) DEFAULT NULL,
  `firstname` varchar(50) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(25) DEFAULT NULL,
  `town` varchar(255) DEFAULT NULL,
  `fk_departement` int DEFAULT NULL,
  `fk_pays` int DEFAULT '0',
  `birthday` date DEFAULT NULL,
  `poste` varchar(80) DEFAULT NULL,
  `phone` varchar(30) DEFAULT NULL,
  `phone_perso` varchar(30) DEFAULT NULL,
  `phone_mobile` varchar(30) DEFAULT NULL,
  `fax` varchar(30) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `jabberid` varchar(255) DEFAULT NULL,
  `skype` varchar(255) DEFAULT NULL,
  `photo` varchar(255) DEFAULT NULL,
  `no_email` smallint NOT NULL DEFAULT '0',
  `priv` smallint NOT NULL DEFAULT '0',
  `fk_user_creat` int DEFAULT '0',
  `fk_user_modif` int DEFAULT NULL,
  `note_private` text,
  `note_public` text,
  `default_lang` varchar(6) DEFAULT NULL,
  `canvas` varchar(32) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `statut` tinyint NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Volcado de datos para la tabla `b67182907_socpeople`
--

INSERT INTO `b67182907_socpeople` (`rowid`, `datec`, `tms`, `fk_soc`, `entity`, `ref_ext`, `civility`, `lastname`, `firstname`, `address`, `zip`, `town`, `fk_departement`, `fk_pays`, `birthday`, `poste`, `phone`, `phone_perso`, `phone_mobile`, `fax`, `email`, `jabberid`, `skype`, `photo`, `no_email`, `priv`, `fk_user_creat`, `fk_user_modif`, `note_private`, `note_public`, `default_lang`, `canvas`, `import_key`, `statut`) VALUES
(69, '2015-03-12 14:17:28', '2018-03-06 16:30:19', 189, 1, NULL, 'MME', 'Rodríguez Fernández', 'Isabel', 'C/. Sant Josep, 59 Baixos', '08520', 'Les Franqueses del Vallés', NULL, 4, NULL, NULL, NULL, NULL, '607404142', NULL, 'azor-serveis@azor-serveis.com', NULL, NULL, NULL, 0, 0, 2, NULL, NULL, NULL, NULL, NULL, '20180306175729', 1),
(83, '2015-09-17 10:16:50', '2018-03-06 16:30:19', 194, 1, NULL, NULL, 'Zafra', 'Cristina', NULL, NULL, NULL, NULL, 4, NULL, 'Responsable de calidad', NULL, NULL, NULL, NULL, 'czafra@angrup.com', NULL, NULL, NULL, 0, 0, 2, NULL, NULL, NULL, NULL, NULL, '20180306175729', 1),
(86, '2016-03-08 12:30:18', '2018-03-06 16:30:19', 277, 1, NULL, 'MME', 'Elisabet Gutiérrez', NULL, NULL, NULL, NULL, NULL, 4, NULL, NULL, NULL, NULL, NULL, NULL, 'elisabet.gutierrez@generali.com', NULL, NULL, NULL, 0, 0, 2, NULL, NULL, NULL, NULL, NULL, '20180306175729', 1),
(87, '2016-03-10 20:08:37', '2018-03-06 16:30:19', 277, 1, NULL, NULL, 'Noel Rojo', NULL, NULL, NULL, NULL, NULL, 4, NULL, NULL, NULL, NULL, NULL, NULL, 'noel.rojo@generali.com', NULL, NULL, NULL, 0, 0, 2, NULL, NULL, NULL, NULL, NULL, '20180306175729', 1),
(88, '2016-03-10 20:09:25', '2018-03-06 16:30:19', 277, 1, NULL, NULL, 'Pau Gres', NULL, NULL, NULL, NULL, NULL, 4, NULL, NULL, NULL, NULL, NULL, NULL, 'pau.gres@generali.com', NULL, NULL, NULL, 0, 0, 2, NULL, NULL, NULL, NULL, NULL, '20180306175729', 1),
(89, '2016-04-06 11:17:10', '2018-03-06 16:30:19', 277, 1, NULL, NULL, 'Facturas', NULL, NULL, NULL, NULL, NULL, 4, NULL, NULL, NULL, NULL, NULL, NULL, 'facturas.es@generali.com', NULL, NULL, NULL, 0, 0, 2, NULL, NULL, NULL, NULL, NULL, '20180306175729', 1),
(90, '2016-05-10 13:41:11', '2018-03-06 16:30:19', 196, 1, NULL, 'MLE', 'Palacin', 'Arantxa', NULL, NULL, NULL, NULL, 4, NULL, NULL, '93 264 26 13', NULL, NULL, NULL, 'A.Palacin@kawasaki.es', NULL, NULL, NULL, 0, 0, 2, NULL, NULL, NULL, NULL, NULL, '20180306175729', 1),
(91, '2016-05-12 12:42:19', '2018-03-06 16:30:19', 196, 1, NULL, 'MR', 'Regalón', 'Antonio', NULL, NULL, NULL, NULL, 4, NULL, NULL, '932642600', NULL, NULL, NULL, 'A.Regalon@kawasaki.es', NULL, NULL, NULL, 0, 0, 2, NULL, NULL, NULL, NULL, NULL, '20180306175729', 1),
(92, '2016-05-23 12:05:11', '2018-03-06 16:30:19', 277, 1, NULL, 'MLE', 'DI NAPOLI PINILLOS', 'GIULIA', NULL, NULL, NULL, NULL, 4, NULL, 'Administración', NULL, NULL, NULL, NULL, 'giulia.dinapoli@generali.com', NULL, NULL, NULL, 0, 0, 2, NULL, NULL, NULL, NULL, NULL, '20180306175729', 1),
(94, '2016-11-24 20:22:04', '2018-03-06 16:30:19', 336, 1, NULL, NULL, 'Administración', NULL, NULL, NULL, NULL, NULL, 4, NULL, NULL, NULL, NULL, NULL, NULL, 'timelogistic@festina.com', NULL, NULL, NULL, 0, 0, 2, NULL, NULL, NULL, NULL, NULL, '20180306175729', 1),
(96, '2017-03-16 18:01:36', '2019-04-05 11:46:25', 341, 1, NULL, 'MR', 'Delgado Amor', 'Borja', '', '', '', NULL, 4, NULL, '', '', '', '', '', 'bdelgado@anovo.es', '', '', '', 0, 0, 2, 2, '', '', NULL, NULL, '20180306175729', 1),
(97, '2017-03-31 14:13:39', '2019-04-05 11:46:36', 341, 1, NULL, 'MME', 'Dobarro', 'Mercedes', '', '', '', NULL, 4, NULL, 'Administración', '', '', '', '', 'mdobarro@anovo.es', '', '', '', 0, 0, 2, 2, '', '', NULL, NULL, '20180306175729', 1),
(100, '2017-11-23 18:30:30', '2018-03-06 16:30:19', 355, 1, NULL, 'MR', 'de Francisco', 'Ramón', NULL, NULL, NULL, NULL, 4, NULL, NULL, NULL, NULL, NULL, NULL, 'ramondefrancisco@precintia.com', NULL, NULL, NULL, 0, 0, 2, NULL, NULL, NULL, NULL, NULL, '20180306175729', 1),
(102, '2018-01-04 12:52:58', '2018-03-06 16:30:19', 355, 1, NULL, NULL, 'Valle', 'Joaquin', 'Madrid', NULL, NULL, NULL, 4, NULL, 'Comercial', NULL, NULL, '607963620', NULL, 'joaquin.valle@precintia.com', NULL, NULL, NULL, 0, 0, 2, NULL, NULL, NULL, NULL, NULL, '20180306175729', 1),
(104, '2019-02-11 11:42:35', '2023-01-03 14:18:04', 392, 1, '', 'MLE', 'Gutiérrez', 'Ana Belén', '', '', '', NULL, 4, NULL, 'Contable', '', '', '', '', 'agutierrez@aaccoomm.com', '', '', '', 0, 0, 1, 1, '', '', NULL, NULL, NULL, 1),
(105, '2019-02-28 13:25:02', '2019-04-05 11:46:45', 341, 1, '', 'MR', 'Revilla', 'Alejandro', '', '', '', NULL, 4, NULL, '', '', '', '686717231', '', 'arevilla@anovo.es', '', '', '', 0, 0, 2, 2, '', '', NULL, NULL, NULL, 1),
(106, '2019-03-21 16:20:02', '2020-01-23 13:51:24', 394, 1, '', 'MR', 'Cuadrado', 'Raúl', '', '', '', NULL, 4, NULL, '', '', '', '', '', 'raul.cuadrado@ti.eptisa.com', '', '', NULL, 0, 0, 1, 1, '', '', NULL, NULL, NULL, 0),
(107, '2019-05-02 10:51:57', '2019-05-02 08:51:31', 341, 1, '', '', 'Ramos Conejo', 'Jose Antonio', '', '', '', NULL, 4, NULL, '', '', '', '', '', 'jarc@anovo.es', '', '', NULL, 0, 0, 2, 2, '', '', NULL, NULL, NULL, 1),
(108, '2019-05-17 14:32:53', '2019-05-17 12:32:18', 394, 1, '', '', 'Perez', 'Jose Carlos', '', '', '', NULL, 4, NULL, 'Jefe de proyectos', '', '', '', '', 'josecarlos.perez@eptisati.com', '', '', NULL, 0, 0, 2, 2, '', '', NULL, NULL, NULL, 1),
(109, '2020-01-23 14:51:42', '2020-01-23 13:51:09', 394, 1, '', 'MR', 'José Carlos Pérez', '', '', '', '', NULL, 4, NULL, '', '', '', '', '', 'josecarlos.perez@ti.eptisa.com', '', '', NULL, 0, 0, 1, 1, '', '', NULL, NULL, NULL, 1),
(110, '2020-09-25 09:30:14', '2020-09-25 07:30:48', 355, 1, '', '', 'Lopez', 'Isabel', '', '', '', NULL, 4, NULL, '', '', '', '', '', 'isabel.lopez@precintia.com', '', '', NULL, 0, 0, 2, 2, '', '', NULL, NULL, NULL, 1),
(111, '2020-09-25 09:33:04', '2020-09-25 07:33:38', 355, 1, '', '', 'Baucells', 'Jaime', '', '', '', NULL, 4, NULL, '', '', '', '', '', 'jaime.baucells@precintia.com', '', '', NULL, 0, 0, 2, 2, '', '', NULL, NULL, NULL, 1),
(112, '2020-09-25 09:33:49', '2020-09-25 07:34:22', 355, 1, '', '', 'Baucells', 'Elisabeth', '', '', '', NULL, 4, NULL, '', '', '', '', '', 'elisabeth.baucells@precintia.com', '', '', NULL, 0, 0, 2, 2, '', '', NULL, NULL, NULL, 1),
(113, '2021-01-08 11:12:26', '2021-01-08 10:12:26', 355, 1, '', '', 'Finanzas', '', '', '', '', NULL, 4, NULL, '', '', '', '', '', 'finanzas@precintia.com', '', '', NULL, 0, 0, 2, 2, '', '', NULL, NULL, NULL, 1),
(114, '2021-10-25 10:47:08', '2021-10-25 08:47:08', 394, 1, '', '', 'Linares', 'Gonzalo', '', '', '', NULL, 4, NULL, '', '', '', '', '', 'gonzalo.linares@ti.eptisa.com', '', '', NULL, 0, 0, 1, 1, '', '', NULL, NULL, NULL, 1),
(115, '2021-10-25 10:48:03', '2021-10-25 08:48:03', 394, 1, '', '', 'Cañadas', 'Eduardo', '', '', '', NULL, 4, NULL, '', '', '', '', '', 'ecanadas@ti.eptisa.com', '', '', NULL, 0, 0, 1, 1, '', '', NULL, NULL, NULL, 1),
(116, '2022-01-25 12:28:00', '2022-01-25 11:33:42', 394, 1, '', '', 'Torralba', 'Inés', '', '', '', NULL, 4, NULL, '', '', '', '', '', 'ines.torralba@ti.eptisa.com', '', '', '', 0, 0, 1, 1, '', '', NULL, NULL, NULL, 1),
(117, '2022-01-25 12:28:47', '2022-01-25 11:33:25', 394, 1, '', '', 'Regalado', 'Miguel', '', '', '', NULL, 4, NULL, '', '', '', '', '', 'miguel.regalado@ti.eptisa.com', '', '', '', 0, 0, 1, 1, '', '', NULL, NULL, NULL, 1),
(118, '2022-04-01 12:28:16', '2022-04-01 10:28:19', 418, 1, '', 'MLE', 'Ana Belén Gutiérrez', '', '', '', '', NULL, 4, NULL, 'Administración', '', '', '', '', 'agutierrez@aaccoomm.com', '', '', NULL, 0, 0, 1, 1, '', '', NULL, NULL, NULL, 1),
(119, '2022-09-05 20:00:40', '2022-09-05 18:00:40', 417, 1, '', '', 'Baucells', 'Miriam', '', '', '', NULL, 4, NULL, '', '', '', '', '', 'miriam.baucells@megafortris.com', '', '', NULL, 0, 0, 2, 2, '', '', NULL, NULL, NULL, 1),
(120, '2022-09-05 20:01:33', '2022-09-05 18:01:33', 417, 1, '', '', 'Baucells', 'Jaime', '', '', '', NULL, 4, NULL, '', '', '', '', '', 'Jaime.baucells@megafortris.com', '', '', NULL, 0, 0, 2, 2, '', '', NULL, NULL, NULL, 1),
(121, '2022-12-05 08:23:41', '2022-12-05 07:23:40', 420, 1, '', '', 'Perez Tiemblo', 'Javier', '', '', '', NULL, 4, NULL, '', '', '', '', '', 'jpt@cnat.es', '', '', NULL, 0, 0, 2, 2, '', '', NULL, NULL, NULL, 1),
(122, '2022-12-05 08:24:38', '2022-12-05 07:24:37', 420, 1, '', '', 'Administración', '', '', '', '', NULL, 4, NULL, '', '', '', '', '', 'facturasaie@cnat.es', '', '', NULL, 0, 0, 2, 2, '', '', NULL, NULL, NULL, 1);

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

--
-- Estructura de tabla para la tabla `b67182907_socpeople_extrafields`
--

CREATE TABLE `b67182907_socpeople_extrafields` (
  `rowid` int NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_stock_mouvement`
--

CREATE TABLE `b67182907_stock_mouvement` (
  `rowid` int NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datem` datetime DEFAULT NULL,
  `fk_product` int NOT NULL,
  `batch` varchar(30) DEFAULT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL,
  `fk_entrepot` int NOT NULL,
  `value` double DEFAULT NULL,
  `price` double(24,8) DEFAULT '0.00000000',
  `type_mouvement` smallint DEFAULT NULL,
  `fk_user_author` int DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `inventorycode` varchar(128) DEFAULT NULL,
  `fk_origin` int DEFAULT NULL,
  `origintype` varchar(32) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_subscription`
--

CREATE TABLE `b67182907_subscription` (
  `rowid` int NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `fk_adherent` int DEFAULT NULL,
  `dateadh` datetime DEFAULT NULL,
  `datef` date DEFAULT NULL,
  `subscription` double(24,8) DEFAULT NULL,
  `fk_bank` int DEFAULT NULL,
  `note` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_supplier_proposal`
--

CREATE TABLE `b67182907_supplier_proposal` (
  `rowid` int NOT NULL,
  `ref` varchar(30) NOT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `fk_soc` int DEFAULT NULL,
  `fk_projet` int 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 DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `fk_user_valid` int DEFAULT NULL,
  `fk_user_cloture` int DEFAULT NULL,
  `fk_statut` smallint 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',
  `tva` double(24,8) DEFAULT '0.00000000',
  `localtax1` double(24,8) DEFAULT '0.00000000',
  `localtax2` double(24,8) DEFAULT '0.00000000',
  `total` double(24,8) DEFAULT '0.00000000',
  `fk_account` int DEFAULT NULL,
  `fk_currency` varchar(3) DEFAULT NULL,
  `fk_cond_reglement` int DEFAULT NULL,
  `fk_mode_reglement` int DEFAULT NULL,
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `date_livraison` date DEFAULT NULL,
  `fk_shipping_method` int DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int DEFAULT NULL,
  `multicurrency_code` varchar(255) 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=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_supplier_proposaldet`
--

CREATE TABLE `b67182907_supplier_proposaldet` (
  `rowid` int NOT NULL,
  `fk_supplier_proposal` int NOT NULL,
  `fk_parent_line` int DEFAULT NULL,
  `fk_product` int DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text,
  `fk_remise_except` int DEFAULT NULL,
  `vat_src_code` varchar(10) DEFAULT '',
  `tva_tx` double(6,3) DEFAULT '0.000',
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) 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 DEFAULT '0',
  `info_bits` int DEFAULT '0',
  `buy_price_ht` double(24,8) DEFAULT '0.00000000',
  `fk_product_fournisseur_price` int DEFAULT NULL,
  `special_code` int DEFAULT '0',
  `rang` int DEFAULT '0',
  `ref_fourn` varchar(30) DEFAULT NULL,
  `fk_multicurrency` int DEFAULT NULL,
  `multicurrency_code` varchar(255) 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 DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_supplier_proposaldet_extrafields`
--

CREATE TABLE `b67182907_supplier_proposaldet_extrafields` (
  `rowid` int NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_supplier_proposal_extrafields`
--

CREATE TABLE `b67182907_supplier_proposal_extrafields` (
  `rowid` int NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_tva`
--

CREATE TABLE `b67182907_tva` (
  `rowid` int 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 DEFAULT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `note` text,
  `fk_bank` int DEFAULT NULL,
  `fk_user_creat` int DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Volcado de datos para la tabla `b67182907_tva`
--

INSERT INTO `b67182907_tva` (`rowid`, `tms`, `datec`, `datep`, `datev`, `amount`, `fk_typepayment`, `num_payment`, `label`, `entity`, `note`, `fk_bank`, `fk_user_creat`, `fk_user_modif`, `import_key`) VALUES
(1, '2018-12-24 17:11:40', '2018-12-24 18:41:49', '2018-12-20', '2018-09-30', 1496.19000000, 3, '', 'Pago IVA 3T2018', 1, NULL, 159, 1, NULL, NULL);

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

--
-- Estructura de tabla para la tabla `b67182907_user`
--

CREATE TABLE `b67182907_user` (
  `rowid` int NOT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `ref_ext` varchar(50) DEFAULT NULL,
  `ref_int` varchar(50) DEFAULT NULL,
  `employee` tinyint DEFAULT '1',
  `fk_establishment` int DEFAULT '0',
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_creat` int DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `login` varchar(50) NOT NULL,
  `pass_encoding` varchar(24) DEFAULT NULL,
  `pass` varchar(128) DEFAULT NULL,
  `pass_crypted` varchar(128) DEFAULT NULL,
  `pass_temp` varchar(128) DEFAULT NULL,
  `api_key` varchar(128) DEFAULT NULL,
  `gender` varchar(10) DEFAULT NULL,
  `civility` varchar(6) DEFAULT NULL,
  `lastname` varchar(50) DEFAULT NULL,
  `firstname` varchar(50) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(25) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_state` int DEFAULT '0',
  `fk_country` int DEFAULT '0',
  `birth` date DEFAULT NULL,
  `job` varchar(128) DEFAULT NULL,
  `skype` varchar(255) DEFAULT NULL,
  `office_phone` varchar(20) DEFAULT NULL,
  `office_fax` varchar(20) DEFAULT NULL,
  `user_mobile` varchar(20) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `signature` text,
  `admin` smallint DEFAULT '0',
  `module_comm` smallint DEFAULT '1',
  `module_compta` smallint DEFAULT '1',
  `fk_soc` int DEFAULT NULL,
  `fk_socpeople` int DEFAULT NULL,
  `fk_member` int DEFAULT NULL,
  `fk_user` int DEFAULT NULL,
  `note_public` text,
  `note` text,
  `model_pdf` varchar(255) DEFAULT NULL,
  `datelastlogin` datetime DEFAULT NULL,
  `datepreviouslogin` datetime DEFAULT NULL,
  `egroupware_id` int DEFAULT NULL,
  `ldap_sid` varchar(255) DEFAULT NULL,
  `openid` varchar(255) DEFAULT NULL,
  `statut` tinyint DEFAULT '1',
  `photo` varchar(255) DEFAULT NULL,
  `lang` varchar(6) DEFAULT NULL,
  `color` varchar(6) DEFAULT NULL,
  `barcode` varchar(255) DEFAULT NULL,
  `fk_barcode_type` int DEFAULT '0',
  `accountancy_code` varchar(32) DEFAULT NULL,
  `nb_holiday` int 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,
  `weeklyhours` double(16,8) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `default_range` int DEFAULT NULL,
  `default_c_exp_tax_cat` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Volcado de datos para la tabla `b67182907_user`
--

INSERT INTO `b67182907_user` (`rowid`, `entity`, `ref_ext`, `ref_int`, `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`, `skype`, `office_phone`, `office_fax`, `user_mobile`, `email`, `signature`, `admin`, `module_comm`, `module_compta`, `fk_soc`, `fk_socpeople`, `fk_member`, `fk_user`, `note_public`, `note`, `model_pdf`, `datelastlogin`, `datepreviouslogin`, `egroupware_id`, `ldap_sid`, `openid`, `statut`, `photo`, `lang`, `color`, `barcode`, `fk_barcode_type`, `accountancy_code`, `nb_holiday`, `thm`, `tjm`, `salary`, `salaryextra`, `dateemployment`, `weeklyhours`, `import_key`, `default_range`, `default_c_exp_tax_cat`) VALUES
(1, 0, NULL, NULL, 1, 0, '2018-03-06 16:50:58', '2020-05-18 11:34:35', NULL, NULL, 'jose.valle', NULL, 'jmv4ll322', '985ab4814febb3f98d5865cd84c9d42af91d7157', NULL, NULL, 'man', NULL, 'SuperAdmin', 'José Manuel Valle Llamas', '', '', '', NULL, NULL, NULL, '', '', '', '', '', 'josemanuel.valle@addapta.com', 'José Manuel Valle Llamas\r\nDirector Tec. de la Información\r\n\r\nTel: +34 937 829 534\r\nMóvil: +34 652 402 155\r\nSkype: jose.valle-addapta.com\r\nWeb: www.addapta.com\r\n\r\nDirección:	\r\nEdificio CINC\r\nC/Llull 321\r\nDistrito tecnológico 22@\r\n08019 Barcelona\r\nBarcelona', 1, 1, 1, NULL, NULL, NULL, NULL, NULL, '', NULL, '2024-04-06 14:57:33', '2024-03-27 18:52:30', NULL, '', NULL, 1, 'Perfil20180507-3.jpg', NULL, '', NULL, 0, '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(2, 1, NULL, NULL, 1, 0, '2018-03-06 17:05:22', '2018-07-02 09:28:28', NULL, NULL, 'sergio.garcia', NULL, 'addapta', 'bb66682f59dab9ce3d773f06fac68d62afd7628d', NULL, 'jc5rfx6z', 'man', NULL, 'García Martinez', 'Sergio', '', '', '', NULL, NULL, NULL, '', '', '', '', '', '', '', 1, 1, 1, NULL, NULL, NULL, 1, NULL, '', NULL, '2024-03-25 17:04:13', '2024-03-14 12:08:31', NULL, '', NULL, 1, NULL, NULL, '', NULL, 0, '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(3, 0, NULL, NULL, 1, 0, '2018-04-26 17:41:27', '2019-04-29 08:43:19', NULL, NULL, 'joananton.cardenas', NULL, '4dd4pt422', 'deaa9754377fdc3bcd4432e43ba6ad5934b595c0', NULL, 'gvsm3z14', 'man', NULL, 'Cárdenas Nuñez', 'Joan Anton', '', '', '', NULL, NULL, NULL, '', '', '', '', 'sergio.garcia', '', '', 1, 1, 1, NULL, NULL, NULL, NULL, NULL, '', NULL, '2019-04-29 10:43:52', '2018-06-11 16:15:55', NULL, '', NULL, 1, NULL, NULL, '', NULL, 0, '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(4, 1, NULL, NULL, 1, 0, '2018-10-04 17:56:40', '2019-01-10 13:41:46', NULL, NULL, 'carles.rovira', NULL, '4dd4pt422', 'deaa9754377fdc3bcd4432e43ba6ad5934b595c0', NULL, 'jnwvdq43', 'man', NULL, 'Rovira Quintana', 'Carles', '', '', '', NULL, NULL, NULL, '', '', '', '', '', '', '', 0, 1, 1, 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),
(5, 1, NULL, NULL, 1, 0, '2019-01-10 14:41:30', '2019-01-10 13:41:23', NULL, NULL, 'david.alcalde', NULL, '4dd4pt422', 'deaa9754377fdc3bcd4432e43ba6ad5934b595c0', NULL, '4hjbnz9r', 'man', NULL, 'Alcalde Repullo', 'David', '', '', '', NULL, NULL, NULL, '', '', '', '', '', '', '', 0, 1, 1, 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),
(6, 1, NULL, NULL, 1, 0, '2019-01-10 14:42:31', '2019-01-10 13:42:25', NULL, NULL, 'raul.solorzano', NULL, '4dd4pt422', 'deaa9754377fdc3bcd4432e43ba6ad5934b595c0', NULL, '61b4rtmg', 'man', NULL, 'Solórzano Navarro', 'Raúl', '', '', '', NULL, NULL, NULL, '', '', '', '', '', '', '', 0, 1, 1, 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),
(7, 1, NULL, NULL, 1, 0, '2019-01-10 15:00:18', '2019-01-10 14:00:11', NULL, NULL, 'marc.borda', NULL, '4dd4pt422', 'deaa9754377fdc3bcd4432e43ba6ad5934b595c0', NULL, 'g5sk1y0d', 'man', NULL, 'Borda Serra', 'Marc', '', '', '', NULL, NULL, NULL, '', '', '', '', '', '', '', 0, 1, 1, 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),
(8, 0, NULL, NULL, 1, 0, '2019-04-01 10:28:13', '2019-04-01 10:11:50', NULL, NULL, 'lluis.aluju', NULL, 'addapta', 'd39b37c2e33508544b509ccfd2e235cbb5a5275d', NULL, 'y1bxdqgv', 'man', NULL, 'Aluju', 'Lluis', '', '', '', NULL, NULL, NULL, 'Gestor', '', '', '', 'sergio.garcia', '', '', 0, 1, 1, NULL, NULL, NULL, 2, NULL, '', NULL, '2024-03-27 12:05:48', '2024-01-11 16:56:27', NULL, '', NULL, 1, NULL, NULL, '', NULL, 0, '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

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

--
-- Estructura de tabla para la tabla `b67182907_usergroup`
--

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

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

--
-- Estructura de tabla para la tabla `b67182907_usergroup_extrafields`
--

CREATE TABLE `b67182907_usergroup_extrafields` (
  `rowid` int NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_usergroup_rights`
--

CREATE TABLE `b67182907_usergroup_rights` (
  `rowid` int NOT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `fk_usergroup` int NOT NULL,
  `fk_id` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_usergroup_user`
--

CREATE TABLE `b67182907_usergroup_user` (
  `rowid` int NOT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `fk_user` int NOT NULL,
  `fk_usergroup` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_user_alert`
--

CREATE TABLE `b67182907_user_alert` (
  `rowid` int NOT NULL,
  `type` int DEFAULT NULL,
  `fk_contact` int DEFAULT NULL,
  `fk_user` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_user_clicktodial`
--

CREATE TABLE `b67182907_user_clicktodial` (
  `fk_user` int NOT NULL,
  `url` varchar(255) DEFAULT NULL,
  `login` varchar(32) DEFAULT NULL,
  `pass` varchar(64) DEFAULT NULL,
  `poste` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_user_employment`
--

CREATE TABLE `b67182907_user_employment` (
  `rowid` int NOT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `ref` varchar(50) DEFAULT NULL,
  `ref_ext` varchar(50) DEFAULT NULL,
  `fk_user` int DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_creat` int DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `job` varchar(128) DEFAULT NULL,
  `status` int 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=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_user_extrafields`
--

CREATE TABLE `b67182907_user_extrafields` (
  `rowid` int NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_user_param`
--

CREATE TABLE `b67182907_user_param` (
  `fk_user` int NOT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `param` varchar(180) NOT NULL,
  `value` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Volcado de datos para la tabla `b67182907_user_param`
--

INSERT INTO `b67182907_user_param` (`fk_user`, `entity`, `param`, `value`) VALUES
(1, 1, 'MAIN_BOXES_0', '1'),
(1, 1, 'MAIN_SELECTEDFIELDS_invoicelist', 'f.facnumber,f.date,f.date_lim_reglement,s.nom,f.total_ht,f.total_vat,f.total_ttc,rtp,f.fk_statut,'),
(1, 1, 'MAIN_SELECTEDFIELDS_supplierinvoicelist', 'rtp,f.ref,f.ref_supplier,f.label,f.datef,f.date_lim_reglement,s.nom,f.total_ht,f.total_vat,f.total_ttc,f.fk_statut,'),
(2, 1, 'MAIN_BOXES_0', '1'),
(2, 1, 'MAIN_SELECTEDFIELDS_invoicelist', 'rtp,f.facnumber,f.ref_client,f.date,f.date_lim_reglement,s.nom,s.town,s.zip,f.fk_mode_reglement,f.total_ht,f.fk_statut,');

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

--
-- Estructura de tabla para la tabla `b67182907_user_rib`
--

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

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

--
-- Estructura de tabla para la tabla `b67182907_user_rights`
--

CREATE TABLE `b67182907_user_rights` (
  `rowid` int NOT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `fk_user` int NOT NULL,
  `fk_id` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Volcado de datos para la tabla `b67182907_user_rights`
--

INSERT INTO `b67182907_user_rights` (`rowid`, `entity`, `fk_user`, `fk_id`) VALUES
(57, 1, 1, 11),
(51, 1, 1, 12),
(52, 1, 1, 13),
(53, 1, 1, 14),
(54, 1, 1, 15),
(56, 1, 1, 16),
(58, 1, 1, 19),
(124, 1, 1, 21),
(117, 1, 1, 22),
(118, 1, 1, 24),
(119, 1, 1, 25),
(121, 1, 1, 26),
(123, 1, 1, 27),
(125, 1, 1, 28),
(131, 1, 1, 31),
(128, 1, 1, 32),
(130, 1, 1, 34),
(132, 1, 1, 38),
(161, 1, 1, 41),
(158, 1, 1, 42),
(160, 1, 1, 44),
(162, 1, 1, 45),
(44, 1, 1, 71),
(39, 1, 1, 72),
(41, 1, 1, 74),
(45, 1, 1, 75),
(43, 1, 1, 76),
(47, 1, 1, 78),
(48, 1, 1, 79),
(329, 1, 1, 81),
(316, 1, 1, 82),
(319, 1, 1, 84),
(321, 1, 1, 86),
(324, 1, 1, 87),
(327, 1, 1, 88),
(330, 1, 1, 89),
(81, 1, 1, 91),
(78, 1, 1, 92),
(80, 1, 1, 93),
(82, 1, 1, 94),
(311, 1, 1, 95),
(103, 1, 1, 111),
(94, 1, 1, 112),
(96, 1, 1, 113),
(98, 1, 1, 114),
(100, 1, 1, 115),
(102, 1, 1, 116),
(104, 1, 1, 117),
(66, 1, 1, 121),
(63, 1, 1, 122),
(65, 1, 1, 125),
(67, 1, 1, 126),
(166, 1, 1, 141),
(165, 1, 1, 142),
(167, 1, 1, 144),
(110, 1, 1, 151),
(107, 1, 1, 152),
(109, 1, 1, 153),
(111, 1, 1, 154),
(68, 1, 1, 262),
(74, 1, 1, 281),
(71, 1, 1, 282),
(73, 1, 1, 283),
(75, 1, 1, 286),
(9, 1, 1, 501),
(3, 1, 1, 502),
(5, 1, 1, 511),
(6, 1, 1, 512),
(8, 1, 1, 514),
(10, 1, 1, 517),
(90, 1, 1, 520),
(85, 1, 1, 522),
(87, 1, 1, 524),
(89, 1, 1, 525),
(91, 1, 1, 527),
(146, 1, 1, 531),
(143, 1, 1, 532),
(145, 1, 1, 534),
(147, 1, 1, 538),
(24, 1, 1, 771),
(13, 1, 1, 772),
(15, 1, 1, 773),
(17, 1, 1, 775),
(19, 1, 1, 776),
(21, 1, 1, 777),
(23, 1, 1, 778),
(25, 1, 1, 779),
(151, 1, 1, 1001),
(150, 1, 1, 1002),
(152, 1, 1, 1003),
(154, 1, 1, 1004),
(155, 1, 1, 1005),
(261, 1, 1, 1181),
(307, 1, 1, 1182),
(266, 1, 1, 1183),
(269, 1, 1, 1184),
(272, 1, 1, 1185),
(276, 1, 1, 1186),
(280, 1, 1, 1187),
(286, 1, 1, 1188),
(283, 1, 1, 1189),
(826, 1, 1, 1201),
(827, 1, 1, 1202),
(303, 1, 1, 1231),
(292, 1, 1, 1232),
(295, 1, 1, 1233),
(298, 1, 1, 1234),
(301, 1, 1, 1235),
(304, 1, 1, 1236),
(308, 1, 1, 1237),
(259, 1, 1, 1251),
(59, 1, 1, 1321),
(60, 1, 1, 1322),
(333, 1, 1, 1421),
(472, 1, 1, 2401),
(467, 1, 1, 2402),
(473, 1, 1, 2403),
(487, 1, 1, 2411),
(482, 1, 1, 2412),
(488, 1, 1, 2413),
(493, 1, 1, 2414),
(35, 1, 1, 20001),
(28, 1, 1, 20002),
(30, 1, 1, 20003),
(32, 1, 1, 20004),
(34, 1, 1, 20005),
(36, 1, 1, 20006),
(817, 1, 1, 23001),
(806, 1, 1, 23002),
(812, 1, 1, 23003),
(818, 1, 1, 23004),
(337, 1, 1, 50401),
(341, 1, 1, 50411),
(342, 1, 1, 50412),
(345, 1, 1, 50420),
(347, 1, 1, 50430),
(335, 1, 1, 50440),
(112, 1, 1, 59001),
(113, 1, 1, 59002),
(114, 1, 1, 59003),
(191, 1, 2, 11),
(192, 1, 2, 12),
(193, 1, 2, 13),
(194, 1, 2, 14),
(195, 1, 2, 15),
(196, 1, 2, 16),
(197, 1, 2, 19),
(229, 1, 2, 21),
(230, 1, 2, 22),
(231, 1, 2, 24),
(232, 1, 2, 25),
(233, 1, 2, 26),
(234, 1, 2, 27),
(235, 1, 2, 28),
(218, 1, 2, 31),
(219, 1, 2, 32),
(220, 1, 2, 34),
(221, 1, 2, 38),
(222, 1, 2, 41),
(223, 1, 2, 42),
(224, 1, 2, 44),
(225, 1, 2, 45),
(169, 1, 2, 71),
(170, 1, 2, 72),
(171, 1, 2, 74),
(172, 1, 2, 75),
(173, 1, 2, 76),
(174, 1, 2, 78),
(175, 1, 2, 79),
(331, 1, 2, 81),
(318, 1, 2, 82),
(320, 1, 2, 84),
(322, 1, 2, 86),
(326, 1, 2, 87),
(328, 1, 2, 88),
(332, 1, 2, 89),
(255, 1, 2, 91),
(256, 1, 2, 92),
(257, 1, 2, 93),
(258, 1, 2, 94),
(312, 1, 2, 95),
(176, 1, 2, 111),
(177, 1, 2, 112),
(178, 1, 2, 113),
(179, 1, 2, 114),
(180, 1, 2, 115),
(181, 1, 2, 116),
(182, 1, 2, 117),
(246, 1, 2, 121),
(247, 1, 2, 122),
(248, 1, 2, 125),
(249, 1, 2, 126),
(226, 1, 2, 141),
(227, 1, 2, 142),
(228, 1, 2, 144),
(214, 1, 2, 151),
(215, 1, 2, 152),
(216, 1, 2, 153),
(217, 1, 2, 154),
(250, 1, 2, 262),
(251, 1, 2, 281),
(252, 1, 2, 282),
(253, 1, 2, 283),
(254, 1, 2, 286),
(236, 1, 2, 501),
(237, 1, 2, 502),
(238, 1, 2, 511),
(239, 1, 2, 512),
(240, 1, 2, 514),
(241, 1, 2, 517),
(206, 1, 2, 520),
(207, 1, 2, 522),
(208, 1, 2, 524),
(209, 1, 2, 525),
(210, 1, 2, 527),
(242, 1, 2, 531),
(243, 1, 2, 532),
(244, 1, 2, 534),
(245, 1, 2, 538),
(183, 1, 2, 771),
(184, 1, 2, 772),
(185, 1, 2, 773),
(186, 1, 2, 775),
(187, 1, 2, 776),
(188, 1, 2, 777),
(189, 1, 2, 778),
(190, 1, 2, 779),
(262, 1, 2, 1181),
(309, 1, 2, 1182),
(268, 1, 2, 1183),
(270, 1, 2, 1184),
(274, 1, 2, 1185),
(278, 1, 2, 1186),
(282, 1, 2, 1187),
(288, 1, 2, 1188),
(284, 1, 2, 1189),
(828, 1, 2, 1201),
(829, 1, 2, 1202),
(305, 1, 2, 1231),
(294, 1, 2, 1232),
(296, 1, 2, 1233),
(300, 1, 2, 1234),
(302, 1, 2, 1235),
(306, 1, 2, 1236),
(310, 1, 2, 1237),
(260, 1, 2, 1251),
(198, 1, 2, 1321),
(199, 1, 2, 1322),
(334, 1, 2, 1421),
(474, 1, 2, 2401),
(469, 1, 2, 2402),
(475, 1, 2, 2403),
(489, 1, 2, 2411),
(484, 1, 2, 2412),
(490, 1, 2, 2413),
(494, 1, 2, 2414),
(200, 1, 2, 20001),
(201, 1, 2, 20002),
(202, 1, 2, 20003),
(203, 1, 2, 20004),
(204, 1, 2, 20005),
(205, 1, 2, 20006),
(819, 1, 2, 23001),
(808, 1, 2, 23002),
(814, 1, 2, 23003),
(820, 1, 2, 23004),
(338, 1, 2, 50401),
(343, 1, 2, 50411),
(344, 1, 2, 50412),
(346, 1, 2, 50420),
(348, 1, 2, 50430),
(336, 1, 2, 50440),
(211, 1, 2, 59001),
(212, 1, 2, 59002),
(213, 1, 2, 59003),
(446, 1, 3, 11),
(447, 1, 3, 12),
(448, 1, 3, 13),
(449, 1, 3, 14),
(450, 1, 3, 15),
(451, 1, 3, 16),
(452, 1, 3, 19),
(394, 1, 3, 21),
(395, 1, 3, 22),
(396, 1, 3, 24),
(397, 1, 3, 25),
(398, 1, 3, 26),
(399, 1, 3, 27),
(400, 1, 3, 28),
(408, 1, 3, 31),
(409, 1, 3, 32),
(410, 1, 3, 34),
(411, 1, 3, 38),
(401, 1, 3, 41),
(402, 1, 3, 42),
(403, 1, 3, 44),
(404, 1, 3, 45),
(363, 1, 3, 81),
(364, 1, 3, 82),
(365, 1, 3, 84),
(366, 1, 3, 86),
(367, 1, 3, 87),
(368, 1, 3, 88),
(369, 1, 3, 89),
(371, 1, 3, 91),
(372, 1, 3, 92),
(373, 1, 3, 93),
(374, 1, 3, 94),
(356, 1, 3, 111),
(357, 1, 3, 112),
(358, 1, 3, 113),
(359, 1, 3, 114),
(360, 1, 3, 115),
(361, 1, 3, 116),
(362, 1, 3, 117),
(375, 1, 3, 121),
(376, 1, 3, 122),
(377, 1, 3, 125),
(378, 1, 3, 126),
(405, 1, 3, 141),
(406, 1, 3, 142),
(407, 1, 3, 144),
(412, 1, 3, 151),
(413, 1, 3, 152),
(414, 1, 3, 153),
(415, 1, 3, 154),
(379, 1, 3, 262),
(380, 1, 3, 281),
(381, 1, 3, 282),
(382, 1, 3, 283),
(383, 1, 3, 286),
(388, 1, 3, 501),
(389, 1, 3, 502),
(390, 1, 3, 511),
(391, 1, 3, 512),
(392, 1, 3, 514),
(393, 1, 3, 517),
(419, 1, 3, 520),
(420, 1, 3, 522),
(421, 1, 3, 524),
(422, 1, 3, 525),
(423, 1, 3, 527),
(384, 1, 3, 531),
(385, 1, 3, 532),
(386, 1, 3, 534),
(387, 1, 3, 538),
(455, 1, 3, 771),
(456, 1, 3, 772),
(457, 1, 3, 773),
(458, 1, 3, 775),
(459, 1, 3, 776),
(460, 1, 3, 777),
(461, 1, 3, 778),
(462, 1, 3, 779),
(430, 1, 3, 1181),
(431, 1, 3, 1182),
(432, 1, 3, 1183),
(433, 1, 3, 1184),
(434, 1, 3, 1185),
(435, 1, 3, 1186),
(436, 1, 3, 1187),
(437, 1, 3, 1188),
(438, 1, 3, 1189),
(830, 1, 3, 1201),
(831, 1, 3, 1202),
(439, 1, 3, 1231),
(440, 1, 3, 1232),
(441, 1, 3, 1233),
(442, 1, 3, 1234),
(443, 1, 3, 1235),
(444, 1, 3, 1236),
(445, 1, 3, 1237),
(453, 1, 3, 1321),
(454, 1, 3, 1322),
(370, 1, 3, 1421),
(476, 1, 3, 2401),
(471, 1, 3, 2402),
(477, 1, 3, 2403),
(491, 1, 3, 2411),
(486, 1, 3, 2412),
(492, 1, 3, 2413),
(495, 1, 3, 2414),
(424, 1, 3, 20001),
(425, 1, 3, 20002),
(426, 1, 3, 20003),
(427, 1, 3, 20004),
(428, 1, 3, 20005),
(429, 1, 3, 20006),
(821, 1, 3, 23001),
(810, 1, 3, 23002),
(816, 1, 3, 23003),
(822, 1, 3, 23004),
(350, 1, 3, 50401),
(351, 1, 3, 50411),
(352, 1, 3, 50412),
(353, 1, 3, 50420),
(354, 1, 3, 50430),
(355, 1, 3, 50440),
(416, 1, 3, 59001),
(417, 1, 3, 59002),
(418, 1, 3, 59003),
(496, 1, 4, 777),
(497, 1, 5, 777),
(498, 1, 6, 777),
(499, 1, 7, 777),
(709, 1, 8, 11),
(711, 1, 8, 13),
(712, 1, 8, 14),
(713, 1, 8, 15),
(795, 1, 8, 21),
(768, 1, 8, 31),
(793, 1, 8, 41),
(693, 1, 8, 81),
(694, 1, 8, 82),
(695, 1, 8, 84),
(696, 1, 8, 86),
(697, 1, 8, 87),
(698, 1, 8, 88),
(699, 1, 8, 89),
(798, 1, 8, 91),
(801, 1, 8, 111),
(779, 1, 8, 121),
(794, 1, 8, 141),
(761, 1, 8, 151),
(645, 1, 8, 251),
(646, 1, 8, 252),
(647, 1, 8, 253),
(648, 1, 8, 254),
(649, 1, 8, 255),
(650, 1, 8, 256),
(783, 1, 8, 262),
(784, 1, 8, 281),
(651, 1, 8, 341),
(652, 1, 8, 342),
(653, 1, 8, 343),
(654, 1, 8, 344),
(655, 1, 8, 351),
(656, 1, 8, 352),
(657, 1, 8, 353),
(658, 1, 8, 354),
(659, 1, 8, 358),
(799, 1, 8, 501),
(800, 1, 8, 511),
(796, 1, 8, 531),
(701, 1, 8, 771),
(702, 1, 8, 772),
(703, 1, 8, 773),
(704, 1, 8, 775),
(705, 1, 8, 776),
(706, 1, 8, 777),
(707, 1, 8, 778),
(708, 1, 8, 779),
(734, 1, 8, 1181),
(735, 1, 8, 1182),
(737, 1, 8, 1184),
(740, 1, 8, 1187),
(742, 1, 8, 1189),
(743, 1, 8, 1231),
(745, 1, 8, 1233),
(747, 1, 8, 1235),
(748, 1, 8, 1236),
(749, 1, 8, 1237),
(717, 1, 8, 1322),
(700, 1, 8, 1421),
(679, 1, 8, 2401),
(680, 1, 8, 2402),
(681, 1, 8, 2403),
(682, 1, 8, 2411),
(683, 1, 8, 2412),
(684, 1, 8, 2413),
(685, 1, 8, 2414),
(673, 1, 8, 50401),
(674, 1, 8, 50411),
(675, 1, 8, 50412),
(676, 1, 8, 50420),
(677, 1, 8, 50430),
(678, 1, 8, 50440),
(792, 1, 8, 59001);

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

--
-- Estructura de tabla para la tabla `b67182907_website`
--

CREATE TABLE `b67182907_website` (
  `rowid` int NOT NULL,
  `type_container` varchar(16) NOT NULL DEFAULT 'page',
  `entity` int NOT NULL DEFAULT '1',
  `ref` varchar(128) NOT NULL,
  `description` varchar(255) DEFAULT NULL,
  `status` int DEFAULT '1',
  `fk_default_home` int DEFAULT NULL,
  `virtualhost` varchar(255) DEFAULT NULL,
  `fk_user_create` int DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_website_account`
--

CREATE TABLE `b67182907_website_account` (
  `rowid` int NOT NULL,
  `login` varchar(64) NOT NULL,
  `pass_encoding` varchar(24) NOT NULL,
  `pass_crypted` varchar(128) DEFAULT NULL,
  `pass_temp` varchar(128) DEFAULT NULL,
  `fk_soc` int DEFAULT NULL,
  `fk_website` int NOT NULL,
  `note_private` text,
  `date_last_login` datetime DEFAULT NULL,
  `date_previous_login` datetime DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_creat` int NOT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `status` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_website_account_extrafields`
--

CREATE TABLE `b67182907_website_account_extrafields` (
  `rowid` int NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_website_extrafields`
--

CREATE TABLE `b67182907_website_extrafields` (
  `rowid` int NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `b67182907_website_page`
--

CREATE TABLE `b67182907_website_page` (
  `rowid` int NOT NULL,
  `fk_website` int NOT NULL,
  `pageurl` varchar(255) NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `keywords` varchar(255) DEFAULT NULL,
  `lang` varchar(6) DEFAULT NULL,
  `fk_page` int DEFAULT NULL,
  `htmlheader` text,
  `content` mediumtext,
  `status` int DEFAULT '1',
  `grabbed_from` varchar(255) DEFAULT NULL,
  `fk_user_create` int DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

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

--
-- Estructura de tabla para la tabla `clinica_import_model`
--

CREATE TABLE `clinica_import_model` (
  `rowid` int NOT NULL,
  `fk_user` int NOT NULL DEFAULT '0',
  `label` varchar(50) NOT NULL,
  `type` varchar(20) NOT NULL,
  `field` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Índices para tablas volcadas
--

--
-- Indices de la tabla `b65362949_accountingaccount`
--
ALTER TABLE `b65362949_accountingaccount`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_accountingaccount_fk_pcg_version` (`fk_pcg_version`);

--
-- Indices de la tabla `b65362949_accountingtransaction`
--
ALTER TABLE `b65362949_accountingtransaction`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_accounting_system`
--
ALTER TABLE `b65362949_accounting_system`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_accounting_system_pcg_version` (`pcg_version`);

--
-- Indices de la tabla `b65362949_actioncomm`
--
ALTER TABLE `b65362949_actioncomm`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_actioncomm_datea` (`datea`),
  ADD KEY `idx_actioncomm_fk_soc` (`fk_soc`),
  ADD KEY `idx_actioncomm_fk_contact` (`fk_contact`),
  ADD KEY `idx_actioncomm_code` (`code`);

--
-- Indices de la tabla `b65362949_actioncomm_extrafields`
--
ALTER TABLE `b65362949_actioncomm_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_actioncomm_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_actioncomm_resources`
--
ALTER TABLE `b65362949_actioncomm_resources`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_actioncomm_resources_idx1` (`fk_actioncomm`,`element_type`,`fk_element`),
  ADD KEY `idx_actioncomm_resources_fk_element` (`fk_element`);

--
-- Indices de la tabla `b65362949_adherent`
--
ALTER TABLE `b65362949_adherent`
  ADD PRIMARY KEY (`rowid`),
  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`);

--
-- Indices de la tabla `b65362949_adherent_extrafields`
--
ALTER TABLE `b65362949_adherent_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_adherent_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_adherent_type`
--
ALTER TABLE `b65362949_adherent_type`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_adherent_type_libelle` (`libelle`,`entity`);

--
-- Indices de la tabla `b65362949_adherent_type_extrafields`
--
ALTER TABLE `b65362949_adherent_type_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_adherent_type_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_bank`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_bank_account`
--
ALTER TABLE `b65362949_bank_account`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_bank_account_label` (`label`,`entity`);

--
-- Indices de la tabla `b65362949_bank_categ`
--
ALTER TABLE `b65362949_bank_categ`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_bank_class`
--
ALTER TABLE `b65362949_bank_class`
  ADD UNIQUE KEY `uk_bank_class_lineid` (`lineid`,`fk_categ`);

--
-- Indices de la tabla `b65362949_bank_url`
--
ALTER TABLE `b65362949_bank_url`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_bank_url` (`fk_bank`,`type`);

--
-- Indices de la tabla `b65362949_bookmark`
--
ALTER TABLE `b65362949_bookmark`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_bookmark_url` (`fk_user`,`url`),
  ADD UNIQUE KEY `uk_bookmark_title` (`fk_user`,`title`);

--
-- Indices de la tabla `b65362949_bordereau_cheque`
--
ALTER TABLE `b65362949_bordereau_cheque`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_bordereau_cheque` (`number`,`entity`);

--
-- Indices de la tabla `b65362949_boxes`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_boxes_def`
--
ALTER TABLE `b65362949_boxes_def`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_boxes_def` (`file`,`entity`,`note`);

--
-- Indices de la tabla `b65362949_categorie`
--
ALTER TABLE `b65362949_categorie`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_categorie_ref` (`entity`,`fk_parent`,`label`,`type`),
  ADD KEY `idx_categorie_type` (`type`),
  ADD KEY `idx_categorie_label` (`label`);

--
-- Indices de la tabla `b65362949_categories_extrafields`
--
ALTER TABLE `b65362949_categories_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_categories_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_categorie_contact`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_categorie_fournisseur`
--
ALTER TABLE `b65362949_categorie_fournisseur`
  ADD PRIMARY KEY (`fk_categorie`,`fk_societe`),
  ADD KEY `idx_categorie_fournisseur_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_fournisseur_fk_societe` (`fk_societe`);

--
-- Indices de la tabla `b65362949_categorie_lang`
--
ALTER TABLE `b65362949_categorie_lang`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_category_lang` (`fk_category`,`lang`);

--
-- Indices de la tabla `b65362949_categorie_member`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_categorie_product`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_categorie_societe`
--
ALTER TABLE `b65362949_categorie_societe`
  ADD PRIMARY KEY (`fk_categorie`,`fk_societe`),
  ADD KEY `idx_categorie_societe_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_societe_fk_societe` (`fk_societe`);

--
-- Indices de la tabla `b65362949_chargesociales`
--
ALTER TABLE `b65362949_chargesociales`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_commande`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_commandedet`
--
ALTER TABLE `b65362949_commandedet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commandedet_fk_commande` (`fk_commande`),
  ADD KEY `idx_commandedet_fk_product` (`fk_product`);

--
-- Indices de la tabla `b65362949_commandedet_extrafields`
--
ALTER TABLE `b65362949_commandedet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commandedet_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_commande_extrafields`
--
ALTER TABLE `b65362949_commande_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_commande_fournisseur`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_commande_fournisseurdet`
--
ALTER TABLE `b65362949_commande_fournisseurdet`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_commande_fournisseur_dispatch`
--
ALTER TABLE `b65362949_commande_fournisseur_dispatch`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_fournisseur_dispatch_fk_commande` (`fk_commande`);

--
-- Indices de la tabla `b65362949_commande_fournisseur_extrafields`
--
ALTER TABLE `b65362949_commande_fournisseur_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_fournisseur_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_commande_fournisseur_log`
--
ALTER TABLE `b65362949_commande_fournisseur_log`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_compta`
--
ALTER TABLE `b65362949_compta`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_compta_account`
--
ALTER TABLE `b65362949_compta_account`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_compta_compte_generaux`
--
ALTER TABLE `b65362949_compta_compte_generaux`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `numero` (`numero`);

--
-- Indices de la tabla `b65362949_const`
--
ALTER TABLE `b65362949_const`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_const` (`name`,`entity`);

--
-- Indices de la tabla `b65362949_contrat`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_contratdet`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_contratdet_log`
--
ALTER TABLE `b65362949_contratdet_log`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_contratdet_log_fk_contratdet` (`fk_contratdet`),
  ADD KEY `idx_contratdet_log_date` (`date`);

--
-- Indices de la tabla `b65362949_contrat_extrafields`
--
ALTER TABLE `b65362949_contrat_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_contrat_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_cotisation`
--
ALTER TABLE `b65362949_cotisation`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_cotisation` (`fk_adherent`,`dateadh`);

--
-- Indices de la tabla `b65362949_cronjob`
--
ALTER TABLE `b65362949_cronjob`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_c_actioncomm`
--
ALTER TABLE `b65362949_c_actioncomm`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_actioncomm` (`code`);

--
-- Indices de la tabla `b65362949_c_action_trigger`
--
ALTER TABLE `b65362949_c_action_trigger`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_action_trigger_code` (`code`),
  ADD KEY `idx_action_trigger_rang` (`rang`);

--
-- Indices de la tabla `b65362949_c_availability`
--
ALTER TABLE `b65362949_c_availability`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_availability` (`code`);

--
-- Indices de la tabla `b65362949_c_barcode_type`
--
ALTER TABLE `b65362949_c_barcode_type`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_barcode_type` (`code`,`entity`);

--
-- Indices de la tabla `b65362949_c_chargesociales`
--
ALTER TABLE `b65362949_c_chargesociales`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `b65362949_c_civilite`
--
ALTER TABLE `b65362949_c_civilite`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_civilite` (`code`);

--
-- Indices de la tabla `b65362949_c_currencies`
--
ALTER TABLE `b65362949_c_currencies`
  ADD PRIMARY KEY (`code_iso`),
  ADD UNIQUE KEY `uk_c_currencies_code_iso` (`code_iso`);

--
-- Indices de la tabla `b65362949_c_departements`
--
ALTER TABLE `b65362949_c_departements`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_departements` (`code_departement`,`fk_region`),
  ADD KEY `idx_departements_fk_region` (`fk_region`);

--
-- Indices de la tabla `b65362949_c_ecotaxe`
--
ALTER TABLE `b65362949_c_ecotaxe`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_ecotaxe` (`code`);

--
-- Indices de la tabla `b65362949_c_effectif`
--
ALTER TABLE `b65362949_c_effectif`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_effectif` (`code`);

--
-- Indices de la tabla `b65362949_c_email_templates`
--
ALTER TABLE `b65362949_c_email_templates`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_c_field_list`
--
ALTER TABLE `b65362949_c_field_list`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_c_forme_juridique`
--
ALTER TABLE `b65362949_c_forme_juridique`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_forme_juridique` (`code`);

--
-- Indices de la tabla `b65362949_c_input_method`
--
ALTER TABLE `b65362949_c_input_method`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_input_method` (`code`);

--
-- Indices de la tabla `b65362949_c_input_reason`
--
ALTER TABLE `b65362949_c_input_reason`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_input_reason` (`code`);

--
-- Indices de la tabla `b65362949_c_paiement`
--
ALTER TABLE `b65362949_c_paiement`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_paiement` (`code`);

--
-- Indices de la tabla `b65362949_c_paper_format`
--
ALTER TABLE `b65362949_c_paper_format`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_c_payment_term`
--
ALTER TABLE `b65362949_c_payment_term`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_c_pays`
--
ALTER TABLE `b65362949_c_pays`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_c_country_code` (`code`),
  ADD UNIQUE KEY `idx_c_pays_libelle` (`libelle`),
  ADD UNIQUE KEY `idx_c_country_code_iso` (`code_iso`);

--
-- Indices de la tabla `b65362949_c_propalst`
--
ALTER TABLE `b65362949_c_propalst`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_propalst` (`code`);

--
-- Indices de la tabla `b65362949_c_prospectlevel`
--
ALTER TABLE `b65362949_c_prospectlevel`
  ADD PRIMARY KEY (`code`);

--
-- Indices de la tabla `b65362949_c_regions`
--
ALTER TABLE `b65362949_c_regions`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `code_region` (`code_region`),
  ADD KEY `idx_c_regions_fk_pays` (`fk_pays`);

--
-- Indices de la tabla `b65362949_c_revenuestamp`
--
ALTER TABLE `b65362949_c_revenuestamp`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_c_shipment_mode`
--
ALTER TABLE `b65362949_c_shipment_mode`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_c_stcomm`
--
ALTER TABLE `b65362949_c_stcomm`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_stcomm` (`code`);

--
-- Indices de la tabla `b65362949_c_tva`
--
ALTER TABLE `b65362949_c_tva`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_tva_id` (`fk_pays`,`taux`,`recuperableonly`);

--
-- Indices de la tabla `b65362949_c_typent`
--
ALTER TABLE `b65362949_c_typent`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_typent` (`code`);

--
-- Indices de la tabla `b65362949_c_type_contact`
--
ALTER TABLE `b65362949_c_type_contact`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_type_contact_id` (`element`,`source`,`code`);

--
-- Indices de la tabla `b65362949_c_type_fees`
--
ALTER TABLE `b65362949_c_type_fees`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_type_fees` (`code`);

--
-- Indices de la tabla `b65362949_c_type_resource`
--
ALTER TABLE `b65362949_c_type_resource`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_type_resource_id` (`label`,`code`);

--
-- Indices de la tabla `b65362949_c_ziptown`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_deplacement`
--
ALTER TABLE `b65362949_deplacement`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_document_generator`
--
ALTER TABLE `b65362949_document_generator`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_document_model`
--
ALTER TABLE `b65362949_document_model`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_document_model` (`nom`,`type`,`entity`);

--
-- Indices de la tabla `b65362949_don`
--
ALTER TABLE `b65362949_don`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_ecm_directories`
--
ALTER TABLE `b65362949_ecm_directories`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_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`);

--
-- Indices de la tabla `b65362949_element_contact`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_element_element`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_element_lock`
--
ALTER TABLE `b65362949_element_lock`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_element_resources`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_element_tag`
--
ALTER TABLE `b65362949_element_tag`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_element_tag` (`entity`,`lang`,`tag`,`fk_element`,`element`);

--
-- Indices de la tabla `b65362949_entrepot`
--
ALTER TABLE `b65362949_entrepot`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_entrepot_label` (`label`,`entity`);

--
-- Indices de la tabla `b65362949_events`
--
ALTER TABLE `b65362949_events`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_events_dateevent` (`dateevent`);

--
-- Indices de la tabla `b65362949_event_element`
--
ALTER TABLE `b65362949_event_element`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_expedition`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_expeditiondet`
--
ALTER TABLE `b65362949_expeditiondet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_expeditiondet_fk_expedition` (`fk_expedition`);

--
-- Indices de la tabla `b65362949_expeditiondet_batch`
--
ALTER TABLE `b65362949_expeditiondet_batch`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_fk_expeditiondet` (`fk_expeditiondet`);

--
-- Indices de la tabla `b65362949_export_compta`
--
ALTER TABLE `b65362949_export_compta`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_export_model`
--
ALTER TABLE `b65362949_export_model`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_export_model` (`label`,`type`);

--
-- Indices de la tabla `b65362949_extrafields`
--
ALTER TABLE `b65362949_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_extrafields_name` (`name`,`entity`,`elementtype`);

--
-- Indices de la tabla `b65362949_facture`
--
ALTER TABLE `b65362949_facture`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_facture_uk_facnumber` (`facnumber`,`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`);

--
-- Indices de la tabla `b65362949_facturedet`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_facturedet_extrafields`
--
ALTER TABLE `b65362949_facturedet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facturedet_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_facturedet_rec`
--
ALTER TABLE `b65362949_facturedet_rec`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_facture_extrafields`
--
ALTER TABLE `b65362949_facture_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_facture_fourn`
--
ALTER TABLE `b65362949_facture_fourn`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_facture_fourn_ref_supplier` (`ref_supplier`,`fk_soc`,`entity`),
  ADD UNIQUE KEY `uk_facture_fourn_ref` (`ref`,`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`);

--
-- Indices de la tabla `b65362949_facture_fourn_det`
--
ALTER TABLE `b65362949_facture_fourn_det`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_fourn_det_fk_facture` (`fk_facture_fourn`);

--
-- Indices de la tabla `b65362949_facture_fourn_extrafields`
--
ALTER TABLE `b65362949_facture_fourn_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_fourn_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_facture_rec`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_fichinter`
--
ALTER TABLE `b65362949_fichinter`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_fichinter_ref` (`ref`,`entity`),
  ADD KEY `idx_fichinter_fk_soc` (`fk_soc`);

--
-- Indices de la tabla `b65362949_fichinterdet`
--
ALTER TABLE `b65362949_fichinterdet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_fichinterdet_fk_fichinter` (`fk_fichinter`);

--
-- Indices de la tabla `b65362949_fichinter_extrafields`
--
ALTER TABLE `b65362949_fichinter_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_ficheinter_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_holiday`
--
ALTER TABLE `b65362949_holiday`
  ADD PRIMARY KEY (`rowid`),
  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`);

--
-- Indices de la tabla `b65362949_holiday_config`
--
ALTER TABLE `b65362949_holiday_config`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `name` (`name`);

--
-- Indices de la tabla `b65362949_holiday_events`
--
ALTER TABLE `b65362949_holiday_events`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_holiday_name` (`name`,`entity`);

--
-- Indices de la tabla `b65362949_holiday_logs`
--
ALTER TABLE `b65362949_holiday_logs`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_holiday_users`
--
ALTER TABLE `b65362949_holiday_users`
  ADD PRIMARY KEY (`fk_user`);

--
-- Indices de la tabla `b65362949_import_model`
--
ALTER TABLE `b65362949_import_model`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_import_model` (`label`,`type`);

--
-- Indices de la tabla `b65362949_links`
--
ALTER TABLE `b65362949_links`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_livraison`
--
ALTER TABLE `b65362949_livraison`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_livraison_uk_ref` (`ref`,`entity`),
  ADD KEY `idx_livraison_fk_soc` (`fk_soc`),
  ADD KEY `idx_livraison_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_livraison_fk_user_valid` (`fk_user_valid`);

--
-- Indices de la tabla `b65362949_livraisondet`
--
ALTER TABLE `b65362949_livraisondet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_livraisondet_fk_expedition` (`fk_livraison`);

--
-- Indices de la tabla `b65362949_localtax`
--
ALTER TABLE `b65362949_localtax`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_mailing`
--
ALTER TABLE `b65362949_mailing`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_mailing_cibles`
--
ALTER TABLE `b65362949_mailing_cibles`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_mailing_cibles` (`fk_mailing`,`email`),
  ADD KEY `idx_mailing_cibles_email` (`email`);

--
-- Indices de la tabla `b65362949_menu`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_notify`
--
ALTER TABLE `b65362949_notify`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_notify_def`
--
ALTER TABLE `b65362949_notify_def`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_opensurvey_comments`
--
ALTER TABLE `b65362949_opensurvey_comments`
  ADD PRIMARY KEY (`id_comment`),
  ADD KEY `idx_id_comment` (`id_comment`),
  ADD KEY `idx_id_sondage` (`id_sondage`);

--
-- Indices de la tabla `b65362949_opensurvey_sondage`
--
ALTER TABLE `b65362949_opensurvey_sondage`
  ADD PRIMARY KEY (`id_sondage`),
  ADD KEY `idx_date_fin` (`date_fin`);

--
-- Indices de la tabla `b65362949_opensurvey_user_studs`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_paiement`
--
ALTER TABLE `b65362949_paiement`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_paiementcharge`
--
ALTER TABLE `b65362949_paiementcharge`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_paiementfourn`
--
ALTER TABLE `b65362949_paiementfourn`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_paiementfourn_facturefourn`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_paiement_facture`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_payment_salary`
--
ALTER TABLE `b65362949_payment_salary`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_prelevement_bons`
--
ALTER TABLE `b65362949_prelevement_bons`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_prelevement_bons_ref` (`ref`,`entity`);

--
-- Indices de la tabla `b65362949_prelevement_facture`
--
ALTER TABLE `b65362949_prelevement_facture`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_prelevement_facture_fk_prelevement_lignes` (`fk_prelevement_lignes`);

--
-- Indices de la tabla `b65362949_prelevement_facture_demande`
--
ALTER TABLE `b65362949_prelevement_facture_demande`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_prelevement_lignes`
--
ALTER TABLE `b65362949_prelevement_lignes`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_prelevement_lignes_fk_prelevement_bons` (`fk_prelevement_bons`);

--
-- Indices de la tabla `b65362949_prelevement_rejet`
--
ALTER TABLE `b65362949_prelevement_rejet`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_printer_ipp`
--
ALTER TABLE `b65362949_printer_ipp`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_product`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_product_association`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_product_batch`
--
ALTER TABLE `b65362949_product_batch`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_fk_product_stock` (`fk_product_stock`);

--
-- Indices de la tabla `b65362949_product_customer_price`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_product_customer_price_log`
--
ALTER TABLE `b65362949_product_customer_price_log`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_product_extrafields`
--
ALTER TABLE `b65362949_product_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_product_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_product_fournisseur_price`
--
ALTER TABLE `b65362949_product_fournisseur_price`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_fournisseur_price_ref` (`ref_fourn`,`fk_soc`,`quantity`,`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`);

--
-- Indices de la tabla `b65362949_product_fournisseur_price_log`
--
ALTER TABLE `b65362949_product_fournisseur_price_log`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_product_lang`
--
ALTER TABLE `b65362949_product_lang`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_lang` (`fk_product`,`lang`);

--
-- Indices de la tabla `b65362949_product_price`
--
ALTER TABLE `b65362949_product_price`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_product_price_by_qty`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_product_stock`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_projet`
--
ALTER TABLE `b65362949_projet`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_projet_ref` (`ref`,`entity`),
  ADD KEY `idx_projet_fk_soc` (`fk_soc`);

--
-- Indices de la tabla `b65362949_projet_extrafields`
--
ALTER TABLE `b65362949_projet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_projet_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_projet_task`
--
ALTER TABLE `b65362949_projet_task`
  ADD PRIMARY KEY (`rowid`),
  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`);

--
-- Indices de la tabla `b65362949_projet_task_extrafields`
--
ALTER TABLE `b65362949_projet_task_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_projet_task_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_projet_task_time`
--
ALTER TABLE `b65362949_projet_task_time`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_propal`
--
ALTER TABLE `b65362949_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_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`);

--
-- Indices de la tabla `b65362949_propaldet`
--
ALTER TABLE `b65362949_propaldet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_propaldet_fk_propal` (`fk_propal`),
  ADD KEY `idx_propaldet_fk_product` (`fk_product`);

--
-- Indices de la tabla `b65362949_propaldet_extrafields`
--
ALTER TABLE `b65362949_propaldet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_propaldet_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_propal_extrafields`
--
ALTER TABLE `b65362949_propal_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_propal_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_resource`
--
ALTER TABLE `b65362949_resource`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `fk_code_type_resource_idx` (`fk_code_type_resource`);

--
-- Indices de la tabla `b65362949_rights_def`
--
ALTER TABLE `b65362949_rights_def`
  ADD PRIMARY KEY (`id`,`entity`);

--
-- Indices de la tabla `b65362949_societe`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_societe_address`
--
ALTER TABLE `b65362949_societe_address`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_societe_commerciaux`
--
ALTER TABLE `b65362949_societe_commerciaux`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_societe_commerciaux` (`fk_soc`,`fk_user`);

--
-- Indices de la tabla `b65362949_societe_extrafields`
--
ALTER TABLE `b65362949_societe_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_societe_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_societe_log`
--
ALTER TABLE `b65362949_societe_log`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `b65362949_societe_prices`
--
ALTER TABLE `b65362949_societe_prices`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_societe_remise`
--
ALTER TABLE `b65362949_societe_remise`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_societe_remise_except`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_societe_rib`
--
ALTER TABLE `b65362949_societe_rib`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_socpeople`
--
ALTER TABLE `b65362949_socpeople`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_socpeople_fk_soc` (`fk_soc`),
  ADD KEY `idx_socpeople_fk_user_creat` (`fk_user_creat`);

--
-- Indices de la tabla `b65362949_socpeople_extrafields`
--
ALTER TABLE `b65362949_socpeople_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_socpeople_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_stock_mouvement`
--
ALTER TABLE `b65362949_stock_mouvement`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_stock_mouvement_fk_product` (`fk_product`),
  ADD KEY `idx_stock_mouvement_fk_entrepot` (`fk_entrepot`);

--
-- Indices de la tabla `b65362949_texts`
--
ALTER TABLE `b65362949_texts`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_tva`
--
ALTER TABLE `b65362949_tva`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_user`
--
ALTER TABLE `b65362949_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 KEY `uk_user_fk_societe` (`fk_societe`);

--
-- Indices de la tabla `b65362949_usergroup`
--
ALTER TABLE `b65362949_usergroup`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_usergroup_name` (`nom`,`entity`);

--
-- Indices de la tabla `b65362949_usergroup_rights`
--
ALTER TABLE `b65362949_usergroup_rights`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `fk_usergroup` (`fk_usergroup`,`fk_id`);

--
-- Indices de la tabla `b65362949_usergroup_user`
--
ALTER TABLE `b65362949_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`);

--
-- Indices de la tabla `b65362949_user_alert`
--
ALTER TABLE `b65362949_user_alert`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b65362949_user_clicktodial`
--
ALTER TABLE `b65362949_user_clicktodial`
  ADD PRIMARY KEY (`fk_user`);

--
-- Indices de la tabla `b65362949_user_extrafields`
--
ALTER TABLE `b65362949_user_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_user_extrafields` (`fk_object`);

--
-- Indices de la tabla `b65362949_user_param`
--
ALTER TABLE `b65362949_user_param`
  ADD UNIQUE KEY `uk_user_param` (`fk_user`,`param`,`entity`);

--
-- Indices de la tabla `b65362949_user_rights`
--
ALTER TABLE `b65362949_user_rights`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_user_rights` (`fk_user`,`fk_id`);

--
-- Indices de la tabla `b67182907_accounting_account`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_accounting_bookkeeping`
--
ALTER TABLE `b67182907_accounting_bookkeeping`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_accounting_bookkeeping_doc_date` (`doc_date`),
  ADD KEY `idx_accounting_bookkeeping_fk_doc` (`fk_doc`),
  ADD KEY `idx_accounting_bookkeeping_fk_docdet` (`fk_docdet`),
  ADD KEY `idx_accounting_bookkeeping_numero_compte` (`numero_compte`),
  ADD KEY `idx_accounting_bookkeeping_code_journal` (`code_journal`);

--
-- Indices de la tabla `b67182907_accounting_bookkeeping_tmp`
--
ALTER TABLE `b67182907_accounting_bookkeeping_tmp`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_accounting_bookkeeping_doc_date` (`doc_date`),
  ADD KEY `idx_accounting_bookkeeping_fk_docdet` (`fk_docdet`),
  ADD KEY `idx_accounting_bookkeeping_numero_compte` (`numero_compte`),
  ADD KEY `idx_accounting_bookkeeping_code_journal` (`code_journal`);

--
-- Indices de la tabla `b67182907_accounting_fiscalyear`
--
ALTER TABLE `b67182907_accounting_fiscalyear`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_accounting_journal`
--
ALTER TABLE `b67182907_accounting_journal`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_accounting_journal_code` (`code`);

--
-- Indices de la tabla `b67182907_accounting_system`
--
ALTER TABLE `b67182907_accounting_system`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_accounting_system_pcg_version` (`pcg_version`);

--
-- Indices de la tabla `b67182907_actioncomm`
--
ALTER TABLE `b67182907_actioncomm`
  ADD PRIMARY KEY (`id`),
  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`);

--
-- Indices de la tabla `b67182907_actioncomm_extrafields`
--
ALTER TABLE `b67182907_actioncomm_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_actioncomm_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_actioncomm_reminder`
--
ALTER TABLE `b67182907_actioncomm_reminder`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_actioncomm_reminder_unique` (`fk_user`,`typeremind`,`offsetvalue`,`offsetunit`),
  ADD KEY `idx_actioncomm_reminder_rowid` (`rowid`),
  ADD KEY `idx_actioncomm_reminder_dateremind` (`dateremind`),
  ADD KEY `idx_actioncomm_reminder_fk_user` (`fk_user`);

--
-- Indices de la tabla `b67182907_actioncomm_resources`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_adherent`
--
ALTER TABLE `b67182907_adherent`
  ADD PRIMARY KEY (`rowid`),
  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`);

--
-- Indices de la tabla `b67182907_adherent_extrafields`
--
ALTER TABLE `b67182907_adherent_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_adherent_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_adherent_type`
--
ALTER TABLE `b67182907_adherent_type`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_adherent_type_libelle` (`libelle`,`entity`);

--
-- Indices de la tabla `b67182907_adherent_type_extrafields`
--
ALTER TABLE `b67182907_adherent_type_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_adherent_type_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_advtargetemailing`
--
ALTER TABLE `b67182907_advtargetemailing`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_advtargetemailing_name` (`name`);

--
-- Indices de la tabla `b67182907_bank`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_bank_account`
--
ALTER TABLE `b67182907_bank_account`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_bank_account_label` (`label`,`entity`),
  ADD KEY `idx_fk_accountancy_journal` (`fk_accountancy_journal`);

--
-- Indices de la tabla `b67182907_bank_account_extrafields`
--
ALTER TABLE `b67182907_bank_account_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_bank_account_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_bank_categ`
--
ALTER TABLE `b67182907_bank_categ`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_bank_class`
--
ALTER TABLE `b67182907_bank_class`
  ADD UNIQUE KEY `uk_bank_class_lineid` (`lineid`,`fk_categ`);

--
-- Indices de la tabla `b67182907_bank_url`
--
ALTER TABLE `b67182907_bank_url`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_bank_url` (`fk_bank`,`type`);

--
-- Indices de la tabla `b67182907_blockedlog`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_blockedlog_authority`
--
ALTER TABLE `b67182907_blockedlog_authority`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `signature` (`signature`);

--
-- Indices de la tabla `b67182907_bookmark`
--
ALTER TABLE `b67182907_bookmark`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_bookmark_url` (`fk_user`,`url`),
  ADD UNIQUE KEY `uk_bookmark_title` (`fk_user`,`title`);

--
-- Indices de la tabla `b67182907_bordereau_cheque`
--
ALTER TABLE `b67182907_bordereau_cheque`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_bordereau_cheque` (`ref`,`entity`);

--
-- Indices de la tabla `b67182907_boxes`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_boxes_def`
--
ALTER TABLE `b67182907_boxes_def`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_boxes_def` (`file`,`entity`,`note`);

--
-- Indices de la tabla `b67182907_budget`
--
ALTER TABLE `b67182907_budget`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_budget_lines`
--
ALTER TABLE `b67182907_budget_lines`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_budget_lines` (`fk_budget`,`fk_project_ids`);

--
-- Indices de la tabla `b67182907_categorie`
--
ALTER TABLE `b67182907_categorie`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_categorie_ref` (`entity`,`fk_parent`,`label`,`type`),
  ADD KEY `idx_categorie_type` (`type`),
  ADD KEY `idx_categorie_label` (`label`);

--
-- Indices de la tabla `b67182907_categories_extrafields`
--
ALTER TABLE `b67182907_categories_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_categories_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_categorie_account`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_categorie_contact`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_categorie_fournisseur`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_categorie_lang`
--
ALTER TABLE `b67182907_categorie_lang`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_category_lang` (`fk_category`,`lang`);

--
-- Indices de la tabla `b67182907_categorie_member`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_categorie_product`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_categorie_project`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_categorie_societe`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_categorie_user`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_chargesociales`
--
ALTER TABLE `b67182907_chargesociales`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_commande`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_commandedet`
--
ALTER TABLE `b67182907_commandedet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commandedet_fk_commande` (`fk_commande`),
  ADD KEY `idx_commandedet_fk_product` (`fk_product`);

--
-- Indices de la tabla `b67182907_commandedet_extrafields`
--
ALTER TABLE `b67182907_commandedet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commandedet_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_commande_extrafields`
--
ALTER TABLE `b67182907_commande_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_commande_fournisseur`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_commande_fournisseurdet`
--
ALTER TABLE `b67182907_commande_fournisseurdet`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_commande_fournisseurdet_extrafields`
--
ALTER TABLE `b67182907_commande_fournisseurdet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_fournisseurdet_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_commande_fournisseur_dispatch`
--
ALTER TABLE `b67182907_commande_fournisseur_dispatch`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_fournisseur_dispatch_fk_commande` (`fk_commande`);

--
-- Indices de la tabla `b67182907_commande_fournisseur_extrafields`
--
ALTER TABLE `b67182907_commande_fournisseur_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_fournisseur_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_commande_fournisseur_log`
--
ALTER TABLE `b67182907_commande_fournisseur_log`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_comment`
--
ALTER TABLE `b67182907_comment`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_const`
--
ALTER TABLE `b67182907_const`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_const` (`name`,`entity`);

--
-- Indices de la tabla `b67182907_contrat`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_contratdet`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_contratdet_extrafields`
--
ALTER TABLE `b67182907_contratdet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_contratdet_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_contratdet_log`
--
ALTER TABLE `b67182907_contratdet_log`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_contratdet_log_fk_contratdet` (`fk_contratdet`),
  ADD KEY `idx_contratdet_log_date` (`date`);

--
-- Indices de la tabla `b67182907_contrat_extrafields`
--
ALTER TABLE `b67182907_contrat_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_contrat_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_cronjob`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_c_accounting_category`
--
ALTER TABLE `b67182907_c_accounting_category`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_accounting_category` (`code`);

--
-- Indices de la tabla `b67182907_c_actioncomm`
--
ALTER TABLE `b67182907_c_actioncomm`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_actioncomm` (`code`);

--
-- Indices de la tabla `b67182907_c_action_trigger`
--
ALTER TABLE `b67182907_c_action_trigger`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_action_trigger_code` (`code`),
  ADD KEY `idx_action_trigger_rang` (`rang`);

--
-- Indices de la tabla `b67182907_c_availability`
--
ALTER TABLE `b67182907_c_availability`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_availability` (`code`);

--
-- Indices de la tabla `b67182907_c_barcode_type`
--
ALTER TABLE `b67182907_c_barcode_type`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_barcode_type` (`code`,`entity`);

--
-- Indices de la tabla `b67182907_c_chargesociales`
--
ALTER TABLE `b67182907_c_chargesociales`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `b67182907_c_civility`
--
ALTER TABLE `b67182907_c_civility`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_civility` (`code`);

--
-- Indices de la tabla `b67182907_c_country`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_c_currencies`
--
ALTER TABLE `b67182907_c_currencies`
  ADD PRIMARY KEY (`code_iso`),
  ADD UNIQUE KEY `uk_c_currencies_code_iso` (`code_iso`);

--
-- Indices de la tabla `b67182907_c_departements`
--
ALTER TABLE `b67182907_c_departements`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_departements` (`code_departement`,`fk_region`),
  ADD KEY `idx_departements_fk_region` (`fk_region`);

--
-- Indices de la tabla `b67182907_c_ecotaxe`
--
ALTER TABLE `b67182907_c_ecotaxe`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_ecotaxe` (`code`);

--
-- Indices de la tabla `b67182907_c_effectif`
--
ALTER TABLE `b67182907_c_effectif`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_effectif` (`code`);

--
-- Indices de la tabla `b67182907_c_email_senderprofile`
--
ALTER TABLE `b67182907_c_email_senderprofile`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_email_senderprofile` (`entity`,`label`,`email`);

--
-- Indices de la tabla `b67182907_c_email_templates`
--
ALTER TABLE `b67182907_c_email_templates`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_email_templates` (`entity`,`label`,`lang`),
  ADD KEY `idx_type` (`type_template`);

--
-- Indices de la tabla `b67182907_c_exp_tax_cat`
--
ALTER TABLE `b67182907_c_exp_tax_cat`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_c_exp_tax_range`
--
ALTER TABLE `b67182907_c_exp_tax_range`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_c_field_list`
--
ALTER TABLE `b67182907_c_field_list`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_c_format_cards`
--
ALTER TABLE `b67182907_c_format_cards`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_c_forme_juridique`
--
ALTER TABLE `b67182907_c_forme_juridique`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_forme_juridique` (`code`);

--
-- Indices de la tabla `b67182907_c_holiday_types`
--
ALTER TABLE `b67182907_c_holiday_types`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_holiday_types` (`code`);

--
-- Indices de la tabla `b67182907_c_hrm_department`
--
ALTER TABLE `b67182907_c_hrm_department`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_c_hrm_function`
--
ALTER TABLE `b67182907_c_hrm_function`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_c_incoterms`
--
ALTER TABLE `b67182907_c_incoterms`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_incoterms` (`code`);

--
-- Indices de la tabla `b67182907_c_input_method`
--
ALTER TABLE `b67182907_c_input_method`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_input_method` (`code`);

--
-- Indices de la tabla `b67182907_c_input_reason`
--
ALTER TABLE `b67182907_c_input_reason`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_input_reason` (`code`);

--
-- Indices de la tabla `b67182907_c_lead_status`
--
ALTER TABLE `b67182907_c_lead_status`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_lead_status_code` (`code`);

--
-- Indices de la tabla `b67182907_c_paiement`
--
ALTER TABLE `b67182907_c_paiement`
  ADD UNIQUE KEY `uk_c_paiement` (`id`,`entity`,`code`);

--
-- Indices de la tabla `b67182907_c_paper_format`
--
ALTER TABLE `b67182907_c_paper_format`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_c_payment_term`
--
ALTER TABLE `b67182907_c_payment_term`
  ADD UNIQUE KEY `uk_c_payment_term` (`rowid`,`entity`,`code`);

--
-- Indices de la tabla `b67182907_c_price_expression`
--
ALTER TABLE `b67182907_c_price_expression`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_c_price_global_variable`
--
ALTER TABLE `b67182907_c_price_global_variable`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_c_price_global_variable_updater`
--
ALTER TABLE `b67182907_c_price_global_variable_updater`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_c_propalst`
--
ALTER TABLE `b67182907_c_propalst`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_propalst` (`code`);

--
-- Indices de la tabla `b67182907_c_prospectlevel`
--
ALTER TABLE `b67182907_c_prospectlevel`
  ADD PRIMARY KEY (`code`);

--
-- Indices de la tabla `b67182907_c_regions`
--
ALTER TABLE `b67182907_c_regions`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_code_region` (`code_region`),
  ADD KEY `idx_c_regions_fk_pays` (`fk_pays`);

--
-- Indices de la tabla `b67182907_c_revenuestamp`
--
ALTER TABLE `b67182907_c_revenuestamp`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_c_shipment_mode`
--
ALTER TABLE `b67182907_c_shipment_mode`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_shipment_mode` (`code`);

--
-- Indices de la tabla `b67182907_c_stcomm`
--
ALTER TABLE `b67182907_c_stcomm`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_stcomm` (`code`);

--
-- Indices de la tabla `b67182907_c_tva`
--
ALTER TABLE `b67182907_c_tva`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_tva_id` (`fk_pays`,`code`,`taux`,`recuperableonly`);

--
-- Indices de la tabla `b67182907_c_typent`
--
ALTER TABLE `b67182907_c_typent`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_typent` (`code`);

--
-- Indices de la tabla `b67182907_c_type_contact`
--
ALTER TABLE `b67182907_c_type_contact`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_type_contact_id` (`element`,`source`,`code`);

--
-- Indices de la tabla `b67182907_c_type_fees`
--
ALTER TABLE `b67182907_c_type_fees`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_type_fees` (`code`);

--
-- Indices de la tabla `b67182907_c_type_resource`
--
ALTER TABLE `b67182907_c_type_resource`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_type_resource_id` (`label`,`code`);

--
-- Indices de la tabla `b67182907_c_units`
--
ALTER TABLE `b67182907_c_units`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_units_code` (`code`);

--
-- Indices de la tabla `b67182907_c_ziptown`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_default_values`
--
ALTER TABLE `b67182907_default_values`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_default_values` (`type`,`entity`,`user_id`,`page`,`param`);

--
-- Indices de la tabla `b67182907_deplacement`
--
ALTER TABLE `b67182907_deplacement`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_document_model`
--
ALTER TABLE `b67182907_document_model`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_document_model` (`nom`,`type`,`entity`);

--
-- Indices de la tabla `b67182907_don`
--
ALTER TABLE `b67182907_don`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_don_extrafields`
--
ALTER TABLE `b67182907_don_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_don_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_ecm_directories`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_ecm_files`
--
ALTER TABLE `b67182907_ecm_files`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_ecm_files` (`filepath`,`filename`),
  ADD KEY `idx_ecm_files_label` (`label`);

--
-- Indices de la tabla `b67182907_element_contact`
--
ALTER TABLE `b67182907_element_contact`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_element_contact_idx1` (`element_id`,`fk_c_type_contact`,`fk_socpeople`),
  ADD KEY `idx_element_contact_fk_socpeople` (`fk_socpeople`);

--
-- Indices de la tabla `b67182907_element_element`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_element_resources`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_entrepot`
--
ALTER TABLE `b67182907_entrepot`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_entrepot_label` (`ref`,`entity`);

--
-- Indices de la tabla `b67182907_establishment`
--
ALTER TABLE `b67182907_establishment`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_events`
--
ALTER TABLE `b67182907_events`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_events_dateevent` (`dateevent`);

--
-- Indices de la tabla `b67182907_event_element`
--
ALTER TABLE `b67182907_event_element`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_expedition`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_expeditiondet`
--
ALTER TABLE `b67182907_expeditiondet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_expeditiondet_fk_expedition` (`fk_expedition`);

--
-- Indices de la tabla `b67182907_expeditiondet_batch`
--
ALTER TABLE `b67182907_expeditiondet_batch`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_fk_expeditiondet` (`fk_expeditiondet`);

--
-- Indices de la tabla `b67182907_expeditiondet_extrafields`
--
ALTER TABLE `b67182907_expeditiondet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_expeditiondet_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_expedition_extrafields`
--
ALTER TABLE `b67182907_expedition_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_expedition_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_expensereport`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_expensereport_det`
--
ALTER TABLE `b67182907_expensereport_det`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_expensereport_extrafields`
--
ALTER TABLE `b67182907_expensereport_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_expensereport_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_expensereport_ik`
--
ALTER TABLE `b67182907_expensereport_ik`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_expensereport_rules`
--
ALTER TABLE `b67182907_expensereport_rules`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_export_compta`
--
ALTER TABLE `b67182907_export_compta`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_export_model`
--
ALTER TABLE `b67182907_export_model`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_export_model` (`label`,`type`);

--
-- Indices de la tabla `b67182907_extrafields`
--
ALTER TABLE `b67182907_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_extrafields_name` (`name`,`entity`,`elementtype`);

--
-- Indices de la tabla `b67182907_facture`
--
ALTER TABLE `b67182907_facture`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_facture_uk_facnumber` (`facnumber`,`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`);

--
-- Indices de la tabla `b67182907_facturedet`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_facturedet_extrafields`
--
ALTER TABLE `b67182907_facturedet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facturedet_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_facturedet_rec`
--
ALTER TABLE `b67182907_facturedet_rec`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_facturedet_rec_extrafields`
--
ALTER TABLE `b67182907_facturedet_rec_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facturedet_rec_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_facture_extrafields`
--
ALTER TABLE `b67182907_facture_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_facture_fourn`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_facture_fourn_det`
--
ALTER TABLE `b67182907_facture_fourn_det`
  ADD PRIMARY KEY (`rowid`),
  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`);

--
-- Indices de la tabla `b67182907_facture_fourn_det_extrafields`
--
ALTER TABLE `b67182907_facture_fourn_det_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_fourn_det_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_facture_fourn_extrafields`
--
ALTER TABLE `b67182907_facture_fourn_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_fourn_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_facture_rec`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_facture_rec_extrafields`
--
ALTER TABLE `b67182907_facture_rec_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_rec_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_fichinter`
--
ALTER TABLE `b67182907_fichinter`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_fichinter_ref` (`ref`,`entity`),
  ADD KEY `idx_fichinter_fk_soc` (`fk_soc`);

--
-- Indices de la tabla `b67182907_fichinterdet`
--
ALTER TABLE `b67182907_fichinterdet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_fichinterdet_fk_fichinter` (`fk_fichinter`);

--
-- Indices de la tabla `b67182907_fichinterdet_extrafields`
--
ALTER TABLE `b67182907_fichinterdet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_ficheinterdet_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_fichinter_extrafields`
--
ALTER TABLE `b67182907_fichinter_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_ficheinter_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_holiday`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_holiday_config`
--
ALTER TABLE `b67182907_holiday_config`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_holiday_config` (`name`);

--
-- Indices de la tabla `b67182907_holiday_logs`
--
ALTER TABLE `b67182907_holiday_logs`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_holiday_users`
--
ALTER TABLE `b67182907_holiday_users`
  ADD UNIQUE KEY `uk_holiday_users` (`fk_user`,`fk_type`,`nb_holiday`);

--
-- Indices de la tabla `b67182907_import_model`
--
ALTER TABLE `b67182907_import_model`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_import_model` (`label`,`type`);

--
-- Indices de la tabla `b67182907_inventory`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_inventorydet`
--
ALTER TABLE `b67182907_inventorydet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_inventorydet_tms` (`tms`),
  ADD KEY `idx_inventorydet_datec` (`datec`),
  ADD KEY `idx_inventorydet_fk_inventory` (`fk_inventory`);

--
-- Indices de la tabla `b67182907_links`
--
ALTER TABLE `b67182907_links`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_links` (`objectid`,`label`);

--
-- Indices de la tabla `b67182907_livraison`
--
ALTER TABLE `b67182907_livraison`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_livraison_uk_ref` (`ref`,`entity`),
  ADD KEY `idx_livraison_fk_soc` (`fk_soc`),
  ADD KEY `idx_livraison_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_livraison_fk_user_valid` (`fk_user_valid`);

--
-- Indices de la tabla `b67182907_livraisondet`
--
ALTER TABLE `b67182907_livraisondet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_livraisondet_fk_expedition` (`fk_livraison`);

--
-- Indices de la tabla `b67182907_livraisondet_extrafields`
--
ALTER TABLE `b67182907_livraisondet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_livraisondet_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_livraison_extrafields`
--
ALTER TABLE `b67182907_livraison_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_livraison_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_loan`
--
ALTER TABLE `b67182907_loan`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_loan_schedule`
--
ALTER TABLE `b67182907_loan_schedule`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_localtax`
--
ALTER TABLE `b67182907_localtax`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_mailing`
--
ALTER TABLE `b67182907_mailing`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_mailing_cibles`
--
ALTER TABLE `b67182907_mailing_cibles`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_mailing_cibles` (`fk_mailing`,`email`),
  ADD KEY `idx_mailing_cibles_email` (`email`);

--
-- Indices de la tabla `b67182907_menu`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_multicurrency`
--
ALTER TABLE `b67182907_multicurrency`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_multicurrency_rate`
--
ALTER TABLE `b67182907_multicurrency_rate`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_notify`
--
ALTER TABLE `b67182907_notify`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_notify_def`
--
ALTER TABLE `b67182907_notify_def`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_notify_def_object`
--
ALTER TABLE `b67182907_notify_def_object`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `b67182907_oauth_state`
--
ALTER TABLE `b67182907_oauth_state`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_oauth_token`
--
ALTER TABLE `b67182907_oauth_token`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_onlinesignature`
--
ALTER TABLE `b67182907_onlinesignature`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_opensurvey_comments`
--
ALTER TABLE `b67182907_opensurvey_comments`
  ADD PRIMARY KEY (`id_comment`),
  ADD KEY `idx_id_comment` (`id_comment`),
  ADD KEY `idx_id_sondage` (`id_sondage`);

--
-- Indices de la tabla `b67182907_opensurvey_formquestions`
--
ALTER TABLE `b67182907_opensurvey_formquestions`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_opensurvey_sondage`
--
ALTER TABLE `b67182907_opensurvey_sondage`
  ADD PRIMARY KEY (`id_sondage`),
  ADD KEY `idx_date_fin` (`date_fin`);

--
-- Indices de la tabla `b67182907_opensurvey_user_studs`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_overwrite_trans`
--
ALTER TABLE `b67182907_overwrite_trans`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_overwrite_trans` (`lang`,`transkey`);

--
-- Indices de la tabla `b67182907_paiement`
--
ALTER TABLE `b67182907_paiement`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_paiementcharge`
--
ALTER TABLE `b67182907_paiementcharge`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_paiementfourn`
--
ALTER TABLE `b67182907_paiementfourn`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_paiementfourn_facturefourn`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_paiement_facture`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_payment_donation`
--
ALTER TABLE `b67182907_payment_donation`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_payment_expensereport`
--
ALTER TABLE `b67182907_payment_expensereport`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_payment_loan`
--
ALTER TABLE `b67182907_payment_loan`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_payment_salary`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_payment_various`
--
ALTER TABLE `b67182907_payment_various`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_prelevement_bons`
--
ALTER TABLE `b67182907_prelevement_bons`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_prelevement_bons_ref` (`ref`,`entity`);

--
-- Indices de la tabla `b67182907_prelevement_facture`
--
ALTER TABLE `b67182907_prelevement_facture`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_prelevement_facture_fk_prelevement_lignes` (`fk_prelevement_lignes`);

--
-- Indices de la tabla `b67182907_prelevement_facture_demande`
--
ALTER TABLE `b67182907_prelevement_facture_demande`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_prelevement_lignes`
--
ALTER TABLE `b67182907_prelevement_lignes`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_prelevement_lignes_fk_prelevement_bons` (`fk_prelevement_bons`);

--
-- Indices de la tabla `b67182907_prelevement_rejet`
--
ALTER TABLE `b67182907_prelevement_rejet`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_printing`
--
ALTER TABLE `b67182907_printing`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_product`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_product_association`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_product_attribute`
--
ALTER TABLE `b67182907_product_attribute`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_attribute_ref` (`ref`);

--
-- Indices de la tabla `b67182907_product_attribute_combination`
--
ALTER TABLE `b67182907_product_attribute_combination`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_product_attribute_combination2val`
--
ALTER TABLE `b67182907_product_attribute_combination2val`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_product_attribute_value`
--
ALTER TABLE `b67182907_product_attribute_value`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_attribute_value` (`fk_product_attribute`,`ref`);

--
-- Indices de la tabla `b67182907_product_batch`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_product_customer_price`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_product_customer_price_log`
--
ALTER TABLE `b67182907_product_customer_price_log`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_product_extrafields`
--
ALTER TABLE `b67182907_product_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_product_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_product_fournisseur_price`
--
ALTER TABLE `b67182907_product_fournisseur_price`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_fournisseur_price_ref` (`ref_fourn`,`fk_soc`,`quantity`,`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`);

--
-- Indices de la tabla `b67182907_product_fournisseur_price_log`
--
ALTER TABLE `b67182907_product_fournisseur_price_log`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_product_lang`
--
ALTER TABLE `b67182907_product_lang`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_lang` (`fk_product`,`lang`);

--
-- Indices de la tabla `b67182907_product_lot`
--
ALTER TABLE `b67182907_product_lot`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_lot` (`fk_product`,`batch`);

--
-- Indices de la tabla `b67182907_product_lot_extrafields`
--
ALTER TABLE `b67182907_product_lot_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_product_lot_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_product_price`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_product_pricerules`
--
ALTER TABLE `b67182907_product_pricerules`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `unique_level` (`level`);

--
-- Indices de la tabla `b67182907_product_price_by_qty`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_product_stock`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_product_warehouse_properties`
--
ALTER TABLE `b67182907_product_warehouse_properties`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_projet`
--
ALTER TABLE `b67182907_projet`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_projet_ref` (`ref`,`entity`),
  ADD KEY `idx_projet_fk_soc` (`fk_soc`);

--
-- Indices de la tabla `b67182907_projet_extrafields`
--
ALTER TABLE `b67182907_projet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_projet_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_projet_task`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_projet_task_extrafields`
--
ALTER TABLE `b67182907_projet_task_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_projet_task_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_projet_task_time`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_propal`
--
ALTER TABLE `b67182907_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_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`);

--
-- Indices de la tabla `b67182907_propaldet`
--
ALTER TABLE `b67182907_propaldet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_propaldet_fk_propal` (`fk_propal`),
  ADD KEY `idx_propaldet_fk_product` (`fk_product`);

--
-- Indices de la tabla `b67182907_propaldet_extrafields`
--
ALTER TABLE `b67182907_propaldet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_propaldet_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_propal_extrafields`
--
ALTER TABLE `b67182907_propal_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_propal_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_propal_merge_pdf_product`
--
ALTER TABLE `b67182907_propal_merge_pdf_product`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_resource`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_resource_extrafields`
--
ALTER TABLE `b67182907_resource_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_resource_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_rights_def`
--
ALTER TABLE `b67182907_rights_def`
  ADD PRIMARY KEY (`id`,`entity`);

--
-- Indices de la tabla `b67182907_societe`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_societe_address`
--
ALTER TABLE `b67182907_societe_address`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_societe_commerciaux`
--
ALTER TABLE `b67182907_societe_commerciaux`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_societe_commerciaux` (`fk_soc`,`fk_user`);

--
-- Indices de la tabla `b67182907_societe_extrafields`
--
ALTER TABLE `b67182907_societe_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_societe_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_societe_log`
--
ALTER TABLE `b67182907_societe_log`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `b67182907_societe_prices`
--
ALTER TABLE `b67182907_societe_prices`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_societe_remise`
--
ALTER TABLE `b67182907_societe_remise`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_societe_remise_except`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_societe_rib`
--
ALTER TABLE `b67182907_societe_rib`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_societe_rib` (`label`,`fk_soc`);

--
-- Indices de la tabla `b67182907_socpeople`
--
ALTER TABLE `b67182907_socpeople`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_socpeople_fk_soc` (`fk_soc`),
  ADD KEY `idx_socpeople_fk_user_creat` (`fk_user_creat`);

--
-- Indices de la tabla `b67182907_socpeople_extrafields`
--
ALTER TABLE `b67182907_socpeople_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_socpeople_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_stock_mouvement`
--
ALTER TABLE `b67182907_stock_mouvement`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_stock_mouvement_fk_product` (`fk_product`),
  ADD KEY `idx_stock_mouvement_fk_entrepot` (`fk_entrepot`);

--
-- Indices de la tabla `b67182907_subscription`
--
ALTER TABLE `b67182907_subscription`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_subscription` (`fk_adherent`,`dateadh`);

--
-- Indices de la tabla `b67182907_supplier_proposal`
--
ALTER TABLE `b67182907_supplier_proposal`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_supplier_proposaldet`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_supplier_proposaldet_extrafields`
--
ALTER TABLE `b67182907_supplier_proposaldet_extrafields`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_supplier_proposal_extrafields`
--
ALTER TABLE `b67182907_supplier_proposal_extrafields`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_tva`
--
ALTER TABLE `b67182907_tva`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_user`
--
ALTER TABLE `b67182907_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`);

--
-- Indices de la tabla `b67182907_usergroup`
--
ALTER TABLE `b67182907_usergroup`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_usergroup_name` (`nom`,`entity`);

--
-- Indices de la tabla `b67182907_usergroup_extrafields`
--
ALTER TABLE `b67182907_usergroup_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_usergroup_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_usergroup_rights`
--
ALTER TABLE `b67182907_usergroup_rights`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_usergroup_rights` (`entity`,`fk_usergroup`,`fk_id`);

--
-- Indices de la tabla `b67182907_usergroup_user`
--
ALTER TABLE `b67182907_usergroup_user`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_usergroup_user` (`entity`,`fk_user`,`fk_usergroup`);

--
-- Indices de la tabla `b67182907_user_alert`
--
ALTER TABLE `b67182907_user_alert`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_user_clicktodial`
--
ALTER TABLE `b67182907_user_clicktodial`
  ADD PRIMARY KEY (`fk_user`);

--
-- Indices de la tabla `b67182907_user_employment`
--
ALTER TABLE `b67182907_user_employment`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_user_employment` (`ref`,`entity`);

--
-- Indices de la tabla `b67182907_user_extrafields`
--
ALTER TABLE `b67182907_user_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_user_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_user_param`
--
ALTER TABLE `b67182907_user_param`
  ADD UNIQUE KEY `uk_user_param` (`fk_user`,`param`,`entity`);

--
-- Indices de la tabla `b67182907_user_rib`
--
ALTER TABLE `b67182907_user_rib`
  ADD PRIMARY KEY (`rowid`);

--
-- Indices de la tabla `b67182907_user_rights`
--
ALTER TABLE `b67182907_user_rights`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_user_rights` (`entity`,`fk_user`,`fk_id`);

--
-- Indices de la tabla `b67182907_website`
--
ALTER TABLE `b67182907_website`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_website_ref` (`ref`,`entity`);

--
-- Indices de la tabla `b67182907_website_account`
--
ALTER TABLE `b67182907_website_account`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_website_account_login_website_soc` (`login`,`fk_website`,`fk_soc`),
  ADD KEY `idx_website_account_rowid` (`rowid`),
  ADD KEY `idx_website_account_login` (`login`),
  ADD KEY `idx_website_account_status` (`status`),
  ADD KEY `idx_website_account_fk_website` (`fk_website`),
  ADD KEY `idx_website_account_fk_soc` (`fk_soc`);

--
-- Indices de la tabla `b67182907_website_account_extrafields`
--
ALTER TABLE `b67182907_website_account_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_website_account_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_website_extrafields`
--
ALTER TABLE `b67182907_website_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_website_extrafields` (`fk_object`);

--
-- Indices de la tabla `b67182907_website_page`
--
ALTER TABLE `b67182907_website_page`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_website_page_url` (`fk_website`,`pageurl`);

--
-- Indices de la tabla `clinica_import_model`
--
ALTER TABLE `clinica_import_model`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_import_model` (`label`,`type`);

--
-- AUTO_INCREMENT de las tablas volcadas
--

--
-- AUTO_INCREMENT de la tabla `b65362949_accountingaccount`
--
ALTER TABLE `b65362949_accountingaccount`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1508;

--
-- AUTO_INCREMENT de la tabla `b65362949_accountingtransaction`
--
ALTER TABLE `b65362949_accountingtransaction`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_accounting_system`
--
ALTER TABLE `b65362949_accounting_system`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT de la tabla `b65362949_actioncomm`
--
ALTER TABLE `b65362949_actioncomm`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5918;

--
-- AUTO_INCREMENT de la tabla `b65362949_actioncomm_extrafields`
--
ALTER TABLE `b65362949_actioncomm_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_actioncomm_resources`
--
ALTER TABLE `b65362949_actioncomm_resources`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_adherent`
--
ALTER TABLE `b65362949_adherent`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_adherent_extrafields`
--
ALTER TABLE `b65362949_adherent_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_adherent_type`
--
ALTER TABLE `b65362949_adherent_type`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_adherent_type_extrafields`
--
ALTER TABLE `b65362949_adherent_type_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_bank`
--
ALTER TABLE `b65362949_bank`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3635;

--
-- AUTO_INCREMENT de la tabla `b65362949_bank_account`
--
ALTER TABLE `b65362949_bank_account`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT de la tabla `b65362949_bank_categ`
--
ALTER TABLE `b65362949_bank_categ`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_bank_url`
--
ALTER TABLE `b65362949_bank_url`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5738;

--
-- AUTO_INCREMENT de la tabla `b65362949_bookmark`
--
ALTER TABLE `b65362949_bookmark`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_bordereau_cheque`
--
ALTER TABLE `b65362949_bordereau_cheque`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;

--
-- AUTO_INCREMENT de la tabla `b65362949_boxes`
--
ALTER TABLE `b65362949_boxes`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1102;

--
-- AUTO_INCREMENT de la tabla `b65362949_boxes_def`
--
ALTER TABLE `b65362949_boxes_def`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45;

--
-- AUTO_INCREMENT de la tabla `b65362949_categorie`
--
ALTER TABLE `b65362949_categorie`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_categories_extrafields`
--
ALTER TABLE `b65362949_categories_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_categorie_lang`
--
ALTER TABLE `b65362949_categorie_lang`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_chargesociales`
--
ALTER TABLE `b65362949_chargesociales`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=454;

--
-- AUTO_INCREMENT de la tabla `b65362949_commande`
--
ALTER TABLE `b65362949_commande`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT de la tabla `b65362949_commandedet`
--
ALTER TABLE `b65362949_commandedet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;

--
-- AUTO_INCREMENT de la tabla `b65362949_commandedet_extrafields`
--
ALTER TABLE `b65362949_commandedet_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_commande_extrafields`
--
ALTER TABLE `b65362949_commande_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_commande_fournisseur`
--
ALTER TABLE `b65362949_commande_fournisseur`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_commande_fournisseurdet`
--
ALTER TABLE `b65362949_commande_fournisseurdet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_commande_fournisseur_dispatch`
--
ALTER TABLE `b65362949_commande_fournisseur_dispatch`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_commande_fournisseur_extrafields`
--
ALTER TABLE `b65362949_commande_fournisseur_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_commande_fournisseur_log`
--
ALTER TABLE `b65362949_commande_fournisseur_log`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_compta`
--
ALTER TABLE `b65362949_compta`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_compta_account`
--
ALTER TABLE `b65362949_compta_account`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_compta_compte_generaux`
--
ALTER TABLE `b65362949_compta_compte_generaux`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_const`
--
ALTER TABLE `b65362949_const`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=810;

--
-- AUTO_INCREMENT de la tabla `b65362949_contrat`
--
ALTER TABLE `b65362949_contrat`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT de la tabla `b65362949_contratdet`
--
ALTER TABLE `b65362949_contratdet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;

--
-- AUTO_INCREMENT de la tabla `b65362949_contratdet_log`
--
ALTER TABLE `b65362949_contratdet_log`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_contrat_extrafields`
--
ALTER TABLE `b65362949_contrat_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_cotisation`
--
ALTER TABLE `b65362949_cotisation`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_cronjob`
--
ALTER TABLE `b65362949_cronjob`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_c_action_trigger`
--
ALTER TABLE `b65362949_c_action_trigger`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38;

--
-- AUTO_INCREMENT de la tabla `b65362949_c_availability`
--
ALTER TABLE `b65362949_c_availability`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT de la tabla `b65362949_c_barcode_type`
--
ALTER TABLE `b65362949_c_barcode_type`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_c_chargesociales`
--
ALTER TABLE `b65362949_c_chargesociales`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=235;

--
-- AUTO_INCREMENT de la tabla `b65362949_c_departements`
--
ALTER TABLE `b65362949_c_departements`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1010;

--
-- AUTO_INCREMENT de la tabla `b65362949_c_ecotaxe`
--
ALTER TABLE `b65362949_c_ecotaxe`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;

--
-- AUTO_INCREMENT de la tabla `b65362949_c_email_templates`
--
ALTER TABLE `b65362949_c_email_templates`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_c_field_list`
--
ALTER TABLE `b65362949_c_field_list`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_c_forme_juridique`
--
ALTER TABLE `b65362949_c_forme_juridique`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=192;

--
-- AUTO_INCREMENT de la tabla `b65362949_c_input_method`
--
ALTER TABLE `b65362949_c_input_method`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT de la tabla `b65362949_c_input_reason`
--
ALTER TABLE `b65362949_c_input_reason`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT de la tabla `b65362949_c_paper_format`
--
ALTER TABLE `b65362949_c_paper_format`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=226;

--
-- AUTO_INCREMENT de la tabla `b65362949_c_regions`
--
ALTER TABLE `b65362949_c_regions`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23210;

--
-- AUTO_INCREMENT de la tabla `b65362949_c_revenuestamp`
--
ALTER TABLE `b65362949_c_revenuestamp`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=102;

--
-- AUTO_INCREMENT de la tabla `b65362949_c_shipment_mode`
--
ALTER TABLE `b65362949_c_shipment_mode`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT de la tabla `b65362949_c_tva`
--
ALTER TABLE `b65362949_c_tva`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2469;

--
-- AUTO_INCREMENT de la tabla `b65362949_c_type_fees`
--
ALTER TABLE `b65362949_c_type_fees`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT de la tabla `b65362949_c_ziptown`
--
ALTER TABLE `b65362949_c_ziptown`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_deplacement`
--
ALTER TABLE `b65362949_deplacement`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_document_model`
--
ALTER TABLE `b65362949_document_model`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT de la tabla `b65362949_don`
--
ALTER TABLE `b65362949_don`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_ecm_directories`
--
ALTER TABLE `b65362949_ecm_directories`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_element_contact`
--
ALTER TABLE `b65362949_element_contact`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;

--
-- AUTO_INCREMENT de la tabla `b65362949_element_element`
--
ALTER TABLE `b65362949_element_element`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=59;

--
-- AUTO_INCREMENT de la tabla `b65362949_element_lock`
--
ALTER TABLE `b65362949_element_lock`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_element_resources`
--
ALTER TABLE `b65362949_element_resources`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_element_tag`
--
ALTER TABLE `b65362949_element_tag`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_entrepot`
--
ALTER TABLE `b65362949_entrepot`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_events`
--
ALTER TABLE `b65362949_events`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_event_element`
--
ALTER TABLE `b65362949_event_element`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_expedition`
--
ALTER TABLE `b65362949_expedition`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT de la tabla `b65362949_expeditiondet`
--
ALTER TABLE `b65362949_expeditiondet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT de la tabla `b65362949_expeditiondet_batch`
--
ALTER TABLE `b65362949_expeditiondet_batch`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_export_compta`
--
ALTER TABLE `b65362949_export_compta`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_export_model`
--
ALTER TABLE `b65362949_export_model`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `b65362949_extrafields`
--
ALTER TABLE `b65362949_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_facture`
--
ALTER TABLE `b65362949_facture`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1201;

--
-- AUTO_INCREMENT de la tabla `b65362949_facturedet`
--
ALTER TABLE `b65362949_facturedet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2179;

--
-- AUTO_INCREMENT de la tabla `b65362949_facturedet_extrafields`
--
ALTER TABLE `b65362949_facturedet_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_facturedet_rec`
--
ALTER TABLE `b65362949_facturedet_rec`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_facture_extrafields`
--
ALTER TABLE `b65362949_facture_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_facture_fourn`
--
ALTER TABLE `b65362949_facture_fourn`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1152;

--
-- AUTO_INCREMENT de la tabla `b65362949_facture_fourn_det`
--
ALTER TABLE `b65362949_facture_fourn_det`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1439;

--
-- AUTO_INCREMENT de la tabla `b65362949_facture_fourn_extrafields`
--
ALTER TABLE `b65362949_facture_fourn_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_facture_rec`
--
ALTER TABLE `b65362949_facture_rec`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_fichinter`
--
ALTER TABLE `b65362949_fichinter`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_fichinterdet`
--
ALTER TABLE `b65362949_fichinterdet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_fichinter_extrafields`
--
ALTER TABLE `b65362949_fichinter_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_holiday`
--
ALTER TABLE `b65362949_holiday`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT de la tabla `b65362949_holiday_config`
--
ALTER TABLE `b65362949_holiday_config`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT de la tabla `b65362949_holiday_events`
--
ALTER TABLE `b65362949_holiday_events`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_holiday_logs`
--
ALTER TABLE `b65362949_holiday_logs`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=128;

--
-- AUTO_INCREMENT de la tabla `b65362949_import_model`
--
ALTER TABLE `b65362949_import_model`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_links`
--
ALTER TABLE `b65362949_links`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_livraison`
--
ALTER TABLE `b65362949_livraison`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_livraisondet`
--
ALTER TABLE `b65362949_livraisondet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_localtax`
--
ALTER TABLE `b65362949_localtax`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_mailing`
--
ALTER TABLE `b65362949_mailing`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_mailing_cibles`
--
ALTER TABLE `b65362949_mailing_cibles`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_menu`
--
ALTER TABLE `b65362949_menu`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;

--
-- AUTO_INCREMENT de la tabla `b65362949_notify`
--
ALTER TABLE `b65362949_notify`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_notify_def`
--
ALTER TABLE `b65362949_notify_def`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_opensurvey_comments`
--
ALTER TABLE `b65362949_opensurvey_comments`
  MODIFY `id_comment` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_opensurvey_user_studs`
--
ALTER TABLE `b65362949_opensurvey_user_studs`
  MODIFY `id_users` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_paiement`
--
ALTER TABLE `b65362949_paiement`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=917;

--
-- AUTO_INCREMENT de la tabla `b65362949_paiementcharge`
--
ALTER TABLE `b65362949_paiementcharge`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=429;

--
-- AUTO_INCREMENT de la tabla `b65362949_paiementfourn`
--
ALTER TABLE `b65362949_paiementfourn`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=940;

--
-- AUTO_INCREMENT de la tabla `b65362949_paiementfourn_facturefourn`
--
ALTER TABLE `b65362949_paiementfourn_facturefourn`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1000;

--
-- AUTO_INCREMENT de la tabla `b65362949_paiement_facture`
--
ALTER TABLE `b65362949_paiement_facture`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1239;

--
-- AUTO_INCREMENT de la tabla `b65362949_payment_salary`
--
ALTER TABLE `b65362949_payment_salary`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=251;

--
-- AUTO_INCREMENT de la tabla `b65362949_prelevement_bons`
--
ALTER TABLE `b65362949_prelevement_bons`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=206;

--
-- AUTO_INCREMENT de la tabla `b65362949_prelevement_facture`
--
ALTER TABLE `b65362949_prelevement_facture`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=328;

--
-- AUTO_INCREMENT de la tabla `b65362949_prelevement_facture_demande`
--
ALTER TABLE `b65362949_prelevement_facture_demande`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=290;

--
-- AUTO_INCREMENT de la tabla `b65362949_prelevement_lignes`
--
ALTER TABLE `b65362949_prelevement_lignes`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=328;

--
-- AUTO_INCREMENT de la tabla `b65362949_prelevement_rejet`
--
ALTER TABLE `b65362949_prelevement_rejet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT de la tabla `b65362949_printer_ipp`
--
ALTER TABLE `b65362949_printer_ipp`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_product`
--
ALTER TABLE `b65362949_product`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT de la tabla `b65362949_product_association`
--
ALTER TABLE `b65362949_product_association`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_product_batch`
--
ALTER TABLE `b65362949_product_batch`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_product_customer_price`
--
ALTER TABLE `b65362949_product_customer_price`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_product_customer_price_log`
--
ALTER TABLE `b65362949_product_customer_price_log`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_product_extrafields`
--
ALTER TABLE `b65362949_product_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_product_fournisseur_price`
--
ALTER TABLE `b65362949_product_fournisseur_price`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_product_fournisseur_price_log`
--
ALTER TABLE `b65362949_product_fournisseur_price_log`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_product_lang`
--
ALTER TABLE `b65362949_product_lang`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_product_price`
--
ALTER TABLE `b65362949_product_price`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT de la tabla `b65362949_product_price_by_qty`
--
ALTER TABLE `b65362949_product_price_by_qty`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_product_stock`
--
ALTER TABLE `b65362949_product_stock`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_projet`
--
ALTER TABLE `b65362949_projet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `b65362949_projet_extrafields`
--
ALTER TABLE `b65362949_projet_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_projet_task`
--
ALTER TABLE `b65362949_projet_task`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_projet_task_extrafields`
--
ALTER TABLE `b65362949_projet_task_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_projet_task_time`
--
ALTER TABLE `b65362949_projet_task_time`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_propal`
--
ALTER TABLE `b65362949_propal`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=116;

--
-- AUTO_INCREMENT de la tabla `b65362949_propaldet`
--
ALTER TABLE `b65362949_propaldet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=464;

--
-- AUTO_INCREMENT de la tabla `b65362949_propaldet_extrafields`
--
ALTER TABLE `b65362949_propaldet_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_propal_extrafields`
--
ALTER TABLE `b65362949_propal_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_resource`
--
ALTER TABLE `b65362949_resource`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_societe`
--
ALTER TABLE `b65362949_societe`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=217;

--
-- AUTO_INCREMENT de la tabla `b65362949_societe_address`
--
ALTER TABLE `b65362949_societe_address`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_societe_commerciaux`
--
ALTER TABLE `b65362949_societe_commerciaux`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=204;

--
-- AUTO_INCREMENT de la tabla `b65362949_societe_extrafields`
--
ALTER TABLE `b65362949_societe_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_societe_log`
--
ALTER TABLE `b65362949_societe_log`
  MODIFY `id` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_societe_prices`
--
ALTER TABLE `b65362949_societe_prices`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_societe_remise`
--
ALTER TABLE `b65362949_societe_remise`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_societe_remise_except`
--
ALTER TABLE `b65362949_societe_remise_except`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_societe_rib`
--
ALTER TABLE `b65362949_societe_rib`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;

--
-- AUTO_INCREMENT de la tabla `b65362949_socpeople`
--
ALTER TABLE `b65362949_socpeople`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38;

--
-- AUTO_INCREMENT de la tabla `b65362949_socpeople_extrafields`
--
ALTER TABLE `b65362949_socpeople_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_stock_mouvement`
--
ALTER TABLE `b65362949_stock_mouvement`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_texts`
--
ALTER TABLE `b65362949_texts`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_tva`
--
ALTER TABLE `b65362949_tva`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;

--
-- AUTO_INCREMENT de la tabla `b65362949_user`
--
ALTER TABLE `b65362949_user`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT de la tabla `b65362949_usergroup`
--
ALTER TABLE `b65362949_usergroup`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT de la tabla `b65362949_usergroup_rights`
--
ALTER TABLE `b65362949_usergroup_rights`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT de la tabla `b65362949_usergroup_user`
--
ALTER TABLE `b65362949_usergroup_user`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;

--
-- AUTO_INCREMENT de la tabla `b65362949_user_alert`
--
ALTER TABLE `b65362949_user_alert`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_user_extrafields`
--
ALTER TABLE `b65362949_user_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b65362949_user_rights`
--
ALTER TABLE `b65362949_user_rights`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1653;

--
-- AUTO_INCREMENT de la tabla `b67182907_accounting_account`
--
ALTER TABLE `b67182907_accounting_account`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4785;

--
-- AUTO_INCREMENT de la tabla `b67182907_accounting_bookkeeping`
--
ALTER TABLE `b67182907_accounting_bookkeeping`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_accounting_bookkeeping_tmp`
--
ALTER TABLE `b67182907_accounting_bookkeeping_tmp`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_accounting_fiscalyear`
--
ALTER TABLE `b67182907_accounting_fiscalyear`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_accounting_journal`
--
ALTER TABLE `b67182907_accounting_journal`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT de la tabla `b67182907_accounting_system`
--
ALTER TABLE `b67182907_accounting_system`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;

--
-- AUTO_INCREMENT de la tabla `b67182907_actioncomm`
--
ALTER TABLE `b67182907_actioncomm`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2044;

--
-- AUTO_INCREMENT de la tabla `b67182907_actioncomm_extrafields`
--
ALTER TABLE `b67182907_actioncomm_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_actioncomm_reminder`
--
ALTER TABLE `b67182907_actioncomm_reminder`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_actioncomm_resources`
--
ALTER TABLE `b67182907_actioncomm_resources`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2044;

--
-- AUTO_INCREMENT de la tabla `b67182907_adherent`
--
ALTER TABLE `b67182907_adherent`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_adherent_extrafields`
--
ALTER TABLE `b67182907_adherent_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_adherent_type`
--
ALTER TABLE `b67182907_adherent_type`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_adherent_type_extrafields`
--
ALTER TABLE `b67182907_adherent_type_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_advtargetemailing`
--
ALTER TABLE `b67182907_advtargetemailing`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_bank`
--
ALTER TABLE `b67182907_bank`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=805;

--
-- AUTO_INCREMENT de la tabla `b67182907_bank_account`
--
ALTER TABLE `b67182907_bank_account`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT de la tabla `b67182907_bank_account_extrafields`
--
ALTER TABLE `b67182907_bank_account_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_bank_categ`
--
ALTER TABLE `b67182907_bank_categ`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_bank_url`
--
ALTER TABLE `b67182907_bank_url`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1449;

--
-- AUTO_INCREMENT de la tabla `b67182907_blockedlog`
--
ALTER TABLE `b67182907_blockedlog`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_blockedlog_authority`
--
ALTER TABLE `b67182907_blockedlog_authority`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_bookmark`
--
ALTER TABLE `b67182907_bookmark`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_bordereau_cheque`
--
ALTER TABLE `b67182907_bordereau_cheque`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_boxes`
--
ALTER TABLE `b67182907_boxes`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1036;

--
-- AUTO_INCREMENT de la tabla `b67182907_boxes_def`
--
ALTER TABLE `b67182907_boxes_def`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT de la tabla `b67182907_budget`
--
ALTER TABLE `b67182907_budget`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_budget_lines`
--
ALTER TABLE `b67182907_budget_lines`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_categorie`
--
ALTER TABLE `b67182907_categorie`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_categories_extrafields`
--
ALTER TABLE `b67182907_categories_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_categorie_lang`
--
ALTER TABLE `b67182907_categorie_lang`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_chargesociales`
--
ALTER TABLE `b67182907_chargesociales`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41;

--
-- AUTO_INCREMENT de la tabla `b67182907_commande`
--
ALTER TABLE `b67182907_commande`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT de la tabla `b67182907_commandedet`
--
ALTER TABLE `b67182907_commandedet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;

--
-- AUTO_INCREMENT de la tabla `b67182907_commandedet_extrafields`
--
ALTER TABLE `b67182907_commandedet_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_commande_extrafields`
--
ALTER TABLE `b67182907_commande_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_commande_fournisseur`
--
ALTER TABLE `b67182907_commande_fournisseur`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT de la tabla `b67182907_commande_fournisseurdet`
--
ALTER TABLE `b67182907_commande_fournisseurdet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT de la tabla `b67182907_commande_fournisseurdet_extrafields`
--
ALTER TABLE `b67182907_commande_fournisseurdet_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_commande_fournisseur_dispatch`
--
ALTER TABLE `b67182907_commande_fournisseur_dispatch`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_commande_fournisseur_extrafields`
--
ALTER TABLE `b67182907_commande_fournisseur_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_commande_fournisseur_log`
--
ALTER TABLE `b67182907_commande_fournisseur_log`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_comment`
--
ALTER TABLE `b67182907_comment`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_const`
--
ALTER TABLE `b67182907_const`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1190;

--
-- AUTO_INCREMENT de la tabla `b67182907_contrat`
--
ALTER TABLE `b67182907_contrat`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_contratdet`
--
ALTER TABLE `b67182907_contratdet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_contratdet_extrafields`
--
ALTER TABLE `b67182907_contratdet_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_contratdet_log`
--
ALTER TABLE `b67182907_contratdet_log`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_contrat_extrafields`
--
ALTER TABLE `b67182907_contrat_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_cronjob`
--
ALTER TABLE `b67182907_cronjob`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_accounting_category`
--
ALTER TABLE `b67182907_c_accounting_category`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_action_trigger`
--
ALTER TABLE `b67182907_c_action_trigger`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=64;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_availability`
--
ALTER TABLE `b67182907_c_availability`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_barcode_type`
--
ALTER TABLE `b67182907_c_barcode_type`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_chargesociales`
--
ALTER TABLE `b67182907_c_chargesociales`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4114;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_departements`
--
ALTER TABLE `b67182907_c_departements`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1397;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_ecotaxe`
--
ALTER TABLE `b67182907_c_ecotaxe`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_email_senderprofile`
--
ALTER TABLE `b67182907_c_email_senderprofile`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_email_templates`
--
ALTER TABLE `b67182907_c_email_templates`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_exp_tax_cat`
--
ALTER TABLE `b67182907_c_exp_tax_cat`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_exp_tax_range`
--
ALTER TABLE `b67182907_c_exp_tax_range`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_field_list`
--
ALTER TABLE `b67182907_c_field_list`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_format_cards`
--
ALTER TABLE `b67182907_c_format_cards`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_forme_juridique`
--
ALTER TABLE `b67182907_c_forme_juridique`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=238;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_holiday_types`
--
ALTER TABLE `b67182907_c_holiday_types`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_incoterms`
--
ALTER TABLE `b67182907_c_incoterms`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_input_method`
--
ALTER TABLE `b67182907_c_input_method`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_input_reason`
--
ALTER TABLE `b67182907_c_input_reason`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_lead_status`
--
ALTER TABLE `b67182907_c_lead_status`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_paper_format`
--
ALTER TABLE `b67182907_c_paper_format`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=226;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_price_expression`
--
ALTER TABLE `b67182907_c_price_expression`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_price_global_variable`
--
ALTER TABLE `b67182907_c_price_global_variable`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_price_global_variable_updater`
--
ALTER TABLE `b67182907_c_price_global_variable_updater`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_regions`
--
ALTER TABLE `b67182907_c_regions`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=228;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_revenuestamp`
--
ALTER TABLE `b67182907_c_revenuestamp`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1543;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_shipment_mode`
--
ALTER TABLE `b67182907_c_shipment_mode`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_tva`
--
ALTER TABLE `b67182907_c_tva`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2471;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_type_fees`
--
ALTER TABLE `b67182907_c_type_fees`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_type_resource`
--
ALTER TABLE `b67182907_c_type_resource`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_units`
--
ALTER TABLE `b67182907_c_units`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT de la tabla `b67182907_c_ziptown`
--
ALTER TABLE `b67182907_c_ziptown`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_default_values`
--
ALTER TABLE `b67182907_default_values`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_deplacement`
--
ALTER TABLE `b67182907_deplacement`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_document_model`
--
ALTER TABLE `b67182907_document_model`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT de la tabla `b67182907_don`
--
ALTER TABLE `b67182907_don`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_don_extrafields`
--
ALTER TABLE `b67182907_don_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_ecm_directories`
--
ALTER TABLE `b67182907_ecm_directories`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_ecm_files`
--
ALTER TABLE `b67182907_ecm_files`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=488;

--
-- AUTO_INCREMENT de la tabla `b67182907_element_contact`
--
ALTER TABLE `b67182907_element_contact`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT de la tabla `b67182907_element_element`
--
ALTER TABLE `b67182907_element_element`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT de la tabla `b67182907_element_resources`
--
ALTER TABLE `b67182907_element_resources`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_entrepot`
--
ALTER TABLE `b67182907_entrepot`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_establishment`
--
ALTER TABLE `b67182907_establishment`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_events`
--
ALTER TABLE `b67182907_events`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_event_element`
--
ALTER TABLE `b67182907_event_element`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_expedition`
--
ALTER TABLE `b67182907_expedition`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_expeditiondet`
--
ALTER TABLE `b67182907_expeditiondet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_expeditiondet_batch`
--
ALTER TABLE `b67182907_expeditiondet_batch`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_expeditiondet_extrafields`
--
ALTER TABLE `b67182907_expeditiondet_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_expedition_extrafields`
--
ALTER TABLE `b67182907_expedition_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_expensereport`
--
ALTER TABLE `b67182907_expensereport`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT de la tabla `b67182907_expensereport_det`
--
ALTER TABLE `b67182907_expensereport_det`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `b67182907_expensereport_extrafields`
--
ALTER TABLE `b67182907_expensereport_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_expensereport_ik`
--
ALTER TABLE `b67182907_expensereport_ik`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT de la tabla `b67182907_expensereport_rules`
--
ALTER TABLE `b67182907_expensereport_rules`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_export_compta`
--
ALTER TABLE `b67182907_export_compta`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_export_model`
--
ALTER TABLE `b67182907_export_model`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_extrafields`
--
ALTER TABLE `b67182907_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_facture`
--
ALTER TABLE `b67182907_facture`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=492;

--
-- AUTO_INCREMENT de la tabla `b67182907_facturedet`
--
ALTER TABLE `b67182907_facturedet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1002;

--
-- AUTO_INCREMENT de la tabla `b67182907_facturedet_extrafields`
--
ALTER TABLE `b67182907_facturedet_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_facturedet_rec`
--
ALTER TABLE `b67182907_facturedet_rec`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `b67182907_facturedet_rec_extrafields`
--
ALTER TABLE `b67182907_facturedet_rec_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_facture_extrafields`
--
ALTER TABLE `b67182907_facture_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_facture_fourn`
--
ALTER TABLE `b67182907_facture_fourn`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=222;

--
-- AUTO_INCREMENT de la tabla `b67182907_facture_fourn_det`
--
ALTER TABLE `b67182907_facture_fourn_det`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=246;

--
-- AUTO_INCREMENT de la tabla `b67182907_facture_fourn_det_extrafields`
--
ALTER TABLE `b67182907_facture_fourn_det_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_facture_fourn_extrafields`
--
ALTER TABLE `b67182907_facture_fourn_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_facture_rec`
--
ALTER TABLE `b67182907_facture_rec`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `b67182907_facture_rec_extrafields`
--
ALTER TABLE `b67182907_facture_rec_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_fichinter`
--
ALTER TABLE `b67182907_fichinter`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_fichinterdet`
--
ALTER TABLE `b67182907_fichinterdet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_fichinterdet_extrafields`
--
ALTER TABLE `b67182907_fichinterdet_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_fichinter_extrafields`
--
ALTER TABLE `b67182907_fichinter_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_holiday`
--
ALTER TABLE `b67182907_holiday`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_holiday_config`
--
ALTER TABLE `b67182907_holiday_config`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `b67182907_holiday_logs`
--
ALTER TABLE `b67182907_holiday_logs`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_import_model`
--
ALTER TABLE `b67182907_import_model`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `b67182907_inventory`
--
ALTER TABLE `b67182907_inventory`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_inventorydet`
--
ALTER TABLE `b67182907_inventorydet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_links`
--
ALTER TABLE `b67182907_links`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_livraison`
--
ALTER TABLE `b67182907_livraison`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_livraisondet`
--
ALTER TABLE `b67182907_livraisondet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_livraisondet_extrafields`
--
ALTER TABLE `b67182907_livraisondet_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_livraison_extrafields`
--
ALTER TABLE `b67182907_livraison_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_loan`
--
ALTER TABLE `b67182907_loan`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_loan_schedule`
--
ALTER TABLE `b67182907_loan_schedule`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_localtax`
--
ALTER TABLE `b67182907_localtax`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_mailing`
--
ALTER TABLE `b67182907_mailing`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_mailing_cibles`
--
ALTER TABLE `b67182907_mailing_cibles`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_menu`
--
ALTER TABLE `b67182907_menu`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;

--
-- AUTO_INCREMENT de la tabla `b67182907_multicurrency`
--
ALTER TABLE `b67182907_multicurrency`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_multicurrency_rate`
--
ALTER TABLE `b67182907_multicurrency_rate`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_notify`
--
ALTER TABLE `b67182907_notify`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=891;

--
-- AUTO_INCREMENT de la tabla `b67182907_notify_def`
--
ALTER TABLE `b67182907_notify_def`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_notify_def_object`
--
ALTER TABLE `b67182907_notify_def_object`
  MODIFY `id` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_oauth_state`
--
ALTER TABLE `b67182907_oauth_state`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_oauth_token`
--
ALTER TABLE `b67182907_oauth_token`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_onlinesignature`
--
ALTER TABLE `b67182907_onlinesignature`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_opensurvey_comments`
--
ALTER TABLE `b67182907_opensurvey_comments`
  MODIFY `id_comment` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_opensurvey_formquestions`
--
ALTER TABLE `b67182907_opensurvey_formquestions`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_opensurvey_user_studs`
--
ALTER TABLE `b67182907_opensurvey_user_studs`
  MODIFY `id_users` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_overwrite_trans`
--
ALTER TABLE `b67182907_overwrite_trans`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_paiement`
--
ALTER TABLE `b67182907_paiement`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=386;

--
-- AUTO_INCREMENT de la tabla `b67182907_paiementcharge`
--
ALTER TABLE `b67182907_paiementcharge`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;

--
-- AUTO_INCREMENT de la tabla `b67182907_paiementfourn`
--
ALTER TABLE `b67182907_paiementfourn`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=238;

--
-- AUTO_INCREMENT de la tabla `b67182907_paiementfourn_facturefourn`
--
ALTER TABLE `b67182907_paiementfourn_facturefourn`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=244;

--
-- AUTO_INCREMENT de la tabla `b67182907_paiement_facture`
--
ALTER TABLE `b67182907_paiement_facture`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=518;

--
-- AUTO_INCREMENT de la tabla `b67182907_payment_donation`
--
ALTER TABLE `b67182907_payment_donation`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_payment_expensereport`
--
ALTER TABLE `b67182907_payment_expensereport`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `b67182907_payment_loan`
--
ALTER TABLE `b67182907_payment_loan`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_payment_salary`
--
ALTER TABLE `b67182907_payment_salary`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;

--
-- AUTO_INCREMENT de la tabla `b67182907_payment_various`
--
ALTER TABLE `b67182907_payment_various`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_prelevement_bons`
--
ALTER TABLE `b67182907_prelevement_bons`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=68;

--
-- AUTO_INCREMENT de la tabla `b67182907_prelevement_facture`
--
ALTER TABLE `b67182907_prelevement_facture`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=69;

--
-- AUTO_INCREMENT de la tabla `b67182907_prelevement_facture_demande`
--
ALTER TABLE `b67182907_prelevement_facture_demande`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=70;

--
-- AUTO_INCREMENT de la tabla `b67182907_prelevement_lignes`
--
ALTER TABLE `b67182907_prelevement_lignes`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=69;

--
-- AUTO_INCREMENT de la tabla `b67182907_prelevement_rejet`
--
ALTER TABLE `b67182907_prelevement_rejet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_printing`
--
ALTER TABLE `b67182907_printing`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_product`
--
ALTER TABLE `b67182907_product`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;

--
-- AUTO_INCREMENT de la tabla `b67182907_product_association`
--
ALTER TABLE `b67182907_product_association`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_product_attribute`
--
ALTER TABLE `b67182907_product_attribute`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_product_attribute_combination`
--
ALTER TABLE `b67182907_product_attribute_combination`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_product_attribute_combination2val`
--
ALTER TABLE `b67182907_product_attribute_combination2val`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_product_attribute_value`
--
ALTER TABLE `b67182907_product_attribute_value`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_product_batch`
--
ALTER TABLE `b67182907_product_batch`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_product_customer_price`
--
ALTER TABLE `b67182907_product_customer_price`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_product_customer_price_log`
--
ALTER TABLE `b67182907_product_customer_price_log`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_product_extrafields`
--
ALTER TABLE `b67182907_product_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_product_fournisseur_price`
--
ALTER TABLE `b67182907_product_fournisseur_price`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `b67182907_product_fournisseur_price_log`
--
ALTER TABLE `b67182907_product_fournisseur_price_log`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_product_lang`
--
ALTER TABLE `b67182907_product_lang`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_product_lot`
--
ALTER TABLE `b67182907_product_lot`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_product_lot_extrafields`
--
ALTER TABLE `b67182907_product_lot_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_product_price`
--
ALTER TABLE `b67182907_product_price`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;

--
-- AUTO_INCREMENT de la tabla `b67182907_product_pricerules`
--
ALTER TABLE `b67182907_product_pricerules`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_product_price_by_qty`
--
ALTER TABLE `b67182907_product_price_by_qty`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_product_stock`
--
ALTER TABLE `b67182907_product_stock`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_product_warehouse_properties`
--
ALTER TABLE `b67182907_product_warehouse_properties`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_projet`
--
ALTER TABLE `b67182907_projet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `b67182907_projet_extrafields`
--
ALTER TABLE `b67182907_projet_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_projet_task`
--
ALTER TABLE `b67182907_projet_task`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_projet_task_extrafields`
--
ALTER TABLE `b67182907_projet_task_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_projet_task_time`
--
ALTER TABLE `b67182907_projet_task_time`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_propal`
--
ALTER TABLE `b67182907_propal`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT de la tabla `b67182907_propaldet`
--
ALTER TABLE `b67182907_propaldet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=68;

--
-- AUTO_INCREMENT de la tabla `b67182907_propaldet_extrafields`
--
ALTER TABLE `b67182907_propaldet_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_propal_extrafields`
--
ALTER TABLE `b67182907_propal_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_propal_merge_pdf_product`
--
ALTER TABLE `b67182907_propal_merge_pdf_product`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_resource`
--
ALTER TABLE `b67182907_resource`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_resource_extrafields`
--
ALTER TABLE `b67182907_resource_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_societe`
--
ALTER TABLE `b67182907_societe`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=421;

--
-- AUTO_INCREMENT de la tabla `b67182907_societe_address`
--
ALTER TABLE `b67182907_societe_address`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_societe_commerciaux`
--
ALTER TABLE `b67182907_societe_commerciaux`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;

--
-- AUTO_INCREMENT de la tabla `b67182907_societe_extrafields`
--
ALTER TABLE `b67182907_societe_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_societe_log`
--
ALTER TABLE `b67182907_societe_log`
  MODIFY `id` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_societe_prices`
--
ALTER TABLE `b67182907_societe_prices`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_societe_remise`
--
ALTER TABLE `b67182907_societe_remise`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_societe_remise_except`
--
ALTER TABLE `b67182907_societe_remise_except`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_societe_rib`
--
ALTER TABLE `b67182907_societe_rib`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT de la tabla `b67182907_socpeople`
--
ALTER TABLE `b67182907_socpeople`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=123;

--
-- AUTO_INCREMENT de la tabla `b67182907_socpeople_extrafields`
--
ALTER TABLE `b67182907_socpeople_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_stock_mouvement`
--
ALTER TABLE `b67182907_stock_mouvement`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_subscription`
--
ALTER TABLE `b67182907_subscription`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_supplier_proposal`
--
ALTER TABLE `b67182907_supplier_proposal`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_supplier_proposaldet`
--
ALTER TABLE `b67182907_supplier_proposaldet`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_supplier_proposaldet_extrafields`
--
ALTER TABLE `b67182907_supplier_proposaldet_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_supplier_proposal_extrafields`
--
ALTER TABLE `b67182907_supplier_proposal_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_tva`
--
ALTER TABLE `b67182907_tva`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `b67182907_user`
--
ALTER TABLE `b67182907_user`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT de la tabla `b67182907_usergroup`
--
ALTER TABLE `b67182907_usergroup`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_usergroup_extrafields`
--
ALTER TABLE `b67182907_usergroup_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_usergroup_rights`
--
ALTER TABLE `b67182907_usergroup_rights`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_usergroup_user`
--
ALTER TABLE `b67182907_usergroup_user`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_user_alert`
--
ALTER TABLE `b67182907_user_alert`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_user_employment`
--
ALTER TABLE `b67182907_user_employment`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_user_extrafields`
--
ALTER TABLE `b67182907_user_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_user_rib`
--
ALTER TABLE `b67182907_user_rib`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_user_rights`
--
ALTER TABLE `b67182907_user_rights`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=832;

--
-- AUTO_INCREMENT de la tabla `b67182907_website`
--
ALTER TABLE `b67182907_website`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_website_account`
--
ALTER TABLE `b67182907_website_account`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_website_account_extrafields`
--
ALTER TABLE `b67182907_website_account_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_website_extrafields`
--
ALTER TABLE `b67182907_website_extrafields`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `b67182907_website_page`
--
ALTER TABLE `b67182907_website_page`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `clinica_import_model`
--
ALTER TABLE `clinica_import_model`
  MODIFY `rowid` int NOT NULL AUTO_INCREMENT;

--
-- Restricciones para tablas volcadas
--

--
-- Filtros para la tabla `b65362949_accountingaccount`
--
ALTER TABLE `b65362949_accountingaccount`
  ADD CONSTRAINT `fk_accountingaccount_fk_pcg_version` FOREIGN KEY (`fk_pcg_version`) REFERENCES `b65362949_accounting_system` (`pcg_version`);

--
-- Filtros para la tabla `b65362949_adherent`
--
ALTER TABLE `b65362949_adherent`
  ADD CONSTRAINT `adherent_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `b65362949_societe` (`rowid`),
  ADD CONSTRAINT `fk_adherent_adherent_type` FOREIGN KEY (`fk_adherent_type`) REFERENCES `b65362949_adherent_type` (`rowid`);

--
-- Filtros para la tabla `b65362949_boxes`
--
ALTER TABLE `b65362949_boxes`
  ADD CONSTRAINT `fk_boxes_box_id` FOREIGN KEY (`box_id`) REFERENCES `b65362949_boxes_def` (`rowid`);

--
-- Filtros para la tabla `b65362949_categorie_contact`
--
ALTER TABLE `b65362949_categorie_contact`
  ADD CONSTRAINT `fk_categorie_contact_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `b65362949_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_contact_fk_socpeople` FOREIGN KEY (`fk_socpeople`) REFERENCES `b65362949_socpeople` (`rowid`);

--
-- Filtros para la tabla `b65362949_categorie_fournisseur`
--
ALTER TABLE `b65362949_categorie_fournisseur`
  ADD CONSTRAINT `fk_categorie_fournisseur_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `b65362949_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_fournisseur_fk_soc` FOREIGN KEY (`fk_societe`) REFERENCES `b65362949_societe` (`rowid`);

--
-- Filtros para la tabla `b65362949_categorie_lang`
--
ALTER TABLE `b65362949_categorie_lang`
  ADD CONSTRAINT `fk_category_lang_fk_category` FOREIGN KEY (`fk_category`) REFERENCES `b65362949_categorie` (`rowid`);

--
-- Filtros para la tabla `b65362949_categorie_member`
--
ALTER TABLE `b65362949_categorie_member`
  ADD CONSTRAINT `fk_categorie_member_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `b65362949_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_member_member_rowid` FOREIGN KEY (`fk_member`) REFERENCES `b65362949_adherent` (`rowid`);

--
-- Filtros para la tabla `b65362949_categorie_product`
--
ALTER TABLE `b65362949_categorie_product`
  ADD CONSTRAINT `fk_categorie_product_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `b65362949_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_product_product_rowid` FOREIGN KEY (`fk_product`) REFERENCES `b65362949_product` (`rowid`);

--
-- Filtros para la tabla `b65362949_categorie_societe`
--
ALTER TABLE `b65362949_categorie_societe`
  ADD CONSTRAINT `fk_categorie_societe_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `b65362949_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_societe_fk_soc` FOREIGN KEY (`fk_societe`) REFERENCES `b65362949_societe` (`rowid`);

--
-- Filtros para la tabla `b65362949_commande`
--
ALTER TABLE `b65362949_commande`
  ADD CONSTRAINT `fk_commande_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `b65362949_projet` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `b65362949_societe` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `b65362949_user` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_user_cloture` FOREIGN KEY (`fk_user_cloture`) REFERENCES `b65362949_user` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `b65362949_user` (`rowid`);

--
-- Filtros para la tabla `b65362949_commandedet`
--
ALTER TABLE `b65362949_commandedet`
  ADD CONSTRAINT `fk_commandedet_fk_commande` FOREIGN KEY (`fk_commande`) REFERENCES `b65362949_commande` (`rowid`);

--
-- Filtros para la tabla `b65362949_commande_fournisseur`
--
ALTER TABLE `b65362949_commande_fournisseur`
  ADD CONSTRAINT `fk_commande_fournisseur_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `b65362949_societe` (`rowid`);

--
-- Filtros para la tabla `b65362949_contrat`
--
ALTER TABLE `b65362949_contrat`
  ADD CONSTRAINT `fk_contrat_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `b65362949_societe` (`rowid`),
  ADD CONSTRAINT `fk_contrat_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `b65362949_user` (`rowid`);

--
-- Filtros para la tabla `b65362949_contratdet`
--
ALTER TABLE `b65362949_contratdet`
  ADD CONSTRAINT `fk_contratdet_fk_contrat` FOREIGN KEY (`fk_contrat`) REFERENCES `b65362949_contrat` (`rowid`),
  ADD CONSTRAINT `fk_contratdet_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `b65362949_product` (`rowid`);

--
-- Filtros para la tabla `b65362949_contratdet_log`
--
ALTER TABLE `b65362949_contratdet_log`
  ADD CONSTRAINT `fk_contratdet_log_fk_contratdet` FOREIGN KEY (`fk_contratdet`) REFERENCES `b65362949_contratdet` (`rowid`);

--
-- Filtros para la tabla `b65362949_c_regions`
--
ALTER TABLE `b65362949_c_regions`
  ADD CONSTRAINT `fk_c_regions_fk_pays` FOREIGN KEY (`fk_pays`) REFERENCES `b65362949_c_pays` (`rowid`);

--
-- Filtros para la tabla `b65362949_c_ziptown`
--
ALTER TABLE `b65362949_c_ziptown`
  ADD CONSTRAINT `fk_c_ziptown_fk_county` FOREIGN KEY (`fk_county`) REFERENCES `b65362949_c_departements` (`rowid`),
  ADD CONSTRAINT `fk_c_ziptown_fk_pays` FOREIGN KEY (`fk_pays`) REFERENCES `b65362949_c_pays` (`rowid`);

--
-- Filtros para la tabla `b65362949_ecm_directories`
--
ALTER TABLE `b65362949_ecm_directories`
  ADD CONSTRAINT `fk_ecm_directories_fk_user_c` FOREIGN KEY (`fk_user_c`) REFERENCES `b65362949_user` (`rowid`),
  ADD CONSTRAINT `fk_ecm_directories_fk_user_m` FOREIGN KEY (`fk_user_m`) REFERENCES `b65362949_user` (`rowid`);

--
-- Filtros para la tabla `b65362949_element_contact`
--
ALTER TABLE `b65362949_element_contact`
  ADD CONSTRAINT `fk_element_contact_fk_c_type_contact` FOREIGN KEY (`fk_c_type_contact`) REFERENCES `b65362949_c_type_contact` (`rowid`);

--
-- Filtros para la tabla `b65362949_expedition`
--
ALTER TABLE `b65362949_expedition`
  ADD CONSTRAINT `fk_expedition_fk_shipping_method` FOREIGN KEY (`fk_shipping_method`) REFERENCES `b65362949_c_shipment_mode` (`rowid`),
  ADD CONSTRAINT `fk_expedition_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `b65362949_societe` (`rowid`),
  ADD CONSTRAINT `fk_expedition_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `b65362949_user` (`rowid`),
  ADD CONSTRAINT `fk_expedition_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `b65362949_user` (`rowid`);

--
-- Filtros para la tabla `b65362949_expeditiondet`
--
ALTER TABLE `b65362949_expeditiondet`
  ADD CONSTRAINT `fk_expeditiondet_fk_expedition` FOREIGN KEY (`fk_expedition`) REFERENCES `b65362949_expedition` (`rowid`);

--
-- Filtros para la tabla `b65362949_expeditiondet_batch`
--
ALTER TABLE `b65362949_expeditiondet_batch`
  ADD CONSTRAINT `fk_expeditiondet_batch_fk_expeditiondet` FOREIGN KEY (`fk_expeditiondet`) REFERENCES `b65362949_expeditiondet` (`rowid`);

--
-- Filtros para la tabla `b65362949_facture`
--
ALTER TABLE `b65362949_facture`
  ADD CONSTRAINT `fk_facture_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `b65362949_facture` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `b65362949_projet` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `b65362949_societe` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `b65362949_user` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `b65362949_user` (`rowid`);

--
-- Filtros para la tabla `b65362949_facturedet`
--
ALTER TABLE `b65362949_facturedet`
  ADD CONSTRAINT `fk_facturedet_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `b65362949_facture` (`rowid`);

--
-- Filtros para la tabla `b65362949_facture_fourn`
--
ALTER TABLE `b65362949_facture_fourn`
  ADD CONSTRAINT `fk_facture_fourn_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `b65362949_projet` (`rowid`),
  ADD CONSTRAINT `fk_facture_fourn_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `b65362949_societe` (`rowid`),
  ADD CONSTRAINT `fk_facture_fourn_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `b65362949_user` (`rowid`),
  ADD CONSTRAINT `fk_facture_fourn_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `b65362949_user` (`rowid`);

--
-- Filtros para la tabla `b65362949_facture_fourn_det`
--
ALTER TABLE `b65362949_facture_fourn_det`
  ADD CONSTRAINT `fk_facture_fourn_det_fk_facture` FOREIGN KEY (`fk_facture_fourn`) REFERENCES `b65362949_facture_fourn` (`rowid`);

--
-- Filtros para la tabla `b65362949_facture_rec`
--
ALTER TABLE `b65362949_facture_rec`
  ADD CONSTRAINT `fk_facture_rec_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `b65362949_projet` (`rowid`),
  ADD CONSTRAINT `fk_facture_rec_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `b65362949_societe` (`rowid`),
  ADD CONSTRAINT `fk_facture_rec_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `b65362949_user` (`rowid`);

--
-- Filtros para la tabla `b65362949_fichinter`
--
ALTER TABLE `b65362949_fichinter`
  ADD CONSTRAINT `fk_fichinter_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `b65362949_societe` (`rowid`);

--
-- Filtros para la tabla `b65362949_fichinterdet`
--
ALTER TABLE `b65362949_fichinterdet`
  ADD CONSTRAINT `fk_fichinterdet_fk_fichinter` FOREIGN KEY (`fk_fichinter`) REFERENCES `b65362949_fichinter` (`rowid`);

--
-- Filtros para la tabla `b65362949_livraison`
--
ALTER TABLE `b65362949_livraison`
  ADD CONSTRAINT `fk_livraison_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `b65362949_societe` (`rowid`),
  ADD CONSTRAINT `fk_livraison_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `b65362949_user` (`rowid`),
  ADD CONSTRAINT `fk_livraison_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `b65362949_user` (`rowid`);

--
-- Filtros para la tabla `b65362949_livraisondet`
--
ALTER TABLE `b65362949_livraisondet`
  ADD CONSTRAINT `fk_livraisondet_fk_livraison` FOREIGN KEY (`fk_livraison`) REFERENCES `b65362949_livraison` (`rowid`);

--
-- Filtros para la tabla `b65362949_paiement_facture`
--
ALTER TABLE `b65362949_paiement_facture`
  ADD CONSTRAINT `fk_paiement_facture_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `b65362949_facture` (`rowid`),
  ADD CONSTRAINT `fk_paiement_facture_fk_paiement` FOREIGN KEY (`fk_paiement`) REFERENCES `b65362949_paiement` (`rowid`);

--
-- Filtros para la tabla `b65362949_prelevement_facture`
--
ALTER TABLE `b65362949_prelevement_facture`
  ADD CONSTRAINT `fk_prelevement_facture_fk_prelevement_lignes` FOREIGN KEY (`fk_prelevement_lignes`) REFERENCES `b65362949_prelevement_lignes` (`rowid`);

--
-- Filtros para la tabla `b65362949_prelevement_lignes`
--
ALTER TABLE `b65362949_prelevement_lignes`
  ADD CONSTRAINT `fk_prelevement_lignes_fk_prelevement_bons` FOREIGN KEY (`fk_prelevement_bons`) REFERENCES `b65362949_prelevement_bons` (`rowid`);

--
-- Filtros para la tabla `b65362949_product_batch`
--
ALTER TABLE `b65362949_product_batch`
  ADD CONSTRAINT `fk_product_batch_fk_product_stock` FOREIGN KEY (`fk_product_stock`) REFERENCES `b65362949_product_stock` (`rowid`);

--
-- Filtros para la tabla `b65362949_product_customer_price`
--
ALTER TABLE `b65362949_product_customer_price`
  ADD CONSTRAINT `fk_product_customer_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `b65362949_product` (`rowid`),
  ADD CONSTRAINT `fk_product_customer_price_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `b65362949_societe` (`rowid`),
  ADD CONSTRAINT `fk_product_customer_price_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `b65362949_user` (`rowid`);

--
-- Filtros para la tabla `b65362949_product_fournisseur_price`
--
ALTER TABLE `b65362949_product_fournisseur_price`
  ADD CONSTRAINT `fk_product_fournisseur_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `b65362949_product` (`rowid`),
  ADD CONSTRAINT `fk_product_fournisseur_price_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `b65362949_user` (`rowid`);

--
-- Filtros para la tabla `b65362949_product_lang`
--
ALTER TABLE `b65362949_product_lang`
  ADD CONSTRAINT `fk_product_lang_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `b65362949_product` (`rowid`);

--
-- Filtros para la tabla `b65362949_product_price_by_qty`
--
ALTER TABLE `b65362949_product_price_by_qty`
  ADD CONSTRAINT `fk_product_price_by_qty_fk_product_price` FOREIGN KEY (`fk_product_price`) REFERENCES `b65362949_product_price` (`rowid`);

--
-- Filtros para la tabla `b65362949_projet`
--
ALTER TABLE `b65362949_projet`
  ADD CONSTRAINT `fk_projet_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `b65362949_societe` (`rowid`);

--
-- Filtros para la tabla `b65362949_projet_task`
--
ALTER TABLE `b65362949_projet_task`
  ADD CONSTRAINT `fk_projet_task_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `b65362949_projet` (`rowid`),
  ADD CONSTRAINT `fk_projet_task_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `b65362949_user` (`rowid`),
  ADD CONSTRAINT `fk_projet_task_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `b65362949_user` (`rowid`);

--
-- Filtros para la tabla `b65362949_propal`
--
ALTER TABLE `b65362949_propal`
  ADD CONSTRAINT `fk_propal_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `b65362949_projet` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `b65362949_societe` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `b65362949_user` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_user_cloture` FOREIGN KEY (`fk_user_cloture`) REFERENCES `b65362949_user` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `b65362949_user` (`rowid`);

--
-- Filtros para la tabla `b65362949_propaldet`
--
ALTER TABLE `b65362949_propaldet`
  ADD CONSTRAINT `fk_propaldet_fk_propal` FOREIGN KEY (`fk_propal`) REFERENCES `b65362949_propal` (`rowid`);

--
-- Filtros para la tabla `b65362949_societe_remise_except`
--
ALTER TABLE `b65362949_societe_remise_except`
  ADD CONSTRAINT `fk_societe_remise_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `b65362949_facture` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_facture_line` FOREIGN KEY (`fk_facture_line`) REFERENCES `b65362949_facturedet` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `b65362949_facture` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `b65362949_societe` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `b65362949_user` (`rowid`);

--
-- Filtros para la tabla `b65362949_socpeople`
--
ALTER TABLE `b65362949_socpeople`
  ADD CONSTRAINT `fk_socpeople_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `b65362949_societe` (`rowid`),
  ADD CONSTRAINT `fk_socpeople_user_creat_user_rowid` FOREIGN KEY (`fk_user_creat`) REFERENCES `b65362949_user` (`rowid`);

--
-- Filtros para la tabla `b65362949_usergroup_rights`
--
ALTER TABLE `b65362949_usergroup_rights`
  ADD CONSTRAINT `fk_usergroup_rights_fk_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `b65362949_usergroup` (`rowid`);

--
-- Filtros para la tabla `b65362949_usergroup_user`
--
ALTER TABLE `b65362949_usergroup_user`
  ADD CONSTRAINT `fk_usergroup_user_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `b65362949_user` (`rowid`),
  ADD CONSTRAINT `fk_usergroup_user_fk_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `b65362949_usergroup` (`rowid`);

--
-- Filtros para la tabla `b65362949_user_rights`
--
ALTER TABLE `b65362949_user_rights`
  ADD CONSTRAINT `fk_user_rights_fk_user_user` FOREIGN KEY (`fk_user`) REFERENCES `b65362949_user` (`rowid`);

--
-- Filtros para la tabla `b67182907_website_account`
--
ALTER TABLE `b67182907_website_account`
  ADD CONSTRAINT `B67182907_website_account_fk_website` FOREIGN KEY (`fk_website`) REFERENCES `b67182907_website` (`rowid`);
COMMIT;

