CREATE TABLE `nxuy_don_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_ecm_directories`
--

CREATE TABLE `nxuy_ecm_directories` (
  `rowid` int(11) NOT NULL,
  `label` varchar(64) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_parent` int(11) DEFAULT NULL,
  `description` varchar(255) NOT NULL,
  `cachenbofdoc` int(11) NOT NULL DEFAULT 0,
  `fullpath` varchar(750) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `date_c` datetime DEFAULT NULL,
  `date_m` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_c` int(11) DEFAULT NULL,
  `fk_user_m` int(11) DEFAULT NULL,
  `acl` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_ecm_files`
--

CREATE TABLE `nxuy_ecm_files` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(128) DEFAULT NULL,
  `label` varchar(128) NOT NULL,
  `share` varchar(128) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `filename` varchar(255) NOT NULL,
  `filepath` varchar(255) DEFAULT NULL,
  `fullpath_orig` varchar(2048) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `keywords` text DEFAULT NULL,
  `cover` text DEFAULT NULL,
  `gen_or_uploaded` varchar(12) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `date_c` datetime DEFAULT NULL,
  `date_m` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_c` int(11) DEFAULT NULL,
  `fk_user_m` int(11) DEFAULT NULL,
  `acl` text DEFAULT NULL,
  `position` int(11) DEFAULT NULL,
  `keyword` varchar(750) DEFAULT NULL,
  `src_object_type` varchar(32) DEFAULT NULL,
  `src_object_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Déchargement des données de la table `nxuy_ecm_files`
--

INSERT INTO `nxuy_ecm_files` (`rowid`, `ref`, `label`, `share`, `entity`, `filename`, `filepath`, `fullpath_orig`, `description`, `keywords`, `cover`, `gen_or_uploaded`, `extraparams`, `date_c`, `date_m`, `fk_user_c`, `fk_user_m`, `acl`, `position`, `keyword`, `src_object_type`, `src_object_id`) VALUES
(2, '4c8b0db6ed9861ba2a4bd5dcf9616d47', 'f54194c7220dfd581513b7786a300065', NULL, 1, '(PROV2).pdf', 'facture/(PROV2)', '', '', NULL, NULL, 'generated', NULL, '2019-09-17 18:51:39', '2019-09-17 18:52:41', 3, 3, NULL, 1, NULL, 'facture', 2),
(3, 'a49780357a9956ba62d58a9a1df7461b', 'c6c8b4f8f9323f5867dda6a76c0e8157', NULL, 1, 'FA1909-0001.pdf', 'facture/FA1909-0001', '', '', NULL, NULL, 'generated', NULL, '2019-09-17 18:52:48', '2019-09-20 08:34:55', 3, 3, NULL, 1, NULL, 'facture', 2),
(5, 'e72d164c60a3e2e529554119188e3b6a', 'fd3fac5db218624d1b0d87990514a57c', NULL, 1, '(PROV4).pdf', 'facture/(PROV4)', '', '', NULL, NULL, 'generated', NULL, '2019-09-17 18:56:17', '2019-09-17 18:57:00', 3, 3, NULL, 1, NULL, 'facture', 4),
(9, '2819a68724c84b7452f9d8ddfbc8eded', '6370d3ce882b0507b447f3ace8e1ffee', NULL, 1, '(PROV8).pdf', 'facture/(PROV8)', '', '', NULL, NULL, 'generated', NULL, '2019-09-17 19:25:21', '2019-09-17 19:25:21', 3, NULL, NULL, 1, NULL, 'facture', 8),
(10, '3377e7fa01e122f58e68a3d255d6a0be', '6b7f0443457110427f1d2545930a1c84', NULL, 1, 'FA1909-0006.pdf', 'facture/FA1909-0006', '', '', NULL, NULL, 'generated', NULL, '2019-09-17 19:25:37', '2019-09-20 08:39:28', 3, 3, NULL, 1, NULL, 'facture', 8),
(11, '10fd08617beac006cf6a676283d550cf', 'fd83039b7493329160dec7a6f76af588', NULL, 1, 'FA1909-0002.pdf', 'facture/FA1909-0002', '', '', NULL, NULL, 'generated', NULL, '2019-09-20 08:33:03', '2019-09-20 08:34:00', 3, 3, NULL, 1, NULL, 'facture', 3),
(13, 'a5bbe152f58393bd6b4eb22e84b13bee', '1137c8ff86e16547e52fe155c857d424', NULL, 1, '(PROV11).pdf', 'facture/(PROV11)', '', '', NULL, NULL, 'generated', NULL, '2019-09-23 19:37:39', '2019-09-23 19:39:20', 3, 3, NULL, 1, NULL, 'facture', 11),
(14, 'aa72162b0464453632ca9ca631212187', 'bbae90dcd56a8b145bd1d8c2289398c9', NULL, 1, 'FA1909-0007.pdf', 'facture/FA1909-0007', '', '', NULL, NULL, 'generated', NULL, '2019-09-23 19:39:35', '2019-10-01 16:04:45', 3, 3, NULL, 1, NULL, 'facture', 11),
(15, '69eb0d69b5cd358d24f199736a6abc4c', '89c613d73a9a28aab15b8feb19fb436b', NULL, 1, 'FA1909-0008.pdf', 'facture/FA1909-0008', '', '', NULL, NULL, 'generated', NULL, '2019-09-23 19:41:23', '2019-10-01 16:08:21', 3, 3, NULL, 1, NULL, 'facture', 12),
(16, '6b39dedf6f1cbe40260433bbabd0c790', '52b0c627dc1450c96f7b702dbade9007', NULL, 1, 'FA1909-0009.pdf', 'facture/FA1909-0009', '', '', NULL, NULL, 'generated', NULL, '2019-09-23 19:41:50', '2020-01-27 09:18:20', 3, 3, NULL, 1, NULL, 'facture', 13),
(17, '068789dc2209511ed1cc1851961131af', 'f7c9d603029fa8e5321211ed07fc809c', NULL, 1, '(PROV14).pdf', 'facture/(PROV14)', '', '', NULL, NULL, 'generated', NULL, '2020-01-27 08:45:11', '2020-01-27 08:57:47', 3, 3, NULL, 1, NULL, 'facture', 14),
(18, '5ece805dda75975d8ae171411d4784ac', '95be9565008b54d78d816ec4a974eb60', NULL, 1, 'FA2011-0010.pdf', 'facture/FA2011-0010', '', '', NULL, NULL, 'generated', NULL, '2020-01-27 08:58:07', '2020-01-27 09:19:45', 3, 3, NULL, 1, NULL, 'facture', 14),
(19, '4d131f8382afe9c5addd796eecc0df73', '834fcda18d718cac00e90fa42b613dd0', NULL, 1, '(PROV15).pdf', 'facture/(PROV15)', '', '', NULL, NULL, 'generated', NULL, '2020-01-27 09:23:24', '2020-01-27 09:30:28', 3, 3, NULL, 1, NULL, 'facture', 15),
(20, '60bd381ce993121227e9fa22f3aac2ed', '2953253819fa6314f0b96f8ef8b77c11', NULL, 1, 'FA1911-0011.pdf', 'facture/FA1911-0011', '', '', NULL, NULL, 'generated', NULL, '2020-01-27 09:30:47', '2020-01-27 09:30:47', 3, NULL, NULL, 1, NULL, 'facture', 15);

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

--
-- Structure de la table `nxuy_element_contact`
--

CREATE TABLE `nxuy_element_contact` (
  `rowid` int(11) NOT NULL,
  `datecreate` datetime DEFAULT NULL,
  `statut` smallint(6) DEFAULT 5,
  `element_id` int(11) NOT NULL,
  `fk_c_type_contact` int(11) NOT NULL,
  `fk_socpeople` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_element_element`
--

CREATE TABLE `nxuy_element_element` (
  `rowid` int(11) NOT NULL,
  `fk_source` int(11) NOT NULL,
  `sourcetype` varchar(32) NOT NULL,
  `fk_target` int(11) NOT NULL,
  `targettype` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_element_lock`
--

CREATE TABLE `nxuy_element_lock` (
  `rowid` int(11) NOT NULL,
  `fk_element` int(11) NOT NULL,
  `elementtype` varchar(32) NOT NULL,
  `datel` datetime DEFAULT NULL,
  `datem` datetime DEFAULT NULL,
  `sessionid` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_element_resources`
--

CREATE TABLE `nxuy_element_resources` (
  `rowid` int(11) NOT NULL,
  `resource_id` int(11) DEFAULT NULL,
  `resource_type` varchar(64) DEFAULT NULL,
  `element_id` int(11) DEFAULT NULL,
  `element_type` varchar(64) DEFAULT NULL,
  `busy` int(11) DEFAULT NULL,
  `mandatory` int(11) DEFAULT NULL,
  `fk_user_create` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `duree` double DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_element_tag`
--

CREATE TABLE `nxuy_element_tag` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `lang` varchar(5) NOT NULL,
  `tag` varchar(255) NOT NULL,
  `fk_element` int(11) NOT NULL,
  `element` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_emailcollector_emailcollector`
--

CREATE TABLE `nxuy_emailcollector_emailcollector` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref` varchar(128) NOT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `host` varchar(255) DEFAULT NULL,
  `login` varchar(128) DEFAULT NULL,
  `password` varchar(128) DEFAULT NULL,
  `source_directory` varchar(255) NOT NULL,
  `target_directory` varchar(255) DEFAULT NULL,
  `datelastresult` datetime DEFAULT NULL,
  `codelastresult` varchar(16) DEFAULT NULL,
  `lastresult` varchar(255) DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_emailcollector_emailcollectoraction`
--

CREATE TABLE `nxuy_emailcollector_emailcollectoraction` (
  `rowid` int(11) NOT NULL,
  `fk_emailcollector` int(11) NOT NULL,
  `type` varchar(128) NOT NULL,
  `actionparam` varchar(255) DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `position` int(11) DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_emailcollector_emailcollectorfilter`
--

CREATE TABLE `nxuy_emailcollector_emailcollectorfilter` (
  `rowid` int(11) NOT NULL,
  `fk_emailcollector` int(11) NOT NULL,
  `type` varchar(128) NOT NULL,
  `rulevalue` varchar(255) DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_entrepot`
--

CREATE TABLE `nxuy_entrepot` (
  `rowid` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `ref` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `description` text DEFAULT NULL,
  `lieu` varchar(64) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(10) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_departement` int(11) DEFAULT NULL,
  `fk_pays` int(11) DEFAULT 0,
  `statut` tinyint(4) DEFAULT 1,
  `fk_user_author` int(11) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_parent` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_establishment`
--

CREATE TABLE `nxuy_establishment` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `name` varchar(50) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(25) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_state` int(11) DEFAULT 0,
  `fk_country` int(11) DEFAULT 0,
  `profid1` varchar(20) DEFAULT NULL,
  `profid2` varchar(20) DEFAULT NULL,
  `profid3` varchar(20) DEFAULT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `fk_user_author` int(11) NOT NULL,
  `fk_user_mod` int(11) DEFAULT NULL,
  `datec` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `status` smallint(6) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_events`
--

CREATE TABLE `nxuy_events` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `type` varchar(32) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `dateevent` datetime DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `description` varchar(250) NOT NULL,
  `ip` varchar(250) DEFAULT NULL,
  `user_agent` varchar(255) DEFAULT NULL,
  `fk_object` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_event_element`
--

CREATE TABLE `nxuy_event_element` (
  `rowid` int(11) NOT NULL,
  `fk_source` int(11) NOT NULL,
  `fk_target` int(11) NOT NULL,
  `targettype` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_expedition`
--

CREATE TABLE `nxuy_expedition` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(30) DEFAULT NULL,
  `ref_customer` varchar(30) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `date_expedition` datetime DEFAULT NULL,
  `date_delivery` datetime DEFAULT NULL,
  `fk_address` int(11) DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `tracking_number` varchar(50) DEFAULT NULL,
  `fk_statut` smallint(6) DEFAULT 0,
  `height` float DEFAULT NULL,
  `width` float DEFAULT NULL,
  `size_units` int(11) DEFAULT NULL,
  `size` float DEFAULT NULL,
  `weight_units` int(11) DEFAULT NULL,
  `weight` float DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `billed` smallint(6) DEFAULT 0,
  `fk_user_modif` int(11) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_expeditiondet`
--

CREATE TABLE `nxuy_expeditiondet` (
  `rowid` int(11) NOT NULL,
  `fk_expedition` int(11) NOT NULL,
  `fk_origin_line` int(11) DEFAULT NULL,
  `fk_entrepot` int(11) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `rang` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_expeditiondet_batch`
--

CREATE TABLE `nxuy_expeditiondet_batch` (
  `rowid` int(11) NOT NULL,
  `fk_expeditiondet` int(11) NOT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL,
  `batch` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `qty` double NOT NULL DEFAULT 0,
  `fk_origin_stock` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_expeditiondet_extrafields`
--

CREATE TABLE `nxuy_expeditiondet_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_expedition_extrafields`
--

CREATE TABLE `nxuy_expedition_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_expensereport`
--

CREATE TABLE `nxuy_expensereport` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(50) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_number_int` int(11) DEFAULT NULL,
  `ref_ext` int(11) DEFAULT NULL,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `total_tva` double(24,8) DEFAULT 0.00000000,
  `localtax1` double(24,8) DEFAULT 0.00000000,
  `localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT 0.00000000,
  `date_debut` date NOT NULL,
  `date_fin` date NOT NULL,
  `date_create` datetime NOT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_approve` datetime DEFAULT NULL,
  `date_refuse` datetime DEFAULT NULL,
  `date_cancel` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_author` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_validator` int(11) DEFAULT NULL,
  `fk_user_approve` int(11) DEFAULT NULL,
  `fk_user_refuse` int(11) DEFAULT NULL,
  `fk_user_cancel` int(11) DEFAULT NULL,
  `fk_statut` int(11) NOT NULL,
  `fk_c_paiement` int(11) DEFAULT NULL,
  `paid` smallint(6) NOT NULL DEFAULT 0,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `detail_refuse` varchar(255) DEFAULT NULL,
  `detail_cancel` varchar(255) DEFAULT NULL,
  `integration_compta` int(11) DEFAULT NULL,
  `fk_bank_account` int(11) DEFAULT NULL,
  `model_pdf` varchar(50) DEFAULT NULL,
  `fk_multicurrency` int(11) 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,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_expensereport_det`
--

CREATE TABLE `nxuy_expensereport_det` (
  `rowid` int(11) NOT NULL,
  `fk_expensereport` int(11) NOT NULL,
  `docnumber` varchar(128) DEFAULT NULL,
  `fk_c_type_fees` int(11) NOT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `comments` text NOT NULL,
  `product_type` int(11) DEFAULT -1,
  `qty` double NOT NULL,
  `value_unit` double NOT NULL,
  `remise_percent` double DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `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,
  `total_ht` double(24,8) NOT NULL DEFAULT 0.00000000,
  `total_tva` double(24,8) NOT NULL DEFAULT 0.00000000,
  `total_localtax1` double(24,8) DEFAULT 0.00000000,
  `total_localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) NOT NULL DEFAULT 0.00000000,
  `date` date NOT NULL,
  `info_bits` int(11) DEFAULT 0,
  `special_code` int(11) DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_multicurrency` int(11) 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_facture` int(11) DEFAULT 0,
  `fk_code_ventilation` int(11) DEFAULT 0,
  `vat_src_code` varchar(10) DEFAULT '',
  `rule_warning_message` text DEFAULT NULL,
  `fk_c_exp_tax_cat` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_expensereport_extrafields`
--

CREATE TABLE `nxuy_expensereport_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_expensereport_ik`
--

CREATE TABLE `nxuy_expensereport_ik` (
  `rowid` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_c_exp_tax_cat` int(11) NOT NULL DEFAULT 0,
  `fk_range` int(11) NOT NULL DEFAULT 0,
  `coef` double NOT NULL DEFAULT 0,
  `ikoffset` double NOT NULL DEFAULT 0,
  `active` int(11) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Déchargement des données de la table `nxuy_expensereport_ik`
--

INSERT INTO `nxuy_expensereport_ik` (`rowid`, `datec`, `tms`, `fk_c_exp_tax_cat`, `fk_range`, `coef`, `ikoffset`, `active`) VALUES
(1, NULL, '2019-04-08 09:41:03', 4, 1, 0.41, 0, 1),
(2, NULL, '2019-04-08 09:41:03', 4, 2, 0.244, 824, 1),
(3, NULL, '2019-04-08 09:41:03', 4, 3, 0.286, 0, 1),
(4, NULL, '2019-04-08 09:41:03', 5, 4, 0.493, 0, 1),
(5, NULL, '2019-04-08 09:41:03', 5, 5, 0.277, 1082, 1),
(6, NULL, '2019-04-08 09:41:03', 5, 6, 0.332, 0, 1),
(7, NULL, '2019-04-08 09:41:03', 6, 7, 0.543, 0, 1),
(8, NULL, '2019-04-08 09:41:03', 6, 8, 0.305, 1180, 1),
(9, NULL, '2019-04-08 09:41:03', 6, 9, 0.364, 0, 1),
(10, NULL, '2019-04-08 09:41:03', 7, 10, 0.568, 0, 1),
(11, NULL, '2019-04-08 09:41:03', 7, 11, 0.32, 1244, 1),
(12, NULL, '2019-04-08 09:41:03', 7, 12, 0.382, 0, 1),
(13, NULL, '2019-04-08 09:41:03', 8, 13, 0.595, 0, 1),
(14, NULL, '2019-04-08 09:41:03', 8, 14, 0.337, 1288, 1),
(15, NULL, '2019-04-08 09:41:03', 8, 15, 0.401, 0, 1);

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

--
-- Structure de la table `nxuy_expensereport_rules`
--

CREATE TABLE `nxuy_expensereport_rules` (
  `rowid` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `dates` datetime NOT NULL,
  `datee` datetime NOT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `restrictive` tinyint(4) NOT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_usergroup` int(11) DEFAULT NULL,
  `fk_c_type_fees` int(11) NOT NULL,
  `code_expense_rules_type` varchar(50) NOT NULL,
  `is_for_all` tinyint(4) DEFAULT 0,
  `entity` int(11) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_export_compta`
--

CREATE TABLE `nxuy_export_compta` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(12) NOT NULL,
  `date_export` datetime NOT NULL,
  `fk_user` int(11) NOT NULL,
  `note` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_export_model`
--

CREATE TABLE `nxuy_export_model` (
  `rowid` int(11) NOT NULL,
  `fk_user` int(11) NOT NULL DEFAULT 0,
  `label` varchar(50) NOT NULL,
  `type` varchar(20) NOT NULL,
  `field` text NOT NULL,
  `filter` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_extrafields`
--

CREATE TABLE `nxuy_extrafields` (
  `rowid` int(11) NOT NULL,
  `name` varchar(64) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `elementtype` varchar(64) NOT NULL DEFAULT 'member',
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `label` varchar(255) NOT NULL,
  `type` varchar(8) DEFAULT NULL,
  `size` varchar(8) DEFAULT NULL,
  `fieldunique` int(11) DEFAULT 0,
  `fieldrequired` int(11) DEFAULT 0,
  `perms` varchar(255) DEFAULT NULL,
  `list` varchar(128) DEFAULT NULL,
  `totalizable` tinyint(1) DEFAULT 0,
  `pos` int(11) DEFAULT 0,
  `alwayseditable` int(11) DEFAULT 0,
  `param` text DEFAULT NULL,
  `langs` varchar(64) DEFAULT NULL,
  `fieldcomputed` text DEFAULT NULL,
  `fielddefault` varchar(255) DEFAULT NULL,
  `enabled` varchar(255) DEFAULT '1',
  `help` text DEFAULT NULL,
  `ishidden` int(11) DEFAULT 0,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_facture`
--

CREATE TABLE `nxuy_facture` (
  `rowid` int(11) NOT NULL,
  `facnumber` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `ref_client` varchar(255) DEFAULT NULL,
  `type` smallint(6) NOT NULL DEFAULT 0,
  `increment` varchar(10) DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `datef` date DEFAULT NULL,
  `date_valid` date DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `paye` smallint(6) NOT NULL DEFAULT 0,
  `amount` double(24,8) NOT NULL DEFAULT 0.00000000,
  `remise_percent` double DEFAULT 0,
  `remise_absolue` double DEFAULT 0,
  `remise` double DEFAULT 0,
  `close_code` varchar(16) DEFAULT NULL,
  `close_note` varchar(128) DEFAULT NULL,
  `tva` double(24,8) DEFAULT 0.00000000,
  `localtax1` double(24,8) DEFAULT 0.00000000,
  `localtax2` double(24,8) DEFAULT 0.00000000,
  `revenuestamp` double(24,8) DEFAULT 0.00000000,
  `total` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT 0.00000000,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_facture_source` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_account` int(11) DEFAULT NULL,
  `fk_currency` varchar(3) DEFAULT NULL,
  `fk_cond_reglement` int(11) NOT NULL DEFAULT 1,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `date_lim_reglement` date DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `situation_cycle_ref` smallint(6) DEFAULT NULL,
  `situation_counter` smallint(6) DEFAULT NULL,
  `situation_final` smallint(6) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `date_pointoftax` date DEFAULT NULL,
  `fk_multicurrency` int(11) 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,
  `fk_fac_rec_source` int(11) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `module_source` varchar(32) DEFAULT NULL,
  `pos_source` varchar(32) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `nxuy_facture`
--

INSERT INTO `nxuy_facture` (`rowid`, `facnumber`, `entity`, `ref_ext`, `ref_int`, `ref_client`, `type`, `increment`, `fk_soc`, `datec`, `datef`, `date_valid`, `tms`, `paye`, `amount`, `remise_percent`, `remise_absolue`, `remise`, `close_code`, `close_note`, `tva`, `localtax1`, `localtax2`, `revenuestamp`, `total`, `total_ttc`, `fk_statut`, `fk_user_author`, `fk_user_modif`, `fk_user_valid`, `fk_facture_source`, `fk_projet`, `fk_account`, `fk_currency`, `fk_cond_reglement`, `fk_mode_reglement`, `date_lim_reglement`, `note_private`, `note_public`, `model_pdf`, `import_key`, `extraparams`, `situation_cycle_ref`, `situation_counter`, `situation_final`, `fk_incoterms`, `location_incoterms`, `date_pointoftax`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_tx`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `fk_fac_rec_source`, `last_main_doc`, `module_source`, `pos_source`) VALUES
(2, 'FA1909-0001', 1, NULL, NULL, NULL, 0, NULL, 4, '2019-09-17 18:51:05', '2019-09-17', '2019-09-17', '2019-09-20 08:34:55', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0, 3, NULL, 3, NULL, NULL, 1, NULL, 2, 7, '2019-10-17', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 0, 'EUR', 1.00000000, 0.00000000, 0.00000000, 0.00000000, NULL, 'facture/FA1909-0001/FA1909-0001.pdf', NULL, NULL),
(3, 'FA1909-0002', 1, NULL, NULL, NULL, 0, NULL, 3, '2019-09-17 18:54:22', '2019-09-17', '2019-09-20', '2019-09-20 08:34:00', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0, 3, NULL, 3, NULL, NULL, 1, NULL, 2, 7, '2019-10-17', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 0, 'EUR', 1.00000000, 0.00000000, 0.00000000, 0.00000000, NULL, 'facture/FA1909-0002/FA1909-0002.pdf', NULL, NULL),
(4, 'FA1909-0003', 1, NULL, NULL, NULL, 0, NULL, 2, '2019-09-17 18:56:02', '2019-09-17', '2019-09-17', '2019-09-20 08:41:03', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0, 3, NULL, 3, NULL, NULL, 1, NULL, 0, 7, '2019-10-17', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 0, 'EUR', 1.00000000, 0.00000000, 0.00000000, 0.00000000, NULL, 'facture/FA1909-0003/FA1909-0003.pdf', NULL, NULL),
(5, 'FA1909-0004', 1, NULL, NULL, NULL, 0, NULL, 2, '2019-09-17 19:20:44', '2019-09-17', '2019-09-20', '2019-09-27 06:59:53', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0, 3, NULL, 3, NULL, NULL, 1, NULL, 0, 7, '2019-09-17', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 0, 'EUR', 1.00000000, 0.00000000, 0.00000000, 0.00000000, NULL, 'facture/FA1909-0004/FA1909-0004.pdf', NULL, NULL),
(7, 'FA1909-0005', 1, NULL, NULL, NULL, 0, NULL, 4, '2019-09-17 19:24:17', '2019-09-17', '2019-09-20', '2019-09-27 07:01:07', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0, 3, NULL, 3, NULL, NULL, 1, NULL, 2, 7, '2019-10-17', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 0, 'EUR', 1.00000000, 0.00000000, 0.00000000, 0.00000000, NULL, 'facture/FA1909-0005/FA1909-0005.pdf', NULL, NULL),
(8, 'FA1909-0006', 1, NULL, NULL, NULL, 0, NULL, 3, '2019-09-17 19:25:08', '2019-09-17', '2019-09-20', '2019-09-20 08:39:28', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 35.40000000, 0.00000000, 0.00000000, 0.00000000, 643.80000000, 679.20000000, 1, 3, NULL, 3, NULL, NULL, 1, NULL, 2, 7, '2019-10-17', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 0, 'EUR', 1.00000000, 643.80000000, 35.40000000, 679.20000000, NULL, 'facture/FA1909-0006/FA1909-0006.pdf', NULL, NULL),
(11, 'FA1909-0007', 1, NULL, NULL, NULL, 0, NULL, 3, '2019-09-23 19:20:22', '2019-09-23', '2019-10-01', '2019-10-01 16:04:45', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 13.39000000, 0.00000000, 0.00000000, 0.00000000, 243.10000000, 256.49000000, 1, 3, NULL, 3, NULL, NULL, 1, NULL, 2, 7, '2019-10-23', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 0, 'EUR', 1.00000000, 243.10000000, 13.39000000, 256.49000000, NULL, 'facture/FA1909-0007/FA1909-0007.pdf', NULL, NULL),
(12, 'FA1909-0008', 1, NULL, NULL, NULL, 0, NULL, 4, '2019-09-23 19:41:18', '2019-09-23', '2019-09-25', '2019-10-01 16:08:21', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 13.39000000, 0.00000000, 0.00000000, 0.00000000, 243.10000000, 256.49000000, 0, 3, NULL, 3, NULL, NULL, 1, NULL, 0, 0, '2019-10-23', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 0, 'EUR', 1.00000000, 243.10000000, 13.39000000, 256.49000000, NULL, 'facture/FA1909-0008/FA1909-0008.pdf', NULL, NULL),
(13, 'FA1909-0009', 1, NULL, NULL, NULL, 0, NULL, 2, '2019-09-23 19:41:40', '2019-09-23', '2019-10-01', '2020-01-27 09:18:20', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 13.39000000, 0.00000000, 0.00000000, 0.00000000, 243.10000000, 256.49000000, 0, 3, NULL, 3, NULL, NULL, 1, NULL, 0, 0, '2019-09-23', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 0, 'EUR', 1.00000000, 243.10000000, 13.39000000, 256.49000000, NULL, 'facture/FA1909-0009/FA1909-0009.pdf', NULL, NULL),
(14, 'FA2011-0010', 1, NULL, NULL, NULL, 0, NULL, 5, '2020-01-27 08:44:23', '2019-11-01', '2020-01-27', '2020-01-27 09:19:45', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 84.12000000, 0.00000000, 0.00000000, 0.00000000, 1529.10000000, 1613.22000000, 1, 3, NULL, 3, NULL, NULL, 1, NULL, 1, 7, '2019-11-01', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 0, 'EUR', 1.00000000, 1529.10000000, 84.12000000, 1613.22000000, NULL, 'facture/FA2011-0010/FA2011-0010.pdf', NULL, NULL),
(15, 'FA1911-0011', 1, NULL, NULL, NULL, 0, NULL, 6, '2020-01-27 09:21:35', '2019-11-01', '2020-01-27', '2020-01-27 09:30:47', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 71.03000000, 0.00000000, 0.00000000, 0.00000000, 1291.40000000, 1362.43000000, 1, 3, NULL, 3, NULL, NULL, 1, NULL, 1, 0, '2019-11-01', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 0, 'EUR', 1.00000000, 1291.40000000, 71.03000000, 1362.43000000, NULL, 'facture/FA1911-0011/FA1911-0011.pdf', NULL, NULL);

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

--
-- Structure de la table `nxuy_facturedet`
--

CREATE TABLE `nxuy_facturedet` (
  `rowid` int(11) NOT NULL,
  `fk_facture` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `vat_src_code` varchar(10) DEFAULT '',
  `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,
  `fk_remise_except` int(11) DEFAULT NULL,
  `subprice` double(24,8) DEFAULT NULL,
  `price` double(24,8) DEFAULT NULL,
  `total_ht` double(24,8) DEFAULT NULL,
  `total_tva` double(24,8) DEFAULT NULL,
  `total_localtax1` double(24,8) DEFAULT 0.00000000,
  `total_localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT NULL,
  `product_type` int(11) DEFAULT 0,
  `date_start` datetime DEFAULT NULL,
  `date_end` datetime DEFAULT NULL,
  `info_bits` int(11) DEFAULT 0,
  `buy_price_ht` double(24,8) DEFAULT 0.00000000,
  `fk_product_fournisseur_price` int(11) DEFAULT NULL,
  `fk_code_ventilation` int(11) NOT NULL DEFAULT 0,
  `special_code` int(10) UNSIGNED DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `fk_contract_line` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `situation_percent` double DEFAULT NULL,
  `fk_prev_id` int(11) DEFAULT NULL,
  `fk_unit` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `nxuy_facturedet`
--

INSERT INTO `nxuy_facturedet` (`rowid`, `fk_facture`, `fk_parent_line`, `fk_product`, `label`, `description`, `tva_tx`, `vat_src_code`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `qty`, `remise_percent`, `remise`, `fk_remise_except`, `subprice`, `price`, `total_ht`, `total_tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `product_type`, `date_start`, `date_end`, `info_bits`, `buy_price_ht`, `fk_product_fournisseur_price`, `fk_code_ventilation`, `special_code`, `rang`, `fk_contract_line`, `import_key`, `situation_percent`, `fk_prev_id`, `fk_unit`, `fk_user_modif`, `fk_user_author`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_subprice`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`) VALUES
(32, 8, NULL, 10, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 3, 0, 0, NULL, 45.00000000, NULL, 135.00000000, 7.43000000, 0.00000000, 0.00000000, 142.43000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 45.00000000, 135.00000000, 7.43000000, 142.43000000),
(33, 8, NULL, 11, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 3, 0, 0, NULL, 49.90000000, NULL, 149.70000000, 8.23000000, 0.00000000, 0.00000000, 157.93000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 49.90000000, 149.70000000, 8.23000000, 157.93000000),
(34, 8, NULL, 12, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 3, 0, 0, NULL, 39.90000000, NULL, 119.70000000, 6.58000000, 0.00000000, 0.00000000, 126.28000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 3, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 39.90000000, 119.70000000, 6.58000000, 126.28000000),
(35, 8, NULL, 13, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 3, 0, 0, NULL, 39.90000000, NULL, 119.70000000, 6.58000000, 0.00000000, 0.00000000, 126.28000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 4, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 39.90000000, 119.70000000, 6.58000000, 126.28000000),
(37, 8, NULL, 14, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 3, 0, 0, NULL, 39.90000000, NULL, 119.70000000, 6.58000000, 0.00000000, 0.00000000, 126.28000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 5, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 39.90000000, 119.70000000, 6.58000000, 126.28000000),
(42, 11, NULL, 2, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 23.00000000, NULL, 19.55000000, 1.08000000, 0.00000000, 0.00000000, 20.63000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 23.00000000, 19.55000000, 1.08000000, 20.63000000),
(43, 11, NULL, 3, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 53.00000000, NULL, 45.05000000, 2.48000000, 0.00000000, 0.00000000, 47.53000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 53.00000000, 45.05000000, 2.48000000, 47.53000000),
(44, 11, NULL, 4, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 38.00000000, NULL, 32.30000000, 1.78000000, 0.00000000, 0.00000000, 34.08000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 3, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 38.00000000, 32.30000000, 1.78000000, 34.08000000),
(45, 11, NULL, 5, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 55.00000000, NULL, 46.75000000, 2.57000000, 0.00000000, 0.00000000, 49.32000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 4, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 55.00000000, 46.75000000, 2.57000000, 49.32000000),
(46, 11, NULL, 6, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 23.00000000, NULL, 19.55000000, 1.08000000, 0.00000000, 0.00000000, 20.63000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 5, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 23.00000000, 19.55000000, 1.08000000, 20.63000000),
(47, 11, NULL, 7, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 39.00000000, NULL, 33.15000000, 1.82000000, 0.00000000, 0.00000000, 34.97000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 6, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 39.00000000, 33.15000000, 1.82000000, 34.97000000),
(48, 11, NULL, 8, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 23.00000000, NULL, 19.55000000, 1.08000000, 0.00000000, 0.00000000, 20.63000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 7, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 23.00000000, 19.55000000, 1.08000000, 20.63000000),
(49, 11, NULL, 9, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 32.00000000, NULL, 27.20000000, 1.50000000, 0.00000000, 0.00000000, 28.70000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 8, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 32.00000000, 27.20000000, 1.50000000, 28.70000000),
(50, 12, NULL, 2, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 23.00000000, NULL, 19.55000000, 1.08000000, 0.00000000, 0.00000000, 20.63000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 23.00000000, 19.55000000, 1.08000000, 20.63000000),
(51, 12, NULL, 3, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 53.00000000, NULL, 45.05000000, 2.48000000, 0.00000000, 0.00000000, 47.53000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 53.00000000, 45.05000000, 2.48000000, 47.53000000),
(52, 12, NULL, 4, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 38.00000000, NULL, 32.30000000, 1.78000000, 0.00000000, 0.00000000, 34.08000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 3, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 38.00000000, 32.30000000, 1.78000000, 34.08000000),
(53, 12, NULL, 5, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 55.00000000, NULL, 46.75000000, 2.57000000, 0.00000000, 0.00000000, 49.32000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 4, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 55.00000000, 46.75000000, 2.57000000, 49.32000000),
(54, 12, NULL, 6, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 23.00000000, NULL, 19.55000000, 1.08000000, 0.00000000, 0.00000000, 20.63000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 5, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 23.00000000, 19.55000000, 1.08000000, 20.63000000),
(55, 12, NULL, 7, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 39.00000000, NULL, 33.15000000, 1.82000000, 0.00000000, 0.00000000, 34.97000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 6, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 39.00000000, 33.15000000, 1.82000000, 34.97000000),
(56, 12, NULL, 8, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 23.00000000, NULL, 19.55000000, 1.08000000, 0.00000000, 0.00000000, 20.63000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 7, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 23.00000000, 19.55000000, 1.08000000, 20.63000000),
(57, 12, NULL, 9, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 32.00000000, NULL, 27.20000000, 1.50000000, 0.00000000, 0.00000000, 28.70000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 8, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 32.00000000, 27.20000000, 1.50000000, 28.70000000),
(58, 13, NULL, 2, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 23.00000000, NULL, 19.55000000, 1.08000000, 0.00000000, 0.00000000, 20.63000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 23.00000000, 19.55000000, 1.08000000, 20.63000000),
(59, 13, NULL, 3, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 53.00000000, NULL, 45.05000000, 2.48000000, 0.00000000, 0.00000000, 47.53000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 53.00000000, 45.05000000, 2.48000000, 47.53000000),
(60, 13, NULL, 4, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 38.00000000, NULL, 32.30000000, 1.78000000, 0.00000000, 0.00000000, 34.08000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 3, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 38.00000000, 32.30000000, 1.78000000, 34.08000000),
(61, 13, NULL, 5, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 55.00000000, NULL, 46.75000000, 2.57000000, 0.00000000, 0.00000000, 49.32000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 4, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 55.00000000, 46.75000000, 2.57000000, 49.32000000),
(62, 13, NULL, 6, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 23.00000000, NULL, 19.55000000, 1.08000000, 0.00000000, 0.00000000, 20.63000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 5, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 23.00000000, 19.55000000, 1.08000000, 20.63000000),
(63, 13, NULL, 7, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 39.00000000, NULL, 33.15000000, 1.82000000, 0.00000000, 0.00000000, 34.97000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 6, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 39.00000000, 33.15000000, 1.82000000, 34.97000000),
(64, 13, NULL, 8, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 23.00000000, NULL, 19.55000000, 1.08000000, 0.00000000, 0.00000000, 20.63000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 7, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 23.00000000, 19.55000000, 1.08000000, 20.63000000),
(65, 13, NULL, 9, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 15, 0, NULL, 32.00000000, NULL, 27.20000000, 1.50000000, 0.00000000, 0.00000000, 28.70000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 8, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 32.00000000, 27.20000000, 1.50000000, 28.70000000),
(66, 14, NULL, 36, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 47, 0, 0, NULL, 19.80000000, NULL, 930.60000000, 51.18000000, 0.00000000, 0.00000000, 981.78000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 19.80000000, 930.60000000, 51.18000000, 981.78000000),
(67, 14, NULL, 44, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 25, 0, 0, NULL, 2.20000000, NULL, 55.00000000, 3.03000000, 0.00000000, 0.00000000, 58.03000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 2.20000000, 55.00000000, 3.03000000, 58.03000000),
(68, 14, NULL, 45, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 25, 0, 0, NULL, 2.20000000, NULL, 55.00000000, 3.03000000, 0.00000000, 0.00000000, 58.03000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 3, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 2.20000000, 55.00000000, 3.03000000, 58.03000000),
(69, 14, NULL, 46, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 25, 0, 0, NULL, 2.00000000, NULL, 50.00000000, 2.75000000, 0.00000000, 0.00000000, 52.75000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 4, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 2.00000000, 50.00000000, 2.75000000, 52.75000000),
(70, 14, NULL, 47, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 25, 0, 0, NULL, 2.50000000, NULL, 62.50000000, 3.44000000, 0.00000000, 0.00000000, 65.94000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 5, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 2.50000000, 62.50000000, 3.44000000, 65.94000000),
(71, 14, NULL, 49, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 5, 0, 0, NULL, 2.50000000, NULL, 12.50000000, 0.69000000, 0.00000000, 0.00000000, 13.19000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 6, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 2.50000000, 12.50000000, 0.69000000, 13.19000000),
(72, 14, NULL, 50, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 10, 0, 0, NULL, 3.50000000, NULL, 35.00000000, 1.93000000, 0.00000000, 0.00000000, 36.93000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 7, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 3.50000000, 35.00000000, 1.93000000, 36.93000000),
(73, 14, NULL, 50, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 5, 0, 0, NULL, 3.50000000, NULL, 17.50000000, 0.96000000, 0.00000000, 0.00000000, 18.46000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 8, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 3.50000000, 17.50000000, 0.96000000, 18.46000000),
(74, 14, NULL, 51, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 5, 0, 0, NULL, 2.60000000, NULL, 13.00000000, 0.72000000, 0.00000000, 0.00000000, 13.72000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 9, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 2.60000000, 13.00000000, 0.72000000, 13.72000000),
(75, 14, NULL, 52, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 70, 0, 0, NULL, 2.40000000, NULL, 168.00000000, 9.24000000, 0.00000000, 0.00000000, 177.24000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 10, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 2.40000000, 168.00000000, 9.24000000, 177.24000000),
(76, 14, NULL, 53, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 65, 0, 0, NULL, 2.00000000, NULL, 130.00000000, 7.15000000, 0.00000000, 0.00000000, 137.15000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 11, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 2.00000000, 130.00000000, 7.15000000, 137.15000000),
(77, 15, NULL, 46, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 60, 0, 0, NULL, 2.00000000, NULL, 120.00000000, 6.60000000, 0.00000000, 0.00000000, 126.60000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 2.00000000, 120.00000000, 6.60000000, 126.60000000),
(78, 15, NULL, 52, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 60, 0, 0, NULL, 2.50000000, NULL, 150.00000000, 8.25000000, 0.00000000, 0.00000000, 158.25000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 2.50000000, 150.00000000, 8.25000000, 158.25000000),
(79, 15, NULL, 47, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 25, 0, 0, NULL, 2.50000000, NULL, 62.50000000, 3.44000000, 0.00000000, 0.00000000, 65.94000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 3, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 2.50000000, 62.50000000, 3.44000000, 65.94000000),
(81, 15, NULL, 47, NULL, 'rouge', 5.500, '', 0.000, '0', 0.000, '0', 15, 0, 0, NULL, 2.50000000, NULL, 37.50000000, 2.06000000, 0.00000000, 0.00000000, 39.56000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 4, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 2.50000000, 37.50000000, 2.06000000, 39.56000000),
(82, 15, NULL, 53, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 20, 0, 0, NULL, 2.00000000, NULL, 40.00000000, 2.20000000, 0.00000000, 0.00000000, 42.20000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 5, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 2.00000000, 40.00000000, 2.20000000, 42.20000000),
(83, 15, NULL, 23, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 20, 0, 0, NULL, 1.50000000, NULL, 30.00000000, 1.65000000, 0.00000000, 0.00000000, 31.65000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 6, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 1.50000000, 30.00000000, 1.65000000, 31.65000000),
(84, 15, NULL, 36, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 516, 0, 0, NULL, 1.65000000, NULL, 851.40000000, 46.83000000, 0.00000000, 0.00000000, 898.23000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 7, NULL, NULL, 100, NULL, NULL, 3, 3, 0, 'EUR', 1.65000000, 851.40000000, 46.83000000, 898.23000000);

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

--
-- Structure de la table `nxuy_facturedet_extrafields`
--

CREATE TABLE `nxuy_facturedet_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_facturedet_rec`
--

CREATE TABLE `nxuy_facturedet_rec` (
  `rowid` int(11) NOT NULL,
  `fk_facture` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `product_type` int(11) DEFAULT 0,
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `vat_src_code` varchar(10) DEFAULT '',
  `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,
  `subprice` double(24,8) DEFAULT NULL,
  `price` double(24,8) DEFAULT NULL,
  `total_ht` double(24,8) DEFAULT NULL,
  `total_tva` double(24,8) DEFAULT NULL,
  `total_localtax1` double(24,8) DEFAULT 0.00000000,
  `total_localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT NULL,
  `info_bits` int(11) DEFAULT 0,
  `special_code` int(10) UNSIGNED DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `fk_contract_line` int(11) DEFAULT NULL,
  `fk_unit` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_multicurrency` int(11) 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,
  `date_start_fill` int(11) DEFAULT 0,
  `date_end_fill` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_facturedet_rec_extrafields`
--

CREATE TABLE `nxuy_facturedet_rec_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_facture_extrafields`
--

CREATE TABLE `nxuy_facture_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_facture_fourn`
--

CREATE TABLE `nxuy_facture_fourn` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(255) NOT NULL,
  `ref_supplier` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(255) DEFAULT NULL,
  `type` smallint(6) NOT NULL DEFAULT 0,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `datef` date DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `libelle` varchar(255) DEFAULT NULL,
  `paye` smallint(6) NOT NULL DEFAULT 0,
  `amount` double(24,8) NOT NULL DEFAULT 0.00000000,
  `remise` double(24,8) DEFAULT 0.00000000,
  `close_code` varchar(16) DEFAULT NULL,
  `close_note` varchar(128) DEFAULT NULL,
  `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,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `total_tva` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT 0.00000000,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_facture_source` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_account` int(11) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT NULL,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `date_lim_reglement` date DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int(11) 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,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `date_pointoftax` date DEFAULT NULL,
  `date_valid` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_facture_fourn_det`
--

CREATE TABLE `nxuy_facture_fourn_det` (
  `rowid` int(11) NOT NULL,
  `fk_facture_fourn` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `ref` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `pu_ht` double(24,8) DEFAULT NULL,
  `pu_ttc` double(24,8) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT 0,
  `tva_tx` double(6,3) DEFAULT NULL,
  `vat_src_code` varchar(10) DEFAULT '',
  `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,
  `total_ht` double(24,8) DEFAULT NULL,
  `tva` double(24,8) DEFAULT NULL,
  `total_localtax1` double(24,8) DEFAULT 0.00000000,
  `total_localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT NULL,
  `product_type` int(11) DEFAULT 0,
  `date_start` datetime DEFAULT NULL,
  `date_end` datetime DEFAULT NULL,
  `info_bits` int(11) DEFAULT 0,
  `fk_code_ventilation` int(11) NOT NULL DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL,
  `special_code` int(11) DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `fk_unit` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_facture_fourn_det_extrafields`
--

CREATE TABLE `nxuy_facture_fourn_det_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_facture_fourn_extrafields`
--

CREATE TABLE `nxuy_facture_fourn_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_facture_rec`
--

CREATE TABLE `nxuy_facture_rec` (
  `rowid` int(11) NOT NULL,
  `titre` varchar(100) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `amount` double(24,8) NOT NULL DEFAULT 0.00000000,
  `remise` double DEFAULT 0,
  `remise_percent` double DEFAULT 0,
  `remise_absolue` double DEFAULT 0,
  `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,
  `total_ttc` double(24,8) DEFAULT 0.00000000,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT 0,
  `fk_mode_reglement` int(11) DEFAULT 0,
  `date_lim_reglement` date DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `modelpdf` varchar(255) DEFAULT NULL,
  `usenewprice` int(11) DEFAULT 0,
  `frequency` int(11) DEFAULT NULL,
  `unit_frequency` varchar(2) DEFAULT 'd',
  `date_when` datetime DEFAULT NULL,
  `date_last_gen` datetime DEFAULT NULL,
  `nb_gen_done` int(11) DEFAULT NULL,
  `nb_gen_max` int(11) DEFAULT NULL,
  `revenuestamp` double(24,8) DEFAULT 0.00000000,
  `auto_validate` int(11) DEFAULT 0,
  `generate_pdf` int(11) DEFAULT 1,
  `fk_account` int(11) DEFAULT 0,
  `fk_multicurrency` int(11) 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,
  `fk_user_modif` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `vat_src_code` varchar(10) DEFAULT '',
  `suspended` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_facture_rec_extrafields`
--

CREATE TABLE `nxuy_facture_rec_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_fichinter`
--

CREATE TABLE `nxuy_fichinter` (
  `rowid` int(11) NOT NULL,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) DEFAULT 0,
  `fk_contrat` int(11) DEFAULT 0,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `datei` date DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) DEFAULT 0,
  `duree` double DEFAULT NULL,
  `dateo` date DEFAULT NULL,
  `datee` date DEFAULT NULL,
  `datet` date DEFAULT NULL,
  `description` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_fichinterdet`
--

CREATE TABLE `nxuy_fichinterdet` (
  `rowid` int(11) NOT NULL,
  `fk_fichinter` int(11) DEFAULT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `description` text DEFAULT NULL,
  `duree` int(11) DEFAULT NULL,
  `rang` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_fichinterdet_extrafields`
--

CREATE TABLE `nxuy_fichinterdet_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_fichinter_extrafields`
--

CREATE TABLE `nxuy_fichinter_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_holiday`
--

CREATE TABLE `nxuy_holiday` (
  `rowid` int(11) NOT NULL,
  `fk_user` int(11) NOT NULL,
  `fk_user_create` int(11) DEFAULT NULL,
  `date_create` datetime NOT NULL,
  `description` varchar(255) NOT NULL,
  `date_debut` date NOT NULL,
  `date_fin` date NOT NULL,
  `halfday` int(11) DEFAULT 0,
  `statut` int(11) NOT NULL DEFAULT 1,
  `fk_validator` int(11) NOT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `date_refuse` datetime DEFAULT NULL,
  `fk_user_refuse` int(11) DEFAULT NULL,
  `date_cancel` datetime DEFAULT NULL,
  `fk_user_cancel` int(11) DEFAULT NULL,
  `detail_refuse` varchar(250) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `fk_type` int(11) NOT NULL DEFAULT 1,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref` varchar(30) DEFAULT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_holiday_config`
--

CREATE TABLE `nxuy_holiday_config` (
  `rowid` int(11) NOT NULL,
  `name` varchar(128) NOT NULL,
  `value` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `nxuy_holiday_config`
--

INSERT INTO `nxuy_holiday_config` (`rowid`, `name`, `value`) VALUES
(1, 'userGroup', NULL),
(2, 'lastUpdate', NULL),
(3, 'nbUser', NULL),
(4, 'delayForRequest', '31'),
(5, 'AlertValidatorDelay', '0'),
(6, 'AlertValidatorSolde', '0'),
(7, 'nbHolidayDeducted', '1'),
(8, 'nbHolidayEveryMonth', '2.08334');

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

--
-- Structure de la table `nxuy_holiday_logs`
--

CREATE TABLE `nxuy_holiday_logs` (
  `rowid` int(11) NOT NULL,
  `date_action` datetime NOT NULL,
  `fk_user_action` int(11) NOT NULL,
  `fk_user_update` int(11) NOT NULL,
  `type_action` varchar(255) NOT NULL,
  `prev_solde` varchar(255) NOT NULL,
  `new_solde` varchar(255) NOT NULL,
  `fk_type` int(11) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_holiday_users`
--

CREATE TABLE `nxuy_holiday_users` (
  `fk_user` int(11) NOT NULL,
  `nb_holiday` double NOT NULL DEFAULT 0,
  `fk_type` int(11) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_import_model`
--

CREATE TABLE `nxuy_import_model` (
  `rowid` int(11) NOT NULL,
  `fk_user` int(11) NOT NULL DEFAULT 0,
  `label` varchar(50) NOT NULL,
  `type` varchar(50) DEFAULT NULL,
  `field` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_inventory`
--

CREATE TABLE `nxuy_inventory` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) DEFAULT 0,
  `ref` varchar(48) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_warehouse` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT 0,
  `title` varchar(255) NOT NULL,
  `date_inventory` datetime DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `date_validation` datetime DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_inventorydet`
--

CREATE TABLE `nxuy_inventorydet` (
  `rowid` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_inventory` int(11) DEFAULT 0,
  `fk_warehouse` int(11) DEFAULT 0,
  `fk_product` int(11) DEFAULT 0,
  `batch` varchar(30) DEFAULT NULL,
  `qty_view` double DEFAULT NULL,
  `qty_stock` double DEFAULT NULL,
  `qty_regulated` double DEFAULT NULL,
  `pmp` double DEFAULT 0,
  `pa` double DEFAULT 0,
  `new_pmp` double DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_links`
--

CREATE TABLE `nxuy_links` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datea` datetime NOT NULL,
  `url` varchar(255) NOT NULL,
  `label` varchar(255) NOT NULL,
  `objecttype` varchar(255) NOT NULL,
  `objectid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_livraison`
--

CREATE TABLE `nxuy_livraison` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(30) DEFAULT NULL,
  `ref_customer` varchar(30) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `date_delivery` datetime DEFAULT NULL,
  `fk_address` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) DEFAULT 0,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_livraisondet`
--

CREATE TABLE `nxuy_livraisondet` (
  `rowid` int(11) NOT NULL,
  `fk_livraison` int(11) DEFAULT NULL,
  `fk_origin_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `subprice` double(24,8) DEFAULT 0.00000000,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `rang` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_livraisondet_extrafields`
--

CREATE TABLE `nxuy_livraisondet_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_livraison_extrafields`
--

CREATE TABLE `nxuy_livraison_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_loan`
--

CREATE TABLE `nxuy_loan` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `label` varchar(80) NOT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `capital` double(24,8) DEFAULT NULL,
  `datestart` date DEFAULT NULL,
  `dateend` date DEFAULT NULL,
  `nbterm` double DEFAULT NULL,
  `rate` double NOT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `capital_position` double(24,8) DEFAULT NULL,
  `date_position` date DEFAULT NULL,
  `paid` smallint(6) NOT NULL DEFAULT 0,
  `accountancy_account_capital` varchar(32) DEFAULT NULL,
  `accountancy_account_insurance` varchar(32) DEFAULT NULL,
  `accountancy_account_interest` varchar(32) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `fk_projet` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_loan_schedule`
--

CREATE TABLE `nxuy_loan_schedule` (
  `rowid` int(11) NOT NULL,
  `fk_loan` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount_capital` double(24,8) DEFAULT NULL,
  `amount_insurance` double(24,8) DEFAULT NULL,
  `amount_interest` double(24,8) DEFAULT NULL,
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_localtax`
--

CREATE TABLE `nxuy_localtax` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `localtaxtype` tinyint(4) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `amount` double DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_mailing`
--

CREATE TABLE `nxuy_mailing` (
  `rowid` int(11) NOT NULL,
  `statut` smallint(6) DEFAULT 0,
  `titre` varchar(128) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `sujet` varchar(128) DEFAULT NULL,
  `body` mediumtext DEFAULT NULL,
  `bgcolor` varchar(8) DEFAULT NULL,
  `bgimage` varchar(255) DEFAULT NULL,
  `cible` varchar(60) DEFAULT NULL,
  `nbemail` int(11) DEFAULT NULL,
  `email_from` varchar(160) DEFAULT NULL,
  `email_replyto` varchar(160) DEFAULT NULL,
  `email_errorsto` varchar(160) DEFAULT NULL,
  `tag` varchar(128) DEFAULT NULL,
  `date_creat` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_appro` datetime DEFAULT NULL,
  `date_envoi` datetime DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_appro` int(11) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `joined_file1` varchar(255) DEFAULT NULL,
  `joined_file2` varchar(255) DEFAULT NULL,
  `joined_file3` varchar(255) DEFAULT NULL,
  `joined_file4` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_mailing_cibles`
--

CREATE TABLE `nxuy_mailing_cibles` (
  `rowid` int(11) NOT NULL,
  `fk_mailing` int(11) NOT NULL,
  `fk_contact` int(11) NOT NULL,
  `lastname` varchar(160) DEFAULT NULL,
  `firstname` varchar(160) DEFAULT NULL,
  `email` varchar(160) NOT NULL,
  `other` varchar(255) DEFAULT NULL,
  `tag` varchar(128) DEFAULT NULL,
  `statut` smallint(6) NOT NULL DEFAULT 0,
  `source_url` varchar(255) DEFAULT NULL,
  `source_id` int(11) DEFAULT NULL,
  `source_type` varchar(16) DEFAULT NULL,
  `date_envoi` datetime DEFAULT NULL,
  `error_text` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_menu`
--

CREATE TABLE `nxuy_menu` (
  `rowid` int(11) NOT NULL,
  `menu_handler` varchar(16) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `module` varchar(64) DEFAULT NULL,
  `type` varchar(4) NOT NULL,
  `mainmenu` varchar(100) NOT NULL,
  `leftmenu` varchar(100) DEFAULT NULL,
  `fk_menu` int(11) NOT NULL,
  `fk_mainmenu` varchar(100) DEFAULT NULL,
  `fk_leftmenu` varchar(100) DEFAULT NULL,
  `position` int(11) NOT NULL,
  `url` varchar(255) NOT NULL,
  `target` varchar(100) DEFAULT NULL,
  `titre` varchar(255) NOT NULL,
  `langs` varchar(100) DEFAULT NULL,
  `level` smallint(6) DEFAULT NULL,
  `perms` text DEFAULT NULL,
  `enabled` varchar(255) DEFAULT '1',
  `usertype` int(11) NOT NULL DEFAULT 0,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `nxuy_menu`
--

INSERT INTO `nxuy_menu` (`rowid`, `menu_handler`, `entity`, `module`, `type`, `mainmenu`, `leftmenu`, `fk_menu`, `fk_mainmenu`, `fk_leftmenu`, `position`, `url`, `target`, `titre`, `langs`, `level`, `perms`, `enabled`, `usertype`, `tms`) VALUES
(1, 'all', 1, 'supplier_proposal', 'left', 'commercial', 'supplier_proposalsubmenu', -1, 'commercial', NULL, 300, '/supplier_proposal/index.php', '', 'SupplierProposalsShort', 'supplier_proposal', NULL, '$user->rights->supplier_proposal->lire', '$conf->supplier_proposal->enabled', 2, '2019-04-08 09:45:04'),
(2, 'all', 1, 'supplier_proposal', 'left', 'commercial', NULL, -1, 'commercial', 'supplier_proposalsubmenu', 301, '/supplier_proposal/card.php?action=create&amp;leftmenu=supplier_proposals', '', 'SupplierProposalNew', 'supplier_proposal', NULL, '$user->rights->supplier_proposal->creer', '$conf->supplier_proposal->enabled', 2, '2019-04-08 09:45:04'),
(3, 'all', 1, 'supplier_proposal', 'left', 'commercial', NULL, -1, 'commercial', 'supplier_proposalsubmenu', 302, '/supplier_proposal/list.php?leftmenu=supplier_proposals', '', 'List', 'supplier_proposal', NULL, '$user->rights->supplier_proposal->lire', '$conf->supplier_proposal->enabled', 2, '2019-04-08 09:45:04'),
(4, 'all', 1, 'supplier_proposal', 'left', 'commercial', NULL, -1, 'commercial', 'supplier_proposalsubmenu', 303, '/comm/propal/stats/index.php?leftmenu=supplier_proposals&amp;mode=supplier', '', 'Statistics', 'supplier_proposal', NULL, '$user->rights->supplier_proposal->lire', '$conf->supplier_proposal->enabled', 2, '2019-04-08 09:45:04'),
(13, 'all', 1, 'opensurvey', 'left', 'tools', 'opensurvey', -1, 'tools', NULL, 200, '/opensurvey/index.php?mainmenu=tools&leftmenu=opensurvey', '', 'Survey', 'opensurvey', NULL, '$user->rights->opensurvey->read', '$conf->opensurvey->enabled', 0, '2019-08-19 03:29:22'),
(14, 'all', 1, 'opensurvey', 'left', 'tools', 'opensurvey_new', -1, 'tools', 'opensurvey', 210, '/opensurvey/wizard/index.php', '', 'NewSurvey', 'opensurvey', NULL, '$user->rights->opensurvey->write', '$conf->opensurvey->enabled', 0, '2019-08-19 03:29:22'),
(15, 'all', 1, 'opensurvey', 'left', 'tools', 'opensurvey_list', -1, 'tools', 'opensurvey', 220, '/opensurvey/list.php', '', 'List', 'opensurvey', NULL, '$user->rights->opensurvey->read', '$conf->opensurvey->enabled', 0, '2019-08-19 03:29:22'),
(16, 'all', 1, 'website', 'top', 'website', NULL, 0, NULL, NULL, 100, '/website/index.php', '', 'WebSites', 'website', NULL, '$user->rights->website->read', '$conf->website->enabled', 2, '2019-08-19 03:29:23');

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

--
-- Structure de la table `nxuy_multicurrency`
--

CREATE TABLE `nxuy_multicurrency` (
  `rowid` int(11) NOT NULL,
  `date_create` datetime DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `entity` int(11) DEFAULT 1,
  `fk_user` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_multicurrency_rate`
--

CREATE TABLE `nxuy_multicurrency_rate` (
  `rowid` int(11) NOT NULL,
  `date_sync` datetime DEFAULT NULL,
  `rate` double NOT NULL DEFAULT 0,
  `fk_multicurrency` int(11) NOT NULL,
  `entity` int(11) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_notify`
--

CREATE TABLE `nxuy_notify` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `daten` datetime DEFAULT NULL,
  `fk_action` int(11) NOT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `type` varchar(16) DEFAULT 'email',
  `fk_contact` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `objet_type` varchar(24) NOT NULL,
  `objet_id` int(11) NOT NULL,
  `email` varchar(255) DEFAULT NULL,
  `type_target` varchar(16) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_notify_def`
--

CREATE TABLE `nxuy_notify_def` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` date DEFAULT NULL,
  `fk_action` int(11) NOT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_contact` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `type` varchar(16) DEFAULT 'email'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_notify_def_object`
--

CREATE TABLE `nxuy_notify_def_object` (
  `id` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `objet_type` varchar(16) DEFAULT NULL,
  `objet_id` int(11) NOT NULL,
  `type_notif` varchar(16) DEFAULT 'browser',
  `date_notif` datetime DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `moreparam` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_oauth_state`
--

CREATE TABLE `nxuy_oauth_state` (
  `rowid` int(11) NOT NULL,
  `service` varchar(36) DEFAULT NULL,
  `state` varchar(128) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_adherent` int(11) DEFAULT NULL,
  `entity` int(11) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_oauth_token`
--

CREATE TABLE `nxuy_oauth_token` (
  `rowid` int(11) NOT NULL,
  `service` varchar(36) DEFAULT NULL,
  `token` text DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_adherent` int(11) DEFAULT NULL,
  `entity` int(11) DEFAULT 1,
  `tokenstring` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_onlinesignature`
--

CREATE TABLE `nxuy_onlinesignature` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `object_type` varchar(32) NOT NULL,
  `object_id` int(11) NOT NULL,
  `datec` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `name` varchar(255) NOT NULL,
  `ip` varchar(128) DEFAULT NULL,
  `pathoffile` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_opensurvey_comments`
--

CREATE TABLE `nxuy_opensurvey_comments` (
  `id_comment` int(10) UNSIGNED NOT NULL,
  `id_sondage` char(16) NOT NULL,
  `comment` text NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `usercomment` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_opensurvey_formquestions`
--

CREATE TABLE `nxuy_opensurvey_formquestions` (
  `rowid` int(11) NOT NULL,
  `id_sondage` varchar(16) DEFAULT NULL,
  `question` text DEFAULT NULL,
  `available_answers` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_opensurvey_sondage`
--

CREATE TABLE `nxuy_opensurvey_sondage` (
  `id_sondage` varchar(16) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `commentaires` text DEFAULT NULL,
  `mail_admin` varchar(128) DEFAULT NULL,
  `nom_admin` varchar(64) DEFAULT NULL,
  `fk_user_creat` int(11) NOT NULL,
  `titre` text NOT NULL,
  `date_fin` datetime DEFAULT NULL,
  `status` int(11) DEFAULT 1,
  `format` varchar(2) NOT NULL,
  `mailsonde` tinyint(4) NOT NULL DEFAULT 0,
  `allow_comments` tinyint(4) NOT NULL DEFAULT 1,
  `allow_spy` tinyint(4) NOT NULL DEFAULT 1,
  `tms` timestamp NOT NULL DEFAULT current_timestamp(),
  `sujet` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_opensurvey_user_formanswers`
--

CREATE TABLE `nxuy_opensurvey_user_formanswers` (
  `fk_user_survey` int(11) NOT NULL,
  `fk_question` int(11) NOT NULL,
  `reponses` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_opensurvey_user_studs`
--

CREATE TABLE `nxuy_opensurvey_user_studs` (
  `id_users` int(11) NOT NULL,
  `nom` varchar(64) NOT NULL,
  `id_sondage` varchar(16) NOT NULL,
  `reponses` varchar(100) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_overwrite_trans`
--

CREATE TABLE `nxuy_overwrite_trans` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `lang` varchar(5) DEFAULT NULL,
  `transkey` varchar(128) DEFAULT NULL,
  `transvalue` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_paiement`
--

CREATE TABLE `nxuy_paiement` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(30) NOT NULL DEFAULT '',
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT 0.00000000,
  `fk_paiement` int(11) NOT NULL,
  `num_paiement` varchar(50) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) NOT NULL DEFAULT 0,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `statut` smallint(6) NOT NULL DEFAULT 0,
  `fk_export_compta` int(11) NOT NULL DEFAULT 0,
  `multicurrency_amount` double(24,8) DEFAULT 0.00000000,
  `ext_payment_id` varchar(128) DEFAULT NULL,
  `ext_payment_site` varchar(128) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_paiementcharge`
--

CREATE TABLE `nxuy_paiementcharge` (
  `rowid` int(11) NOT NULL,
  `fk_charge` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `fk_typepaiement` int(11) NOT NULL,
  `num_paiement` varchar(50) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_paiementfourn`
--

CREATE TABLE `nxuy_paiementfourn` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(30) DEFAULT NULL,
  `entity` int(11) DEFAULT 1,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `datep` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_paiement` int(11) NOT NULL,
  `num_paiement` varchar(50) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) NOT NULL,
  `statut` smallint(6) NOT NULL DEFAULT 0,
  `multicurrency_amount` double(24,8) DEFAULT 0.00000000,
  `model_pdf` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_paiementfourn_facturefourn`
--

CREATE TABLE `nxuy_paiementfourn_facturefourn` (
  `rowid` int(11) NOT NULL,
  `fk_paiementfourn` int(11) DEFAULT NULL,
  `fk_facturefourn` int(11) DEFAULT NULL,
  `amount` double(24,8) DEFAULT 0.00000000,
  `multicurrency_amount` double(24,8) DEFAULT 0.00000000
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_paiement_facture`
--

CREATE TABLE `nxuy_paiement_facture` (
  `rowid` int(11) NOT NULL,
  `fk_paiement` int(11) DEFAULT NULL,
  `fk_facture` int(11) DEFAULT NULL,
  `amount` double(24,8) DEFAULT 0.00000000,
  `multicurrency_amount` double(24,8) DEFAULT 0.00000000
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_payment_donation`
--

CREATE TABLE `nxuy_payment_donation` (
  `rowid` int(11) NOT NULL,
  `fk_donation` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_payment_expensereport`
--

CREATE TABLE `nxuy_payment_expensereport` (
  `rowid` int(11) NOT NULL,
  `fk_expensereport` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_payment_loan`
--

CREATE TABLE `nxuy_payment_loan` (
  `rowid` int(11) NOT NULL,
  `fk_loan` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount_capital` double(24,8) DEFAULT NULL,
  `amount_insurance` double(24,8) DEFAULT NULL,
  `amount_interest` double(24,8) DEFAULT NULL,
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_payment_salary`
--

CREATE TABLE `nxuy_payment_salary` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(30) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `fk_user` int(11) NOT NULL,
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `salary` double(24,8) DEFAULT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `datesp` date DEFAULT NULL,
  `dateep` date DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_payment_various`
--

CREATE TABLE `nxuy_payment_various` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(30) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `sens` smallint(6) NOT NULL DEFAULT 0,
  `amount` double(24,8) NOT NULL DEFAULT 0.00000000,
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `accountancy_code` varchar(32) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_pos_cash_fence`
--

CREATE TABLE `nxuy_pos_cash_fence` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref` varchar(64) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `opening` double(24,8) DEFAULT 0.00000000,
  `cash` double(24,8) DEFAULT 0.00000000,
  `card` double(24,8) DEFAULT 0.00000000,
  `cheque` double(24,8) DEFAULT 0.00000000,
  `status` int(11) DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `date_valid` datetime DEFAULT NULL,
  `day_close` int(11) DEFAULT NULL,
  `month_close` int(11) DEFAULT NULL,
  `year_close` int(11) DEFAULT NULL,
  `posmodule` varchar(30) DEFAULT NULL,
  `posnumber` varchar(30) DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_prelevement_bons`
--

CREATE TABLE `nxuy_prelevement_bons` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(12) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `statut` smallint(6) DEFAULT 0,
  `credite` smallint(6) DEFAULT 0,
  `note` text DEFAULT NULL,
  `date_trans` datetime DEFAULT NULL,
  `method_trans` smallint(6) DEFAULT NULL,
  `fk_user_trans` int(11) DEFAULT NULL,
  `date_credit` datetime DEFAULT NULL,
  `fk_user_credit` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_prelevement_facture`
--

CREATE TABLE `nxuy_prelevement_facture` (
  `rowid` int(11) NOT NULL,
  `fk_facture` int(11) NOT NULL,
  `fk_prelevement_lignes` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_prelevement_facture_demande`
--

CREATE TABLE `nxuy_prelevement_facture_demande` (
  `rowid` int(11) NOT NULL,
  `fk_facture` int(11) NOT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `date_demande` datetime NOT NULL,
  `traite` smallint(6) DEFAULT 0,
  `date_traite` datetime DEFAULT NULL,
  `fk_prelevement_bons` int(11) DEFAULT NULL,
  `fk_user_demande` int(11) NOT NULL,
  `code_banque` varchar(128) DEFAULT NULL,
  `code_guichet` varchar(6) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `cle_rib` varchar(5) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_prelevement_lignes`
--

CREATE TABLE `nxuy_prelevement_lignes` (
  `rowid` int(11) NOT NULL,
  `fk_prelevement_bons` int(11) DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `statut` smallint(6) DEFAULT 0,
  `client_nom` varchar(255) DEFAULT NULL,
  `amount` double(24,8) 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,
  `note` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_prelevement_rejet`
--

CREATE TABLE `nxuy_prelevement_rejet` (
  `rowid` int(11) NOT NULL,
  `fk_prelevement_lignes` int(11) DEFAULT NULL,
  `date_rejet` datetime DEFAULT NULL,
  `motif` int(11) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `fk_user_creation` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `afacturer` tinyint(4) DEFAULT 0,
  `fk_facture` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_printer_ipp`
--

CREATE TABLE `nxuy_printer_ipp` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `printer_name` text NOT NULL,
  `printer_location` text NOT NULL,
  `printer_uri` varchar(255) NOT NULL,
  `copy` int(11) NOT NULL DEFAULT 1,
  `module` varchar(16) NOT NULL,
  `login` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_printing`
--

CREATE TABLE `nxuy_printing` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `printer_name` text NOT NULL,
  `printer_location` text NOT NULL,
  `printer_id` varchar(255) NOT NULL,
  `copy` int(11) NOT NULL DEFAULT 1,
  `module` varchar(16) NOT NULL,
  `driver` varchar(16) NOT NULL,
  `userid` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_product`
--

CREATE TABLE `nxuy_product` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(128) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(128) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `virtual` tinyint(4) NOT NULL DEFAULT 0,
  `fk_parent` int(11) DEFAULT 0,
  `label` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `note` text DEFAULT NULL,
  `customcode` varchar(32) DEFAULT NULL,
  `fk_country` int(11) DEFAULT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `price_ttc` double(24,8) DEFAULT 0.00000000,
  `price_min` double(24,8) DEFAULT 0.00000000,
  `price_min_ttc` double(24,8) DEFAULT 0.00000000,
  `price_base_type` varchar(3) DEFAULT 'HT',
  `tva_tx` double(6,3) DEFAULT NULL,
  `recuperableonly` int(11) NOT NULL DEFAULT 0,
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) NOT NULL DEFAULT '0',
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `tosell` tinyint(4) DEFAULT 1,
  `tobuy` tinyint(4) DEFAULT 1,
  `onportal` smallint(6) DEFAULT 0,
  `tobatch` tinyint(4) NOT NULL DEFAULT 0,
  `fk_product_type` int(11) DEFAULT 0,
  `duration` varchar(6) DEFAULT NULL,
  `seuil_stock_alerte` int(11) DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `barcode` varchar(255) DEFAULT NULL,
  `fk_barcode_type` int(11) DEFAULT NULL,
  `accountancy_code_sell` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `accountancy_code_sell_intra` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `accountancy_code_sell_export` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `accountancy_code_buy` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `partnumber` varchar(32) DEFAULT NULL,
  `weight` float DEFAULT NULL,
  `weight_units` tinyint(4) DEFAULT NULL,
  `length` float DEFAULT NULL,
  `length_units` tinyint(4) DEFAULT NULL,
  `surface` float DEFAULT NULL,
  `surface_units` tinyint(4) DEFAULT NULL,
  `volume` float DEFAULT NULL,
  `volume_units` tinyint(4) DEFAULT NULL,
  `stock` double DEFAULT NULL,
  `pmp` double(24,8) NOT NULL DEFAULT 0.00000000,
  `fifo` double(24,8) DEFAULT NULL,
  `lifo` double(24,8) DEFAULT NULL,
  `canvas` varchar(32) DEFAULT NULL,
  `finished` tinyint(4) DEFAULT NULL,
  `hidden` tinyint(4) DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL,
  `desiredstock` int(11) DEFAULT 0,
  `fk_price_expression` int(11) DEFAULT NULL,
  `fk_unit` int(11) DEFAULT NULL,
  `cost_price` double(24,8) DEFAULT NULL,
  `default_vat_code` varchar(10) DEFAULT NULL,
  `price_autogen` smallint(6) DEFAULT 0,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT '',
  `width` float DEFAULT NULL,
  `width_units` tinyint(4) DEFAULT NULL,
  `height` float DEFAULT NULL,
  `height_units` tinyint(4) DEFAULT NULL,
  `fk_default_warehouse` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `nxuy_product`
--

INSERT INTO `nxuy_product` (`rowid`, `ref`, `entity`, `ref_ext`, `datec`, `tms`, `virtual`, `fk_parent`, `label`, `description`, `note`, `customcode`, `fk_country`, `price`, `price_ttc`, `price_min`, `price_min_ttc`, `price_base_type`, `tva_tx`, `recuperableonly`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `fk_user_author`, `fk_user_modif`, `tosell`, `tobuy`, `onportal`, `tobatch`, `fk_product_type`, `duration`, `seuil_stock_alerte`, `url`, `barcode`, `fk_barcode_type`, `accountancy_code_sell`, `accountancy_code_sell_intra`, `accountancy_code_sell_export`, `accountancy_code_buy`, `partnumber`, `weight`, `weight_units`, `length`, `length_units`, `surface`, `surface_units`, `volume`, `volume_units`, `stock`, `pmp`, `fifo`, `lifo`, `canvas`, `finished`, `hidden`, `import_key`, `desiredstock`, `fk_price_expression`, `fk_unit`, `cost_price`, `default_vat_code`, `price_autogen`, `note_public`, `model_pdf`, `width`, `width_units`, `height`, `height_units`, `fk_default_warehouse`) VALUES
(1, 'Aubergine', 1, NULL, '2019-04-08 14:43:11', '2019-04-08 14:51:20', 0, 0, 'Aub', '', '', '', NULL, 3.00000000, 3.16500000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 2, 2, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(2, '655_-_N0V0037', 1, NULL, '2019-09-17 18:33:50', '2019-09-25 09:43:20', 0, 0, 'viande hachee de boeuf 350 X 10 PCE', '', '', '', NULL, 23.00000000, 24.26500000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(3, '656_-_N0V0025', 1, NULL, '2019-09-17 18:34:38', '2019-09-25 09:43:44', 0, 0, 'ente cote 350 X 10 PCE', '', '', '', NULL, 53.00000000, 55.91500000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(4, '657_-_N0V0017', 1, NULL, '2019-09-17 18:35:25', '2019-09-25 09:44:24', 0, 0, 'bifteck 350 X 10 PCE', '', '', '', NULL, 38.00000000, 40.09000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(5, '658_-_N0V0005', 1, NULL, '2019-09-17 18:36:30', '2019-10-01 16:09:30', 0, 0, 'faux filet 350 X 10 PCE', '', '', '', NULL, 55.00000000, 58.02500000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(6, '659_-_N0V0217', 1, NULL, '2019-09-17 18:37:28', '2019-09-24 06:45:19', 0, 0, 'bourguignon 350 X 10 PCE', '', '', '', NULL, 23.00000000, 24.26500000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(7, '660_-_N0V0012', 1, NULL, '2019-09-17 18:38:03', '2019-09-24 06:45:42', 0, 0, 'rumsteak 350 X 10 PCE', '', '', '', NULL, 39.00000000, 41.14500000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(8, '676_-_N0V0039', 1, NULL, '2019-09-17 18:38:32', '2019-09-25 09:45:51', 0, 0, 'jarret 350 X 10 PCE', '', '', '', NULL, 23.00000000, 24.26500000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(9, '678_-_N0V0140', 1, NULL, '2019-09-17 18:39:21', '2019-09-24 06:47:20', 0, 0, 'bavette d aloyau 350 X 10 PCE', '', '', '', NULL, 32.00000000, 33.76000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(10, '502_-_28143', 1, NULL, '2019-09-17 18:40:40', '2019-09-20 08:24:04', 0, 0, 'hache extra tendre 80% 12x45 10x4,50', '', '', '', NULL, 45.00000000, 47.47500000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(11, '503_-_28132', 1, NULL, '2019-09-17 18:42:04', '2019-09-20 08:38:37', 0, 0, 'Steak hache premium  12x45 10x4,99', '', '', '', NULL, 49.90000000, 52.64450000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(12, '504_-28126_-_28140', 1, NULL, '2019-09-17 18:42:46', '2019-09-20 08:25:22', 0, 0, 'burger nature 12x45 10x 3,99', '', '', '', NULL, 39.90000000, 42.09450000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(13, '505_-_28125_-_28139', 1, NULL, '2019-09-17 18:43:44', '2019-09-20 08:26:35', 0, 0, 'burger epices 12x45 10x3.99', '', '', '', NULL, 39.90000000, 42.09450000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(14, '506_-_26127_-_28141', 1, NULL, '2019-09-17 18:44:45', '2019-09-20 08:27:35', 0, 0, 'burger oignon 12x45 10x3,99', '', '', '', NULL, 39.90000000, 42.09450000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(15, 'AFS01', 1, NULL, '2019-11-02 23:28:58', '2019-11-02 23:28:58', 0, 0, 'NDOLé 500G', '', '', '', NULL, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(16, 'AFS02', 1, NULL, '2019-11-02 23:30:31', '2019-11-02 23:30:31', 0, 0, 'PUNDU SAKA SAKA KWEM 500G', '', '', '', NULL, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(17, 'AFS03', 1, NULL, '2019-11-02 23:33:03', '2019-11-02 23:33:03', 0, 0, 'BITEKU TEKU FOLON 500G', '', '', '', NULL, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(18, 'AFS04', 1, NULL, '2019-11-02 23:34:09', '2019-11-02 23:34:09', 0, 0, 'FOLERE NAGAI NAGAI 500G', '', '', '', NULL, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(19, 'AFS05', 1, NULL, '2019-11-02 23:35:16', '2019-11-02 23:35:16', 0, 0, 'MATEMBELE FEUILLES DE PATATE  500G', '', '', '', NULL, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(20, 'AFS06', 1, NULL, '2019-11-02 23:36:25', '2019-11-02 23:36:25', 0, 0, 'OKOLIBONG  500G', '', '', '', NULL, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(21, 'AFS07', 1, NULL, '2019-11-02 23:37:20', '2019-11-02 23:37:20', 0, 0, 'MIONDO 1KG', '', '', '', NULL, 5.00000000, 5.27500000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(22, 'AFS08', 1, NULL, '2019-11-02 23:38:26', '2019-11-02 23:38:26', 0, 0, 'BOBOLO 300G', '', '', '', NULL, 1.50000000, 1.58250000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(23, 'AFS09', 1, NULL, '2019-11-02 23:39:32', '2019-11-02 23:39:32', 0, 0, 'CHIKWANGUE 350G', '', '', '', NULL, 1.50000000, 1.58250000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(24, 'AFS10', 1, NULL, '2019-11-02 23:40:34', '2019-11-02 23:40:34', 0, 0, 'TSESA  350G', '', '', '', NULL, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(25, 'AFS11', 1, NULL, '2019-11-02 23:41:33', '2019-11-02 23:41:33', 0, 0, 'BOUILLIE DE MAIS 500', '', '', '', NULL, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(26, 'AFS12', 1, NULL, '2019-11-02 23:42:25', '2019-11-02 23:42:25', 0, 0, 'BOUILLE DE MAIS 200G', '', '', '', NULL, 1.00000000, 1.05500000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(27, 'AFS13', 1, NULL, '2019-11-02 23:43:52', '2019-11-02 23:43:52', 0, 0, 'TUBERCULE DE MANIOC 500G', '', '', '', NULL, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(28, 'AFS14', 1, NULL, '2019-11-02 23:44:50', '2019-11-02 23:44:50', 0, 0, 'PLACALI PATE DE MANIOC CRUE 500G', '', '', '', NULL, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(29, 'AFD50', 1, NULL, '2019-11-02 23:45:58', '2019-11-02 23:49:00', 0, 0, 'FUTU DE MANIOC 1KG', '', '', '', NULL, 4.00000000, 4.22000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(30, 'AFD51', 1, NULL, '2019-11-02 23:47:53', '2019-11-02 23:47:53', 0, 0, 'FUTU DE MANIOC 500G', '', '', '', NULL, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(31, 'AFD52', 1, NULL, '2019-11-02 23:49:59', '2019-11-05 14:50:02', 0, 0, 'NJANSSAN  500G', '', '', '', NULL, 4.00000000, 4.22000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(32, 'AFD53', 1, NULL, '2019-11-02 23:50:58', '2019-11-05 14:50:56', 0, 0, 'ARACHIDE NETOYE MOULU 500 G', '', '', '', NULL, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(33, 'AFD54', 1, NULL, '2019-11-02 23:51:38', '2019-11-05 14:51:09', 0, 0, 'ARACHIDE NETOYE NON MOULU 500 G', '', '', '', NULL, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(34, 'AFD55', 1, NULL, '2019-11-02 23:52:26', '2019-11-05 14:51:23', 0, 0, 'ARACHIDE NON NETOYE NON MOULU 500 G', '', '', '', NULL, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(35, 'AFD56', 1, NULL, '2019-11-02 23:53:10', '2019-11-05 14:51:35', 0, 0, 'ARACHIDE EN GRAIN', '', '', '', NULL, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(36, 'AFD60', 1, NULL, '2019-11-02 23:54:03', '2019-11-05 14:51:47', 0, 0, 'PATE D ARACHODE 400 G', '', '', '', NULL, 1.65000000, 1.74075000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(37, 'AFD61', 1, NULL, '2019-11-02 23:55:18', '2019-11-05 14:51:58', 0, 0, 'PISTACHES MBIKA MOULUES 500', '', '', '', NULL, 3.50000000, 3.69250000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(38, 'AFD63', 1, NULL, '2019-11-02 23:56:43', '2019-11-05 14:52:11', 0, 0, 'PISTACHES MBIKA GRAINS 500', '', '', '', NULL, 3.50000000, 4.20000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(39, 'AFD64', 1, NULL, '2019-11-02 23:57:36', '2019-11-05 14:52:24', 0, 0, 'POIVRE BLANC MOULU 500G', '', '', '', NULL, 10.00000000, 10.55000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(40, 'AFD65', 1, NULL, '2019-11-02 23:58:19', '2019-11-05 14:52:36', 0, 0, 'POIVRE BLANC  500G', '', '', '', NULL, 8.00000000, 8.44000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(41, 'AFD66', 1, NULL, '2019-11-02 23:59:13', '2019-11-05 14:52:47', 0, 0, 'POIVRE NOIR MOULU 500G', '', '', '', NULL, 8.00000000, 8.44000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(42, 'AFD67', 1, NULL, '2019-11-02 23:59:56', '2019-11-05 14:52:57', 0, 0, 'POIVRE NOIR GRAIN 500G', '', '', '', NULL, 8.00000000, 8.44000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(43, 'AFF80', 1, NULL, '2019-11-03 00:01:51', '2019-11-03 00:01:51', 0, 0, 'FEUILLE A EMBALLER MABOLE 5KG', '', '', '', NULL, 20.00000000, 21.10000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(44, 'AFF81', 1, NULL, '2019-11-03 00:02:54', '2019-11-03 00:02:54', 0, 0, 'MACABO BLANC 5KG', '', '', '', NULL, 20.00000000, 21.10000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(45, 'AFF82', 1, NULL, '2019-11-03 00:03:56', '2019-11-03 00:14:02', 0, 0, 'MACABO ROUGE 5KG', '', '', '', NULL, 20.00000000, 21.10000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(46, 'AFF83', 1, NULL, '2019-11-03 00:04:36', '2019-11-03 18:19:02', 0, 0, 'NOIX COCO _5KG', '', '', '', NULL, 20.00000000, 21.10000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(47, 'AFF84', 1, NULL, '2019-11-03 00:05:17', '2019-11-03 00:14:27', 0, 0, 'PATATE 5KG', '', '', '', NULL, 20.00000000, 21.10000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(48, 'AFD68', 1, NULL, '2019-11-03 00:06:11', '2019-11-07 16:03:12', 0, 0, 'OLOUM MOULU 500 G', '', '', '', NULL, 3.50000000, 3.69250000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(49, 'AFF86', 1, NULL, '2019-11-03 00:07:01', '2019-11-03 00:07:01', 0, 0, 'OSSIM FRAIS 500G', '', '', '', NULL, 2.50000000, 2.63750000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(50, 'AFF87', 1, NULL, '2019-11-03 00:08:54', '2019-11-03 00:15:04', 0, 0, 'TARO TIKARE 5KG', '', '', '', NULL, 22.50000000, 23.73750000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(51, 'AFF89', 1, NULL, '2019-11-03 00:10:09', '2019-11-03 00:15:18', 0, 0, 'GINGEMBRE DJINDJA FRAIS 5KG', '', '', '', NULL, 20.00000000, 21.10000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(52, 'AFF90', 1, NULL, '2019-11-03 00:11:19', '2019-11-03 00:11:19', 0, 0, 'ARACHIDE FRAIS 5 KG', '', '', '', NULL, 20.00000000, 21.10000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL),
(53, 'AFF91', 1, NULL, '2019-11-03 00:12:23', '2019-11-03 00:12:23', 0, 0, 'BANANE PLANTIN 5KG', '', '', '', NULL, 20.00000000, 21.10000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 3, 3, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL, NULL);

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

--
-- Structure de la table `nxuy_product_association`
--

CREATE TABLE `nxuy_product_association` (
  `rowid` int(11) NOT NULL,
  `fk_product_pere` int(11) NOT NULL DEFAULT 0,
  `fk_product_fils` int(11) NOT NULL DEFAULT 0,
  `qty` double DEFAULT NULL,
  `incdec` int(11) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_product_attribute`
--

CREATE TABLE `nxuy_product_attribute` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(255) NOT NULL,
  `label` varchar(255) NOT NULL,
  `rang` int(11) NOT NULL DEFAULT 0,
  `entity` int(11) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_product_attribute_combination`
--

CREATE TABLE `nxuy_product_attribute_combination` (
  `rowid` int(11) NOT NULL,
  `fk_product_parent` int(11) NOT NULL,
  `fk_product_child` int(11) NOT NULL,
  `variation_price` float NOT NULL,
  `variation_price_percentage` int(11) DEFAULT NULL,
  `variation_weight` float NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_product_attribute_combination2val`
--

CREATE TABLE `nxuy_product_attribute_combination2val` (
  `rowid` int(11) NOT NULL,
  `fk_prod_combination` int(11) NOT NULL,
  `fk_prod_attr` int(11) NOT NULL,
  `fk_prod_attr_val` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_product_attribute_value`
--

CREATE TABLE `nxuy_product_attribute_value` (
  `rowid` int(11) NOT NULL,
  `fk_product_attribute` int(11) NOT NULL,
  `ref` varchar(255) DEFAULT NULL,
  `value` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_product_batch`
--

CREATE TABLE `nxuy_product_batch` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_product_stock` int(11) NOT NULL,
  `eatby` datetime DEFAULT NULL,
  `sellby` datetime DEFAULT NULL,
  `batch` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `qty` double NOT NULL DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_product_customer_price`
--

CREATE TABLE `nxuy_product_customer_price` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_product` int(11) NOT NULL,
  `fk_soc` int(11) NOT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `price_ttc` double(24,8) DEFAULT 0.00000000,
  `price_min` double(24,8) DEFAULT 0.00000000,
  `price_min_ttc` double(24,8) DEFAULT 0.00000000,
  `price_base_type` varchar(3) DEFAULT 'HT',
  `tva_tx` double(6,3) DEFAULT NULL,
  `default_vat_code` varchar(10) DEFAULT NULL,
  `recuperableonly` int(11) NOT NULL DEFAULT 0,
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) NOT NULL DEFAULT '0',
  `fk_user` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_product_customer_price_log`
--

CREATE TABLE `nxuy_product_customer_price_log` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `fk_product` int(11) NOT NULL,
  `fk_soc` int(11) NOT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `price_ttc` double(24,8) DEFAULT 0.00000000,
  `price_min` double(24,8) DEFAULT 0.00000000,
  `price_min_ttc` double(24,8) DEFAULT 0.00000000,
  `price_base_type` varchar(3) DEFAULT 'HT',
  `tva_tx` double(6,3) DEFAULT NULL,
  `default_vat_code` varchar(10) DEFAULT NULL,
  `recuperableonly` int(11) NOT NULL DEFAULT 0,
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) NOT NULL DEFAULT '0',
  `fk_user` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_product_extrafields`
--

CREATE TABLE `nxuy_product_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_product_fournisseur_price`
--

CREATE TABLE `nxuy_product_fournisseur_price` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_product` int(11) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `ref_fourn` varchar(30) DEFAULT NULL,
  `desc_fourn` text DEFAULT NULL,
  `fk_availability` int(11) DEFAULT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `quantity` double DEFAULT NULL,
  `remise_percent` double NOT NULL DEFAULT 0,
  `remise` double NOT NULL DEFAULT 0,
  `unitprice` double(24,8) DEFAULT 0.00000000,
  `charges` double(24,8) DEFAULT 0.00000000,
  `tva_tx` double(6,3) NOT NULL,
  `default_vat_code` varchar(10) DEFAULT NULL,
  `info_bits` int(11) NOT NULL DEFAULT 0,
  `fk_user` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_supplier_price_expression` int(11) DEFAULT NULL,
  `delivery_time_days` int(11) DEFAULT NULL,
  `supplier_reputation` varchar(10) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_unitprice` double(24,8) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_price` double(24,8) DEFAULT NULL,
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_product_fournisseur_price_log`
--

CREATE TABLE `nxuy_product_fournisseur_price_log` (
  `rowid` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `fk_product_fournisseur` int(11) NOT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `quantity` double DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_price` double(24,8) DEFAULT NULL,
  `multicurrency_unitprice` double(24,8) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_product_lang`
--

CREATE TABLE `nxuy_product_lang` (
  `rowid` int(11) NOT NULL,
  `fk_product` int(11) NOT NULL DEFAULT 0,
  `lang` varchar(5) NOT NULL DEFAULT '0',
  `label` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `note` text DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_product_lot`
--

CREATE TABLE `nxuy_product_lot` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) DEFAULT 1,
  `fk_product` int(11) NOT NULL,
  `batch` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_product_lot_extrafields`
--

CREATE TABLE `nxuy_product_lot_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_product_price`
--

CREATE TABLE `nxuy_product_price` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_product` int(11) NOT NULL,
  `date_price` datetime DEFAULT NULL,
  `price_level` smallint(6) DEFAULT 1,
  `price` double(24,8) DEFAULT NULL,
  `price_ttc` double(24,8) DEFAULT NULL,
  `price_min` double(24,8) DEFAULT NULL,
  `price_min_ttc` double(24,8) DEFAULT NULL,
  `price_base_type` varchar(3) DEFAULT 'HT',
  `tva_tx` double(6,3) NOT NULL,
  `default_vat_code` varchar(10) DEFAULT NULL,
  `recuperableonly` int(11) NOT NULL DEFAULT 0,
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) NOT NULL DEFAULT '0',
  `fk_user_author` int(11) DEFAULT NULL,
  `tosell` tinyint(4) DEFAULT 1,
  `price_by_qty` int(11) NOT NULL DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_price_expression` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_price` double(24,8) DEFAULT 0.00000000,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_price_ttc` double(24,8) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `nxuy_product_price`
--

INSERT INTO `nxuy_product_price` (`rowid`, `entity`, `tms`, `fk_product`, `date_price`, `price_level`, `price`, `price_ttc`, `price_min`, `price_min_ttc`, `price_base_type`, `tva_tx`, `default_vat_code`, `recuperableonly`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `fk_user_author`, `tosell`, `price_by_qty`, `import_key`, `fk_price_expression`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_price`, `multicurrency_tx`, `multicurrency_price_ttc`) VALUES
(2, 1, '2019-04-08 14:51:20', 1, '2019-04-08 14:51:20', 1, 3.00000000, 3.16500000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 2, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(3, 1, '2019-09-17 18:33:50', 2, '2019-09-17 18:33:50', 1, 5.71000000, 6.02405000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(4, 1, '2019-09-17 18:34:38', 3, '2019-09-17 18:34:38', 1, 14.14000000, 14.91770000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(5, 1, '2019-09-17 18:35:25', 4, '2019-09-17 18:35:25', 1, 10.00000000, 10.55000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(6, 1, '2019-09-17 18:36:30', 5, '2019-09-17 18:36:30', 1, 14.28000000, 15.06540000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(7, 1, '2019-09-17 18:37:28', 6, '2019-09-17 18:37:28', 1, 5.86000000, 6.18230000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(8, 1, '2019-09-17 18:38:03', 7, '2019-09-17 18:38:03', 1, 10.43000000, 11.00365000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(9, 1, '2019-09-17 18:38:32', 8, '2019-09-17 18:38:32', 1, 6.00000000, 6.33000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(10, 1, '2019-09-17 18:39:21', 9, '2019-09-17 18:39:21', 1, 8.57000000, 9.04135000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(11, 1, '2019-09-17 18:40:40', 10, '2019-09-17 18:40:40', 1, 4.50000000, 4.74750000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(12, 1, '2019-09-17 18:42:04', 11, '2019-09-17 18:42:04', 1, 4.99000000, 5.26445000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(13, 1, '2019-09-17 18:42:46', 12, '2019-09-17 18:42:46', 1, 3.99000000, 4.20945000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(14, 1, '2019-09-17 18:43:44', 13, '2019-09-17 18:43:44', 1, 3.99000000, 4.20945000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(15, 1, '2019-09-17 18:44:45', 14, '2019-09-17 18:44:45', 1, 3.99000000, 4.20945000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(16, 1, '2019-09-20 08:20:38', 10, '2019-09-20 08:20:38', 1, 45.00000000, 47.47500000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(17, 1, '2019-09-20 08:23:26', 11, '2019-09-20 08:23:26', 1, 49.90000000, 52.64450000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(18, 1, '2019-09-20 08:25:22', 12, '2019-09-20 08:25:22', 1, 39.90000000, 42.09450000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(19, 1, '2019-09-20 08:26:35', 13, '2019-09-20 08:26:35', 1, 39.90000000, 42.09450000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(20, 1, '2019-09-20 08:27:35', 14, '2019-09-20 08:27:35', 1, 39.90000000, 42.09450000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(21, 1, '2019-09-23 19:26:13', 6, '2019-09-23 19:26:13', 1, 21.00000000, 22.15500000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(22, 1, '2019-09-23 19:26:41', 2, '2019-09-23 19:26:41', 1, 21.00000000, 22.15500000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(23, 1, '2019-09-23 19:28:49', 3, '2019-09-23 19:28:49', 1, 47.00000000, 49.58500000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(24, 1, '2019-09-23 19:30:14', 4, '2019-09-23 19:30:14', 1, 37.00000000, 39.03500000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(25, 1, '2019-09-23 19:32:05', 5, '2019-09-23 19:32:05', 1, 48.00000000, 50.64000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(26, 1, '2019-09-23 19:32:59', 7, '2019-09-23 19:32:59', 1, 39.00000000, 41.14500000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(27, 1, '2019-09-23 19:34:36', 6, '2019-09-23 19:34:36', 1, 23.00000000, 24.26500000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(28, 1, '2019-09-23 19:35:37', 8, '2019-09-23 19:35:37', 1, 22.00000000, 23.21000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(29, 1, '2019-09-23 19:36:25', 9, '2019-09-23 19:36:25', 1, 32.00000000, 33.76000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(30, 1, '2019-09-25 09:43:20', 2, '2019-09-25 09:43:20', 1, 23.00000000, 24.26500000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(31, 1, '2019-09-25 09:43:44', 3, '2019-09-25 09:43:44', 1, 53.00000000, 55.91500000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(32, 1, '2019-09-25 09:44:24', 4, '2019-09-25 09:44:24', 1, 38.00000000, 40.09000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(33, 1, '2019-09-25 09:44:52', 5, '2019-09-25 09:44:52', 1, 55.00000000, 58.02500000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(34, 1, '2019-09-25 09:45:51', 8, '2019-09-25 09:45:51', 1, 23.00000000, 24.26500000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(35, 1, '2019-11-02 23:28:58', 15, '2019-11-02 23:28:58', 1, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(36, 1, '2019-11-02 23:30:31', 16, '2019-11-02 23:30:31', 1, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(37, 1, '2019-11-02 23:33:03', 17, '2019-11-02 23:33:03', 1, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(38, 1, '2019-11-02 23:34:09', 18, '2019-11-02 23:34:09', 1, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(39, 1, '2019-11-02 23:35:16', 19, '2019-11-02 23:35:16', 1, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(40, 1, '2019-11-02 23:36:25', 20, '2019-11-02 23:36:25', 1, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(41, 1, '2019-11-02 23:37:20', 21, '2019-11-02 23:37:20', 1, 5.00000000, 5.27500000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(42, 1, '2019-11-02 23:38:26', 22, '2019-11-02 23:38:26', 1, 1.50000000, 1.58250000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(43, 1, '2019-11-02 23:39:32', 23, '2019-11-02 23:39:32', 1, 1.50000000, 1.58250000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(44, 1, '2019-11-02 23:40:34', 24, '2019-11-02 23:40:34', 1, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(45, 1, '2019-11-02 23:41:33', 25, '2019-11-02 23:41:33', 1, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(46, 1, '2019-11-02 23:42:25', 26, '2019-11-02 23:42:25', 1, 1.00000000, 1.05500000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(47, 1, '2019-11-02 23:43:52', 27, '2019-11-02 23:43:52', 1, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(48, 1, '2019-11-02 23:44:50', 28, '2019-11-02 23:44:50', 1, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(49, 1, '2019-11-02 23:45:58', 29, '2019-11-02 23:45:58', 1, 4.00000000, 4.22000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(50, 1, '2019-11-02 23:47:53', 30, '2019-11-02 23:47:53', 1, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(51, 1, '2019-11-02 23:49:59', 31, '2019-11-02 23:49:59', 1, 4.00000000, 4.22000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(52, 1, '2019-11-02 23:50:58', 32, '2019-11-02 23:50:58', 1, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(53, 1, '2019-11-02 23:51:38', 33, '2019-11-02 23:51:38', 1, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(54, 1, '2019-11-02 23:52:26', 34, '2019-11-02 23:52:26', 1, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(55, 1, '2019-11-02 23:53:10', 35, '2019-11-02 23:53:10', 1, 2.00000000, 2.11000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(56, 1, '2019-11-02 23:54:03', 36, '2019-11-02 23:54:03', 1, 1.65000000, 1.74075000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(57, 1, '2019-11-02 23:55:18', 37, '2019-11-02 23:55:18', 1, 3.50000000, 3.69250000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(58, 1, '2019-11-02 23:56:43', 38, '2019-11-02 23:56:43', 1, 3.50000000, 4.20000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(59, 1, '2019-11-02 23:57:36', 39, '2019-11-02 23:57:36', 1, 10.00000000, 10.55000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(60, 1, '2019-11-02 23:58:19', 40, '2019-11-02 23:58:19', 1, 8.00000000, 8.44000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(61, 1, '2019-11-02 23:59:13', 41, '2019-11-02 23:59:13', 1, 8.00000000, 8.44000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(62, 1, '2019-11-02 23:59:56', 42, '2019-11-02 23:59:56', 1, 8.00000000, 8.44000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(63, 1, '2019-11-03 00:01:51', 43, '2019-11-03 00:01:51', 1, 20.00000000, 21.10000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(64, 1, '2019-11-03 00:02:54', 44, '2019-11-03 00:02:54', 1, 20.00000000, 21.10000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(65, 1, '2019-11-03 00:03:56', 45, '2019-11-03 00:03:56', 1, 20.00000000, 21.10000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(66, 1, '2019-11-03 00:04:36', 46, '2019-11-03 00:04:36', 1, 20.00000000, 21.10000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(67, 1, '2019-11-03 00:05:17', 47, '2019-11-03 00:05:17', 1, 20.00000000, 21.10000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(68, 1, '2019-11-03 00:06:11', 48, '2019-11-03 00:06:11', 1, 3.50000000, 3.69250000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(69, 1, '2019-11-03 00:07:01', 49, '2019-11-03 00:07:01', 1, 2.50000000, 2.63750000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(70, 1, '2019-11-03 00:08:54', 50, '2019-11-03 00:08:54', 1, 22.50000000, 23.73750000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(71, 1, '2019-11-03 00:10:09', 51, '2019-11-03 00:10:09', 1, 20.00000000, 21.10000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(72, 1, '2019-11-03 00:11:19', 52, '2019-11-03 00:11:19', 1, 20.00000000, 21.10000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(73, 1, '2019-11-03 00:12:23', 53, '2019-11-03 00:12:23', 1, 20.00000000, 21.10000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 3, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL);

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

--
-- Structure de la table `nxuy_product_pricerules`
--

CREATE TABLE `nxuy_product_pricerules` (
  `rowid` int(11) NOT NULL,
  `level` int(11) NOT NULL,
  `fk_level` int(11) NOT NULL,
  `var_percent` float NOT NULL,
  `var_min_percent` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_product_price_by_qty`
--

CREATE TABLE `nxuy_product_price_by_qty` (
  `rowid` int(11) NOT NULL,
  `fk_product_price` int(11) NOT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `quantity` double DEFAULT NULL,
  `remise_percent` double NOT NULL DEFAULT 0,
  `remise` double NOT NULL DEFAULT 0,
  `unitprice` double(24,8) DEFAULT 0.00000000,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `import_key` varchar(14) DEFAULT NULL,
  `price_base_type` varchar(3) DEFAULT 'HT',
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_price` double(24,8) DEFAULT NULL,
  `multicurrency_price_ttc` double(24,8) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_product_stock`
--

CREATE TABLE `nxuy_product_stock` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_product` int(11) NOT NULL,
  `fk_entrepot` int(11) NOT NULL,
  `reel` double DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_product_warehouse_properties`
--

CREATE TABLE `nxuy_product_warehouse_properties` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_product` int(11) NOT NULL,
  `fk_entrepot` int(11) NOT NULL,
  `seuil_stock_alerte` int(11) DEFAULT 0,
  `desiredstock` int(11) DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_projet`
--

CREATE TABLE `nxuy_projet` (
  `rowid` int(11) NOT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `dateo` date DEFAULT NULL,
  `datee` date DEFAULT NULL,
  `ref` varchar(50) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `title` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `fk_user_creat` int(11) NOT NULL,
  `public` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `fk_opp_status` int(11) DEFAULT NULL,
  `opp_percent` double(5,2) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `budget_amount` double(24,8) DEFAULT NULL,
  `date_close` datetime DEFAULT NULL,
  `fk_user_close` int(11) DEFAULT NULL,
  `opp_amount` double(24,8) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `bill_time` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_projet_extrafields`
--

CREATE TABLE `nxuy_projet_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_projet_task`
--

CREATE TABLE `nxuy_projet_task` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(50) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_projet` int(11) NOT NULL,
  `fk_task_parent` int(11) NOT NULL DEFAULT 0,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `dateo` datetime DEFAULT NULL,
  `datee` datetime DEFAULT NULL,
  `datev` datetime DEFAULT NULL,
  `label` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `duration_effective` double DEFAULT 0,
  `planned_workload` double DEFAULT 0,
  `progress` int(11) DEFAULT 0,
  `priority` int(11) DEFAULT 0,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `rang` int(11) DEFAULT 0,
  `model_pdf` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_projet_task_extrafields`
--

CREATE TABLE `nxuy_projet_task_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_projet_task_time`
--

CREATE TABLE `nxuy_projet_task_time` (
  `rowid` int(11) NOT NULL,
  `fk_task` int(11) NOT NULL,
  `task_date` date DEFAULT NULL,
  `task_datehour` datetime DEFAULT NULL,
  `task_date_withhour` int(11) DEFAULT 0,
  `task_duration` double DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `thm` double(24,8) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `invoice_line_id` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `datec` date DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_propal`
--

CREATE TABLE `nxuy_propal` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `ref_client` varchar(255) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `datep` date DEFAULT NULL,
  `fin_validite` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_cloture` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_cloture` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `price` double DEFAULT 0,
  `remise_percent` double DEFAULT 0,
  `remise_absolue` double DEFAULT 0,
  `remise` double DEFAULT 0,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `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(11) DEFAULT NULL,
  `fk_currency` varchar(3) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT NULL,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `date_livraison` date DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `fk_availability` int(11) DEFAULT NULL,
  `fk_input_reason` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_delivery_address` int(11) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int(11) 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,
  `last_main_doc` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_propaldet`
--

CREATE TABLE `nxuy_propaldet` (
  `rowid` int(11) NOT NULL,
  `fk_propal` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `fk_remise_except` int(11) DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT 0.000,
  `vat_src_code` varchar(10) DEFAULT '',
  `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(11) DEFAULT 0,
  `date_start` datetime DEFAULT NULL,
  `date_end` datetime DEFAULT NULL,
  `info_bits` int(11) DEFAULT 0,
  `buy_price_ht` double(24,8) DEFAULT 0.00000000,
  `fk_product_fournisseur_price` int(11) DEFAULT NULL,
  `special_code` int(11) DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `fk_unit` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_propaldet_extrafields`
--

CREATE TABLE `nxuy_propaldet_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_propal_extrafields`
--

CREATE TABLE `nxuy_propal_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_propal_merge_pdf_product`
--

CREATE TABLE `nxuy_propal_merge_pdf_product` (
  `rowid` int(11) NOT NULL,
  `fk_product` int(11) NOT NULL,
  `file_name` varchar(200) NOT NULL,
  `lang` varchar(5) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_mod` int(11) 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=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_resource`
--

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

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

--
-- Structure de la table `nxuy_resource_extrafields`
--

CREATE TABLE `nxuy_resource_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_rights_def`
--

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



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

--
-- Structure de la table `nxuy_societe`
--

CREATE TABLE `nxuy_societe` (
  `rowid` int(11) NOT NULL,
  `nom` varchar(128) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(60) DEFAULT NULL,
  `statut` tinyint(4) DEFAULT 0,
  `parent` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `status` tinyint(4) 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(11) DEFAULT 0,
  `fk_pays` int(11) 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,
  `whatsapp` varchar(255) DEFAULT NULL,
  `youtube` varchar(255) DEFAULT NULL,
  `googleplus` varchar(255) DEFAULT NULL,
  `snapchat` varchar(255) DEFAULT NULL,
  `instagram` varchar(255) DEFAULT NULL,
  `facebook` varchar(255) DEFAULT NULL,
  `twitter` varchar(255) DEFAULT NULL,
  `fk_effectif` int(11) DEFAULT 0,
  `fk_typent` int(11) DEFAULT 0,
  `fk_forme_juridique` int(11) 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(11) NOT NULL DEFAULT 0,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `prefix_comm` varchar(5) DEFAULT NULL,
  `client` tinyint(4) DEFAULT 0,
  `fournisseur` tinyint(4) DEFAULT 0,
  `supplier_account` varchar(32) DEFAULT NULL,
  `fk_prospectlevel` varchar(12) DEFAULT NULL,
  `customer_bad` tinyint(4) DEFAULT 0,
  `customer_rate` double DEFAULT 0,
  `supplier_rate` double DEFAULT 0,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `remise_client` double DEFAULT 0,
  `remise_supplier` double DEFAULT 0,
  `mode_reglement` tinyint(4) DEFAULT NULL,
  `cond_reglement` tinyint(4) DEFAULT NULL,
  `mode_reglement_supplier` tinyint(4) DEFAULT NULL,
  `cond_reglement_supplier` tinyint(4) DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `tva_assuj` tinyint(4) DEFAULT 1,
  `localtax1_assuj` tinyint(4) DEFAULT 0,
  `localtax1_value` double(6,3) DEFAULT NULL,
  `localtax2_assuj` tinyint(4) DEFAULT 0,
  `localtax2_value` double(6,3) DEFAULT NULL,
  `barcode` varchar(255) DEFAULT NULL,
  `fk_barcode_type` int(11) DEFAULT 0,
  `price_level` int(11) DEFAULT NULL,
  `outstanding_limit` double(24,8) DEFAULT NULL,
  `order_min_amount` double(24,8) DEFAULT NULL,
  `supplier_order_min_amount` 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,
  `name_alias` varchar(128) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `fk_account` int(11) DEFAULT NULL,
  `fk_entrepot` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `nxuy_societe`
--

INSERT INTO `nxuy_societe` (`rowid`, `nom`, `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`, `phone`, `fax`, `url`, `email`, `skype`, `whatsapp`, `youtube`, `googleplus`, `snapchat`, `instagram`, `facebook`, `twitter`, `fk_effectif`, `fk_typent`, `fk_forme_juridique`, `fk_currency`, `siren`, `siret`, `ape`, `idprof4`, `idprof5`, `idprof6`, `tva_intra`, `capital`, `fk_stcomm`, `note_private`, `note_public`, `prefix_comm`, `client`, `fournisseur`, `supplier_account`, `fk_prospectlevel`, `customer_bad`, `customer_rate`, `supplier_rate`, `fk_user_creat`, `fk_user_modif`, `remise_client`, `remise_supplier`, `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`, `order_min_amount`, `supplier_order_min_amount`, `default_lang`, `logo`, `canvas`, `import_key`, `webservices_url`, `webservices_key`, `name_alias`, `fk_incoterms`, `location_incoterms`, `model_pdf`, `fk_multicurrency`, `multicurrency_code`, `fk_account`, `fk_entrepot`) VALUES
(1, 'gafouri', 1, NULL, NULL, 0, NULL, '2019-04-08 14:43:54', '2019-04-08 14:43:54', 1, 'CU1904-0001', 'SU1904-0001', NULL, NULL, '50 avenue pierre et marie curie', '93700', 'Drancy', 0, 1, '660613961', NULL, NULL, 'gafouri@gmail.com', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 1, NULL, '', 0, 0, 0, 2, 2, 0, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', 0, NULL, NULL, 0, '', NULL, 0),
(2, 'franprix exotique', 1, NULL, NULL, 0, NULL, '2019-09-17 18:47:15', '2019-09-17 18:47:15', 1, 'CU1909-0002', NULL, NULL, NULL, '20 rue chevaleret', '75013', 'paris 13', 0, 1, '0660669907', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 3, 3, 0, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', 0, NULL, NULL, 0, '', NULL, 0),
(3, 'franprix lamarne distribution', 1, NULL, NULL, 0, NULL, '2019-09-17 18:53:57', '2019-09-17 18:49:00', 1, 'CU1909-0003', NULL, NULL, NULL, '65 avenue de la marne', '93800', 'epinay sur seine', 0, 1, '0660669907', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 3, 3, 0, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', 0, NULL, NULL, 0, '', NULL, 0),
(4, 'franprix anis', 1, NULL, NULL, 0, NULL, '2019-09-17 18:50:06', '2019-09-17 18:50:06', 1, 'CU1909-0004', NULL, NULL, NULL, '82 bd marcel sembat', '93200', 'st denis', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 3, 3, 0, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', 0, NULL, NULL, 0, '', NULL, 0),
(5, 'MAMA AFRICA', 1, NULL, NULL, 0, NULL, '2020-01-27 08:43:21', '2020-01-27 08:43:21', 1, 'CU2001-0005', NULL, NULL, NULL, '24 BD DE LA VILLETTE', '75019', 'PARIS', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 3, 3, 0, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'MA', 0, NULL, NULL, 0, '', NULL, 0),
(6, 'Cash & Carry Samia', 1, NULL, NULL, 0, NULL, '2020-01-27 09:16:25', '2020-01-27 09:16:25', 1, 'CU2001-0006', NULL, NULL, NULL, '41 Avenue de la Division Leclerc', '93350', 'Le Bourget', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 3, 3, 0, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'sam', 0, NULL, NULL, 0, '', NULL, 0);

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

--
-- Structure de la table `nxuy_societe_account`
--

CREATE TABLE `nxuy_societe_account` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) DEFAULT 1,
  `key_account` varchar(128) DEFAULT NULL,
  `login` varchar(128) NOT NULL,
  `pass_encoding` varchar(24) DEFAULT NULL,
  `pass_crypted` varchar(128) DEFAULT NULL,
  `pass_temp` varchar(128) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `site` varchar(128) DEFAULT NULL,
  `fk_website` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `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(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_societe_address`
--

CREATE TABLE `nxuy_societe_address` (
  `rowid` int(11) 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(11) 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(11) DEFAULT 0,
  `phone` varchar(20) DEFAULT NULL,
  `fax` varchar(20) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_societe_commerciaux`
--

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

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

--
-- Structure de la table `nxuy_societe_extrafields`
--

CREATE TABLE `nxuy_societe_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_societe_log`
--

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

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

--
-- Structure de la table `nxuy_societe_prices`
--

CREATE TABLE `nxuy_societe_prices` (
  `rowid` int(11) NOT NULL,
  `fk_soc` int(11) DEFAULT 0,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `price_level` tinyint(4) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_societe_remise`
--

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

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

--
-- Structure de la table `nxuy_societe_remise_except`
--

CREATE TABLE `nxuy_societe_remise_except` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `discount_type` int(11) NOT NULL DEFAULT 0,
  `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(11) NOT NULL,
  `fk_facture_line` int(11) DEFAULT NULL,
  `fk_facture` int(11) DEFAULT NULL,
  `fk_facture_source` int(11) 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,
  `fk_invoice_supplier_line` int(11) DEFAULT NULL,
  `fk_invoice_supplier` int(11) DEFAULT NULL,
  `fk_invoice_supplier_source` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_societe_remise_supplier`
--

CREATE TABLE `nxuy_societe_remise_supplier` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `remise_supplier` double(6,3) NOT NULL DEFAULT 0.000,
  `note` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_societe_rib`
--

CREATE TABLE `nxuy_societe_rib` (
  `rowid` int(11) NOT NULL,
  `type` varchar(32) NOT NULL,
  `fk_soc` int(11) 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(6) 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,
  `last_four` varchar(4) DEFAULT NULL,
  `card_type` varchar(255) DEFAULT NULL,
  `cvn` varchar(255) DEFAULT NULL,
  `exp_date_month` int(11) DEFAULT NULL,
  `exp_date_year` int(11) DEFAULT NULL,
  `country_code` varchar(10) DEFAULT NULL,
  `approved` int(11) DEFAULT 0,
  `email` varchar(255) DEFAULT NULL,
  `ending_date` date DEFAULT NULL,
  `max_total_amount_of_all_payments` double(24,8) DEFAULT NULL,
  `preapproval_key` varchar(255) DEFAULT NULL,
  `starting_date` date DEFAULT NULL,
  `total_amount_of_all_payments` double(24,8) DEFAULT NULL,
  `stripe_card_ref` varchar(128) DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `comment` varchar(255) DEFAULT NULL,
  `ipaddress` varchar(68) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_socpeople`
--

CREATE TABLE `nxuy_socpeople` (
  `rowid` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_soc` int(11) DEFAULT NULL,
  `entity` int(11) 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(11) DEFAULT NULL,
  `fk_pays` int(11) 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,
  `whatsapp` varchar(255) DEFAULT NULL,
  `youtube` varchar(255) DEFAULT NULL,
  `googleplus` varchar(255) DEFAULT NULL,
  `snapchat` varchar(255) DEFAULT NULL,
  `instagram` varchar(255) DEFAULT NULL,
  `facebook` varchar(255) DEFAULT NULL,
  `twitter` varchar(255) DEFAULT NULL,
  `photo` varchar(255) DEFAULT NULL,
  `no_email` smallint(6) NOT NULL DEFAULT 0,
  `priv` smallint(6) NOT NULL DEFAULT 0,
  `fk_user_creat` int(11) DEFAULT 0,
  `fk_user_modif` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `default_lang` varchar(6) DEFAULT NULL,
  `canvas` varchar(32) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `statut` tinyint(4) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_socpeople_extrafields`
--

CREATE TABLE `nxuy_socpeople_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_stock_lotserial`
--

CREATE TABLE `nxuy_stock_lotserial` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) DEFAULT NULL,
  `fk_product` int(11) NOT NULL,
  `batch` varchar(30) DEFAULT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_stock_mouvement`
--

CREATE TABLE `nxuy_stock_mouvement` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datem` datetime DEFAULT NULL,
  `fk_product` int(11) NOT NULL,
  `fk_entrepot` int(11) NOT NULL,
  `value` double DEFAULT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `type_mouvement` smallint(6) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `fk_origin` int(11) DEFAULT NULL,
  `origintype` varchar(32) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `inventorycode` varchar(128) DEFAULT NULL,
  `batch` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL,
  `fk_project` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_subscription`
--

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

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

--
-- Structure de la table `nxuy_supplier_proposal`
--

CREATE TABLE `nxuy_supplier_proposal` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_cloture` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_cloture` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `price` double DEFAULT 0,
  `remise_percent` double DEFAULT 0,
  `remise_absolue` double DEFAULT 0,
  `remise` double DEFAULT 0,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `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(11) DEFAULT NULL,
  `fk_currency` varchar(3) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT NULL,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `date_livraison` date DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int(11) 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,
  `last_main_doc` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_supplier_proposaldet`
--

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

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

--
-- Structure de la table `nxuy_supplier_proposaldet_extrafields`
--

CREATE TABLE `nxuy_supplier_proposaldet_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_supplier_proposal_extrafields`
--

CREATE TABLE `nxuy_supplier_proposal_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_takepos_floor_tables`
--

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

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

--
-- Structure de la table `nxuy_ticket`
--

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

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

--
-- Structure de la table `nxuy_ticket_extrafields`
--

CREATE TABLE `nxuy_ticket_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_ticket_msg`
--

CREATE TABLE `nxuy_ticket_msg` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) DEFAULT 1,
  `fk_track_id` varchar(128) DEFAULT NULL,
  `fk_user_action` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `message` text DEFAULT NULL,
  `private` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_tva`
--

CREATE TABLE `nxuy_tva` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` date DEFAULT NULL,
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `fk_typepayment` int(11) DEFAULT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_usergroup`
--

CREATE TABLE `nxuy_usergroup` (
  `rowid` int(11) NOT NULL,
  `nom` varchar(255) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `note` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `nxuy_usergroup`
--

INSERT INTO `nxuy_usergroup` (`rowid`, `nom`, `entity`, `datec`, `tms`, `note`, `model_pdf`) VALUES
(1, 'inter transit', 1, '2019-04-08 10:08:19', '2019-04-08 10:08:19', '', NULL);

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

--
-- Structure de la table `nxuy_usergroup_extrafields`
--

CREATE TABLE `nxuy_usergroup_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_usergroup_rights`
--

CREATE TABLE `nxuy_usergroup_rights` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_usergroup` int(11) NOT NULL,
  `fk_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `nxuy_usergroup_rights`
--

INSERT INTO `nxuy_usergroup_rights` (`rowid`, `entity`, `fk_usergroup`, `fk_id`) VALUES
(1, 1, 1, 11),
(2, 1, 1, 12),
(3, 1, 1, 13),
(4, 1, 1, 14),
(5, 1, 1, 15),
(6, 1, 1, 16),
(7, 1, 1, 19),
(8, 1, 1, 21),
(9, 1, 1, 22),
(10, 1, 1, 24),
(11, 1, 1, 25),
(12, 1, 1, 26),
(13, 1, 1, 27),
(14, 1, 1, 28),
(15, 1, 1, 31),
(16, 1, 1, 32),
(17, 1, 1, 34),
(18, 1, 1, 38),
(19, 1, 1, 39),
(20, 1, 1, 61),
(21, 1, 1, 62),
(22, 1, 1, 64),
(23, 1, 1, 67),
(24, 1, 1, 68),
(25, 1, 1, 69),
(26, 1, 1, 70),
(27, 1, 1, 71),
(28, 1, 1, 72),
(29, 1, 1, 74),
(30, 1, 1, 75),
(31, 1, 1, 76),
(32, 1, 1, 78),
(33, 1, 1, 79),
(34, 1, 1, 81),
(35, 1, 1, 82),
(36, 1, 1, 84),
(37, 1, 1, 86),
(38, 1, 1, 87),
(39, 1, 1, 88),
(40, 1, 1, 89),
(41, 1, 1, 91),
(42, 1, 1, 92),
(43, 1, 1, 93),
(44, 1, 1, 94),
(45, 1, 1, 101),
(46, 1, 1, 102),
(47, 1, 1, 104),
(48, 1, 1, 105),
(49, 1, 1, 106),
(50, 1, 1, 109),
(51, 1, 1, 111),
(52, 1, 1, 112),
(53, 1, 1, 113),
(54, 1, 1, 114),
(55, 1, 1, 115),
(56, 1, 1, 116),
(57, 1, 1, 117),
(58, 1, 1, 121),
(59, 1, 1, 122),
(60, 1, 1, 125),
(61, 1, 1, 126),
(62, 1, 1, 161),
(63, 1, 1, 162),
(64, 1, 1, 163),
(65, 1, 1, 164),
(66, 1, 1, 165),
(67, 1, 1, 167),
(68, 1, 1, 221),
(69, 1, 1, 222),
(70, 1, 1, 223),
(71, 1, 1, 229),
(72, 1, 1, 237),
(73, 1, 1, 238),
(74, 1, 1, 239),
(75, 1, 1, 251),
(76, 1, 1, 252),
(77, 1, 1, 253),
(78, 1, 1, 254),
(79, 1, 1, 255),
(80, 1, 1, 256),
(81, 1, 1, 262),
(82, 1, 1, 281),
(83, 1, 1, 282),
(84, 1, 1, 283),
(85, 1, 1, 286),
(86, 1, 1, 341),
(87, 1, 1, 342),
(88, 1, 1, 343),
(89, 1, 1, 344),
(90, 1, 1, 351),
(91, 1, 1, 352),
(92, 1, 1, 353),
(93, 1, 1, 354),
(94, 1, 1, 358),
(95, 1, 1, 531),
(96, 1, 1, 532),
(97, 1, 1, 534),
(98, 1, 1, 538),
(99, 1, 1, 771),
(100, 1, 1, 772),
(101, 1, 1, 773),
(102, 1, 1, 775),
(103, 1, 1, 776),
(104, 1, 1, 777),
(105, 1, 1, 778),
(106, 1, 1, 779),
(107, 1, 1, 1001),
(108, 1, 1, 1002),
(109, 1, 1, 1003),
(110, 1, 1, 1004),
(111, 1, 1, 1005),
(112, 1, 1, 1101),
(113, 1, 1, 1102),
(114, 1, 1, 1104),
(115, 1, 1, 1109),
(116, 1, 1, 1121),
(117, 1, 1, 1122),
(118, 1, 1, 1123),
(119, 1, 1, 1124),
(120, 1, 1, 1125),
(121, 1, 1, 1126),
(122, 1, 1, 1181),
(123, 1, 1, 1182),
(124, 1, 1, 1183),
(125, 1, 1, 1184),
(126, 1, 1, 1185),
(127, 1, 1, 1186),
(128, 1, 1, 1187),
(129, 1, 1, 1188),
(130, 1, 1, 1189),
(131, 1, 1, 1191),
(132, 1, 1, 1231),
(133, 1, 1, 1232),
(134, 1, 1, 1233),
(135, 1, 1, 1234),
(136, 1, 1, 1235),
(137, 1, 1, 1236),
(138, 1, 1, 1321),
(139, 1, 1, 1322),
(140, 1, 1, 1421),
(141, 1, 1, 10001),
(142, 1, 1, 10002),
(143, 1, 1, 10003),
(144, 1, 1, 20001),
(145, 1, 1, 20002),
(146, 1, 1, 20003),
(147, 1, 1, 20004),
(148, 1, 1, 20005),
(149, 1, 1, 20006),
(150, 1, 1, 20007),
(151, 1, 1, 50401),
(152, 1, 1, 50411),
(153, 1, 1, 50412),
(154, 1, 1, 50420),
(155, 1, 1, 50430),
(156, 1, 1, 50440),
(157, 1, 1, 55001),
(158, 1, 1, 55002);

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

--
-- Structure de la table `nxuy_usergroup_user`
--

CREATE TABLE `nxuy_usergroup_user` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_user` int(11) NOT NULL,
  `fk_usergroup` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_user_alert`
--

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

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

--
-- Structure de la table `nxuy_user_clicktodial`
--

CREATE TABLE `nxuy_user_clicktodial` (
  `fk_user` int(11) 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 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_user_employment`
--

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

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

--
-- Structure de la table `nxuy_user_extrafields`
--

CREATE TABLE `nxuy_user_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_user_param`
--

CREATE TABLE `nxuy_user_param` (
  `fk_user` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `param` varchar(255) NOT NULL,
  `value` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `nxuy_user_rib`
--

CREATE TABLE `nxuy_user_rib` (
  `rowid` int(11) NOT NULL,
  `fk_user` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `label` varchar(30) 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=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_user_rights`
--

CREATE TABLE `nxuy_user_rights` (
  `rowid` int(11) NOT NULL,
  `fk_user` int(11) NOT NULL,
  `fk_id` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `nxuy_user_rights`
--

INSERT INTO `nxuy_user_rights` (`rowid`, `fk_user`, `fk_id`, `entity`) VALUES
(863, 1, 11, 1),
(843, 1, 12, 1),
(848, 1, 13, 1),
(851, 1, 14, 1),
(854, 1, 15, 1),
(858, 1, 16, 1),
(864, 1, 19, 1),
(91, 1, 21, 1),
(84, 1, 22, 1),
(85, 1, 24, 1),
(86, 1, 25, 1),
(88, 1, 26, 1),
(90, 1, 27, 1),
(92, 1, 28, 1),
(230, 1, 31, 1),
(225, 1, 32, 1),
(227, 1, 34, 1),
(229, 1, 38, 1),
(231, 1, 39, 1),
(134, 1, 61, 1),
(131, 1, 62, 1),
(133, 1, 64, 1),
(135, 1, 67, 1),
(136, 1, 68, 1),
(137, 1, 69, 1),
(138, 1, 70, 1),
(62, 1, 71, 1),
(57, 1, 72, 1),
(59, 1, 74, 1),
(63, 1, 75, 1),
(61, 1, 76, 1),
(65, 1, 78, 1),
(66, 1, 79, 1),
(830, 1, 81, 1),
(810, 1, 82, 1),
(815, 1, 84, 1),
(818, 1, 86, 1),
(822, 1, 87, 1),
(827, 1, 88, 1),
(831, 1, 89, 1),
(192, 1, 91, 1),
(189, 1, 92, 1),
(191, 1, 93, 1),
(193, 1, 94, 1),
(215, 1, 95, 1),
(121, 1, 101, 1),
(117, 1, 102, 1),
(118, 1, 104, 1),
(119, 1, 105, 1),
(120, 1, 106, 1),
(122, 1, 109, 1),
(205, 1, 111, 1),
(196, 1, 112, 1),
(198, 1, 113, 1),
(200, 1, 114, 1),
(202, 1, 115, 1),
(204, 1, 116, 1),
(206, 1, 117, 1),
(1013, 1, 121, 1),
(1002, 1, 122, 1),
(1008, 1, 125, 1),
(1014, 1, 126, 1),
(113, 1, 161, 1),
(106, 1, 162, 1),
(108, 1, 163, 1),
(110, 1, 164, 1),
(112, 1, 165, 1),
(114, 1, 167, 1),
(252, 1, 221, 1),
(249, 1, 222, 1),
(251, 1, 223, 1),
(253, 1, 229, 1),
(254, 1, 237, 1),
(255, 1, 238, 1),
(256, 1, 239, 1),
(1124, 1, 251, 1),
(1067, 1, 252, 1),
(1071, 1, 253, 1),
(1076, 1, 254, 1),
(1080, 1, 255, 1),
(1086, 1, 256, 1),
(1019, 1, 262, 1),
(1037, 1, 281, 1),
(1026, 1, 282, 1),
(1032, 1, 283, 1),
(1038, 1, 286, 1),
(1091, 1, 341, 1),
(1094, 1, 342, 1),
(1097, 1, 343, 1),
(1100, 1, 344, 1),
(1118, 1, 351, 1),
(1107, 1, 352, 1),
(1113, 1, 353, 1),
(1119, 1, 354, 1),
(1125, 1, 358, 1),
(1058, 1, 531, 1),
(1047, 1, 532, 1),
(1053, 1, 534, 1),
(1059, 1, 538, 1),
(53, 1, 771, 1),
(42, 1, 772, 1),
(44, 1, 773, 1),
(46, 1, 775, 1),
(48, 1, 776, 1),
(50, 1, 777, 1),
(52, 1, 778, 1),
(54, 1, 779, 1),
(242, 1, 1001, 1),
(241, 1, 1002, 1),
(243, 1, 1003, 1),
(245, 1, 1004, 1),
(246, 1, 1005, 1),
(127, 1, 1101, 1),
(125, 1, 1102, 1),
(126, 1, 1104, 1),
(128, 1, 1109, 1),
(173, 1, 1121, 1),
(166, 1, 1122, 1),
(168, 1, 1123, 1),
(170, 1, 1124, 1),
(172, 1, 1125, 1),
(174, 1, 1126, 1),
(875, 1, 1181, 1),
(917, 1, 1182, 1),
(882, 1, 1183, 1),
(887, 1, 1184, 1),
(891, 1, 1185, 1),
(897, 1, 1186, 1),
(903, 1, 1187, 1),
(912, 1, 1188, 1),
(908, 1, 1189, 1),
(918, 1, 1191, 1),
(944, 1, 1231, 1),
(927, 1, 1232, 1),
(932, 1, 1233, 1),
(936, 1, 1234, 1),
(941, 1, 1235, 1),
(945, 1, 1236, 1),
(869, 1, 1321, 1),
(872, 1, 1322, 1),
(836, 1, 1421, 1),
(1139, 1, 10001, 1),
(1134, 1, 10002, 1),
(1140, 1, 10003, 1),
(983, 1, 20001, 1),
(954, 1, 20002, 1),
(960, 1, 20003, 1),
(972, 1, 20004, 1),
(978, 1, 20005, 1),
(984, 1, 20006, 1),
(966, 1, 20007, 1),
(788, 1, 50401, 1),
(794, 1, 50411, 1),
(795, 1, 50412, 1),
(800, 1, 50420, 1),
(803, 1, 50430, 1),
(785, 1, 50440, 1),
(992, 1, 55001, 1),
(993, 1, 55002, 1),
(865, 2, 11, 1),
(845, 2, 12, 1),
(849, 2, 13, 1),
(852, 2, 14, 1),
(855, 2, 15, 1),
(860, 2, 16, 1),
(866, 2, 19, 1),
(273, 2, 21, 1),
(274, 2, 22, 1),
(275, 2, 24, 1),
(276, 2, 25, 1),
(277, 2, 26, 1),
(278, 2, 27, 1),
(279, 2, 28, 1),
(280, 2, 31, 1),
(281, 2, 32, 1),
(282, 2, 34, 1),
(283, 2, 38, 1),
(284, 2, 39, 1),
(285, 2, 61, 1),
(286, 2, 62, 1),
(287, 2, 64, 1),
(288, 2, 67, 1),
(289, 2, 68, 1),
(290, 2, 69, 1),
(291, 2, 70, 1),
(292, 2, 71, 1),
(293, 2, 72, 1),
(294, 2, 74, 1),
(295, 2, 75, 1),
(296, 2, 76, 1),
(297, 2, 78, 1),
(298, 2, 79, 1),
(832, 2, 81, 1),
(812, 2, 82, 1),
(816, 2, 84, 1),
(819, 2, 86, 1),
(824, 2, 87, 1),
(828, 2, 88, 1),
(833, 2, 89, 1),
(306, 2, 91, 1),
(307, 2, 92, 1),
(308, 2, 93, 1),
(309, 2, 94, 1),
(310, 2, 101, 1),
(311, 2, 102, 1),
(312, 2, 104, 1),
(313, 2, 105, 1),
(314, 2, 106, 1),
(315, 2, 109, 1),
(316, 2, 111, 1),
(317, 2, 112, 1),
(318, 2, 113, 1),
(319, 2, 114, 1),
(320, 2, 115, 1),
(321, 2, 116, 1),
(322, 2, 117, 1),
(1015, 2, 121, 1),
(1004, 2, 122, 1),
(1010, 2, 125, 1),
(1016, 2, 126, 1),
(327, 2, 161, 1),
(328, 2, 162, 1),
(329, 2, 163, 1),
(330, 2, 164, 1),
(331, 2, 165, 1),
(332, 2, 167, 1),
(333, 2, 221, 1),
(334, 2, 222, 1),
(335, 2, 223, 1),
(336, 2, 229, 1),
(337, 2, 237, 1),
(338, 2, 238, 1),
(339, 2, 239, 1),
(1126, 2, 251, 1),
(1068, 2, 252, 1),
(1073, 2, 253, 1),
(1077, 2, 254, 1),
(1082, 2, 255, 1),
(1088, 2, 256, 1),
(1020, 2, 262, 1),
(1039, 2, 281, 1),
(1028, 2, 282, 1),
(1034, 2, 283, 1),
(1040, 2, 286, 1),
(1092, 2, 341, 1),
(1095, 2, 342, 1),
(1098, 2, 343, 1),
(1101, 2, 344, 1),
(1120, 2, 351, 1),
(1109, 2, 352, 1),
(1115, 2, 353, 1),
(1121, 2, 354, 1),
(1127, 2, 358, 1),
(1060, 2, 531, 1),
(1049, 2, 532, 1),
(1055, 2, 534, 1),
(1061, 2, 538, 1),
(364, 2, 771, 1),
(365, 2, 772, 1),
(366, 2, 773, 1),
(367, 2, 775, 1),
(368, 2, 776, 1),
(369, 2, 777, 1),
(370, 2, 778, 1),
(371, 2, 779, 1),
(372, 2, 1001, 1),
(373, 2, 1002, 1),
(374, 2, 1003, 1),
(375, 2, 1004, 1),
(376, 2, 1005, 1),
(377, 2, 1101, 1),
(378, 2, 1102, 1),
(379, 2, 1104, 1),
(380, 2, 1109, 1),
(381, 2, 1121, 1),
(382, 2, 1122, 1),
(383, 2, 1123, 1),
(384, 2, 1124, 1),
(385, 2, 1125, 1),
(386, 2, 1126, 1),
(876, 2, 1181, 1),
(919, 2, 1182, 1),
(884, 2, 1183, 1),
(888, 2, 1184, 1),
(893, 2, 1185, 1),
(899, 2, 1186, 1),
(905, 2, 1187, 1),
(914, 2, 1188, 1),
(909, 2, 1189, 1),
(920, 2, 1191, 1),
(946, 2, 1231, 1),
(929, 2, 1232, 1),
(933, 2, 1233, 1),
(938, 2, 1234, 1),
(942, 2, 1235, 1),
(947, 2, 1236, 1),
(870, 2, 1321, 1),
(873, 2, 1322, 1),
(837, 2, 1421, 1),
(1141, 2, 10001, 1),
(1136, 2, 10002, 1),
(1142, 2, 10003, 1),
(985, 2, 20001, 1),
(956, 2, 20002, 1),
(962, 2, 20003, 1),
(974, 2, 20004, 1),
(980, 2, 20005, 1),
(986, 2, 20006, 1),
(968, 2, 20007, 1),
(789, 2, 50401, 1),
(796, 2, 50411, 1),
(797, 2, 50412, 1),
(801, 2, 50420, 1),
(804, 2, 50430, 1),
(786, 2, 50440, 1),
(994, 2, 55001, 1),
(995, 2, 55002, 1),
(867, 3, 11, 1),
(847, 3, 12, 1),
(850, 3, 13, 1),
(853, 3, 14, 1),
(856, 3, 15, 1),
(862, 3, 16, 1),
(868, 3, 19, 1),
(1198, 3, 21, 1),
(1199, 3, 22, 1),
(1200, 3, 24, 1),
(1201, 3, 25, 1),
(1202, 3, 26, 1),
(1203, 3, 27, 1),
(1204, 3, 28, 1),
(1205, 3, 31, 1),
(1206, 3, 32, 1),
(1207, 3, 34, 1),
(1208, 3, 38, 1),
(1209, 3, 39, 1),
(1217, 3, 61, 1),
(1218, 3, 62, 1),
(1219, 3, 64, 1),
(1220, 3, 67, 1),
(1221, 3, 68, 1),
(1222, 3, 69, 1),
(1223, 3, 70, 1),
(1145, 3, 71, 1),
(1146, 3, 72, 1),
(1147, 3, 74, 1),
(1148, 3, 75, 1),
(1149, 3, 76, 1),
(1150, 3, 78, 1),
(1151, 3, 79, 1),
(834, 3, 81, 1),
(814, 3, 82, 1),
(817, 3, 84, 1),
(820, 3, 86, 1),
(826, 3, 87, 1),
(829, 3, 88, 1),
(835, 3, 89, 1),
(1183, 3, 91, 1),
(1184, 3, 92, 1),
(1185, 3, 93, 1),
(1186, 3, 94, 1),
(1165, 3, 101, 1),
(1166, 3, 102, 1),
(1167, 3, 104, 1),
(1168, 3, 105, 1),
(1169, 3, 106, 1),
(1170, 3, 109, 1),
(1152, 3, 111, 1),
(1153, 3, 112, 1),
(1154, 3, 113, 1),
(1155, 3, 114, 1),
(1156, 3, 115, 1),
(1157, 3, 116, 1),
(1158, 3, 117, 1),
(1017, 3, 121, 1),
(1006, 3, 122, 1),
(1012, 3, 125, 1),
(1018, 3, 126, 1),
(1159, 3, 161, 1),
(1160, 3, 162, 1),
(1161, 3, 163, 1),
(1162, 3, 164, 1),
(1163, 3, 165, 1),
(1164, 3, 167, 1),
(1210, 3, 221, 1),
(1211, 3, 222, 1),
(1212, 3, 223, 1),
(1213, 3, 229, 1),
(1214, 3, 237, 1),
(1215, 3, 238, 1),
(1216, 3, 239, 1),
(1128, 3, 251, 1),
(1069, 3, 252, 1),
(1075, 3, 253, 1),
(1078, 3, 254, 1),
(1084, 3, 255, 1),
(1090, 3, 256, 1),
(1021, 3, 262, 1),
(1041, 3, 281, 1),
(1030, 3, 282, 1),
(1036, 3, 283, 1),
(1042, 3, 286, 1),
(1093, 3, 341, 1),
(1096, 3, 342, 1),
(1099, 3, 343, 1),
(1102, 3, 344, 1),
(1122, 3, 351, 1),
(1111, 3, 352, 1),
(1117, 3, 353, 1),
(1123, 3, 354, 1),
(1129, 3, 358, 1),
(1062, 3, 531, 1),
(1051, 3, 532, 1),
(1057, 3, 534, 1),
(1063, 3, 538, 1),
(1175, 3, 771, 1),
(1176, 3, 772, 1),
(1177, 3, 773, 1),
(1178, 3, 775, 1),
(1179, 3, 776, 1),
(1180, 3, 777, 1),
(1181, 3, 778, 1),
(1182, 3, 779, 1),
(1193, 3, 1001, 1),
(1194, 3, 1002, 1),
(1195, 3, 1003, 1),
(1196, 3, 1004, 1),
(1197, 3, 1005, 1),
(1171, 3, 1101, 1),
(1172, 3, 1102, 1),
(1173, 3, 1104, 1),
(1174, 3, 1109, 1),
(1187, 3, 1121, 1),
(1188, 3, 1122, 1),
(1189, 3, 1123, 1),
(1190, 3, 1124, 1),
(1191, 3, 1125, 1),
(1192, 3, 1126, 1),
(877, 3, 1181, 1),
(921, 3, 1182, 1),
(886, 3, 1183, 1),
(889, 3, 1184, 1),
(895, 3, 1185, 1),
(901, 3, 1186, 1),
(907, 3, 1187, 1),
(916, 3, 1188, 1),
(910, 3, 1189, 1),
(922, 3, 1191, 1),
(948, 3, 1231, 1),
(931, 3, 1232, 1),
(934, 3, 1233, 1),
(940, 3, 1234, 1),
(943, 3, 1235, 1),
(949, 3, 1236, 1),
(871, 3, 1321, 1),
(874, 3, 1322, 1),
(838, 3, 1421, 1),
(1143, 3, 10001, 1),
(1138, 3, 10002, 1),
(1144, 3, 10003, 1),
(987, 3, 20001, 1),
(958, 3, 20002, 1),
(964, 3, 20003, 1),
(976, 3, 20004, 1),
(982, 3, 20005, 1),
(988, 3, 20006, 1),
(970, 3, 20007, 1),
(790, 3, 50401, 1),
(798, 3, 50411, 1),
(799, 3, 50412, 1),
(802, 3, 50420, 1),
(805, 3, 50430, 1),
(787, 3, 50440, 1),
(996, 3, 55001, 1),
(997, 3, 55002, 1);

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

--
-- Structure de la table `nxuy_website`
--

CREATE TABLE `nxuy_website` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref` varchar(128) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `fk_default_home` int(11) DEFAULT NULL,
  `virtualhost` varchar(255) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `date_modification` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `maincolor` varchar(16) DEFAULT NULL,
  `maincolorbis` varchar(16) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Déchargement des données de la table `nxuy_website`
--

INSERT INTO `nxuy_website` (`rowid`, `entity`, `ref`, `description`, `status`, `fk_default_home`, `virtualhost`, `date_creation`, `date_modification`, `tms`, `fk_user_creat`, `fk_user_modif`, `import_key`, `maincolor`, `maincolorbis`) VALUES
(1, 1, '786', 'action786', 1, NULL, '', '2019-04-08 10:06:03', NULL, '2019-04-08 10:06:03', 1, NULL, NULL, NULL, NULL);

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

--
-- Structure de la table `nxuy_website_extrafields`
--

CREATE TABLE `nxuy_website_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `nxuy_website_page`
--

CREATE TABLE `nxuy_website_page` (
  `rowid` int(11) NOT NULL,
  `fk_website` int(11) DEFAULT NULL,
  `pageurl` varchar(255) DEFAULT NULL,
  `aliasalt` varchar(255) DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `keywords` varchar(255) DEFAULT NULL,
  `content` mediumtext DEFAULT NULL,
  `status` int(11) DEFAULT 1,
  `date_creation` datetime DEFAULT NULL,
  `date_modification` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `type_container` varchar(16) NOT NULL DEFAULT 'page',
  `lang` varchar(6) DEFAULT NULL,
  `fk_page` int(11) DEFAULT NULL,
  `grabbed_from` varchar(255) DEFAULT NULL,
  `htmlheader` mediumtext DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `image` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `tmp_nxuy_accouting_account`
--

CREATE TABLE `tmp_nxuy_accouting_account` (
  `MINID` int(11) DEFAULT NULL,
  `MAXID` int(11) DEFAULT NULL,
  `account_number` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_pcg_version` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `NB` bigint(21) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Index pour les tables déchargées
--

--
-- Index pour la table `nxuy_accounting_account`
--
ALTER TABLE `nxuy_accounting_account`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_accounting_account` (`account_number`,`entity`,`fk_pcg_version`),
  ADD KEY `idx_accountingaccount_fk_pcg_version` (`fk_pcg_version`),
  ADD KEY `idx_accounting_account_account_number` (`account_number`),
  ADD KEY `idx_accounting_account_account_parent` (`account_parent`);

--
-- Index pour la table `nxuy_accounting_bookkeeping`
--
ALTER TABLE `nxuy_accounting_bookkeeping`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_accounting_bookkeeping_fk_doc` (`fk_doc`);

--
-- Index pour la table `nxuy_accounting_bookkeeping_tmp`
--
ALTER TABLE `nxuy_accounting_bookkeeping_tmp`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_accounting_bookkeeping_tmp_doc_date` (`doc_date`),
  ADD KEY `idx_accounting_bookkeeping_tmp_fk_docdet` (`fk_docdet`),
  ADD KEY `idx_accounting_bookkeeping_tmp_numero_compte` (`numero_compte`),
  ADD KEY `idx_accounting_bookkeeping_tmp_code_journal` (`code_journal`);

--
-- Index pour la table `nxuy_accounting_fiscalyear`
--
ALTER TABLE `nxuy_accounting_fiscalyear`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_accounting_journal`
--
ALTER TABLE `nxuy_accounting_journal`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_accounting_journal_code` (`code`,`entity`);

--
-- Index pour la table `nxuy_accounting_system`
--
ALTER TABLE `nxuy_accounting_system`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_accounting_system_pcg_version` (`pcg_version`);

--
-- Index pour la table `nxuy_actioncomm`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_actioncomm_extrafields`
--
ALTER TABLE `nxuy_actioncomm_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_actioncomm_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_actioncomm_reminder`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_actioncomm_resources`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_adherent`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_adherent_extrafields`
--
ALTER TABLE `nxuy_adherent_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_adherent_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_adherent_type`
--
ALTER TABLE `nxuy_adherent_type`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_adherent_type_libelle` (`libelle`,`entity`);

--
-- Index pour la table `nxuy_adherent_type_extrafields`
--
ALTER TABLE `nxuy_adherent_type_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_adherent_type_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_advtargetemailing`
--
ALTER TABLE `nxuy_advtargetemailing`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_advtargetemailing_name` (`name`);

--
-- Index pour la table `nxuy_asset`
--
ALTER TABLE `nxuy_asset`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_asset_rowid` (`rowid`),
  ADD KEY `idx_asset_ref` (`ref`),
  ADD KEY `idx_asset_entity` (`entity`),
  ADD KEY `idx_asset_fk_asset_type` (`fk_asset_type`);

--
-- Index pour la table `nxuy_asset_extrafields`
--
ALTER TABLE `nxuy_asset_extrafields`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_asset_type`
--
ALTER TABLE `nxuy_asset_type`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_asset_type_label` (`label`,`entity`);

--
-- Index pour la table `nxuy_asset_type_extrafields`
--
ALTER TABLE `nxuy_asset_type_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_asset_type_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_bank`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_bank_account_extrafields`
--
ALTER TABLE `nxuy_bank_account_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_bank_account_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_bank_categ`
--
ALTER TABLE `nxuy_bank_categ`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_bank_class`
--
ALTER TABLE `nxuy_bank_class`
  ADD UNIQUE KEY `uk_bank_class_lineid` (`lineid`,`fk_categ`);

--
-- Index pour la table `nxuy_bank_url`
--
ALTER TABLE `nxuy_bank_url`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_bank_url` (`fk_bank`,`type`);

--
-- Index pour la table `nxuy_blockedlog`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_blockedlog_authority`
--
ALTER TABLE `nxuy_blockedlog_authority`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `signature` (`signature`);

--
-- Index pour la table `nxuy_bookmark`
--
ALTER TABLE `nxuy_bookmark`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_bookmark_url` (`fk_user`,`url`),
  ADD UNIQUE KEY `uk_bookmark_title` (`fk_user`,`title`);

--
-- Index pour la table `nxuy_bordereau_cheque`
--
ALTER TABLE `nxuy_bordereau_cheque`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_bordereau_cheque` (`ref`,`entity`);

--
-- Index pour la table `nxuy_boxes`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_boxes_def`
--
ALTER TABLE `nxuy_boxes_def`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_boxes_def` (`file`,`entity`,`note`);

--
-- Index pour la table `nxuy_budget`
--
ALTER TABLE `nxuy_budget`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_budget_lines`
--
ALTER TABLE `nxuy_budget_lines`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_budget_lines` (`fk_budget`,`fk_project_ids`);

--
-- Index pour la table `nxuy_categorie`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_categories_extrafields`
--
ALTER TABLE `nxuy_categories_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_categories_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_categorie_account`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_categorie_contact`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_categorie_fournisseur`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_categorie_lang`
--
ALTER TABLE `nxuy_categorie_lang`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_category_lang` (`fk_category`,`lang`);

--
-- Index pour la table `nxuy_categorie_member`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_categorie_product`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_categorie_project`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_categorie_societe`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_categorie_user`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_chargesociales`
--
ALTER TABLE `nxuy_chargesociales`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_commande`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_commandedet`
--
ALTER TABLE `nxuy_commandedet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commandedet_fk_commande` (`fk_commande`),
  ADD KEY `idx_commandedet_fk_product` (`fk_product`),
  ADD KEY `fk_commandedet_fk_unit` (`fk_unit`);

--
-- Index pour la table `nxuy_commandedet_extrafields`
--
ALTER TABLE `nxuy_commandedet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commandedet_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_commande_extrafields`
--
ALTER TABLE `nxuy_commande_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_commande_fournisseur`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_commande_fournisseurdet`
--
ALTER TABLE `nxuy_commande_fournisseurdet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `fk_commande_fournisseurdet_fk_unit` (`fk_unit`);

--
-- Index pour la table `nxuy_commande_fournisseurdet_extrafields`
--
ALTER TABLE `nxuy_commande_fournisseurdet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_fournisseurdet_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_commande_fournisseur_dispatch`
--
ALTER TABLE `nxuy_commande_fournisseur_dispatch`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_fournisseur_dispatch_fk_commande` (`fk_commande`);

--
-- Index pour la table `nxuy_commande_fournisseur_extrafields`
--
ALTER TABLE `nxuy_commande_fournisseur_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_fournisseur_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_commande_fournisseur_log`
--
ALTER TABLE `nxuy_commande_fournisseur_log`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_comment`
--
ALTER TABLE `nxuy_comment`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_const`
--
ALTER TABLE `nxuy_const`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_const` (`name`,`entity`);

--
-- Index pour la table `nxuy_contrat`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_contratdet`
--
ALTER TABLE `nxuy_contratdet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_contratdet_fk_contrat` (`fk_contrat`),
  ADD KEY `idx_contratdet_fk_product` (`fk_product`),
  ADD KEY `idx_contratdet_date_ouverture_prevue` (`date_ouverture_prevue`),
  ADD KEY `idx_contratdet_date_ouverture` (`date_ouverture`),
  ADD KEY `idx_contratdet_date_fin_validite` (`date_fin_validite`),
  ADD KEY `fk_contratdet_fk_unit` (`fk_unit`);

--
-- Index pour la table `nxuy_contratdet_extrafields`
--
ALTER TABLE `nxuy_contratdet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_contratdet_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_contratdet_log`
--
ALTER TABLE `nxuy_contratdet_log`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_contratdet_log_fk_contratdet` (`fk_contratdet`),
  ADD KEY `idx_contratdet_log_date` (`date`);

--
-- Index pour la table `nxuy_contrat_extrafields`
--
ALTER TABLE `nxuy_contrat_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_contrat_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_cronjob`
--
ALTER TABLE `nxuy_cronjob`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_c_accounting_category`
--
ALTER TABLE `nxuy_c_accounting_category`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_accounting_category` (`code`,`entity`);

--
-- Index pour la table `nxuy_c_actioncomm`
--
ALTER TABLE `nxuy_c_actioncomm`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_actioncomm` (`code`);

--
-- Index pour la table `nxuy_c_action_trigger`
--
ALTER TABLE `nxuy_c_action_trigger`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_action_trigger_code` (`code`),
  ADD KEY `idx_action_trigger_rang` (`rang`);

--
-- Index pour la table `nxuy_c_availability`
--
ALTER TABLE `nxuy_c_availability`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_availability` (`code`);

--
-- Index pour la table `nxuy_c_barcode_type`
--
ALTER TABLE `nxuy_c_barcode_type`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_barcode_type` (`code`,`entity`);

--
-- Index pour la table `nxuy_c_chargesociales`
--
ALTER TABLE `nxuy_c_chargesociales`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `nxuy_c_civility`
--
ALTER TABLE `nxuy_c_civility`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_civility` (`code`);

--
-- Index pour la table `nxuy_c_country`
--
ALTER TABLE `nxuy_c_country`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_c_country_code` (`code`),
  ADD UNIQUE KEY `idx_c_pays_libelle` (`label`),
  ADD UNIQUE KEY `idx_c_country_code_iso` (`code_iso`);

--
-- Index pour la table `nxuy_c_currencies`
--
ALTER TABLE `nxuy_c_currencies`
  ADD PRIMARY KEY (`code_iso`),
  ADD UNIQUE KEY `uk_c_currencies_code_iso` (`code_iso`);

--
-- Index pour la table `nxuy_c_departements`
--
ALTER TABLE `nxuy_c_departements`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_departements` (`code_departement`,`fk_region`),
  ADD KEY `idx_departements_fk_region` (`fk_region`);

--
-- Index pour la table `nxuy_c_ecotaxe`
--
ALTER TABLE `nxuy_c_ecotaxe`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_ecotaxe` (`code`);

--
-- Index pour la table `nxuy_c_effectif`
--
ALTER TABLE `nxuy_c_effectif`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_effectif` (`code`);

--
-- Index pour la table `nxuy_c_email_senderprofile`
--
ALTER TABLE `nxuy_c_email_senderprofile`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_email_senderprofile` (`entity`,`label`,`email`);

--
-- Index pour la table `nxuy_c_email_templates`
--
ALTER TABLE `nxuy_c_email_templates`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_email_templates` (`entity`,`label`,`lang`),
  ADD KEY `idx_type` (`type_template`);

--
-- Index pour la table `nxuy_c_exp_tax_cat`
--
ALTER TABLE `nxuy_c_exp_tax_cat`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_c_exp_tax_range`
--
ALTER TABLE `nxuy_c_exp_tax_range`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_c_field_list`
--
ALTER TABLE `nxuy_c_field_list`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_c_format_cards`
--
ALTER TABLE `nxuy_c_format_cards`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_c_forme_juridique`
--
ALTER TABLE `nxuy_c_forme_juridique`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_forme_juridique` (`code`);

--
-- Index pour la table `nxuy_c_holiday_types`
--
ALTER TABLE `nxuy_c_holiday_types`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_holiday_types` (`code`);

--
-- Index pour la table `nxuy_c_hrm_department`
--
ALTER TABLE `nxuy_c_hrm_department`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_c_hrm_function`
--
ALTER TABLE `nxuy_c_hrm_function`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_c_incoterms`
--
ALTER TABLE `nxuy_c_incoterms`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_incoterms` (`code`);

--
-- Index pour la table `nxuy_c_input_method`
--
ALTER TABLE `nxuy_c_input_method`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_input_method` (`code`);

--
-- Index pour la table `nxuy_c_input_reason`
--
ALTER TABLE `nxuy_c_input_reason`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_input_reason` (`code`);

--
-- Index pour la table `nxuy_c_lead_status`
--
ALTER TABLE `nxuy_c_lead_status`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_c_paiement`
--
ALTER TABLE `nxuy_c_paiement`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_paiement_code` (`entity`,`code`);

--
-- Index pour la table `nxuy_c_paper_format`
--
ALTER TABLE `nxuy_c_paper_format`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_c_payment_term`
--
ALTER TABLE `nxuy_c_payment_term`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_payment_term_code` (`entity`,`code`);

--
-- Index pour la table `nxuy_c_price_expression`
--
ALTER TABLE `nxuy_c_price_expression`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_c_price_global_variable`
--
ALTER TABLE `nxuy_c_price_global_variable`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_c_price_global_variable_updater`
--
ALTER TABLE `nxuy_c_price_global_variable_updater`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_c_propalst`
--
ALTER TABLE `nxuy_c_propalst`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_propalst` (`code`);

--
-- Index pour la table `nxuy_c_prospectlevel`
--
ALTER TABLE `nxuy_c_prospectlevel`
  ADD PRIMARY KEY (`code`);

--
-- Index pour la table `nxuy_c_regions`
--
ALTER TABLE `nxuy_c_regions`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `code_region` (`code_region`),
  ADD UNIQUE KEY `uk_code_region` (`code_region`),
  ADD KEY `idx_c_regions_fk_pays` (`fk_pays`);

--
-- Index pour la table `nxuy_c_revenuestamp`
--
ALTER TABLE `nxuy_c_revenuestamp`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_c_shipment_mode`
--
ALTER TABLE `nxuy_c_shipment_mode`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_c_stcomm`
--
ALTER TABLE `nxuy_c_stcomm`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_stcomm` (`code`);

--
-- Index pour la table `nxuy_c_ticket_category`
--
ALTER TABLE `nxuy_c_ticket_category`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_code` (`code`,`entity`);

--
-- Index pour la table `nxuy_c_ticket_severity`
--
ALTER TABLE `nxuy_c_ticket_severity`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_code` (`code`,`entity`);

--
-- Index pour la table `nxuy_c_ticket_type`
--
ALTER TABLE `nxuy_c_ticket_type`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_code` (`code`,`entity`);

--
-- Index pour la table `nxuy_c_tva`
--
ALTER TABLE `nxuy_c_tva`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_tva_id` (`fk_pays`,`code`,`taux`,`recuperableonly`);

--
-- Index pour la table `nxuy_c_typent`
--
ALTER TABLE `nxuy_c_typent`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_typent` (`code`);

--
-- Index pour la table `nxuy_c_type_contact`
--
ALTER TABLE `nxuy_c_type_contact`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_type_contact_id` (`element`,`source`,`code`);

--
-- Index pour la table `nxuy_c_type_container`
--
ALTER TABLE `nxuy_c_type_container`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_type_container_id` (`code`,`entity`);

--
-- Index pour la table `nxuy_c_type_fees`
--
ALTER TABLE `nxuy_c_type_fees`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_type_fees` (`code`);

--
-- Index pour la table `nxuy_c_type_resource`
--
ALTER TABLE `nxuy_c_type_resource`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_type_resource_id` (`label`,`code`);

--
-- Index pour la table `nxuy_c_units`
--
ALTER TABLE `nxuy_c_units`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_units_code` (`code`);

--
-- Index pour la table `nxuy_c_ziptown`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_default_values`
--
ALTER TABLE `nxuy_default_values`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_default_values` (`type`,`entity`,`user_id`,`page`,`param`);

--
-- Index pour la table `nxuy_deplacement`
--
ALTER TABLE `nxuy_deplacement`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_document_model`
--
ALTER TABLE `nxuy_document_model`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_document_model` (`nom`,`type`,`entity`);

--
-- Index pour la table `nxuy_don`
--
ALTER TABLE `nxuy_don`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_don_extrafields`
--
ALTER TABLE `nxuy_don_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_don_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_ecm_directories`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_ecm_files`
--
ALTER TABLE `nxuy_ecm_files`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_ecm_files` (`filepath`,`filename`,`entity`),
  ADD KEY `idx_ecm_files_label` (`label`);

--
-- Index pour la table `nxuy_element_contact`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_element_element`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_element_lock`
--
ALTER TABLE `nxuy_element_lock`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_element_resources`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_element_tag`
--
ALTER TABLE `nxuy_element_tag`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_element_tag` (`entity`,`lang`,`tag`,`fk_element`,`element`);

--
-- Index pour la table `nxuy_emailcollector_emailcollector`
--
ALTER TABLE `nxuy_emailcollector_emailcollector`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_emailcollector_entity` (`entity`),
  ADD KEY `idx_emailcollector_status` (`status`);

--
-- Index pour la table `nxuy_emailcollector_emailcollectoraction`
--
ALTER TABLE `nxuy_emailcollector_emailcollectoraction`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_emailcollector_emailcollectoraction` (`fk_emailcollector`,`type`),
  ADD KEY `idx_emailcollector_fk_emailcollector` (`fk_emailcollector`);

--
-- Index pour la table `nxuy_emailcollector_emailcollectorfilter`
--
ALTER TABLE `nxuy_emailcollector_emailcollectorfilter`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_emailcollector_emailcollectorfilter` (`fk_emailcollector`,`type`,`rulevalue`),
  ADD KEY `idx_emailcollector_fk_emailcollector` (`fk_emailcollector`);

--
-- Index pour la table `nxuy_entrepot`
--
ALTER TABLE `nxuy_entrepot`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_entrepot_label` (`ref`,`entity`);

--
-- Index pour la table `nxuy_establishment`
--
ALTER TABLE `nxuy_establishment`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_events`
--
ALTER TABLE `nxuy_events`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_events_dateevent` (`dateevent`);

--
-- Index pour la table `nxuy_event_element`
--
ALTER TABLE `nxuy_event_element`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_expedition`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_expeditiondet`
--
ALTER TABLE `nxuy_expeditiondet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_expeditiondet_fk_expedition` (`fk_expedition`);

--
-- Index pour la table `nxuy_expeditiondet_batch`
--
ALTER TABLE `nxuy_expeditiondet_batch`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_fk_expeditiondet` (`fk_expeditiondet`);

--
-- Index pour la table `nxuy_expeditiondet_extrafields`
--
ALTER TABLE `nxuy_expeditiondet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_expeditiondet_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_expedition_extrafields`
--
ALTER TABLE `nxuy_expedition_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_expedition_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_expensereport`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_expensereport_det`
--
ALTER TABLE `nxuy_expensereport_det`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_expensereport_extrafields`
--
ALTER TABLE `nxuy_expensereport_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_expensereport_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_expensereport_ik`
--
ALTER TABLE `nxuy_expensereport_ik`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_expensereport_rules`
--
ALTER TABLE `nxuy_expensereport_rules`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_export_compta`
--
ALTER TABLE `nxuy_export_compta`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_export_model`
--
ALTER TABLE `nxuy_export_model`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_export_model` (`label`,`type`);

--
-- Index pour la table `nxuy_extrafields`
--
ALTER TABLE `nxuy_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_extrafields_name` (`name`,`entity`,`elementtype`);

--
-- Index pour la table `nxuy_facture`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_facturedet`
--
ALTER TABLE `nxuy_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 `fk_facturedet_fk_unit` (`fk_unit`),
  ADD KEY `idx_facturedet_fk_code_ventilation` (`fk_code_ventilation`);

--
-- Index pour la table `nxuy_facturedet_extrafields`
--
ALTER TABLE `nxuy_facturedet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facturedet_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_facturedet_rec`
--
ALTER TABLE `nxuy_facturedet_rec`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `fk_facturedet_rec_fk_unit` (`fk_unit`);

--
-- Index pour la table `nxuy_facturedet_rec_extrafields`
--
ALTER TABLE `nxuy_facturedet_rec_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facturedet_rec_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_facture_extrafields`
--
ALTER TABLE `nxuy_facture_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_facture_fourn`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_facture_fourn_det`
--
ALTER TABLE `nxuy_facture_fourn_det`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_fourn_det_fk_facture` (`fk_facture_fourn`),
  ADD KEY `fk_facture_fourn_det_fk_unit` (`fk_unit`),
  ADD KEY `idx_facture_fourn_det_fk_code_ventilation` (`fk_code_ventilation`),
  ADD KEY `idx_facture_fourn_det_fk_product` (`fk_product`);

--
-- Index pour la table `nxuy_facture_fourn_det_extrafields`
--
ALTER TABLE `nxuy_facture_fourn_det_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_fourn_det_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_facture_fourn_extrafields`
--
ALTER TABLE `nxuy_facture_fourn_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_fourn_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_facture_rec`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_facture_rec_extrafields`
--
ALTER TABLE `nxuy_facture_rec_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_rec_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_fichinter`
--
ALTER TABLE `nxuy_fichinter`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_fichinter_ref` (`ref`,`entity`),
  ADD KEY `idx_fichinter_fk_soc` (`fk_soc`);

--
-- Index pour la table `nxuy_fichinterdet`
--
ALTER TABLE `nxuy_fichinterdet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_fichinterdet_fk_fichinter` (`fk_fichinter`);

--
-- Index pour la table `nxuy_fichinterdet_extrafields`
--
ALTER TABLE `nxuy_fichinterdet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_ficheinterdet_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_fichinter_extrafields`
--
ALTER TABLE `nxuy_fichinter_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_ficheinter_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_holiday`
--
ALTER TABLE `nxuy_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`),
  ADD KEY `idx_holiday_entity` (`entity`);

--
-- Index pour la table `nxuy_holiday_config`
--
ALTER TABLE `nxuy_holiday_config`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `name` (`name`),
  ADD UNIQUE KEY `idx_holiday_config` (`name`);

--
-- Index pour la table `nxuy_holiday_logs`
--
ALTER TABLE `nxuy_holiday_logs`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_holiday_users`
--
ALTER TABLE `nxuy_holiday_users`
  ADD UNIQUE KEY `uk_holiday_users` (`fk_user`,`fk_type`,`nb_holiday`);

--
-- Index pour la table `nxuy_import_model`
--
ALTER TABLE `nxuy_import_model`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_import_model` (`label`,`type`);

--
-- Index pour la table `nxuy_inventory`
--
ALTER TABLE `nxuy_inventory`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_inventory_ref` (`ref`,`entity`),
  ADD KEY `idx_inventory_tms` (`tms`),
  ADD KEY `idx_inventory_datec` (`date_creation`);

--
-- Index pour la table `nxuy_inventorydet`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_links`
--
ALTER TABLE `nxuy_links`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_links` (`objectid`,`label`);

--
-- Index pour la table `nxuy_livraison`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_livraisondet`
--
ALTER TABLE `nxuy_livraisondet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_livraisondet_fk_expedition` (`fk_livraison`);

--
-- Index pour la table `nxuy_livraisondet_extrafields`
--
ALTER TABLE `nxuy_livraisondet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_livraisondet_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_livraison_extrafields`
--
ALTER TABLE `nxuy_livraison_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_livraison_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_loan`
--
ALTER TABLE `nxuy_loan`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_loan_schedule`
--
ALTER TABLE `nxuy_loan_schedule`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_localtax`
--
ALTER TABLE `nxuy_localtax`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_mailing`
--
ALTER TABLE `nxuy_mailing`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_mailing_cibles`
--
ALTER TABLE `nxuy_mailing_cibles`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_mailing_cibles` (`fk_mailing`,`email`),
  ADD KEY `idx_mailing_cibles_email` (`email`);

--
-- Index pour la table `nxuy_menu`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_multicurrency`
--
ALTER TABLE `nxuy_multicurrency`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_multicurrency_rate`
--
ALTER TABLE `nxuy_multicurrency_rate`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_notify`
--
ALTER TABLE `nxuy_notify`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_notify_def`
--
ALTER TABLE `nxuy_notify_def`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_notify_def_object`
--
ALTER TABLE `nxuy_notify_def_object`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `nxuy_oauth_state`
--
ALTER TABLE `nxuy_oauth_state`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_oauth_token`
--
ALTER TABLE `nxuy_oauth_token`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_onlinesignature`
--
ALTER TABLE `nxuy_onlinesignature`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_opensurvey_comments`
--
ALTER TABLE `nxuy_opensurvey_comments`
  ADD PRIMARY KEY (`id_comment`),
  ADD KEY `idx_id_comment` (`id_comment`),
  ADD KEY `idx_id_sondage` (`id_sondage`);

--
-- Index pour la table `nxuy_opensurvey_formquestions`
--
ALTER TABLE `nxuy_opensurvey_formquestions`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_opensurvey_sondage`
--
ALTER TABLE `nxuy_opensurvey_sondage`
  ADD PRIMARY KEY (`id_sondage`),
  ADD KEY `idx_date_fin` (`date_fin`);

--
-- Index pour la table `nxuy_opensurvey_user_studs`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_overwrite_trans`
--
ALTER TABLE `nxuy_overwrite_trans`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_overwrite_trans` (`lang`,`transkey`);

--
-- Index pour la table `nxuy_paiement`
--
ALTER TABLE `nxuy_paiement`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_paiementcharge`
--
ALTER TABLE `nxuy_paiementcharge`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_paiementfourn`
--
ALTER TABLE `nxuy_paiementfourn`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_paiementfourn_facturefourn`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_paiement_facture`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_payment_donation`
--
ALTER TABLE `nxuy_payment_donation`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_payment_expensereport`
--
ALTER TABLE `nxuy_payment_expensereport`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_payment_loan`
--
ALTER TABLE `nxuy_payment_loan`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_payment_salary`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_payment_various`
--
ALTER TABLE `nxuy_payment_various`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_pos_cash_fence`
--
ALTER TABLE `nxuy_pos_cash_fence`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_prelevement_bons`
--
ALTER TABLE `nxuy_prelevement_bons`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_prelevement_bons_ref` (`ref`,`entity`);

--
-- Index pour la table `nxuy_prelevement_facture`
--
ALTER TABLE `nxuy_prelevement_facture`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_prelevement_facture_fk_prelevement_lignes` (`fk_prelevement_lignes`);

--
-- Index pour la table `nxuy_prelevement_facture_demande`
--
ALTER TABLE `nxuy_prelevement_facture_demande`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_prelevement_lignes`
--
ALTER TABLE `nxuy_prelevement_lignes`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_prelevement_lignes_fk_prelevement_bons` (`fk_prelevement_bons`);

--
-- Index pour la table `nxuy_prelevement_rejet`
--
ALTER TABLE `nxuy_prelevement_rejet`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_printer_ipp`
--
ALTER TABLE `nxuy_printer_ipp`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_printing`
--
ALTER TABLE `nxuy_printing`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_product`
--
ALTER TABLE `nxuy_product`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_ref` (`ref`,`entity`),
  ADD UNIQUE KEY `uk_product_barcode` (`barcode`,`fk_barcode_type`,`entity`),
  ADD KEY `idx_product_label` (`label`),
  ADD KEY `idx_product_barcode` (`barcode`),
  ADD KEY `idx_product_import_key` (`import_key`),
  ADD KEY `idx_product_seuil_stock_alerte` (`seuil_stock_alerte`),
  ADD KEY `idx_product_fk_country` (`fk_country`),
  ADD KEY `idx_product_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_product_fk_barcode_type` (`fk_barcode_type`),
  ADD KEY `fk_product_fk_unit` (`fk_unit`),
  ADD KEY `fk_product_default_warehouse` (`fk_default_warehouse`);

--
-- Index pour la table `nxuy_product_association`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_product_attribute`
--
ALTER TABLE `nxuy_product_attribute`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `unique_ref` (`ref`);

--
-- Index pour la table `nxuy_product_attribute_combination`
--
ALTER TABLE `nxuy_product_attribute_combination`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_product_attribute_combination2val`
--
ALTER TABLE `nxuy_product_attribute_combination2val`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_product_attribute_value`
--
ALTER TABLE `nxuy_product_attribute_value`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_attribute_value` (`fk_product_attribute`,`ref`);

--
-- Index pour la table `nxuy_product_batch`
--
ALTER TABLE `nxuy_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 `ix_fk_product_stock` (`fk_product_stock`);

--
-- Index pour la table `nxuy_product_customer_price`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_product_customer_price_log`
--
ALTER TABLE `nxuy_product_customer_price_log`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_product_extrafields`
--
ALTER TABLE `nxuy_product_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_product_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_product_fournisseur_price`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_product_fournisseur_price_log`
--
ALTER TABLE `nxuy_product_fournisseur_price_log`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_product_lang`
--
ALTER TABLE `nxuy_product_lang`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_lang` (`fk_product`,`lang`);

--
-- Index pour la table `nxuy_product_lot`
--
ALTER TABLE `nxuy_product_lot`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_lot` (`fk_product`,`batch`);

--
-- Index pour la table `nxuy_product_lot_extrafields`
--
ALTER TABLE `nxuy_product_lot_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_product_lot_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_product_price`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_product_pricerules`
--
ALTER TABLE `nxuy_product_pricerules`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `unique_level` (`level`);

--
-- Index pour la table `nxuy_product_price_by_qty`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_product_stock`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_product_warehouse_properties`
--
ALTER TABLE `nxuy_product_warehouse_properties`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_projet`
--
ALTER TABLE `nxuy_projet`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_projet_ref` (`ref`,`entity`),
  ADD KEY `idx_projet_fk_soc` (`fk_soc`);

--
-- Index pour la table `nxuy_projet_extrafields`
--
ALTER TABLE `nxuy_projet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_projet_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_projet_task`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_projet_task_extrafields`
--
ALTER TABLE `nxuy_projet_task_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_projet_task_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_projet_task_time`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_propal`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_propaldet`
--
ALTER TABLE `nxuy_propaldet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_propaldet_fk_propal` (`fk_propal`),
  ADD KEY `idx_propaldet_fk_product` (`fk_product`),
  ADD KEY `fk_propaldet_fk_unit` (`fk_unit`);

--
-- Index pour la table `nxuy_propaldet_extrafields`
--
ALTER TABLE `nxuy_propaldet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_propaldet_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_propal_extrafields`
--
ALTER TABLE `nxuy_propal_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_propal_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_propal_merge_pdf_product`
--
ALTER TABLE `nxuy_propal_merge_pdf_product`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_resource`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_resource_extrafields`
--
ALTER TABLE `nxuy_resource_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_resource_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_rights_def`
--
ALTER TABLE `nxuy_rights_def`
  ADD PRIMARY KEY (`id`,`entity`);

--
-- Index pour la table `nxuy_societe`
--
ALTER TABLE `nxuy_societe`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_societe_prefix_comm` (`prefix_comm`,`entity`),
  ADD UNIQUE KEY `uk_societe_code_client` (`code_client`,`entity`),
  ADD UNIQUE KEY `uk_societe_code_fournisseur` (`code_fournisseur`,`entity`),
  ADD UNIQUE KEY `uk_societe_barcode` (`barcode`,`fk_barcode_type`,`entity`),
  ADD KEY `idx_societe_user_creat` (`fk_user_creat`),
  ADD KEY `idx_societe_user_modif` (`fk_user_modif`),
  ADD KEY `idx_societe_barcode` (`barcode`);

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

--
-- Index pour la table `nxuy_societe_address`
--
ALTER TABLE `nxuy_societe_address`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_societe_commerciaux`
--
ALTER TABLE `nxuy_societe_commerciaux`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_societe_commerciaux` (`fk_soc`,`fk_user`);

--
-- Index pour la table `nxuy_societe_extrafields`
--
ALTER TABLE `nxuy_societe_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_societe_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_societe_log`
--
ALTER TABLE `nxuy_societe_log`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `nxuy_societe_prices`
--
ALTER TABLE `nxuy_societe_prices`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_societe_remise`
--
ALTER TABLE `nxuy_societe_remise`
  ADD PRIMARY KEY (`rowid`);

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

--
-- Index pour la table `nxuy_societe_remise_supplier`
--
ALTER TABLE `nxuy_societe_remise_supplier`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_societe_rib`
--
ALTER TABLE `nxuy_societe_rib`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_socpeople`
--
ALTER TABLE `nxuy_socpeople`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_socpeople_fk_soc` (`fk_soc`),
  ADD KEY `idx_socpeople_fk_user_creat` (`fk_user_creat`);

--
-- Index pour la table `nxuy_socpeople_extrafields`
--
ALTER TABLE `nxuy_socpeople_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_socpeople_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_stock_lotserial`
--
ALTER TABLE `nxuy_stock_lotserial`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_stock_mouvement`
--
ALTER TABLE `nxuy_stock_mouvement`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_stock_mouvement_fk_product` (`fk_product`),
  ADD KEY `idx_stock_mouvement_fk_entrepot` (`fk_entrepot`);

--
-- Index pour la table `nxuy_subscription`
--
ALTER TABLE `nxuy_subscription`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_cotisation` (`fk_adherent`,`dateadh`),
  ADD UNIQUE KEY `uk_subscription` (`fk_adherent`,`dateadh`);

--
-- Index pour la table `nxuy_supplier_proposal`
--
ALTER TABLE `nxuy_supplier_proposal`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_supplier_proposaldet`
--
ALTER TABLE `nxuy_supplier_proposaldet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_supplier_proposaldet_fk_supplier_proposal` (`fk_supplier_proposal`),
  ADD KEY `idx_supplier_proposaldet_fk_product` (`fk_product`),
  ADD KEY `fk_supplier_proposaldet_fk_unit` (`fk_unit`);

--
-- Index pour la table `nxuy_supplier_proposaldet_extrafields`
--
ALTER TABLE `nxuy_supplier_proposaldet_extrafields`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_supplier_proposal_extrafields`
--
ALTER TABLE `nxuy_supplier_proposal_extrafields`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_takepos_floor_tables`
--
ALTER TABLE `nxuy_takepos_floor_tables`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_ticket`
--
ALTER TABLE `nxuy_ticket`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_ticket_track_id` (`track_id`);

--
-- Index pour la table `nxuy_ticket_extrafields`
--
ALTER TABLE `nxuy_ticket_extrafields`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_ticket_msg`
--
ALTER TABLE `nxuy_ticket_msg`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `fk_ticket_msg_fk_track_id` (`fk_track_id`);

--
-- Index pour la table `nxuy_tva`
--
ALTER TABLE `nxuy_tva`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_usergroup`
--
ALTER TABLE `nxuy_usergroup`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_usergroup_name` (`nom`,`entity`);

--
-- Index pour la table `nxuy_usergroup_extrafields`
--
ALTER TABLE `nxuy_usergroup_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_usergroup_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_usergroup_rights`
--
ALTER TABLE `nxuy_usergroup_rights`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_usergroup_rights` (`entity`,`fk_usergroup`,`fk_id`),
  ADD KEY `fk_usergroup_rights_fk_usergroup` (`fk_usergroup`);

--
-- Index pour la table `nxuy_usergroup_user`
--
ALTER TABLE `nxuy_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`);

--
-- Index pour la table `nxuy_user_alert`
--
ALTER TABLE `nxuy_user_alert`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_user_clicktodial`
--
ALTER TABLE `nxuy_user_clicktodial`
  ADD PRIMARY KEY (`fk_user`);

--
-- Index pour la table `nxuy_user_employment`
--
ALTER TABLE `nxuy_user_employment`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_user_extrafields`
--
ALTER TABLE `nxuy_user_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_user_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_user_param`
--
ALTER TABLE `nxuy_user_param`
  ADD UNIQUE KEY `uk_user_param` (`fk_user`,`param`,`entity`);

--
-- Index pour la table `nxuy_user_rib`
--
ALTER TABLE `nxuy_user_rib`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `nxuy_user_rights`
--
ALTER TABLE `nxuy_user_rights`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_user_rights` (`entity`,`fk_user`,`fk_id`),
  ADD KEY `fk_user_rights_fk_user_user` (`fk_user`);

--
-- Index pour la table `nxuy_website`
--
ALTER TABLE `nxuy_website`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_website_ref` (`ref`,`entity`);

--
-- Index pour la table `nxuy_website_extrafields`
--
ALTER TABLE `nxuy_website_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_website_extrafields` (`fk_object`);

--
-- Index pour la table `nxuy_website_page`
--
ALTER TABLE `nxuy_website_page`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_website_page_url` (`fk_website`,`pageurl`);

--
-- AUTO_INCREMENT pour les tables déchargées
--

--
-- AUTO_INCREMENT pour la table `nxuy_accounting_account`
--
ALTER TABLE `nxuy_accounting_account`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4785;

--
-- AUTO_INCREMENT pour la table `nxuy_accounting_bookkeeping`
--
ALTER TABLE `nxuy_accounting_bookkeeping`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_accounting_bookkeeping_tmp`
--
ALTER TABLE `nxuy_accounting_bookkeeping_tmp`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_accounting_fiscalyear`
--
ALTER TABLE `nxuy_accounting_fiscalyear`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_accounting_journal`
--
ALTER TABLE `nxuy_accounting_journal`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT pour la table `nxuy_accounting_system`
--
ALTER TABLE `nxuy_accounting_system`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=48;

--
-- AUTO_INCREMENT pour la table `nxuy_actioncomm`
--
ALTER TABLE `nxuy_actioncomm`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_actioncomm_extrafields`
--
ALTER TABLE `nxuy_actioncomm_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_actioncomm_reminder`
--
ALTER TABLE `nxuy_actioncomm_reminder`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_actioncomm_resources`
--
ALTER TABLE `nxuy_actioncomm_resources`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_adherent`
--
ALTER TABLE `nxuy_adherent`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_adherent_extrafields`
--
ALTER TABLE `nxuy_adherent_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_adherent_type`
--
ALTER TABLE `nxuy_adherent_type`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_adherent_type_extrafields`
--
ALTER TABLE `nxuy_adherent_type_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_advtargetemailing`
--
ALTER TABLE `nxuy_advtargetemailing`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_asset`
--
ALTER TABLE `nxuy_asset`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_asset_extrafields`
--
ALTER TABLE `nxuy_asset_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_asset_type`
--
ALTER TABLE `nxuy_asset_type`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_asset_type_extrafields`
--
ALTER TABLE `nxuy_asset_type_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_bank`
--
ALTER TABLE `nxuy_bank`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `nxuy_bank_account_extrafields`
--
ALTER TABLE `nxuy_bank_account_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_bank_categ`
--
ALTER TABLE `nxuy_bank_categ`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_bank_url`
--
ALTER TABLE `nxuy_bank_url`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_blockedlog`
--
ALTER TABLE `nxuy_blockedlog`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_blockedlog_authority`
--
ALTER TABLE `nxuy_blockedlog_authority`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_bookmark`
--
ALTER TABLE `nxuy_bookmark`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_bordereau_cheque`
--
ALTER TABLE `nxuy_bordereau_cheque`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_boxes`
--
ALTER TABLE `nxuy_boxes`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;

--
-- AUTO_INCREMENT pour la table `nxuy_boxes_def`
--
ALTER TABLE `nxuy_boxes_def`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT pour la table `nxuy_budget`
--
ALTER TABLE `nxuy_budget`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_budget_lines`
--
ALTER TABLE `nxuy_budget_lines`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_categorie`
--
ALTER TABLE `nxuy_categorie`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_categories_extrafields`
--
ALTER TABLE `nxuy_categories_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_categorie_lang`
--
ALTER TABLE `nxuy_categorie_lang`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_chargesociales`
--
ALTER TABLE `nxuy_chargesociales`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_commande`
--
ALTER TABLE `nxuy_commande`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_commandedet`
--
ALTER TABLE `nxuy_commandedet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_commandedet_extrafields`
--
ALTER TABLE `nxuy_commandedet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_commande_extrafields`
--
ALTER TABLE `nxuy_commande_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_commande_fournisseur`
--
ALTER TABLE `nxuy_commande_fournisseur`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_commande_fournisseurdet`
--
ALTER TABLE `nxuy_commande_fournisseurdet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_commande_fournisseurdet_extrafields`
--
ALTER TABLE `nxuy_commande_fournisseurdet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_commande_fournisseur_dispatch`
--
ALTER TABLE `nxuy_commande_fournisseur_dispatch`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_commande_fournisseur_extrafields`
--
ALTER TABLE `nxuy_commande_fournisseur_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_commande_fournisseur_log`
--
ALTER TABLE `nxuy_commande_fournisseur_log`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_comment`
--
ALTER TABLE `nxuy_comment`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_const`
--
ALTER TABLE `nxuy_const`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=271;

--
-- AUTO_INCREMENT pour la table `nxuy_contrat`
--
ALTER TABLE `nxuy_contrat`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_contratdet`
--
ALTER TABLE `nxuy_contratdet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_contratdet_extrafields`
--
ALTER TABLE `nxuy_contratdet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_contratdet_log`
--
ALTER TABLE `nxuy_contratdet_log`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_contrat_extrafields`
--
ALTER TABLE `nxuy_contrat_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_cronjob`
--
ALTER TABLE `nxuy_cronjob`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT pour la table `nxuy_c_accounting_category`
--
ALTER TABLE `nxuy_c_accounting_category`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT pour la table `nxuy_c_action_trigger`
--
ALTER TABLE `nxuy_c_action_trigger`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=152;

--
-- AUTO_INCREMENT pour la table `nxuy_c_availability`
--
ALTER TABLE `nxuy_c_availability`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT pour la table `nxuy_c_barcode_type`
--
ALTER TABLE `nxuy_c_barcode_type`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_c_chargesociales`
--
ALTER TABLE `nxuy_c_chargesociales`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4110;

--
-- AUTO_INCREMENT pour la table `nxuy_c_departements`
--
ALTER TABLE `nxuy_c_departements`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1176;

--
-- AUTO_INCREMENT pour la table `nxuy_c_ecotaxe`
--
ALTER TABLE `nxuy_c_ecotaxe`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;

--
-- AUTO_INCREMENT pour la table `nxuy_c_email_senderprofile`
--
ALTER TABLE `nxuy_c_email_senderprofile`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_c_email_templates`
--
ALTER TABLE `nxuy_c_email_templates`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT pour la table `nxuy_c_exp_tax_cat`
--
ALTER TABLE `nxuy_c_exp_tax_cat`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT pour la table `nxuy_c_exp_tax_range`
--
ALTER TABLE `nxuy_c_exp_tax_range`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT pour la table `nxuy_c_field_list`
--
ALTER TABLE `nxuy_c_field_list`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_c_format_cards`
--
ALTER TABLE `nxuy_c_format_cards`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT pour la table `nxuy_c_forme_juridique`
--
ALTER TABLE `nxuy_c_forme_juridique`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=240;

--
-- AUTO_INCREMENT pour la table `nxuy_c_holiday_types`
--
ALTER TABLE `nxuy_c_holiday_types`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT pour la table `nxuy_c_incoterms`
--
ALTER TABLE `nxuy_c_incoterms`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT pour la table `nxuy_c_input_method`
--
ALTER TABLE `nxuy_c_input_method`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT pour la table `nxuy_c_input_reason`
--
ALTER TABLE `nxuy_c_input_reason`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT pour la table `nxuy_c_lead_status`
--
ALTER TABLE `nxuy_c_lead_status`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT pour la table `nxuy_c_paiement`
--
ALTER TABLE `nxuy_c_paiement`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=55;

--
-- AUTO_INCREMENT pour la table `nxuy_c_paper_format`
--
ALTER TABLE `nxuy_c_paper_format`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=226;

--
-- AUTO_INCREMENT pour la table `nxuy_c_payment_term`
--
ALTER TABLE `nxuy_c_payment_term`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT pour la table `nxuy_c_price_expression`
--
ALTER TABLE `nxuy_c_price_expression`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_c_price_global_variable`
--
ALTER TABLE `nxuy_c_price_global_variable`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_c_price_global_variable_updater`
--
ALTER TABLE `nxuy_c_price_global_variable_updater`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_c_regions`
--
ALTER TABLE `nxuy_c_regions`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23222;

--
-- AUTO_INCREMENT pour la table `nxuy_c_revenuestamp`
--
ALTER TABLE `nxuy_c_revenuestamp`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=102;

--
-- AUTO_INCREMENT pour la table `nxuy_c_shipment_mode`
--
ALTER TABLE `nxuy_c_shipment_mode`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT pour la table `nxuy_c_ticket_category`
--
ALTER TABLE `nxuy_c_ticket_category`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `nxuy_c_ticket_severity`
--
ALTER TABLE `nxuy_c_ticket_severity`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT pour la table `nxuy_c_ticket_type`
--
ALTER TABLE `nxuy_c_ticket_type`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT pour la table `nxuy_c_tva`
--
ALTER TABLE `nxuy_c_tva`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2473;

--
-- AUTO_INCREMENT pour la table `nxuy_c_type_container`
--
ALTER TABLE `nxuy_c_type_container`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT pour la table `nxuy_c_type_fees`
--
ALTER TABLE `nxuy_c_type_fees`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;

--
-- AUTO_INCREMENT pour la table `nxuy_c_type_resource`
--
ALTER TABLE `nxuy_c_type_resource`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_c_units`
--
ALTER TABLE `nxuy_c_units`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT pour la table `nxuy_c_ziptown`
--
ALTER TABLE `nxuy_c_ziptown`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_default_values`
--
ALTER TABLE `nxuy_default_values`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_deplacement`
--
ALTER TABLE `nxuy_deplacement`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_document_model`
--
ALTER TABLE `nxuy_document_model`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT pour la table `nxuy_don`
--
ALTER TABLE `nxuy_don`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_don_extrafields`
--
ALTER TABLE `nxuy_don_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_ecm_directories`
--
ALTER TABLE `nxuy_ecm_directories`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_ecm_files`
--
ALTER TABLE `nxuy_ecm_files`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;

--
-- AUTO_INCREMENT pour la table `nxuy_element_contact`
--
ALTER TABLE `nxuy_element_contact`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_element_element`
--
ALTER TABLE `nxuy_element_element`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_element_lock`
--
ALTER TABLE `nxuy_element_lock`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_element_resources`
--
ALTER TABLE `nxuy_element_resources`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_element_tag`
--
ALTER TABLE `nxuy_element_tag`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_emailcollector_emailcollector`
--
ALTER TABLE `nxuy_emailcollector_emailcollector`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_emailcollector_emailcollectoraction`
--
ALTER TABLE `nxuy_emailcollector_emailcollectoraction`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_emailcollector_emailcollectorfilter`
--
ALTER TABLE `nxuy_emailcollector_emailcollectorfilter`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_entrepot`
--
ALTER TABLE `nxuy_entrepot`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_establishment`
--
ALTER TABLE `nxuy_establishment`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_events`
--
ALTER TABLE `nxuy_events`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_event_element`
--
ALTER TABLE `nxuy_event_element`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_expedition`
--
ALTER TABLE `nxuy_expedition`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_expeditiondet`
--
ALTER TABLE `nxuy_expeditiondet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_expeditiondet_batch`
--
ALTER TABLE `nxuy_expeditiondet_batch`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_expeditiondet_extrafields`
--
ALTER TABLE `nxuy_expeditiondet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_expedition_extrafields`
--
ALTER TABLE `nxuy_expedition_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_expensereport`
--
ALTER TABLE `nxuy_expensereport`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_expensereport_det`
--
ALTER TABLE `nxuy_expensereport_det`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_expensereport_extrafields`
--
ALTER TABLE `nxuy_expensereport_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_expensereport_ik`
--
ALTER TABLE `nxuy_expensereport_ik`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT pour la table `nxuy_expensereport_rules`
--
ALTER TABLE `nxuy_expensereport_rules`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_export_compta`
--
ALTER TABLE `nxuy_export_compta`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_export_model`
--
ALTER TABLE `nxuy_export_model`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_extrafields`
--
ALTER TABLE `nxuy_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_facture`
--
ALTER TABLE `nxuy_facture`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT pour la table `nxuy_facturedet`
--
ALTER TABLE `nxuy_facturedet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=85;

--
-- AUTO_INCREMENT pour la table `nxuy_facturedet_extrafields`
--
ALTER TABLE `nxuy_facturedet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_facturedet_rec`
--
ALTER TABLE `nxuy_facturedet_rec`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_facturedet_rec_extrafields`
--
ALTER TABLE `nxuy_facturedet_rec_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_facture_extrafields`
--
ALTER TABLE `nxuy_facture_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_facture_fourn`
--
ALTER TABLE `nxuy_facture_fourn`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_facture_fourn_det`
--
ALTER TABLE `nxuy_facture_fourn_det`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_facture_fourn_det_extrafields`
--
ALTER TABLE `nxuy_facture_fourn_det_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_facture_fourn_extrafields`
--
ALTER TABLE `nxuy_facture_fourn_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_facture_rec`
--
ALTER TABLE `nxuy_facture_rec`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_facture_rec_extrafields`
--
ALTER TABLE `nxuy_facture_rec_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_fichinter`
--
ALTER TABLE `nxuy_fichinter`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_fichinterdet`
--
ALTER TABLE `nxuy_fichinterdet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_fichinterdet_extrafields`
--
ALTER TABLE `nxuy_fichinterdet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_fichinter_extrafields`
--
ALTER TABLE `nxuy_fichinter_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_holiday`
--
ALTER TABLE `nxuy_holiday`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_holiday_config`
--
ALTER TABLE `nxuy_holiday_config`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT pour la table `nxuy_holiday_logs`
--
ALTER TABLE `nxuy_holiday_logs`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_import_model`
--
ALTER TABLE `nxuy_import_model`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_inventory`
--
ALTER TABLE `nxuy_inventory`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_inventorydet`
--
ALTER TABLE `nxuy_inventorydet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_links`
--
ALTER TABLE `nxuy_links`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_livraison`
--
ALTER TABLE `nxuy_livraison`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_livraisondet`
--
ALTER TABLE `nxuy_livraisondet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_livraisondet_extrafields`
--
ALTER TABLE `nxuy_livraisondet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_livraison_extrafields`
--
ALTER TABLE `nxuy_livraison_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_loan`
--
ALTER TABLE `nxuy_loan`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_loan_schedule`
--
ALTER TABLE `nxuy_loan_schedule`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_localtax`
--
ALTER TABLE `nxuy_localtax`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_mailing`
--
ALTER TABLE `nxuy_mailing`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_mailing_cibles`
--
ALTER TABLE `nxuy_mailing_cibles`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_menu`
--
ALTER TABLE `nxuy_menu`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;

--
-- AUTO_INCREMENT pour la table `nxuy_multicurrency`
--
ALTER TABLE `nxuy_multicurrency`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_multicurrency_rate`
--
ALTER TABLE `nxuy_multicurrency_rate`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_notify`
--
ALTER TABLE `nxuy_notify`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_notify_def`
--
ALTER TABLE `nxuy_notify_def`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_notify_def_object`
--
ALTER TABLE `nxuy_notify_def_object`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_oauth_state`
--
ALTER TABLE `nxuy_oauth_state`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_oauth_token`
--
ALTER TABLE `nxuy_oauth_token`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_onlinesignature`
--
ALTER TABLE `nxuy_onlinesignature`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_opensurvey_comments`
--
ALTER TABLE `nxuy_opensurvey_comments`
  MODIFY `id_comment` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_opensurvey_formquestions`
--
ALTER TABLE `nxuy_opensurvey_formquestions`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_opensurvey_user_studs`
--
ALTER TABLE `nxuy_opensurvey_user_studs`
  MODIFY `id_users` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_overwrite_trans`
--
ALTER TABLE `nxuy_overwrite_trans`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_paiement`
--
ALTER TABLE `nxuy_paiement`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_paiementcharge`
--
ALTER TABLE `nxuy_paiementcharge`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_paiementfourn`
--
ALTER TABLE `nxuy_paiementfourn`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_paiementfourn_facturefourn`
--
ALTER TABLE `nxuy_paiementfourn_facturefourn`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_paiement_facture`
--
ALTER TABLE `nxuy_paiement_facture`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_payment_donation`
--
ALTER TABLE `nxuy_payment_donation`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_payment_expensereport`
--
ALTER TABLE `nxuy_payment_expensereport`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_payment_loan`
--
ALTER TABLE `nxuy_payment_loan`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_payment_salary`
--
ALTER TABLE `nxuy_payment_salary`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_payment_various`
--
ALTER TABLE `nxuy_payment_various`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_pos_cash_fence`
--
ALTER TABLE `nxuy_pos_cash_fence`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_prelevement_bons`
--
ALTER TABLE `nxuy_prelevement_bons`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_prelevement_facture`
--
ALTER TABLE `nxuy_prelevement_facture`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_prelevement_facture_demande`
--
ALTER TABLE `nxuy_prelevement_facture_demande`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_prelevement_lignes`
--
ALTER TABLE `nxuy_prelevement_lignes`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_prelevement_rejet`
--
ALTER TABLE `nxuy_prelevement_rejet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_printer_ipp`
--
ALTER TABLE `nxuy_printer_ipp`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_printing`
--
ALTER TABLE `nxuy_printing`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_product`
--
ALTER TABLE `nxuy_product`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=54;

--
-- AUTO_INCREMENT pour la table `nxuy_product_association`
--
ALTER TABLE `nxuy_product_association`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_product_attribute`
--
ALTER TABLE `nxuy_product_attribute`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_product_attribute_combination`
--
ALTER TABLE `nxuy_product_attribute_combination`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_product_attribute_combination2val`
--
ALTER TABLE `nxuy_product_attribute_combination2val`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_product_attribute_value`
--
ALTER TABLE `nxuy_product_attribute_value`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_product_batch`
--
ALTER TABLE `nxuy_product_batch`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_product_customer_price`
--
ALTER TABLE `nxuy_product_customer_price`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_product_customer_price_log`
--
ALTER TABLE `nxuy_product_customer_price_log`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_product_extrafields`
--
ALTER TABLE `nxuy_product_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_product_fournisseur_price`
--
ALTER TABLE `nxuy_product_fournisseur_price`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_product_fournisseur_price_log`
--
ALTER TABLE `nxuy_product_fournisseur_price_log`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_product_lang`
--
ALTER TABLE `nxuy_product_lang`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_product_lot`
--
ALTER TABLE `nxuy_product_lot`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_product_lot_extrafields`
--
ALTER TABLE `nxuy_product_lot_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_product_price`
--
ALTER TABLE `nxuy_product_price`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=74;

--
-- AUTO_INCREMENT pour la table `nxuy_product_pricerules`
--
ALTER TABLE `nxuy_product_pricerules`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_product_price_by_qty`
--
ALTER TABLE `nxuy_product_price_by_qty`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_product_stock`
--
ALTER TABLE `nxuy_product_stock`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_product_warehouse_properties`
--
ALTER TABLE `nxuy_product_warehouse_properties`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_projet`
--
ALTER TABLE `nxuy_projet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_projet_extrafields`
--
ALTER TABLE `nxuy_projet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_projet_task`
--
ALTER TABLE `nxuy_projet_task`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_projet_task_extrafields`
--
ALTER TABLE `nxuy_projet_task_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_projet_task_time`
--
ALTER TABLE `nxuy_projet_task_time`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_propal`
--
ALTER TABLE `nxuy_propal`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_propaldet`
--
ALTER TABLE `nxuy_propaldet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_propaldet_extrafields`
--
ALTER TABLE `nxuy_propaldet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_propal_extrafields`
--
ALTER TABLE `nxuy_propal_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_propal_merge_pdf_product`
--
ALTER TABLE `nxuy_propal_merge_pdf_product`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_resource`
--
ALTER TABLE `nxuy_resource`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_resource_extrafields`
--
ALTER TABLE `nxuy_resource_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_societe`
--
ALTER TABLE `nxuy_societe`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT pour la table `nxuy_societe_account`
--
ALTER TABLE `nxuy_societe_account`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_societe_address`
--
ALTER TABLE `nxuy_societe_address`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_societe_commerciaux`
--
ALTER TABLE `nxuy_societe_commerciaux`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_societe_extrafields`
--
ALTER TABLE `nxuy_societe_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_societe_log`
--
ALTER TABLE `nxuy_societe_log`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_societe_prices`
--
ALTER TABLE `nxuy_societe_prices`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_societe_remise`
--
ALTER TABLE `nxuy_societe_remise`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_societe_remise_except`
--
ALTER TABLE `nxuy_societe_remise_except`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_societe_remise_supplier`
--
ALTER TABLE `nxuy_societe_remise_supplier`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_societe_rib`
--
ALTER TABLE `nxuy_societe_rib`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_socpeople`
--
ALTER TABLE `nxuy_socpeople`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_socpeople_extrafields`
--
ALTER TABLE `nxuy_socpeople_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_stock_lotserial`
--
ALTER TABLE `nxuy_stock_lotserial`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_stock_mouvement`
--
ALTER TABLE `nxuy_stock_mouvement`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_subscription`
--
ALTER TABLE `nxuy_subscription`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_supplier_proposal`
--
ALTER TABLE `nxuy_supplier_proposal`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_supplier_proposaldet`
--
ALTER TABLE `nxuy_supplier_proposaldet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_supplier_proposaldet_extrafields`
--
ALTER TABLE `nxuy_supplier_proposaldet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_supplier_proposal_extrafields`
--
ALTER TABLE `nxuy_supplier_proposal_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_takepos_floor_tables`
--
ALTER TABLE `nxuy_takepos_floor_tables`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_ticket`
--
ALTER TABLE `nxuy_ticket`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_ticket_extrafields`
--
ALTER TABLE `nxuy_ticket_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_ticket_msg`
--
ALTER TABLE `nxuy_ticket_msg`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_tva`
--
ALTER TABLE `nxuy_tva`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_usergroup`
--
ALTER TABLE `nxuy_usergroup`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `nxuy_usergroup_extrafields`
--
ALTER TABLE `nxuy_usergroup_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_usergroup_rights`
--
ALTER TABLE `nxuy_usergroup_rights`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=159;

--
-- AUTO_INCREMENT pour la table `nxuy_usergroup_user`
--
ALTER TABLE `nxuy_usergroup_user`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_user_alert`
--
ALTER TABLE `nxuy_user_alert`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_user_employment`
--
ALTER TABLE `nxuy_user_employment`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_user_extrafields`
--
ALTER TABLE `nxuy_user_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_user_rib`
--
ALTER TABLE `nxuy_user_rib`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_user_rights`
--
ALTER TABLE `nxuy_user_rights`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1224;

--
-- AUTO_INCREMENT pour la table `nxuy_website`
--
ALTER TABLE `nxuy_website`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `nxuy_website_extrafields`
--
ALTER TABLE `nxuy_website_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `nxuy_website_page`
--
ALTER TABLE `nxuy_website_page`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- Contraintes pour les tables déchargées
--

--
-- Contraintes pour la table `nxuy_accounting_account`
--
ALTER TABLE `nxuy_accounting_account`
  ADD CONSTRAINT `fk_accounting_account_fk_pcg_version` FOREIGN KEY (`fk_pcg_version`) REFERENCES `nxuy_accounting_system` (`pcg_version`);

--
-- Contraintes pour la table `nxuy_adherent`
--
ALTER TABLE `nxuy_adherent`
  ADD CONSTRAINT `adherent_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `nxuy_societe` (`rowid`),
  ADD CONSTRAINT `fk_adherent_adherent_type` FOREIGN KEY (`fk_adherent_type`) REFERENCES `nxuy_adherent_type` (`rowid`);

--
-- Contraintes pour la table `nxuy_asset`
--
ALTER TABLE `nxuy_asset`
  ADD CONSTRAINT `fk_asset_asset_type` FOREIGN KEY (`fk_asset_type`) REFERENCES `nxuy_asset_type` (`rowid`);

--
-- Contraintes pour la table `nxuy_boxes`
--
ALTER TABLE `nxuy_boxes`
  ADD CONSTRAINT `fk_boxes_box_id` FOREIGN KEY (`box_id`) REFERENCES `nxuy_boxes_def` (`rowid`);

--
-- Contraintes pour la table `nxuy_budget_lines`
--
ALTER TABLE `nxuy_budget_lines`
  ADD CONSTRAINT `fk_budget_lines_budget` FOREIGN KEY (`fk_budget`) REFERENCES `nxuy_budget` (`rowid`);

--
-- Contraintes pour la table `nxuy_categorie_account`
--
ALTER TABLE `nxuy_categorie_account`
  ADD CONSTRAINT `fk_categorie_account_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `nxuy_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_account_fk_account` FOREIGN KEY (`fk_account`) REFERENCES `nxuy_bank_account` (`rowid`);

--
-- Contraintes pour la table `nxuy_categorie_contact`
--
ALTER TABLE `nxuy_categorie_contact`
  ADD CONSTRAINT `fk_categorie_contact_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `nxuy_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_contact_fk_socpeople` FOREIGN KEY (`fk_socpeople`) REFERENCES `nxuy_socpeople` (`rowid`);

--
-- Contraintes pour la table `nxuy_categorie_fournisseur`
--
ALTER TABLE `nxuy_categorie_fournisseur`
  ADD CONSTRAINT `fk_categorie_fournisseur_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `nxuy_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_fournisseur_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `nxuy_societe` (`rowid`);

--
-- Contraintes pour la table `nxuy_categorie_lang`
--
ALTER TABLE `nxuy_categorie_lang`
  ADD CONSTRAINT `fk_category_lang_fk_category` FOREIGN KEY (`fk_category`) REFERENCES `nxuy_categorie` (`rowid`);

--
-- Contraintes pour la table `nxuy_categorie_member`
--
ALTER TABLE `nxuy_categorie_member`
  ADD CONSTRAINT `fk_categorie_member_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `nxuy_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_member_member_rowid` FOREIGN KEY (`fk_member`) REFERENCES `nxuy_adherent` (`rowid`);

--
-- Contraintes pour la table `nxuy_categorie_product`
--
ALTER TABLE `nxuy_categorie_product`
  ADD CONSTRAINT `fk_categorie_product_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `nxuy_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_product_product_rowid` FOREIGN KEY (`fk_product`) REFERENCES `nxuy_product` (`rowid`);

--
-- Contraintes pour la table `nxuy_categorie_project`
--
ALTER TABLE `nxuy_categorie_project`
  ADD CONSTRAINT `fk_categorie_project_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `nxuy_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_project_fk_project` FOREIGN KEY (`fk_project`) REFERENCES `nxuy_projet` (`rowid`),
  ADD CONSTRAINT `fk_categorie_project_fk_project_rowid` FOREIGN KEY (`fk_project`) REFERENCES `nxuy_projet` (`rowid`);

--
-- Contraintes pour la table `nxuy_categorie_societe`
--
ALTER TABLE `nxuy_categorie_societe`
  ADD CONSTRAINT `fk_categorie_societe_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `nxuy_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_societe_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `nxuy_societe` (`rowid`);

--
-- Contraintes pour la table `nxuy_categorie_user`
--
ALTER TABLE `nxuy_categorie_user`
  ADD CONSTRAINT `fk_categorie_user_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `nxuy_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_user_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `nxuy_user` (`rowid`);

--
-- Contraintes pour la table `nxuy_commande`
--
ALTER TABLE `nxuy_commande`
  ADD CONSTRAINT `fk_commande_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `nxuy_projet` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `nxuy_societe` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `nxuy_user` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_user_cloture` FOREIGN KEY (`fk_user_cloture`) REFERENCES `nxuy_user` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `nxuy_user` (`rowid`);

--
-- Contraintes pour la table `nxuy_commandedet`
--
ALTER TABLE `nxuy_commandedet`
  ADD CONSTRAINT `fk_commandedet_fk_commande` FOREIGN KEY (`fk_commande`) REFERENCES `nxuy_commande` (`rowid`),
  ADD CONSTRAINT `fk_commandedet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `nxuy_c_units` (`rowid`);

--
-- Contraintes pour la table `nxuy_commande_fournisseur`
--
ALTER TABLE `nxuy_commande_fournisseur`
  ADD CONSTRAINT `fk_commande_fournisseur_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `nxuy_societe` (`rowid`);

--
-- Contraintes pour la table `nxuy_commande_fournisseurdet`
--
ALTER TABLE `nxuy_commande_fournisseurdet`
  ADD CONSTRAINT `fk_commande_fournisseurdet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `nxuy_c_units` (`rowid`);

--
-- Contraintes pour la table `nxuy_contrat`
--
ALTER TABLE `nxuy_contrat`
  ADD CONSTRAINT `fk_contrat_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `nxuy_societe` (`rowid`),
  ADD CONSTRAINT `fk_contrat_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `nxuy_user` (`rowid`);

--
-- Contraintes pour la table `nxuy_contratdet`
--
ALTER TABLE `nxuy_contratdet`
  ADD CONSTRAINT `fk_contratdet_fk_contrat` FOREIGN KEY (`fk_contrat`) REFERENCES `nxuy_contrat` (`rowid`),
  ADD CONSTRAINT `fk_contratdet_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `nxuy_product` (`rowid`),
  ADD CONSTRAINT `fk_contratdet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `nxuy_c_units` (`rowid`);

--
-- Contraintes pour la table `nxuy_contratdet_log`
--
ALTER TABLE `nxuy_contratdet_log`
  ADD CONSTRAINT `fk_contratdet_log_fk_contratdet` FOREIGN KEY (`fk_contratdet`) REFERENCES `nxuy_contratdet` (`rowid`);

--
-- Contraintes pour la table `nxuy_c_departements`
--
ALTER TABLE `nxuy_c_departements`
  ADD CONSTRAINT `fk_departements_code_region` FOREIGN KEY (`fk_region`) REFERENCES `nxuy_c_regions` (`code_region`);

--
-- Contraintes pour la table `nxuy_c_ziptown`
--
ALTER TABLE `nxuy_c_ziptown`
  ADD CONSTRAINT `fk_c_ziptown_fk_county` FOREIGN KEY (`fk_county`) REFERENCES `nxuy_c_departements` (`rowid`),
  ADD CONSTRAINT `fk_c_ziptown_fk_pays` FOREIGN KEY (`fk_pays`) REFERENCES `nxuy_c_country` (`rowid`);

--
-- Contraintes pour la table `nxuy_ecm_directories`
--
ALTER TABLE `nxuy_ecm_directories`
  ADD CONSTRAINT `fk_ecm_directories_fk_user_c` FOREIGN KEY (`fk_user_c`) REFERENCES `nxuy_user` (`rowid`),
  ADD CONSTRAINT `fk_ecm_directories_fk_user_m` FOREIGN KEY (`fk_user_m`) REFERENCES `nxuy_user` (`rowid`);

--
-- Contraintes pour la table `nxuy_element_contact`
--
ALTER TABLE `nxuy_element_contact`
  ADD CONSTRAINT `fk_element_contact_fk_c_type_contact` FOREIGN KEY (`fk_c_type_contact`) REFERENCES `nxuy_c_type_contact` (`rowid`);

--
-- Contraintes pour la table `nxuy_emailcollector_emailcollectoraction`
--
ALTER TABLE `nxuy_emailcollector_emailcollectoraction`
  ADD CONSTRAINT `fk_emailcollectoraction_fk_emailcollector` FOREIGN KEY (`fk_emailcollector`) REFERENCES `nxuy_emailcollector_emailcollector` (`rowid`);

--
-- Contraintes pour la table `nxuy_emailcollector_emailcollectorfilter`
--
ALTER TABLE `nxuy_emailcollector_emailcollectorfilter`
  ADD CONSTRAINT `fk_emailcollectorfilter_fk_emailcollector` FOREIGN KEY (`fk_emailcollector`) REFERENCES `nxuy_emailcollector_emailcollector` (`rowid`);

--
-- Contraintes pour la table `nxuy_expedition`
--
ALTER TABLE `nxuy_expedition`
  ADD CONSTRAINT `fk_expedition_fk_shipping_method` FOREIGN KEY (`fk_shipping_method`) REFERENCES `nxuy_c_shipment_mode` (`rowid`),
  ADD CONSTRAINT `fk_expedition_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `nxuy_societe` (`rowid`),
  ADD CONSTRAINT `fk_expedition_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `nxuy_user` (`rowid`),
  ADD CONSTRAINT `fk_expedition_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `nxuy_user` (`rowid`);

--
-- Contraintes pour la table `nxuy_expeditiondet`
--
ALTER TABLE `nxuy_expeditiondet`
  ADD CONSTRAINT `fk_expeditiondet_fk_expedition` FOREIGN KEY (`fk_expedition`) REFERENCES `nxuy_expedition` (`rowid`);

--
-- Contraintes pour la table `nxuy_expeditiondet_batch`
--
ALTER TABLE `nxuy_expeditiondet_batch`
  ADD CONSTRAINT `fk_expeditiondet_batch_fk_expeditiondet` FOREIGN KEY (`fk_expeditiondet`) REFERENCES `nxuy_expeditiondet` (`rowid`);

--
-- Contraintes pour la table `nxuy_facture`
--
ALTER TABLE `nxuy_facture`
  ADD CONSTRAINT `fk_facture_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `nxuy_facture` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `nxuy_projet` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `nxuy_societe` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `nxuy_user` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `nxuy_user` (`rowid`);

--
-- Contraintes pour la table `nxuy_facturedet`
--
ALTER TABLE `nxuy_facturedet`
  ADD CONSTRAINT `fk_facturedet_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `nxuy_facture` (`rowid`),
  ADD CONSTRAINT `fk_facturedet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `nxuy_c_units` (`rowid`);

--
-- Contraintes pour la table `nxuy_facturedet_rec`
--
ALTER TABLE `nxuy_facturedet_rec`
  ADD CONSTRAINT `fk_facturedet_rec_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `nxuy_c_units` (`rowid`);

--
-- Contraintes pour la table `nxuy_facture_fourn`
--
ALTER TABLE `nxuy_facture_fourn`
  ADD CONSTRAINT `fk_facture_fourn_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `nxuy_projet` (`rowid`),
  ADD CONSTRAINT `fk_facture_fourn_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `nxuy_societe` (`rowid`),
  ADD CONSTRAINT `fk_facture_fourn_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `nxuy_user` (`rowid`),
  ADD CONSTRAINT `fk_facture_fourn_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `nxuy_user` (`rowid`);

--
-- Contraintes pour la table `nxuy_facture_fourn_det`
--
ALTER TABLE `nxuy_facture_fourn_det`
  ADD CONSTRAINT `fk_facture_fourn_det_fk_facture` FOREIGN KEY (`fk_facture_fourn`) REFERENCES `nxuy_facture_fourn` (`rowid`),
  ADD CONSTRAINT `fk_facture_fourn_det_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `nxuy_c_units` (`rowid`);

--
-- Contraintes pour la table `nxuy_facture_rec`
--
ALTER TABLE `nxuy_facture_rec`
  ADD CONSTRAINT `fk_facture_rec_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `nxuy_projet` (`rowid`),
  ADD CONSTRAINT `fk_facture_rec_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `nxuy_societe` (`rowid`),
  ADD CONSTRAINT `fk_facture_rec_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `nxuy_user` (`rowid`);

--
-- Contraintes pour la table `nxuy_fichinter`
--
ALTER TABLE `nxuy_fichinter`
  ADD CONSTRAINT `fk_fichinter_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `nxuy_societe` (`rowid`);

--
-- Contraintes pour la table `nxuy_fichinterdet`
--
ALTER TABLE `nxuy_fichinterdet`
  ADD CONSTRAINT `fk_fichinterdet_fk_fichinter` FOREIGN KEY (`fk_fichinter`) REFERENCES `nxuy_fichinter` (`rowid`);

--
-- Contraintes pour la table `nxuy_livraison`
--
ALTER TABLE `nxuy_livraison`
  ADD CONSTRAINT `fk_livraison_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `nxuy_societe` (`rowid`),
  ADD CONSTRAINT `fk_livraison_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `nxuy_user` (`rowid`),
  ADD CONSTRAINT `fk_livraison_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `nxuy_user` (`rowid`);

--
-- Contraintes pour la table `nxuy_livraisondet`
--
ALTER TABLE `nxuy_livraisondet`
  ADD CONSTRAINT `fk_livraisondet_fk_livraison` FOREIGN KEY (`fk_livraison`) REFERENCES `nxuy_livraison` (`rowid`);

--
-- Contraintes pour la table `nxuy_paiement_facture`
--
ALTER TABLE `nxuy_paiement_facture`
  ADD CONSTRAINT `fk_paiement_facture_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `nxuy_facture` (`rowid`),
  ADD CONSTRAINT `fk_paiement_facture_fk_paiement` FOREIGN KEY (`fk_paiement`) REFERENCES `nxuy_paiement` (`rowid`);

--
-- Contraintes pour la table `nxuy_payment_salary`
--
ALTER TABLE `nxuy_payment_salary`
  ADD CONSTRAINT `fk_payment_salary_user` FOREIGN KEY (`fk_user`) REFERENCES `nxuy_user` (`rowid`);

--
-- Contraintes pour la table `nxuy_prelevement_facture`
--
ALTER TABLE `nxuy_prelevement_facture`
  ADD CONSTRAINT `fk_prelevement_facture_fk_prelevement_lignes` FOREIGN KEY (`fk_prelevement_lignes`) REFERENCES `nxuy_prelevement_lignes` (`rowid`);

--
-- Contraintes pour la table `nxuy_prelevement_lignes`
--
ALTER TABLE `nxuy_prelevement_lignes`
  ADD CONSTRAINT `fk_prelevement_lignes_fk_prelevement_bons` FOREIGN KEY (`fk_prelevement_bons`) REFERENCES `nxuy_prelevement_bons` (`rowid`);

--
-- Contraintes pour la table `nxuy_product`
--
ALTER TABLE `nxuy_product`
  ADD CONSTRAINT `fk_product_barcode_type` FOREIGN KEY (`fk_barcode_type`) REFERENCES `nxuy_c_barcode_type` (`rowid`),
  ADD CONSTRAINT `fk_product_default_warehouse` FOREIGN KEY (`fk_default_warehouse`) REFERENCES `nxuy_entrepot` (`rowid`),
  ADD CONSTRAINT `fk_product_fk_country` FOREIGN KEY (`fk_country`) REFERENCES `nxuy_c_country` (`rowid`),
  ADD CONSTRAINT `fk_product_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `nxuy_c_units` (`rowid`);

--
-- Contraintes pour la table `nxuy_product_batch`
--
ALTER TABLE `nxuy_product_batch`
  ADD CONSTRAINT `fk_product_batch_fk_product_stock` FOREIGN KEY (`fk_product_stock`) REFERENCES `nxuy_product_stock` (`rowid`);

--
-- Contraintes pour la table `nxuy_product_customer_price`
--
ALTER TABLE `nxuy_product_customer_price`
  ADD CONSTRAINT `fk_customer_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `nxuy_product` (`rowid`),
  ADD CONSTRAINT `fk_customer_price_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `nxuy_societe` (`rowid`),
  ADD CONSTRAINT `fk_product_customer_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `nxuy_product` (`rowid`),
  ADD CONSTRAINT `fk_product_customer_price_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `nxuy_societe` (`rowid`),
  ADD CONSTRAINT `fk_product_customer_price_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `nxuy_user` (`rowid`);

--
-- Contraintes pour la table `nxuy_product_fournisseur_price`
--
ALTER TABLE `nxuy_product_fournisseur_price`
  ADD CONSTRAINT `fk_product_fournisseur_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `nxuy_product` (`rowid`),
  ADD CONSTRAINT `fk_product_fournisseur_price_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `nxuy_user` (`rowid`);

--
-- Contraintes pour la table `nxuy_product_lang`
--
ALTER TABLE `nxuy_product_lang`
  ADD CONSTRAINT `fk_product_lang_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `nxuy_product` (`rowid`);

--
-- Contraintes pour la table `nxuy_product_price`
--
ALTER TABLE `nxuy_product_price`
  ADD CONSTRAINT `fk_product_price_product` FOREIGN KEY (`fk_product`) REFERENCES `nxuy_product` (`rowid`),
  ADD CONSTRAINT `fk_product_price_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `nxuy_user` (`rowid`);

--
-- Contraintes pour la table `nxuy_product_price_by_qty`
--
ALTER TABLE `nxuy_product_price_by_qty`
  ADD CONSTRAINT `fk_product_price_by_qty_fk_product_price` FOREIGN KEY (`fk_product_price`) REFERENCES `nxuy_product_price` (`rowid`);

--
-- Contraintes pour la table `nxuy_projet`
--
ALTER TABLE `nxuy_projet`
  ADD CONSTRAINT `fk_projet_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `nxuy_societe` (`rowid`);

--
-- Contraintes pour la table `nxuy_projet_task`
--
ALTER TABLE `nxuy_projet_task`
  ADD CONSTRAINT `fk_projet_task_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `nxuy_projet` (`rowid`),
  ADD CONSTRAINT `fk_projet_task_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `nxuy_user` (`rowid`),
  ADD CONSTRAINT `fk_projet_task_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `nxuy_user` (`rowid`);

--
-- Contraintes pour la table `nxuy_propal`
--
ALTER TABLE `nxuy_propal`
  ADD CONSTRAINT `fk_propal_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `nxuy_projet` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `nxuy_societe` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `nxuy_user` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_user_cloture` FOREIGN KEY (`fk_user_cloture`) REFERENCES `nxuy_user` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `nxuy_user` (`rowid`);

--
-- Contraintes pour la table `nxuy_propaldet`
--
ALTER TABLE `nxuy_propaldet`
  ADD CONSTRAINT `fk_propaldet_fk_propal` FOREIGN KEY (`fk_propal`) REFERENCES `nxuy_propal` (`rowid`),
  ADD CONSTRAINT `fk_propaldet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `nxuy_c_units` (`rowid`);

--
-- Contraintes pour la table `nxuy_resource`
--
ALTER TABLE `nxuy_resource`
  ADD CONSTRAINT `fk_resource_fk_country` FOREIGN KEY (`fk_country`) REFERENCES `nxuy_c_country` (`rowid`);

--
-- Contraintes pour la table `nxuy_societe_account`
--
ALTER TABLE `nxuy_societe_account`
  ADD CONSTRAINT `nxuy_societe_account_fk_societe` FOREIGN KEY (`fk_soc`) REFERENCES `nxuy_societe` (`rowid`),
  ADD CONSTRAINT `nxuy_societe_account_fk_website` FOREIGN KEY (`fk_website`) REFERENCES `nxuy_website` (`rowid`);

--
-- Contraintes pour la table `nxuy_societe_remise_except`
--
ALTER TABLE `nxuy_societe_remise_except`
  ADD CONSTRAINT `fk_soc_remise_fk_invoice_supplier_line` FOREIGN KEY (`fk_invoice_supplier_line`) REFERENCES `nxuy_facture_fourn_det` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `nxuy_facture` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_facture_line` FOREIGN KEY (`fk_facture_line`) REFERENCES `nxuy_facturedet` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `nxuy_facture` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_invoice_supplier` FOREIGN KEY (`fk_invoice_supplier`) REFERENCES `nxuy_facture_fourn` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_invoice_supplier_source` FOREIGN KEY (`fk_invoice_supplier`) REFERENCES `nxuy_facture_fourn` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `nxuy_societe` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `nxuy_user` (`rowid`);

--
-- Contraintes pour la table `nxuy_socpeople`
--
ALTER TABLE `nxuy_socpeople`
  ADD CONSTRAINT `fk_socpeople_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `nxuy_societe` (`rowid`),
  ADD CONSTRAINT `fk_socpeople_user_creat_user_rowid` FOREIGN KEY (`fk_user_creat`) REFERENCES `nxuy_user` (`rowid`);

--
-- Contraintes pour la table `nxuy_supplier_proposaldet`
--
ALTER TABLE `nxuy_supplier_proposaldet`
  ADD CONSTRAINT `fk_supplier_proposaldet_fk_supplier_proposal` FOREIGN KEY (`fk_supplier_proposal`) REFERENCES `nxuy_supplier_proposal` (`rowid`),
  ADD CONSTRAINT `fk_supplier_proposaldet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `nxuy_c_units` (`rowid`);

--
-- Contraintes pour la table `nxuy_ticket_msg`
--
ALTER TABLE `nxuy_ticket_msg`
  ADD CONSTRAINT `fk_ticket_msg_fk_track_id` FOREIGN KEY (`fk_track_id`) REFERENCES `nxuy_ticket` (`track_id`);

--
-- Contraintes pour la table `nxuy_usergroup_rights`
--
ALTER TABLE `nxuy_usergroup_rights`
  ADD CONSTRAINT `fk_usergroup_rights_fk_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `nxuy_usergroup` (`rowid`);

--
-- Contraintes pour la table `nxuy_usergroup_user`
--
ALTER TABLE `nxuy_usergroup_user`
  ADD CONSTRAINT `fk_usergroup_user_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `nxuy_user` (`rowid`),
  ADD CONSTRAINT `fk_usergroup_user_fk_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `nxuy_usergroup` (`rowid`);

--
-- Contraintes pour la table `nxuy_user_rights`
--
ALTER TABLE `nxuy_user_rights`
  ADD CONSTRAINT `fk_user_rights_fk_user_user` FOREIGN KEY (`fk_user`) REFERENCES `nxuy_user` (`rowid`);

--
-- Contraintes pour la table `nxuy_website_page`
--
ALTER TABLE `nxuy_website_page`
  ADD CONSTRAINT `fk_website_page_website` FOREIGN KEY (`fk_website`) REFERENCES `nxuy_website` (`rowid`);
COMMIT;

