-- Table structure for table `ps_stock`
--

CREATE TABLE `ps_stock` (
  `id_stock` int(11) UNSIGNED NOT NULL,
  `id_warehouse` int(11) UNSIGNED NOT NULL,
  `id_product` int(11) UNSIGNED NOT NULL,
  `id_product_attribute` int(11) UNSIGNED NOT NULL,
  `reference` varchar(64) NOT NULL,
  `ean13` varchar(13) DEFAULT NULL,
  `isbn` varchar(32) DEFAULT NULL,
  `upc` varchar(12) DEFAULT NULL,
  `physical_quantity` int(11) UNSIGNED NOT NULL,
  `usable_quantity` int(11) UNSIGNED NOT NULL,
  `price_te` decimal(20,6) DEFAULT '0.000000'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_stock_available`
--

CREATE TABLE `ps_stock_available` (
  `id_stock_available` int(11) UNSIGNED NOT NULL,
  `id_product` int(11) UNSIGNED NOT NULL,
  `id_product_attribute` int(11) UNSIGNED NOT NULL,
  `id_shop` int(11) UNSIGNED NOT NULL,
  `id_shop_group` int(11) UNSIGNED NOT NULL,
  `quantity` int(10) NOT NULL DEFAULT '0',
  `physical_quantity` int(11) NOT NULL DEFAULT '0',
  `reserved_quantity` int(11) NOT NULL DEFAULT '0',
  `depends_on_stock` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
  `out_of_stock` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
  `location` varchar(255) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_stock_available`
--

INSERT INTO `ps_stock_available` (`id_stock_available`, `id_product`, `id_product_attribute`, `id_shop`, `id_shop_group`, `quantity`, `physical_quantity`, `reserved_quantity`, `depends_on_stock`, `out_of_stock`, `location`) VALUES
(60, 18, 0, 1, 0, 0, 0, 0, 0, 0, ''),
(61, 17, 0, 1, 0, 0, 0, 0, 0, 0, ''),
(62, 16, 0, 1, 0, 0, 0, 0, 0, 0, ''),
(63, 11, 0, 1, 0, 0, 0, 0, 0, 0, ''),
(64, 10, 0, 1, 0, 0, 0, 0, 0, 0, ''),
(65, 9, 0, 1, 0, 0, 0, 0, 0, 0, ''),
(66, 5, 0, 1, 0, 0, 0, 0, 0, 0, ''),
(67, 4, 0, 1, 0, 0, 0, 0, 0, 0, ''),
(68, 3, 0, 1, 0, 0, 0, 0, 0, 0, ''),
(69, 2, 0, 1, 0, 0, 0, 0, 0, 0, ''),
(70, 1, 0, 1, 0, 0, 0, 0, 0, 0, ''),
(72, 22, 0, 1, 0, 94, 95, 1, 0, 0, ''),
(73, 23, 0, 1, 0, 0, 0, 0, 0, 0, ''),
(74, 24, 0, 1, 0, 0, 3, 3, 0, 0, ''),
(75, 25, 0, 1, 0, 90, 91, 1, 0, 0, ''),
(76, 26, 0, 1, 0, 90, 92, 2, 0, 2, ''),
(77, 27, 0, 1, 0, 99, 99, 0, 0, 2, ''),
(78, 28, 0, 1, 0, 35, 35, 0, 0, 2, ''),
(79, 29, 0, 1, 0, 35, 35, 0, 0, 2, ''),
(80, 30, 0, 1, 0, 35, 35, 0, 0, 2, ''),
(81, 31, 0, 1, 0, 20, 20, 0, 0, 2, ''),
(86, 36, 0, 1, 0, 0, 2, 2, 0, 0, ''),
(87, 37, 0, 1, 0, 35, 35, 0, 0, 2, ''),
(89, 39, 0, 1, 0, 199, 200, 1, 0, 2, ''),
(91, 41, 0, 1, 0, 3231, 3231, 0, 0, 2, ''),
(92, 42, 0, 1, 0, 0, 5, 5, 0, 0, ''),
(93, 43, 0, 1, 0, 168, 170, 2, 0, 2, ''),
(94, 44, 0, 1, 0, 0, 1, 1, 0, 0, ''),
(95, 45, 0, 1, 0, 0, 6, 6, 0, 0, ''),
(96, 46, 0, 1, 0, 0, 1, 1, 0, 2, ''),
(101, 51, 0, 1, 0, 30, 30, 0, 0, 2, ''),
(102, 52, 0, 1, 0, 35, 35, 0, 0, 2, ''),
(103, 53, 0, 1, 0, 35, 35, 0, 0, 2, ''),
(104, 54, 0, 1, 0, 35, 35, 0, 0, 2, ''),
(105, 55, 0, 1, 0, 35, 35, 0, 0, 2, ''),
(106, 56, 0, 1, 0, 25, 25, 0, 0, 2, ''),
(107, 57, 0, 1, 0, 28, 28, 0, 0, 2, ''),
(109, 59, 0, 1, 0, 30, 30, 0, 0, 2, ''),
(110, 60, 0, 1, 0, 25, 25, 0, 0, 2, ''),
(111, 61, 0, 1, 0, 25, 25, 0, 0, 2, ''),
(112, 62, 0, 1, 0, 29, 29, 0, 0, 2, ''),
(113, 63, 0, 1, 0, 30, 30, 0, 0, 2, ''),
(114, 64, 0, 1, 0, 35, 35, 0, 0, 2, ''),
(115, 65, 0, 1, 0, 0, 0, 0, 0, 0, ''),
(117, 67, 0, 1, 0, 25, 25, 0, 0, 2, ''),
(119, 69, 0, 1, 0, 100, 100, 0, 0, 2, ''),
(121, 71, 0, 1, 0, 100, 100, 0, 0, 0, ''),
(122, 72, 0, 1, 0, 87, 100, 13, 0, 2, ''),
(123, 73, 0, 1, 0, 1798, 1798, 0, 0, 2, ''),
(124, 74, 0, 1, 0, 1218, 1218, 0, 0, 2, ''),
(126, 76, 0, 1, 0, 410, 410, 0, 0, 2, ''),
(127, 77, 0, 1, 0, 5760, 5760, 0, 0, 2, ''),
(128, 78, 0, 1, 0, 1971, 1971, 0, 0, 2, ''),
(129, 79, 0, 1, 0, 2159, 2159, 0, 0, 2, ''),
(130, 80, 0, 1, 0, 2009, 2009, 0, 0, 2, ''),
(131, 81, 0, 1, 0, 100, 100, 0, 0, 2, '');

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

--
-- Table structure for table `ps_stock_mvt`
--

CREATE TABLE `ps_stock_mvt` (
  `id_stock_mvt` bigint(20) NOT NULL,
  `id_stock` int(11) NOT NULL,
  `id_order` int(11) DEFAULT NULL,
  `id_supply_order` int(11) DEFAULT NULL,
  `id_stock_mvt_reason` int(11) NOT NULL,
  `id_employee` int(11) NOT NULL,
  `employee_lastname` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `employee_firstname` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `physical_quantity` int(11) NOT NULL,
  `date_add` datetime NOT NULL,
  `sign` smallint(6) NOT NULL DEFAULT '1',
  `price_te` decimal(20,6) DEFAULT '0.000000',
  `last_wa` decimal(20,6) DEFAULT '0.000000',
  `current_wa` decimal(20,6) DEFAULT '0.000000',
  `referer` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `ps_stock_mvt`
--

INSERT INTO `ps_stock_mvt` (`id_stock_mvt`, `id_stock`, `id_order`, `id_supply_order`, `id_stock_mvt_reason`, `id_employee`, `employee_lastname`, `employee_firstname`, `physical_quantity`, `date_add`, `sign`, `price_te`, `last_wa`, `current_wa`, `referer`) VALUES
(1, 72, NULL, NULL, 11, 1, 'ACV', 'Administrador', 97, '2020-11-14 21:52:50', 1, 0.000000, 0.000000, 0.000000, NULL),
(2, 73, NULL, NULL, 11, 1, 'ACV', 'Administrador', 100, '2020-11-14 22:46:37', 1, 0.000000, 0.000000, 0.000000, NULL),
(3, 74, NULL, NULL, 11, 1, 'ACV', 'Administrador', 96, '2020-11-14 22:50:54', 1, 0.000000, 0.000000, 0.000000, NULL),
(4, 75, NULL, NULL, 11, 1, 'ACV', 'Administrador', 96, '2020-11-14 22:53:23', 1, 0.000000, 0.000000, 0.000000, NULL),
(5, 76, NULL, NULL, 11, 1, 'ACV', 'Administrador', 94, '2020-11-14 22:55:58', 1, 0.000000, 0.000000, 0.000000, NULL),
(6, 77, NULL, NULL, 11, 1, 'ACV', 'Administrador', 99, '2020-11-14 22:58:17', 1, 0.000000, 0.000000, 0.000000, NULL),
(7, 78, NULL, NULL, 11, 1, 'ACV', 'Administrador', 199, '2020-11-14 23:01:17', 1, 0.000000, 0.000000, 0.000000, NULL),
(8, 79, NULL, NULL, 11, 1, 'ACV', 'Administrador', 200, '2020-11-14 23:05:54', 1, 0.000000, 0.000000, 0.000000, NULL),
(9, 80, NULL, NULL, 11, 1, 'ACV', 'Administrador', 200, '2020-11-14 23:08:07', 1, 0.000000, 0.000000, 0.000000, NULL),
(10, 81, NULL, NULL, 11, 1, 'ACV', 'Administrador', 200, '2020-11-14 23:09:53', 1, 0.000000, 0.000000, 0.000000, NULL),
(11, 83, NULL, NULL, 11, 1, 'ACV', 'Administrador', 140, '2020-11-14 23:11:46', 1, 0.000000, 0.000000, 0.000000, NULL),
(12, 86, NULL, NULL, 11, 1, 'ACV', 'Administrador', 995, '2020-11-14 23:14:52', 1, 0.000000, 0.000000, 0.000000, NULL),
(13, 87, NULL, NULL, 11, 1, 'ACV', 'Administrador', 1000, '2020-11-14 23:17:35', 1, 0.000000, 0.000000, 0.000000, NULL),
(14, 88, NULL, NULL, 11, 1, 'ACV', 'Administrador', 200, '2020-11-14 23:21:50', 1, 0.000000, 0.000000, 0.000000, NULL),
(15, 89, NULL, NULL, 11, 1, 'ACV', 'Administrador', 200, '2020-11-14 23:26:05', 1, 0.000000, 0.000000, 0.000000, NULL),
(16, 91, NULL, NULL, 11, 1, 'ACV', 'Administrador', 3231, '2020-11-15 20:29:14', 1, 0.000000, 0.000000, 0.000000, NULL),
(17, 92, NULL, NULL, 11, 1, 'ACV', 'Administrador', 2208, '2020-11-15 20:38:28', 1, 0.000000, 0.000000, 0.000000, NULL),
(18, 93, NULL, NULL, 11, 1, 'ACV', 'Administrador', 821, '2020-11-15 20:43:00', 1, 0.000000, 0.000000, 0.000000, NULL),
(19, 94, NULL, NULL, 11, 1, 'ACV', 'Administrador', 980, '2020-11-15 20:49:00', 1, 0.000000, 0.000000, 0.000000, NULL),
(20, 95, NULL, NULL, 11, 1, 'ACV', 'Administrador', 1040, '2020-11-15 20:53:41', 1, 0.000000, 0.000000, 0.000000, NULL),
(21, 96, NULL, NULL, 11, 1, 'ACV', 'Administrador', 700, '2020-11-15 21:01:44', 1, 0.000000, 0.000000, 0.000000, NULL),
(22, 97, NULL, NULL, 11, 1, 'ACV', 'Administrador', 200, '2020-11-15 21:10:47', 1, 0.000000, 0.000000, 0.000000, NULL),
(23, 98, NULL, NULL, 11, 1, 'ACV', 'Administrador', 200, '2020-11-15 21:18:56', 1, 0.000000, 0.000000, 0.000000, NULL),
(24, 99, NULL, NULL, 11, 1, 'ACV', 'Administrador', 40, '2020-12-10 15:41:29', 1, 0.000000, 0.000000, 0.000000, NULL),
(25, 100, NULL, NULL, 11, 1, 'ACV', 'Administrador', 40, '2020-12-10 16:08:10', 1, 0.000000, 0.000000, 0.000000, NULL),
(26, 101, NULL, NULL, 11, 1, 'ACV', 'Administrador', 30, '2021-02-01 15:20:51', 1, 0.000000, 0.000000, 0.000000, NULL),
(27, 102, NULL, NULL, 11, 1, 'ACV', 'Administrador', 35, '2021-02-01 15:31:51', 1, 0.000000, 0.000000, 0.000000, NULL),
(28, 87, NULL, NULL, 11, 1, 'ACV', 'Administrador', 965, '2021-02-01 15:47:16', -1, 0.000000, 0.000000, 0.000000, NULL),
(29, 78, NULL, NULL, 11, 1, 'ACV', 'Administrador', 164, '2021-02-01 15:55:21', -1, 0.000000, 0.000000, 0.000000, NULL),
(30, 79, NULL, NULL, 11, 1, 'ACV', 'Administrador', 165, '2021-02-01 16:01:03', -1, 0.000000, 0.000000, 0.000000, NULL),
(31, 103, NULL, NULL, 11, 1, 'ACV', 'Administrador', 35, '2021-02-01 16:07:03', 1, 0.000000, 0.000000, 0.000000, NULL),
(32, 80, NULL, NULL, 11, 1, 'ACV', 'Administrador', 165, '2021-02-01 16:12:59', -1, 0.000000, 0.000000, 0.000000, NULL),
(33, 81, NULL, NULL, 11, 1, 'ACV', 'Administrador', 180, '2021-02-01 16:16:04', -1, 0.000000, 0.000000, 0.000000, NULL),
(34, 104, NULL, NULL, 11, 1, 'ACV', 'Administrador', 35, '2021-02-01 16:19:34', 1, 0.000000, 0.000000, 0.000000, NULL),
(35, 105, NULL, NULL, 11, 1, 'ACV', 'Administrador', 35, '2021-02-01 16:23:05', 1, 0.000000, 0.000000, 0.000000, NULL),
(36, 95, 16, NULL, 3, 1, 'ACV', 'Administrador', 1, '2021-03-03 14:01:10', -1, 0.000000, 0.000000, 0.000000, NULL),
(37, 95, 16, NULL, 9, 1, 'ACV', 'Administrador', 1, '2021-03-03 14:01:50', 1, 0.000000, 0.000000, 0.000000, NULL),
(38, 73, 24, NULL, 3, 1, 'ACV', 'Administrador', 3, '2021-03-29 19:07:17', -1, 0.000000, 0.000000, 0.000000, NULL),
(39, 93, 24, NULL, 3, 1, 'ACV', 'Administrador', 2, '2021-03-29 19:07:18', -1, 0.000000, 0.000000, 0.000000, NULL),
(40, 74, 24, NULL, 3, 1, 'ACV', 'Administrador', 2, '2021-03-29 19:07:18', -1, 0.000000, 0.000000, 0.000000, NULL),
(41, 106, NULL, NULL, 11, 1, 'ACV', 'Administrador', 25, '2021-04-12 11:18:27', 1, 0.000000, 0.000000, 0.000000, NULL),
(42, 107, NULL, NULL, 11, 1, 'ACV', 'Administrador', 28, '2021-04-12 11:32:18', 1, 0.000000, 0.000000, 0.000000, NULL),
(43, 109, NULL, NULL, 11, 1, 'ACV', 'Administrador', 30, '2021-04-12 11:39:32', 1, 0.000000, 0.000000, 0.000000, NULL),
(44, 110, NULL, NULL, 11, 1, 'ACV', 'Administrador', 25, '2021-04-12 11:54:16', 1, 0.000000, 0.000000, 0.000000, NULL),
(45, 111, NULL, NULL, 11, 1, 'ACV', 'Administrador', 25, '2021-04-12 19:50:52', 1, 0.000000, 0.000000, 0.000000, NULL),
(46, 112, NULL, NULL, 11, 1, 'ACV', 'Administrador', 30, '2021-04-12 19:52:13', 1, 0.000000, 0.000000, 0.000000, NULL),
(47, 113, NULL, NULL, 11, 1, 'ACV', 'Administrador', 30, '2021-04-12 19:54:28', 1, 0.000000, 0.000000, 0.000000, NULL),
(48, 114, NULL, NULL, 11, 1, 'ACV', 'Administrador', 35, '2021-04-12 19:55:40', 1, 0.000000, 0.000000, 0.000000, NULL),
(49, 95, 26, NULL, 3, 1, 'ACV', 'Administrador', 4, '2021-06-02 16:46:17', -1, 0.000000, 0.000000, 0.000000, NULL),
(50, 93, 26, NULL, 3, 1, 'ACV', 'Administrador', 2, '2021-06-02 16:46:17', -1, 0.000000, 0.000000, 0.000000, NULL),
(51, 86, 26, NULL, 3, 1, 'ACV', 'Administrador', 2, '2021-06-02 16:46:17', -1, 0.000000, 0.000000, 0.000000, NULL),
(52, 74, 31, NULL, 3, 1, 'ACV', 'Administrador', 1, '2021-10-22 16:07:13', -1, 0.000000, 0.000000, 0.000000, NULL),
(53, 117, NULL, NULL, 11, 1, 'ACV', 'Administrador', 25, '2021-11-19 19:18:28', 1, 0.000000, 0.000000, 0.000000, NULL),
(54, 118, NULL, NULL, 11, 1, 'ACV', 'Administrador', 20, '2021-12-27 18:15:21', 1, 0.000000, 0.000000, 0.000000, NULL),
(55, 94, 33, NULL, 3, 1, 'ACV', 'Administrador', 1, '2022-03-18 17:01:18', -1, 0.000000, 0.000000, 0.000000, NULL),
(56, 72, 33, NULL, 3, 1, 'ACV', 'Administrador', 1, '2022-03-18 17:01:18', -1, 0.000000, 0.000000, 0.000000, NULL),
(57, 75, 33, NULL, 3, 1, 'ACV', 'Administrador', 1, '2022-03-18 17:01:18', -1, 0.000000, 0.000000, 0.000000, NULL),
(58, 93, 33, NULL, 3, 1, 'ACV', 'Administrador', 1, '2022-03-18 17:01:18', -1, 0.000000, 0.000000, 0.000000, NULL),
(59, 86, 33, NULL, 3, 1, 'ACV', 'Administrador', 1, '2022-03-18 17:01:18', -1, 0.000000, 0.000000, 0.000000, NULL),
(60, 86, 34, NULL, 3, 1, 'ACV', 'Administrador', 1, '2022-05-19 12:43:06', -1, 0.000000, 0.000000, 0.000000, NULL),
(61, 73, NULL, NULL, 11, 1, 'ACV', 'Administrador', 96, '2022-06-02 17:10:59', -1, 0.000000, 0.000000, 0.000000, NULL),
(62, 74, NULL, NULL, 11, 1, 'ACV', 'Administrador', 90, '2022-06-02 17:11:46', -1, 0.000000, 0.000000, 0.000000, NULL),
(63, 93, 36, NULL, 3, 1, 'ACV', 'Administrador', 2, '2022-08-25 22:23:54', -1, 0.000000, 0.000000, 0.000000, NULL),
(64, 95, NULL, NULL, 11, 1, 'ACV', 'Administrador', 1028, '2022-09-19 20:48:59', -1, 0.000000, 0.000000, 0.000000, NULL),
(65, 75, NULL, NULL, 11, 1, 'ACV', 'Administrador', 94, '2022-09-19 20:52:53', -1, 0.000000, 0.000000, 0.000000, NULL),
(66, 92, NULL, NULL, 11, 1, 'ACV', 'Administrador', 2200, '2022-09-19 21:01:44', -1, 0.000000, 0.000000, 0.000000, NULL),
(67, 96, NULL, NULL, 11, 1, 'ACV', 'Administrador', 697, '2022-09-19 21:04:52', -1, 0.000000, 0.000000, 0.000000, NULL),
(68, 86, NULL, NULL, 11, 1, 'ACV', 'Administrador', 989, '2022-09-19 21:10:33', -1, 0.000000, 0.000000, 0.000000, NULL),
(69, 94, NULL, NULL, 11, 1, 'ACV', 'Administrador', 977, '2022-09-19 21:14:22', -1, 0.000000, 0.000000, 0.000000, NULL),
(70, 119, NULL, NULL, 11, 1, 'ACV', 'Administrador', 100, '2022-09-20 12:12:01', 1, 0.000000, 0.000000, 0.000000, NULL),
(71, 118, NULL, NULL, 11, 1, 'ACV', 'Administrador', 19, '2023-08-23 10:52:37', -1, 0.000000, 0.000000, 0.000000, NULL),
(72, 118, NULL, NULL, 11, 1, 'ACV', 'Administrador', 100, '2023-08-23 10:53:05', 1, 0.000000, 0.000000, 0.000000, NULL),
(73, 121, NULL, NULL, 11, 1, 'ACV', 'Administrador', 100, '2023-08-23 11:10:23', 1, 0.000000, 0.000000, 0.000000, NULL),
(74, 122, NULL, NULL, 11, 1, 'ACV', 'Administrador', 100, '2023-08-23 11:49:27', 1, 0.000000, 0.000000, 0.000000, NULL),
(75, 121, NULL, NULL, 11, 1, 'ACV', 'Administrador', 100, '2023-08-29 18:00:40', -1, 0.000000, 0.000000, 0.000000, NULL),
(76, 121, NULL, NULL, 11, 1, 'ACV', 'Administrador', 100, '2023-08-29 18:00:57', 1, 0.000000, 0.000000, 0.000000, NULL),
(77, 112, 37, NULL, 3, 1, 'ACV', 'Administrador', 1, '2023-11-28 13:04:11', -1, 0.000000, 0.000000, 0.000000, NULL),
(78, 123, NULL, NULL, 11, 1, 'ACV', 'Administrador', 1600, '2024-02-09 17:49:56', 1, 0.000000, 0.000000, 0.000000, NULL),
(79, 123, NULL, NULL, 11, 1, 'ACV', 'Administrador', 198, '2024-02-09 18:05:45', 1, 0.000000, 0.000000, 0.000000, NULL),
(80, 124, NULL, NULL, 11, 1, 'ACV', 'Administrador', 1218, '2024-02-09 18:14:14', 1, 0.000000, 0.000000, 0.000000, NULL),
(81, 126, NULL, NULL, 11, 1, 'ACV', 'Administrador', 410, '2024-02-09 18:21:22', 1, 0.000000, 0.000000, 0.000000, NULL),
(82, 127, NULL, NULL, 11, 1, 'ACV', 'Administrador', 5760, '2024-02-09 18:31:31', 1, 0.000000, 0.000000, 0.000000, NULL),
(83, 128, NULL, NULL, 11, 1, 'ACV', 'Administrador', 1974, '2024-02-09 18:40:24', 1, 0.000000, 0.000000, 0.000000, NULL),
(84, 129, NULL, NULL, 11, 1, 'ACV', 'Administrador', 2160, '2024-02-09 18:49:09', 1, 0.000000, 0.000000, 0.000000, NULL),
(85, 130, NULL, NULL, 11, 1, 'ACV', 'Administrador', 2010, '2024-02-09 19:00:36', 1, 0.000000, 0.000000, 0.000000, NULL),
(86, 93, NULL, NULL, 11, 1, 'ACV', 'Administrador', 644, '2024-02-09 19:42:31', -1, 0.000000, 0.000000, 0.000000, NULL),
(87, 75, NULL, NULL, 11, 1, 'ACV', 'Administrador', 90, '2024-02-09 19:45:01', 1, 0.000000, 0.000000, 0.000000, NULL),
(88, 95, NULL, NULL, 11, 1, 'ACV', 'Administrador', 240, '2024-02-09 19:47:34', 1, 0.000000, 0.000000, 0.000000, NULL),
(89, 130, 40, NULL, 3, 1, 'ACV', 'Administrador', 1, '2024-03-18 08:15:09', -1, 0.000000, 0.000000, 0.000000, NULL),
(90, 129, 40, NULL, 3, 1, 'ACV', 'Administrador', 1, '2024-03-18 08:15:09', -1, 0.000000, 0.000000, 0.000000, NULL),
(91, 128, 40, NULL, 3, 1, 'ACV', 'Administrador', 2, '2024-03-18 08:15:09', -1, 0.000000, 0.000000, 0.000000, NULL),
(92, 131, NULL, NULL, 11, 1, 'ACV', 'Administrador', 100, '2024-04-12 10:45:31', 1, 0.000000, 0.000000, 0.000000, NULL),
(93, 95, NULL, NULL, 11, 1, 'ACV', 'Administrador', 240, '2024-05-10 16:50:11', -1, 0.000000, 0.000000, 0.000000, NULL),
(94, 128, 41, NULL, 3, 1, 'ACV', 'Administrador', 1, '2024-10-30 12:30:32', -1, 0.000000, 0.000000, 0.000000, NULL);

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

--
-- Table structure for table `ps_stock_mvt_reason`
--

CREATE TABLE `ps_stock_mvt_reason` (
  `id_stock_mvt_reason` int(11) UNSIGNED NOT NULL,
  `sign` tinyint(1) NOT NULL DEFAULT '1',
  `date_add` datetime NOT NULL,
  `date_upd` datetime NOT NULL,
  `deleted` tinyint(1) UNSIGNED NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_stock_mvt_reason`
--

INSERT INTO `ps_stock_mvt_reason` (`id_stock_mvt_reason`, `sign`, `date_add`, `date_upd`, `deleted`) VALUES
(1, 1, '2020-11-14 18:14:15', '2020-11-14 18:14:15', 0),
(2, -1, '2020-11-14 18:14:15', '2020-11-14 18:14:15', 0),
(3, -1, '2020-11-14 18:14:15', '2020-11-14 18:14:15', 0),
(4, -1, '2020-11-14 18:14:15', '2020-11-14 18:14:15', 0),
(5, 1, '2020-11-14 18:14:15', '2020-11-14 18:14:15', 0),
(6, -1, '2020-11-14 18:14:15', '2020-11-14 18:14:15', 0),
(7, 1, '2020-11-14 18:14:15', '2020-11-14 18:14:15', 0),
(8, 1, '2020-11-14 18:14:15', '2020-11-14 18:14:15', 0),
(9, 1, '2020-11-14 18:14:15', '2020-11-14 18:14:15', 0),
(10, 1, '2020-11-14 18:14:15', '2020-11-14 18:14:15', 0),
(11, 1, '2020-11-14 18:14:15', '2020-11-14 18:14:15', 0),
(12, -1, '2020-11-14 18:14:15', '2020-11-14 18:14:15', 0);

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

--
-- Table structure for table `ps_stock_mvt_reason_lang`
--

CREATE TABLE `ps_stock_mvt_reason_lang` (
  `id_stock_mvt_reason` int(11) UNSIGNED NOT NULL,
  `id_lang` int(11) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_stock_mvt_reason_lang`
--

INSERT INTO `ps_stock_mvt_reason_lang` (`id_stock_mvt_reason`, `id_lang`, `name`) VALUES
(1, 1, 'Aumentar'),
(1, 2, 'Increase'),
(2, 1, 'Diminuir'),
(2, 2, 'Decrease'),
(3, 1, 'Encomenda de Cliente'),
(3, 2, 'Customer Order'),
(4, 1, 'Regulation following an inventory of stock'),
(4, 2, 'Regulation following an inventory of stock'),
(5, 1, 'Regulation following an inventory of stock'),
(5, 2, 'Regulation following an inventory of stock'),
(6, 1, 'Transferir para outro armazém'),
(6, 2, 'Transfer to another warehouse'),
(7, 1, 'Transferir de outro armazém'),
(7, 2, 'Transfer from another warehouse'),
(8, 1, 'Pedido de fornecimento'),
(8, 2, 'Supply Order'),
(9, 1, 'Encomenda de Cliente'),
(9, 2, 'Customer Order'),
(10, 1, 'Devolução do produto'),
(10, 2, 'Product return'),
(11, 1, 'Employee Edition'),
(11, 2, 'Employee Edition'),
(12, 1, 'Employee Edition'),
(12, 2, 'Employee Edition');

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

--
-- Table structure for table `ps_store`
--

CREATE TABLE `ps_store` (
  `id_store` int(10) UNSIGNED NOT NULL,
  `id_country` int(10) UNSIGNED NOT NULL,
  `id_state` int(10) UNSIGNED DEFAULT NULL,
  `city` varchar(64) NOT NULL,
  `postcode` varchar(12) NOT NULL,
  `latitude` decimal(13,8) DEFAULT NULL,
  `longitude` decimal(13,8) DEFAULT NULL,
  `phone` varchar(16) DEFAULT NULL,
  `fax` varchar(16) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `active` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
  `date_add` datetime NOT NULL,
  `date_upd` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_store`
--

INSERT INTO `ps_store` (`id_store`, `id_country`, `id_state`, `city`, `postcode`, `latitude`, `longitude`, `phone`, `fax`, `email`, `active`, `date_add`, `date_upd`) VALUES
(1, 15, 325, 'Vila de Frades', '7960-421', 25.76500500, -80.24379700, '+351 935109541', '', 'comercial@vinhodetalha.com', 1, '2020-11-14 18:16:02', '2023-10-10 09:29:17');

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

--
-- Table structure for table `ps_store_lang`
--

CREATE TABLE `ps_store_lang` (
  `id_store` int(11) UNSIGNED NOT NULL,
  `id_lang` int(11) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `address1` varchar(255) NOT NULL,
  `address2` varchar(255) DEFAULT NULL,
  `hours` text,
  `note` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_store_lang`
--

INSERT INTO `ps_store_lang` (`id_store`, `id_lang`, `name`, `address1`, `address2`, `hours`, `note`) VALUES
(1, 1, 'Talha de Frades', 'Praça 25 de Abril nº 12', '', '[[\"Por favor contate-nos: 935109541\"],[\"Por favor contate-nos: 935109541\"],[\"Por favor contate-nos: 935109541\"],[\"Por favor contate-nos: 935109541\"],[\"Por favor contate-nos: 935109541\"],[\"Por favor contate-nos: 935109541\"],[\"Por favor contate-nos: 935109541\"]]', ''),
(1, 2, 'ACV - Produção e Comércio de Vinho de Talha, Lda.', 'Rua de Dom Frei Amador Arrais 9, Loja 4', '', '[[\"\"],[\"\"],[\"\"],[\"\"],[\"\"],[\"\"],[\"\"]]', 'Estimado cliente, devido à presente situação pandémica, a adega não está aberta ao público, mas a nossa equipa está na mesma a funcionar em pleno.\r\nPara qualquer informação por favor entre em contato connosco.');

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

--
-- Table structure for table `ps_store_shop`
--

CREATE TABLE `ps_store_shop` (
  `id_store` int(11) UNSIGNED NOT NULL,
  `id_shop` int(11) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_store_shop`
--

INSERT INTO `ps_store_shop` (`id_store`, `id_shop`) VALUES
(1, 1);

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

--
-- Table structure for table `ps_supplier`
--

CREATE TABLE `ps_supplier` (
  `id_supplier` int(10) UNSIGNED NOT NULL,
  `name` varchar(64) NOT NULL,
  `date_add` datetime NOT NULL,
  `date_upd` datetime NOT NULL,
  `active` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_supplier_lang`
--

CREATE TABLE `ps_supplier_lang` (
  `id_supplier` int(10) UNSIGNED NOT NULL,
  `id_lang` int(10) UNSIGNED NOT NULL,
  `description` text,
  `meta_title` varchar(255) DEFAULT NULL,
  `meta_keywords` varchar(255) DEFAULT NULL,
  `meta_description` varchar(512) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_supplier_shop`
--

CREATE TABLE `ps_supplier_shop` (
  `id_supplier` int(11) UNSIGNED NOT NULL,
  `id_shop` int(11) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_supply_order`
--

CREATE TABLE `ps_supply_order` (
  `id_supply_order` int(11) UNSIGNED NOT NULL,
  `id_supplier` int(11) UNSIGNED NOT NULL,
  `supplier_name` varchar(64) NOT NULL,
  `id_lang` int(11) UNSIGNED NOT NULL,
  `id_warehouse` int(11) UNSIGNED NOT NULL,
  `id_supply_order_state` int(11) UNSIGNED NOT NULL,
  `id_currency` int(11) UNSIGNED NOT NULL,
  `id_ref_currency` int(11) UNSIGNED NOT NULL,
  `reference` varchar(64) NOT NULL,
  `date_add` datetime NOT NULL,
  `date_upd` datetime NOT NULL,
  `date_delivery_expected` datetime DEFAULT NULL,
  `total_te` decimal(20,6) DEFAULT '0.000000',
  `total_with_discount_te` decimal(20,6) DEFAULT '0.000000',
  `total_tax` decimal(20,6) DEFAULT '0.000000',
  `total_ti` decimal(20,6) DEFAULT '0.000000',
  `discount_rate` decimal(20,6) DEFAULT '0.000000',
  `discount_value_te` decimal(20,6) DEFAULT '0.000000',
  `is_template` tinyint(1) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_supply_order_detail`
--

CREATE TABLE `ps_supply_order_detail` (
  `id_supply_order_detail` int(11) UNSIGNED NOT NULL,
  `id_supply_order` int(11) UNSIGNED NOT NULL,
  `id_currency` int(11) UNSIGNED NOT NULL,
  `id_product` int(11) UNSIGNED NOT NULL,
  `id_product_attribute` int(11) UNSIGNED NOT NULL,
  `reference` varchar(64) NOT NULL,
  `supplier_reference` varchar(64) NOT NULL,
  `name` varchar(128) NOT NULL,
  `ean13` varchar(13) DEFAULT NULL,
  `isbn` varchar(32) DEFAULT NULL,
  `upc` varchar(12) DEFAULT NULL,
  `exchange_rate` decimal(20,6) DEFAULT '0.000000',
  `unit_price_te` decimal(20,6) DEFAULT '0.000000',
  `quantity_expected` int(11) UNSIGNED NOT NULL,
  `quantity_received` int(11) UNSIGNED NOT NULL,
  `price_te` decimal(20,6) DEFAULT '0.000000',
  `discount_rate` decimal(20,6) DEFAULT '0.000000',
  `discount_value_te` decimal(20,6) DEFAULT '0.000000',
  `price_with_discount_te` decimal(20,6) DEFAULT '0.000000',
  `tax_rate` decimal(20,6) DEFAULT '0.000000',
  `tax_value` decimal(20,6) DEFAULT '0.000000',
  `price_ti` decimal(20,6) DEFAULT '0.000000',
  `tax_value_with_order_discount` decimal(20,6) DEFAULT '0.000000',
  `price_with_order_discount_te` decimal(20,6) DEFAULT '0.000000'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_supply_order_history`
--

CREATE TABLE `ps_supply_order_history` (
  `id_supply_order_history` int(11) UNSIGNED NOT NULL,
  `id_supply_order` int(11) UNSIGNED NOT NULL,
  `id_employee` int(11) UNSIGNED NOT NULL,
  `employee_lastname` varchar(255) DEFAULT '',
  `employee_firstname` varchar(255) DEFAULT '',
  `id_state` int(11) UNSIGNED NOT NULL,
  `date_add` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_supply_order_receipt_history`
--

CREATE TABLE `ps_supply_order_receipt_history` (
  `id_supply_order_receipt_history` int(11) UNSIGNED NOT NULL,
  `id_supply_order_detail` int(11) UNSIGNED NOT NULL,
  `id_employee` int(11) UNSIGNED NOT NULL,
  `employee_lastname` varchar(255) DEFAULT '',
  `employee_firstname` varchar(255) DEFAULT '',
  `id_supply_order_state` int(11) UNSIGNED NOT NULL,
  `quantity` int(11) UNSIGNED NOT NULL,
  `date_add` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_supply_order_state`
--

CREATE TABLE `ps_supply_order_state` (
  `id_supply_order_state` int(11) UNSIGNED NOT NULL,
  `delivery_note` tinyint(1) NOT NULL DEFAULT '0',
  `editable` tinyint(1) NOT NULL DEFAULT '0',
  `receipt_state` tinyint(1) NOT NULL DEFAULT '0',
  `pending_receipt` tinyint(1) NOT NULL DEFAULT '0',
  `enclosed` tinyint(1) NOT NULL DEFAULT '0',
  `color` varchar(32) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_supply_order_state`
--

INSERT INTO `ps_supply_order_state` (`id_supply_order_state`, `delivery_note`, `editable`, `receipt_state`, `pending_receipt`, `enclosed`, `color`) VALUES
(1, 0, 1, 0, 0, 0, '#faab00'),
(2, 1, 0, 0, 0, 0, '#273cff'),
(3, 0, 0, 0, 1, 0, '#ff37f5'),
(4, 0, 0, 1, 1, 0, '#ff3e33'),
(5, 0, 0, 1, 0, 1, '#00d60c'),
(6, 0, 0, 0, 0, 1, '#666666');

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

--
-- Table structure for table `ps_supply_order_state_lang`
--

CREATE TABLE `ps_supply_order_state_lang` (
  `id_supply_order_state` int(11) UNSIGNED NOT NULL,
  `id_lang` int(11) UNSIGNED NOT NULL,
  `name` varchar(128) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_supply_order_state_lang`
--

INSERT INTO `ps_supply_order_state_lang` (`id_supply_order_state`, `id_lang`, `name`) VALUES
(1, 1, '1 - Criação em progresso'),
(1, 2, '1 - Creation in progress'),
(2, 1, '2 - Encomenda validada'),
(2, 2, '2 - Order validated'),
(3, 1, '3 - A aguardar receção'),
(3, 2, '3 - Pending receipt'),
(4, 1, '4 - Encomenda recebida em parte'),
(4, 2, '4 - Order received in part'),
(5, 1, '5 - Encomenda recebida na totalidade'),
(5, 2, '5 - Order received completely'),
(6, 1, '6 - Encomenda cancelada'),
(6, 2, '6 - Order canceled');

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

--
-- Table structure for table `ps_tab`
--

CREATE TABLE `ps_tab` (
  `id_tab` int(11) NOT NULL,
  `id_parent` int(11) NOT NULL,
  `position` int(11) NOT NULL,
  `module` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `class_name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `active` tinyint(1) NOT NULL,
  `hide_host_mode` tinyint(1) NOT NULL,
  `icon` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `ps_tab`
--

INSERT INTO `ps_tab` (`id_tab`, `id_parent`, `position`, `module`, `class_name`, `active`, `hide_host_mode`, `icon`) VALUES
(1, 0, 1, NULL, 'AdminDashboard', 1, 0, 'trending_up'),
(2, 0, 2, NULL, 'SELL', 1, 0, ''),
(3, 2, 1, NULL, 'AdminParentOrders', 1, 0, 'shopping_basket'),
(4, 3, 0, NULL, 'AdminOrders', 1, 0, ''),
(5, 3, 1, NULL, 'AdminInvoices', 1, 0, ''),
(6, 3, 2, NULL, 'AdminSlip', 1, 0, ''),
(7, 3, 3, NULL, 'AdminDeliverySlip', 1, 0, ''),
(8, 3, 4, NULL, 'AdminCarts', 1, 0, ''),
(9, 2, 2, NULL, 'AdminCatalog', 1, 0, 'store'),
(10, 9, 0, NULL, 'AdminProducts', 1, 0, ''),
(11, 9, 1, NULL, 'AdminCategories', 1, 0, ''),
(12, 9, 2, NULL, 'AdminTracking', 1, 0, ''),
(13, 9, 3, NULL, 'AdminParentAttributesGroups', 1, 0, ''),
(14, 13, 0, NULL, 'AdminAttributesGroups', 1, 0, ''),
(15, 13, 1, NULL, 'AdminFeatures', 1, 0, ''),
(16, 9, 4, NULL, 'AdminParentManufacturers', 1, 0, ''),
(17, 16, 0, NULL, 'AdminManufacturers', 1, 0, ''),
(18, 16, 1, NULL, 'AdminSuppliers', 1, 0, ''),
(19, 9, 5, NULL, 'AdminAttachments', 1, 0, ''),
(20, 9, 6, NULL, 'AdminParentCartRules', 1, 0, ''),
(21, 20, 0, NULL, 'AdminCartRules', 1, 0, ''),
(22, 20, 1, NULL, 'AdminSpecificPriceRule', 1, 0, ''),
(23, 9, 7, NULL, 'AdminStockManagement', 1, 0, ''),
(24, 2, 3, NULL, 'AdminParentCustomer', 1, 0, 'account_circle'),
(25, 24, 0, NULL, 'AdminCustomers', 1, 0, ''),
(26, 24, 1, NULL, 'AdminAddresses', 1, 0, ''),
(27, 24, 2, NULL, 'AdminOutstanding', 0, 0, ''),
(28, 2, 4, NULL, 'AdminParentCustomerThreads', 1, 0, 'chat'),
(29, 28, 0, NULL, 'AdminCustomerThreads', 1, 0, ''),
(30, 28, 1, NULL, 'AdminOrderMessage', 1, 0, ''),
(31, 28, 2, NULL, 'AdminReturn', 1, 0, ''),
(32, 2, 5, NULL, 'AdminStats', 1, 0, 'assessment'),
(33, 2, 6, NULL, 'AdminStock', 1, 0, 'store'),
(34, 33, 0, NULL, 'AdminWarehouses', 1, 0, ''),
(35, 33, 1, NULL, 'AdminParentStockManagement', 1, 0, ''),
(36, 35, 0, NULL, 'AdminStockManagement', 1, 0, ''),
(37, 36, 0, NULL, 'AdminStockMvt', 1, 0, ''),
(38, 36, 1, NULL, 'AdminStockInstantState', 1, 0, ''),
(39, 36, 2, NULL, 'AdminStockCover', 1, 0, ''),
(40, 33, 2, NULL, 'AdminSupplyOrders', 1, 0, ''),
(41, 33, 3, NULL, 'AdminStockConfiguration', 1, 0, ''),
(42, 0, 3, NULL, 'IMPROVE', 1, 0, ''),
(43, 42, 0, NULL, 'AdminParentModulesSf', 1, 0, 'extension'),
(44, 43, 1, '', 'AdminModulesSf', 1, 0, ''),
(45, 44, 0, NULL, 'AdminModulesManage', 1, 0, ''),
(46, 44, 1, NULL, 'AdminModulesNotifications', 1, 0, ''),
(47, 44, 2, NULL, 'AdminModulesUpdates', 1, 0, ''),
(48, 43, 0, '', 'AdminParentModulesCatalog', 1, 0, ''),
(49, 48, 0, '', 'AdminModulesCatalog', 0, 0, ''),
(50, 48, 1, '', 'AdminAddonsCatalog', 0, 0, ''),
(51, 43, 2, NULL, 'AdminModules', 0, 0, ''),
(52, 42, 1, NULL, 'AdminParentThemes', 1, 0, 'desktop_mac'),
(53, 126, 1, '', 'AdminThemes', 1, 0, ''),
(54, 52, 1, '', 'AdminThemesCatalog', 0, 0, ''),
(55, 52, 2, NULL, 'AdminParentMailTheme', 1, 0, ''),
(56, 55, 0, NULL, 'AdminMailTheme', 1, 0, ''),
(57, 52, 3, NULL, 'AdminCmsContent', 1, 0, ''),
(58, 52, 4, NULL, 'AdminModulesPositions', 1, 0, ''),
(59, 52, 5, NULL, 'AdminImages', 1, 0, ''),
(60, 42, 2, NULL, 'AdminParentShipping', 1, 0, 'local_shipping'),
(61, 60, 0, NULL, 'AdminCarriers', 1, 0, ''),
(62, 60, 1, NULL, 'AdminShipping', 1, 0, ''),
(63, 42, 3, NULL, 'AdminParentPayment', 1, 0, 'payment'),
(64, 63, 0, NULL, 'AdminPayment', 1, 0, ''),
(65, 63, 1, NULL, 'AdminPaymentPreferences', 1, 0, ''),
(66, 42, 4, NULL, 'AdminInternational', 1, 0, 'language'),
(67, 66, 0, NULL, 'AdminParentLocalization', 1, 0, ''),
(68, 67, 0, NULL, 'AdminLocalization', 1, 0, ''),
(69, 67, 1, NULL, 'AdminLanguages', 1, 0, ''),
(70, 67, 2, NULL, 'AdminCurrencies', 1, 0, ''),
(71, 67, 3, NULL, 'AdminGeolocation', 1, 0, ''),
(72, 66, 1, NULL, 'AdminParentCountries', 1, 0, ''),
(73, 72, 0, NULL, 'AdminZones', 1, 0, ''),
(74, 72, 1, NULL, 'AdminCountries', 1, 0, ''),
(75, 72, 2, NULL, 'AdminStates', 1, 0, ''),
(76, 66, 2, NULL, 'AdminParentTaxes', 1, 0, ''),
(77, 76, 0, NULL, 'AdminTaxes', 1, 0, ''),
(78, 76, 1, NULL, 'AdminTaxRulesGroup', 1, 0, ''),
(79, 66, 3, NULL, 'AdminTranslations', 1, 0, ''),
(80, 0, 4, NULL, 'CONFIGURE', 1, 0, ''),
(81, 80, 0, NULL, 'ShopParameters', 1, 0, 'settings'),
(82, 81, 0, NULL, 'AdminParentPreferences', 1, 0, ''),
(83, 82, 0, NULL, 'AdminPreferences', 1, 0, ''),
(84, 82, 1, NULL, 'AdminMaintenance', 1, 0, ''),
(85, 81, 1, NULL, 'AdminParentOrderPreferences', 1, 0, ''),
(86, 85, 0, NULL, 'AdminOrderPreferences', 1, 0, ''),
(87, 85, 1, NULL, 'AdminStatuses', 1, 0, ''),
(88, 81, 2, NULL, 'AdminPPreferences', 1, 0, ''),
(89, 81, 3, NULL, 'AdminParentCustomerPreferences', 1, 0, ''),
(90, 89, 0, NULL, 'AdminCustomerPreferences', 1, 0, ''),
(91, 89, 1, NULL, 'AdminGroups', 1, 0, ''),
(92, 89, 2, NULL, 'AdminGenders', 1, 0, ''),
(93, 81, 4, NULL, 'AdminParentStores', 1, 0, ''),
(94, 93, 0, NULL, 'AdminContacts', 1, 0, ''),
(95, 93, 1, NULL, 'AdminStores', 1, 0, ''),
(96, 81, 5, NULL, 'AdminParentMeta', 1, 0, ''),
(97, 96, 0, NULL, 'AdminMeta', 1, 0, ''),
(98, 96, 1, NULL, 'AdminSearchEngines', 1, 0, ''),
(99, 96, 2, NULL, 'AdminReferrers', 1, 0, ''),
(100, 81, 6, NULL, 'AdminParentSearchConf', 1, 0, ''),
(101, 100, 0, NULL, 'AdminSearchConf', 1, 0, ''),
(102, 100, 1, NULL, 'AdminTags', 1, 0, ''),
(103, 80, 1, NULL, 'AdminAdvancedParameters', 1, 0, 'settings_applications'),
(104, 103, 0, NULL, 'AdminInformation', 1, 0, ''),
(105, 103, 1, NULL, 'AdminPerformance', 1, 0, ''),
(106, 103, 2, NULL, 'AdminAdminPreferences', 1, 0, ''),
(107, 103, 3, NULL, 'AdminEmails', 1, 0, ''),
(108, 103, 4, NULL, 'AdminImport', 1, 0, ''),
(109, 103, 5, NULL, 'AdminParentEmployees', 1, 0, ''),
(110, 109, 0, NULL, 'AdminEmployees', 1, 0, ''),
(111, 109, 1, NULL, 'AdminProfiles', 1, 0, ''),
(112, 109, 2, NULL, 'AdminAccess', 1, 0, ''),
(113, 103, 6, NULL, 'AdminParentRequestSql', 1, 0, ''),
(114, 113, 0, NULL, 'AdminRequestSql', 1, 0, ''),
(115, 113, 1, NULL, 'AdminBackup', 1, 0, ''),
(116, 103, 7, NULL, 'AdminLogs', 1, 0, ''),
(117, 103, 8, NULL, 'AdminWebservice', 1, 0, ''),
(118, 103, 9, NULL, 'AdminShopGroup', 0, 0, ''),
(119, 103, 10, NULL, 'AdminShopUrl', 0, 0, ''),
(120, -1, 1, NULL, 'AdminQuickAccesses', 1, 0, ''),
(121, 0, 5, NULL, 'DEFAULT', 1, 0, ''),
(122, -1, 3, NULL, 'AdminPatterns', 1, 0, ''),
(123, -1, 4, 'dashgoals', 'AdminDashgoals', 1, 0, ''),
(124, -1, 5, 'ps_faviconnotificationbo', 'AdminConfigureFaviconBo', 1, 0, ''),
(125, 52, 6, 'ps_linklist', 'AdminLinkWidget', 1, 0, ''),
(126, 52, 0, '', 'AdminThemesParent', 1, 0, ''),
(127, 126, 2, 'ps_themecusto', 'AdminPsThemeCustoConfiguration', 1, 0, ''),
(128, 126, 3, 'ps_themecusto', 'AdminPsThemeCustoAdvanced', 1, 0, ''),
(129, 0, 6, 'welcome', 'AdminWelcome', 1, 0, ''),
(130, 81, 7, 'gamification', 'AdminGamification', 1, 0, ''),
(131, 42, 5, 'emarketing', 'AdminEmarketing', 1, 0, 'track_changes'),
(132, -1, 6, 'psgdpr', 'AdminAjaxPsgdpr', 1, 0, ''),
(133, -1, 7, 'psgdpr', 'AdminDownloadInvoicesPsgdpr', 1, 0, ''),
(134, 48, 0, 'ps_mbo', 'AdminPsMboModule', 1, 0, ''),
(135, 48, 1, 'ps_mbo', 'AdminPsMboAddons', 1, 0, ''),
(136, -1, 2, 'ps_mbo', 'AdminPsMboRecommended', 1, 0, ''),
(137, 52, 1, 'ps_mbo', 'AdminPsMboTheme', 1, 0, ''),
(138, -1, 8, 'ps_buybuttonlite', 'AdminAjaxPs_buybuttonlite', 1, 0, ''),
(139, 3, 5, 'deleteordersfree', 'deleteorderstab', 1, 0, ''),
(140, -1, 9, 'blockreassurance', 'AdminBlockListing', 1, 0, ''),
(141, 0, 7, 'smartblog', 'AdminSmartBlogMenu', 1, 0, ''),
(142, 141, 1, '', 'AdminSmartBlog', 1, 0, 'content_paste'),
(143, 142, 1, 'smartblog', 'AdminBlogCategory', 1, 0, ''),
(144, 142, 2, 'smartblog', 'AdminBlogcomment', 1, 0, ''),
(145, 142, 3, 'smartblog', 'AdminBlogPost', 1, 0, ''),
(146, 142, 4, 'smartblog', 'AdminImageType', 1, 0, ''),
(147, 142, 5, 'smartblog', 'AdminAboutUs', 1, 0, ''),
(154, 52, 7, 'advancedpopupcreator', 'AdminAdvancedPopupCreator', 1, 0, ''),
(175, -1, 10, 'ifthenpay', 'AdminIfthenpayActivateNewAccount', 1, 0, ''),
(176, -1, 11, 'ifthenpay', 'AdminIfthenpayPaymentMethodSetup', 1, 0, ''),
(177, -1, 12, 'ifthenpay', 'Update', 1, 0, ''),
(178, -1, 13, 'ifthenpay', 'Resend', 1, 0, ''),
(179, -1, 14, 'ifthenpay', 'Remember', 1, 0, ''),
(180, -1, 15, 'ifthenpay', 'AdminIfthenpayChooseNewPaymentMethod', 1, 0, ''),
(181, -1, 16, 'ifthenpay', 'AdminIfthenpayResetAccount', 1, 0, ''),
(182, -1, 17, 'ifthenpay', 'AdminIfthenpayPaymentMethodSetup', 1, 0, ''),
(183, -1, 18, 'ifthenpay', 'Update', 1, 0, ''),
(184, -1, 19, 'ifthenpay', 'Resend', 1, 0, ''),
(185, -1, 20, 'ifthenpay', 'Remember', 1, 0, ''),
(186, -1, 21, 'ifthenpay', 'AdminIfthenpayChooseNewPaymentMethod', 1, 0, ''),
(187, -1, 22, 'ifthenpay', 'AdminIfthenpayResetAccount', 1, 0, ''),
(208, 42, 6, 'paypal', 'paypal', 0, 0, ''),
(209, 208, 1, 'paypal', 'AdminPaypalConfiguration', 1, 0, ''),
(210, 0, 8, 'paypal', 'AdminPaypalProcessLogger', 1, 0, ''),
(211, 209, 1, 'paypal', 'AdminPaypalDiagnostic', 1, 0, ''),
(212, 0, 9, 'lyoreservation', 'LyoReservationMenu', 1, 0, ''),
(213, 212, 1, 'lyoreservation', 'LyoReservationSetting', 1, 0, ''),
(214, 212, 2, 'lyoreservation', 'LyoReservationCalendars', 1, 0, ''),
(215, 212, 3, 'lyoreservation', 'LyoReservationProducts', 1, 0, ''),
(216, 212, 4, 'lyoreservation', 'LyoReservationPlanning', 1, 0, ''),
(217, 212, 5, 'lyoreservation', 'LyoReservationCombinations', 0, 0, ''),
(218, 212, 6, 'lyoreservation', 'LyoReservationBookings', 0, 0, '');

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

--
-- Table structure for table `ps_tab_advice`
--

CREATE TABLE `ps_tab_advice` (
  `id_tab` int(11) NOT NULL,
  `id_advice` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_tab_advice`
--

INSERT INTO `ps_tab_advice` (`id_tab`, `id_advice`) VALUES
(1, 1),
(1, 2),
(1, 3),
(1, 4),
(1, 5),
(1, 6),
(1, 7),
(1, 8),
(1, 9),
(1, 10),
(1, 11),
(1, 12),
(1, 13),
(1, 14),
(1, 15),
(1, 16),
(1, 17),
(1, 18),
(1, 19),
(1, 20),
(1, 21),
(1, 22),
(1, 23),
(1, 24),
(1, 25),
(1, 26),
(1, 27),
(1, 28),
(1, 29),
(1, 30),
(1, 31),
(1, 32),
(1, 33),
(1, 34),
(1, 35),
(1, 36),
(1, 37),
(1, 38),
(1, 39),
(1, 40),
(1, 41),
(1, 42),
(1, 43),
(1, 44),
(1, 45),
(1, 46),
(1, 47),
(1, 48),
(1, 49),
(1, 50),
(1, 51),
(1, 52),
(1, 53),
(1, 54),
(1, 55),
(1, 56),
(1, 57),
(1, 58),
(1, 59),
(1, 60),
(1, 61),
(1, 62),
(1, 63),
(1, 64),
(1, 65),
(1, 66),
(1, 67),
(1, 68),
(1, 69),
(1, 70),
(1, 71),
(1, 72),
(1, 73),
(1, 74),
(1, 75),
(1, 76),
(1, 77),
(1, 78),
(1, 79),
(1, 80),
(1, 81),
(1, 82),
(1, 83),
(1, 84),
(1, 85),
(1, 86),
(1, 87),
(1, 88),
(1, 89),
(1, 90),
(1, 91),
(1, 92),
(1, 93),
(1, 94),
(1, 95),
(1, 96),
(1, 97),
(1, 98),
(1, 99),
(1, 100),
(1, 101),
(1, 102),
(1, 103),
(1, 104),
(1, 105),
(1, 106),
(1, 107),
(1, 108),
(1, 109),
(1, 110),
(1, 111),
(1, 112),
(1, 113),
(1, 114),
(1, 115),
(1, 116),
(1, 117),
(1, 118),
(1, 119),
(1, 120),
(1, 121),
(1, 122),
(1, 123),
(1, 124),
(1, 125),
(1, 126),
(1, 127),
(1, 128),
(1, 129),
(1, 130),
(1, 131),
(1, 132),
(1, 133),
(1, 134),
(1, 135),
(1, 136),
(1, 137),
(1, 138),
(1, 139),
(1, 140),
(1, 141),
(1, 142),
(1, 143),
(1, 144),
(1, 145),
(1, 146),
(1, 147),
(1, 148),
(1, 149),
(1, 150),
(1, 151),
(1, 152),
(1, 153),
(1, 154),
(1, 155),
(1, 156),
(1, 157),
(1, 158),
(1, 159),
(1, 160),
(1, 161),
(1, 162),
(1, 163),
(1, 164),
(1, 165),
(1, 166),
(1, 167),
(1, 168),
(1, 169),
(1, 170),
(1, 171),
(1, 172),
(1, 173),
(1, 174),
(1, 175),
(1, 176),
(1, 177),
(1, 178),
(1, 179),
(1, 180),
(1, 181),
(1, 182),
(1, 183),
(1, 184),
(1, 185),
(1, 186),
(1, 187),
(1, 188),
(1, 189),
(1, 190),
(1, 191),
(1, 192),
(1, 193),
(1, 194),
(1, 195),
(1, 196),
(1, 197),
(1, 198),
(1, 199),
(1, 200),
(1, 201),
(1, 202),
(1, 203),
(1, 204),
(1, 205),
(1, 206),
(1, 207),
(1, 208),
(1, 209),
(1, 210),
(1, 211),
(1, 212),
(1, 213),
(1, 214),
(1, 215),
(1, 216),
(1, 217),
(1, 218),
(1, 219),
(1, 220),
(1, 221),
(1, 222),
(1, 223),
(1, 224),
(1, 225),
(1, 226),
(1, 227),
(1, 228),
(1, 229),
(1, 230),
(1, 231),
(1, 232),
(1, 233),
(1, 234),
(1, 235),
(1, 236),
(1, 237),
(1, 238),
(1, 239),
(1, 240),
(1, 241),
(1, 242),
(1, 243),
(1, 244),
(1, 245),
(1, 246),
(1, 247),
(1, 248),
(1, 249),
(1, 250),
(1, 251),
(1, 252),
(1, 253),
(1, 254),
(1, 255),
(1, 256),
(1, 257),
(1, 258),
(1, 259),
(1, 260),
(1, 261),
(1, 262),
(1, 263),
(1, 264),
(1, 265),
(1, 266),
(1, 267),
(1, 268),
(1, 269),
(1, 270),
(1, 271),
(1, 272),
(1, 273),
(1, 274),
(1, 275),
(1, 276),
(1, 277),
(1, 278),
(1, 279),
(1, 280),
(1, 281),
(1, 282),
(1, 283),
(1, 284),
(1, 285),
(1, 286),
(1, 287),
(1, 288),
(1, 289),
(1, 290),
(1, 291),
(1, 292),
(1, 293),
(1, 294),
(1, 295),
(1, 296),
(1, 297),
(1, 298),
(1, 299),
(1, 300),
(1, 301),
(1, 302),
(1, 303),
(1, 304),
(1, 305),
(1, 306),
(1, 307),
(1, 308),
(1, 309),
(1, 310),
(1, 311),
(1, 312),
(1, 313),
(1, 314),
(1, 315),
(1, 316),
(1, 317),
(1, 318),
(1, 319),
(1, 320),
(1, 321),
(1, 322),
(1, 323),
(1, 324),
(1, 325),
(1, 326),
(1, 327),
(1, 328),
(1, 329),
(1, 330),
(1, 331),
(1, 332),
(1, 333),
(1, 334),
(1, 335),
(1, 336),
(1, 337),
(1, 338),
(1, 339),
(1, 340),
(1, 341),
(1, 342),
(1, 343),
(1, 344),
(1, 345),
(1, 346),
(1, 347),
(1, 348),
(1, 349),
(1, 350),
(1, 351),
(1, 352),
(1, 353),
(1, 354),
(1, 355),
(1, 356),
(1, 357),
(1, 358),
(1, 359),
(1, 360),
(1, 361),
(1, 362),
(1, 363),
(1, 364),
(1, 365),
(1, 366),
(1, 367),
(1, 368),
(1, 369),
(1, 370),
(1, 371),
(1, 372),
(1, 373),
(1, 374),
(1, 375),
(1, 376),
(1, 377),
(1, 378),
(1, 379),
(1, 380),
(1, 381),
(1, 382),
(1, 383),
(1, 384),
(1, 385),
(1, 386),
(1, 387),
(1, 388),
(1, 389),
(1, 390),
(1, 391),
(1, 392),
(1, 393),
(1, 394),
(1, 395);

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

--
-- Table structure for table `ps_tab_lang`
--

CREATE TABLE `ps_tab_lang` (
  `id_tab` int(11) NOT NULL,
  `id_lang` int(11) NOT NULL,
  `name` varchar(128) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `ps_tab_lang`
--

INSERT INTO `ps_tab_lang` (`id_tab`, `id_lang`, `name`) VALUES
(1, 1, 'Painel de controlo'),
(1, 2, 'Dashboard'),
(2, 1, 'Vender'),
(2, 2, 'Sell'),
(3, 1, 'Encomendas'),
(3, 2, 'Orders'),
(4, 1, 'Encomendas'),
(4, 2, 'Orders'),
(5, 1, 'Faturas'),
(5, 2, 'Invoices'),
(6, 1, 'Notas de Crédito'),
(6, 2, 'Credit Slips'),
(7, 1, 'Notas de Entrega'),
(7, 2, 'Delivery Slips'),
(8, 1, 'Carrinhos de Compras'),
(8, 2, 'Shopping Carts'),
(9, 1, 'Catálogo'),
(9, 2, 'Catalog'),
(10, 1, 'Produtos'),
(10, 2, 'Products'),
(11, 1, 'Categorias'),
(11, 2, 'Categories'),
(12, 1, 'Monitorização'),
(12, 2, 'Monitoring'),
(13, 1, 'Atributos e Características'),
(13, 2, 'Attributes & Features'),
(14, 1, 'Atributos'),
(14, 2, 'Attributes'),
(15, 1, 'Funcionalidades'),
(15, 2, 'Features'),
(16, 1, 'Marcas e Fornecedores'),
(16, 2, 'Brands & Suppliers'),
(17, 1, 'Marcas'),
(17, 2, 'Brands'),
(18, 1, 'Fornecedores'),
(18, 2, 'Suppliers'),
(19, 1, 'Ficheiros'),
(19, 2, 'Files'),
(20, 1, 'Descontos'),
(20, 2, 'Discounts'),
(21, 1, 'Regras de Carrinho'),
(21, 2, 'Cart Rules'),
(22, 1, 'Regras de Preços do Catálogo'),
(22, 2, 'Catalog Price Rules'),
(23, 1, 'Stocks'),
(23, 2, 'Stocks'),
(24, 1, 'Clientes'),
(24, 2, 'Customers'),
(25, 1, 'Clientes'),
(25, 2, 'Customers'),
(26, 1, 'Endereços'),
(26, 2, 'Addresses'),
(27, 1, 'Clientes com Dívidas'),
(27, 2, 'Outstanding'),
(28, 1, 'Apoio ao Cliente'),
(28, 2, 'Customer Service'),
(29, 1, 'Apoio ao Cliente'),
(29, 2, 'Customer Service'),
(30, 1, 'Mensagens de Encomendas'),
(30, 2, 'Order Messages'),
(31, 1, 'Mercadorias Devolvidas'),
(31, 2, 'Merchandise Returns'),
(32, 1, 'Estatísticas'),
(32, 2, 'Stats'),
(34, 1, 'Armazéns'),
(34, 2, 'Warehouses'),
(35, 1, 'Gestão de Inventário'),
(35, 2, 'Stock Management'),
(36, 1, 'Gestão de Inventário'),
(36, 2, 'Stock Management'),
(37, 1, 'Movimento de Inventário'),
(37, 2, 'Stock Movement'),
(38, 1, 'Estado Instantâneo do Inventário'),
(38, 2, 'Instant Stock Status'),
(39, 1, 'Cobertura do Inventário'),
(39, 2, 'Stock Coverage'),
(40, 1, 'Encomendas a Fornecedores'),
(40, 2, 'Supply orders'),
(41, 1, 'Configuração'),
(41, 2, 'Configuration'),
(42, 1, 'Melhorar'),
(42, 2, 'Improve'),
(43, 1, 'Módulos'),
(43, 2, 'Modules'),
(44, 1, 'Module Manager'),
(44, 2, 'Module Manager'),
(45, 1, 'Módulos'),
(45, 2, 'Modules'),
(46, 1, 'Alerts'),
(46, 2, 'Alerts'),
(47, 1, 'Updates'),
(47, 2, 'Updates'),
(48, 1, 'Marketplace'),
(48, 2, 'Marketplace'),
(49, 1, 'Marketplace'),
(49, 2, 'Marketplace'),
(50, 1, 'Module Selections'),
(50, 2, 'Module Selections'),
(52, 1, 'Design'),
(52, 2, 'Design'),
(53, 1, 'Tema Gráfico e Logótipo'),
(53, 2, 'Theme & Logo'),
(54, 1, 'Catálogo do Tema Gráfico'),
(54, 2, 'Theme Catalog'),
(55, 1, 'Email Theme'),
(55, 2, 'Email Theme'),
(56, 1, 'Email Theme'),
(56, 2, 'Email Theme'),
(57, 1, 'Páginas'),
(57, 2, 'Pages'),
(58, 1, 'Posições'),
(58, 2, 'Positions'),
(59, 1, 'Definições de Imagem'),
(59, 2, 'Image Settings'),
(60, 1, 'Envio'),
(60, 2, 'Shipping'),
(61, 1, 'Transportadoras'),
(61, 2, 'Carriers'),
(62, 1, 'Preferências'),
(62, 2, 'Preferences'),
(63, 1, 'Pagamento'),
(63, 2, 'Payment'),
(64, 1, 'Métodos de Pagamento'),
(64, 2, 'Payment Methods'),
(65, 1, 'Preferências'),
(65, 2, 'Preferences'),
(66, 1, 'International'),
(66, 2, 'International'),
(67, 1, 'Localização'),
(67, 2, 'Localization'),
(68, 1, 'Localização'),
(68, 2, 'Localization'),
(69, 1, 'Idiomas'),
(69, 2, 'Languages'),
(70, 1, 'Moedas'),
(70, 2, 'Currencies'),
(71, 1, 'Geolocalização'),
(71, 2, 'Geolocation'),
(72, 1, 'Localizações'),
(72, 2, 'Locations'),
(73, 1, 'Zonas'),
(73, 2, 'Zones'),
(74, 1, 'Países'),
(74, 2, 'Countries'),
(75, 1, 'Estados/Distritos'),
(75, 2, 'States'),
(76, 1, 'IVA'),
(76, 2, 'Taxes'),
(77, 1, 'IVA'),
(77, 2, 'Taxes'),
(78, 1, 'Regras de IVA'),
(78, 2, 'Tax Rules'),
(79, 1, 'Traduções'),
(79, 2, 'Translations'),
(80, 1, 'Configurar'),
(80, 2, 'Configure'),
(81, 1, 'Parâmetros da Loja'),
(81, 2, 'Shop Parameters'),
(82, 1, 'Geral'),
(82, 2, 'General'),
(83, 1, 'Geral'),
(83, 2, 'General'),
(84, 1, 'Manutenção'),
(84, 2, 'Maintenance'),
(85, 1, 'Definições da Encomenda'),
(85, 2, 'Order Settings'),
(86, 1, 'Definições da Encomenda'),
(86, 2, 'Order Settings'),
(87, 1, 'Estados das Encomendas'),
(87, 2, 'Statuses'),
(88, 1, 'Produtos'),
(88, 2, 'Products'),
(89, 1, 'Definições do cliente'),
(89, 2, 'Customer Settings'),
(90, 1, 'Clientes'),
(90, 2, 'Customers'),
(91, 1, 'Grupos'),
(91, 2, 'Groups'),
(92, 1, 'Títulos Sociais'),
(92, 2, 'Titles'),
(93, 1, 'Contacto'),
(93, 2, 'Contact'),
(94, 1, 'Contactos'),
(94, 2, 'Contacts'),
(95, 1, 'Lojas'),
(95, 2, 'Shops'),
(96, 1, 'Tráfego e SEO'),
(96, 2, 'Traffic & SEO'),
(97, 1, 'SEO e URLs'),
(97, 2, 'SEO & URLs'),
(98, 1, 'Motores de Pesquisa'),
(98, 2, 'Search Engines'),
(99, 1, 'Referências'),
(99, 2, 'Referrers'),
(100, 1, 'Pesquisar'),
(100, 2, 'Search'),
(101, 1, 'Pesquisar'),
(101, 2, 'Search'),
(102, 1, 'Etiquetas'),
(102, 2, 'Tags'),
(103, 1, 'Parâmetros Avançados'),
(103, 2, 'Advanced Parameters'),
(104, 1, 'Informação'),
(104, 2, 'Information'),
(105, 1, 'Desempenho'),
(105, 2, 'Performance'),
(106, 1, 'Administração'),
(106, 2, 'Administration'),
(107, 1, 'Email'),
(107, 2, 'E-mail'),
(108, 1, 'Importar'),
(108, 2, 'Import'),
(109, 1, 'Empregados'),
(109, 2, 'Team'),
(110, 1, 'Funcionários'),
(110, 2, 'Employees'),
(111, 1, 'Perfis de utilizadores'),
(111, 2, 'Profiles'),
(112, 1, 'Permissões'),
(112, 2, 'Permissions'),
(113, 1, 'Base de dados'),
(113, 2, 'Database'),
(114, 1, 'Gestor SQL'),
(114, 2, 'SQL Manager'),
(115, 1, 'Cópia da Base de Dados'),
(115, 2, 'DB Backup'),
(116, 1, 'Registos'),
(116, 2, 'Logs'),
(117, 1, 'Webservice'),
(117, 2, 'Webservice'),
(118, 1, 'Multi-Loja'),
(118, 2, 'Multistore'),
(119, 1, 'Multi-Loja'),
(119, 2, 'Multistore'),
(120, 1, 'Acesso Rápido'),
(120, 2, 'Quick Access'),
(121, 1, 'Mais'),
(121, 2, 'More'),
(123, 1, 'Dashgoals'),
(123, 2, 'Dashgoals'),
(124, 1, 'Order Notifications on the Favicon'),
(124, 2, 'Order Notifications on the Favicon'),
(125, 1, 'Link Widget'),
(125, 2, 'Link Widget'),
(126, 1, 'Tema Gráfico e Logótipo'),
(126, 2, 'Theme & Logo'),
(127, 1, 'Pages Configuration'),
(127, 2, 'Pages Configuration'),
(128, 1, 'Advanced Customization'),
(128, 2, 'Advanced Customization'),
(129, 1, 'Welcome'),
(129, 2, 'Welcome'),
(130, 1, 'Merchant Expertise'),
(130, 2, 'Merchant Expertise'),
(131, 1, 'Advertising'),
(131, 2, 'Advertising'),
(132, 1, 'Conformidade oficial com o RGPD'),
(132, 2, 'Conformidade oficial com o RGPD'),
(133, 1, 'Conformidade oficial com o RGPD'),
(133, 2, 'Conformidade oficial com o RGPD'),
(134, 1, 'Marketplace'),
(134, 2, 'Marketplace'),
(135, 1, 'Module Selections'),
(135, 2, 'Module Selections'),
(136, 1, 'Module recommended'),
(136, 2, 'Module recommended'),
(137, 1, 'Catálogo do Tema Gráfico'),
(137, 2, 'Theme Catalog'),
(138, 1, 'ps_buybuttonlite'),
(138, 2, 'ps_buybuttonlite'),
(139, 1, 'Delete Orders Free'),
(139, 2, 'Delete Orders Free'),
(140, 1, 'blockreassurance'),
(140, 2, 'blockreassurance'),
(141, 1, 'SMARTBLOG'),
(141, 2, 'SMARTBLOG'),
(142, 1, 'Blog'),
(142, 2, 'Blog'),
(143, 1, 'Blog Category'),
(143, 2, 'Blog Category'),
(144, 1, 'Blog Comments'),
(144, 2, 'Blog Comments'),
(145, 1, 'Blog Post'),
(145, 2, 'Blog Post'),
(146, 1, 'Image Type'),
(146, 2, 'Image Type'),
(147, 1, 'AboutUs'),
(147, 2, 'AboutUs'),
(154, 1, 'Popups'),
(154, 2, 'Popups'),
(175, 1, 'Payment Setup'),
(175, 2, 'Payment Setup'),
(176, 1, 'Payment Setup'),
(176, 2, 'Payment Setup'),
(177, 1, 'Payment Setup'),
(177, 2, 'Payment Setup'),
(178, 1, 'Payment Setup'),
(178, 2, 'Payment Setup'),
(179, 1, 'Payment Setup'),
(179, 2, 'Payment Setup'),
(180, 1, 'Payment Setup'),
(180, 2, 'Payment Setup'),
(181, 1, 'Payment Setup'),
(181, 2, 'Payment Setup'),
(182, 1, 'Payment Setup'),
(182, 2, 'Payment Setup'),
(183, 1, 'Payment Setup'),
(183, 2, 'Payment Setup'),
(184, 1, 'Payment Setup'),
(184, 2, 'Payment Setup'),
(185, 1, 'Payment Setup'),
(185, 2, 'Payment Setup'),
(186, 1, 'Payment Setup'),
(186, 2, 'Payment Setup'),
(187, 1, 'Payment Setup'),
(187, 2, 'Payment Setup'),
(208, 1, 'PayPal'),
(208, 2, 'PayPal'),
(209, 1, 'Configuration'),
(209, 2, 'Configuration'),
(210, 1, 'Logger'),
(210, 2, 'Logger'),
(211, 1, 'Diagnostic'),
(211, 2, 'Diagnostic'),
(212, 1, 'LyoReservation'),
(212, 2, 'LyoReservation'),
(213, 1, 'Settings'),
(213, 2, 'Settings'),
(214, 1, 'List of calendars'),
(214, 2, 'List of calendars'),
(215, 1, 'Bookable products'),
(215, 2, 'Bookable products'),
(216, 1, 'Schedule'),
(216, 2, 'Schedule'),
(217, 1, 'Settings of combinations'),
(217, 2, 'Settings of combinations'),
(218, 1, 'Reservations'),
(218, 2, 'Reservations');

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

--
-- Table structure for table `ps_tab_module_preference`
--

CREATE TABLE `ps_tab_module_preference` (
  `id_tab_module_preference` int(11) NOT NULL,
  `id_employee` int(11) NOT NULL,
  `id_tab` int(11) NOT NULL,
  `module` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_tag`
--

CREATE TABLE `ps_tag` (
  `id_tag` int(10) UNSIGNED NOT NULL,
  `id_lang` int(10) UNSIGNED NOT NULL,
  `name` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_tag_count`
--

CREATE TABLE `ps_tag_count` (
  `id_group` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `id_tag` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `id_lang` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `id_shop` int(11) UNSIGNED NOT NULL DEFAULT '0',
  `counter` int(10) UNSIGNED NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_tax`
--

CREATE TABLE `ps_tax` (
  `id_tax` int(10) UNSIGNED NOT NULL,
  `rate` decimal(10,3) NOT NULL,
  `active` tinyint(1) UNSIGNED NOT NULL DEFAULT '1',
  `deleted` tinyint(1) UNSIGNED NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_tax`
--

INSERT INTO `ps_tax` (`id_tax`, `rate`, `active`, `deleted`) VALUES
(1, 23.000, 1, 0),
(2, 13.000, 1, 0),
(3, 6.000, 1, 0),
(4, 20.000, 1, 0),
(5, 21.000, 1, 0),
(6, 20.000, 1, 0),
(7, 19.000, 1, 0),
(8, 21.000, 1, 0),
(9, 19.000, 1, 0),
(10, 25.000, 1, 0),
(11, 20.000, 1, 0),
(12, 21.000, 1, 0),
(13, 24.000, 1, 0),
(14, 20.000, 1, 0),
(15, 20.000, 1, 0),
(16, 23.000, 1, 0),
(17, 25.000, 1, 0),
(18, 27.000, 1, 0),
(19, 23.000, 1, 0),
(20, 22.000, 1, 0),
(21, 21.000, 1, 0),
(22, 17.000, 1, 0),
(23, 21.000, 1, 0),
(24, 18.000, 1, 0),
(25, 21.000, 1, 0),
(26, 23.000, 1, 0),
(27, 20.000, 1, 0),
(28, 25.000, 1, 0),
(29, 22.000, 1, 0),
(30, 20.000, 1, 0),
(31, 10.000, 1, 0),
(32, 5.500, 1, 0),
(33, 2.100, 1, 0),
(34, 24.000, 1, 0),
(35, 19.000, 1, 0),
(36, 0.000, 1, 0),
(37, 12.000, 1, 0),
(38, 25.000, 1, 0),
(39, 7.000, 1, 0);

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

--
-- Table structure for table `ps_tax_lang`
--

CREATE TABLE `ps_tax_lang` (
  `id_tax` int(10) UNSIGNED NOT NULL,
  `id_lang` int(10) UNSIGNED NOT NULL,
  `name` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_tax_lang`
--

INSERT INTO `ps_tax_lang` (`id_tax`, `id_lang`, `name`) VALUES
(1, 1, 'IVA PT 23%'),
(1, 2, 'IVA PT 23%'),
(2, 1, 'IVA PT 13%'),
(2, 2, 'IVA PT 13%'),
(3, 1, 'IVA PT 6%'),
(3, 2, 'IVA PT 6%'),
(4, 1, 'USt. AT 20%'),
(4, 2, 'USt. AT 20%'),
(5, 1, 'TVA BE 21%'),
(5, 2, 'TVA BE 21%'),
(6, 1, 'ДДС BG 20%'),
(6, 2, 'ДДС BG 20%'),
(7, 1, 'ΦΠΑ CY 19%'),
(7, 2, 'ΦΠΑ CY 19%'),
(8, 1, 'DPH CZ 21%'),
(8, 2, 'DPH CZ 21%'),
(9, 1, 'MwSt. DE 19%'),
(9, 2, 'MwSt. DE 19%'),
(10, 1, 'moms DK 25%'),
(10, 2, 'moms DK 25%'),
(11, 1, 'km EE 20%'),
(11, 2, 'km EE 20%'),
(12, 1, 'IVA ES 21%'),
(12, 2, 'IVA ES 21%'),
(13, 1, 'ALV FI 24%'),
(13, 2, 'ALV FI 24%'),
(14, 1, 'TVA FR 20%'),
(14, 2, 'TVA FR 20%'),
(15, 1, 'VAT UK 20%'),
(15, 2, 'VAT UK 20%'),
(16, 1, 'ΦΠΑ GR 23%'),
(16, 2, 'ΦΠΑ GR 23%'),
(17, 1, 'Croatia PDV 25%'),
(17, 2, 'Croatia PDV 25%'),
(18, 1, 'ÁFA HU 27%'),
(18, 2, 'ÁFA HU 27%'),
(19, 1, 'VAT IE 23%'),
(19, 2, 'VAT IE 23%'),
(20, 1, 'IVA IT 22%'),
(20, 2, 'IVA IT 22%'),
(21, 1, 'PVM LT 21%'),
(21, 2, 'PVM LT 21%'),
(22, 1, 'TVA LU 17%'),
(22, 2, 'TVA LU 17%'),
(23, 1, 'PVN LV 21%'),
(23, 2, 'PVN LV 21%'),
(24, 1, 'VAT MT 18%'),
(24, 2, 'VAT MT 18%'),
(25, 1, 'BTW NL 21%'),
(25, 2, 'BTW NL 21%'),
(26, 1, 'PTU PL 23%'),
(26, 2, 'PTU PL 23%'),
(27, 1, 'TVA RO 20%'),
(27, 2, 'TVA RO 20%'),
(28, 1, 'Moms SE 25%'),
(28, 2, 'Moms SE 25%'),
(29, 1, 'DDV SI 22%'),
(29, 2, 'DDV SI 22%'),
(30, 1, 'DPH SK 20%'),
(30, 2, 'DPH SK 20%'),
(31, 1, 'TVA FR 10%'),
(31, 2, 'TVA FR 10%'),
(32, 1, 'TVA FR 5.5%'),
(32, 2, 'TVA FR 5.5%'),
(33, 1, 'TVA FR 2.1%'),
(33, 2, 'TVA FR 2.1%'),
(34, 1, 'ΦΠΑ GR 24%'),
(34, 2, 'ΦΠΑ GR 24%'),
(35, 1, 'TVA RO 19%'),
(35, 2, 'TVA RO 19%'),
(36, 1, 'IVA PT 0%'),
(36, 2, 'IVA PT 0%'),
(37, 1, 'IPI BR 12%'),
(37, 2, 'IPI BR 12%'),
(38, 1, 'ICMS BR 25%'),
(38, 2, 'ICMS BR 25%'),
(39, 1, 'ISS BR 7%'),
(39, 2, 'ISS BR 7%');

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

--
-- Table structure for table `ps_tax_rule`
--

CREATE TABLE `ps_tax_rule` (
  `id_tax_rule` int(11) NOT NULL,
  `id_tax_rules_group` int(11) NOT NULL,
  `id_country` int(11) NOT NULL,
  `id_state` int(11) NOT NULL,
  `zipcode_from` varchar(12) NOT NULL,
  `zipcode_to` varchar(12) NOT NULL,
  `id_tax` int(11) NOT NULL,
  `behavior` int(11) NOT NULL,
  `description` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_tax_rule`
--

INSERT INTO `ps_tax_rule` (`id_tax_rule`, `id_tax_rules_group`, `id_country`, `id_state`, `zipcode_from`, `zipcode_to`, `id_tax`, `behavior`, `description`) VALUES
(1, 1, 3, 0, '0', '0', 1, 0, ''),
(2, 1, 236, 0, '0', '0', 1, 0, ''),
(3, 1, 16, 0, '0', '0', 1, 0, ''),
(4, 1, 20, 0, '0', '0', 1, 0, ''),
(5, 1, 1, 0, '0', '0', 1, 0, ''),
(6, 1, 86, 0, '0', '0', 1, 0, ''),
(7, 1, 9, 0, '0', '0', 1, 0, ''),
(8, 1, 6, 0, '0', '0', 1, 0, ''),
(9, 1, 8, 0, '0', '0', 1, 0, ''),
(10, 1, 26, 0, '0', '0', 1, 0, ''),
(11, 1, 10, 0, '0', '0', 1, 0, ''),
(12, 1, 76, 0, '0', '0', 1, 0, ''),
(13, 1, 125, 0, '0', '0', 1, 0, ''),
(14, 1, 131, 0, '0', '0', 1, 0, ''),
(15, 1, 12, 0, '0', '0', 1, 0, ''),
(16, 1, 143, 0, '0', '0', 1, 0, ''),
(17, 1, 139, 0, '0', '0', 1, 0, ''),
(18, 1, 13, 0, '0', '0', 1, 0, ''),
(19, 1, 2, 0, '0', '0', 1, 0, ''),
(20, 1, 14, 0, '0', '0', 1, 0, ''),
(21, 1, 15, 0, '0', '0', 1, 0, ''),
(22, 1, 36, 0, '0', '0', 1, 0, ''),
(23, 1, 193, 0, '0', '0', 1, 0, ''),
(24, 1, 37, 0, '0', '0', 1, 0, ''),
(25, 1, 7, 0, '0', '0', 1, 0, ''),
(26, 1, 18, 0, '0', '0', 1, 0, ''),
(27, 2, 3, 0, '0', '0', 2, 0, ''),
(28, 2, 236, 0, '0', '0', 2, 0, ''),
(29, 2, 16, 0, '0', '0', 2, 0, ''),
(30, 2, 20, 0, '0', '0', 2, 0, ''),
(31, 2, 1, 0, '0', '0', 2, 0, ''),
(32, 2, 86, 0, '0', '0', 2, 0, ''),
(33, 2, 9, 0, '0', '0', 2, 0, ''),
(34, 2, 6, 0, '0', '0', 2, 0, ''),
(35, 2, 8, 0, '0', '0', 2, 0, ''),
(36, 2, 26, 0, '0', '0', 2, 0, ''),
(37, 2, 10, 0, '0', '0', 2, 0, ''),
(38, 2, 76, 0, '0', '0', 2, 0, ''),
(39, 2, 125, 0, '0', '0', 2, 0, ''),
(40, 2, 131, 0, '0', '0', 2, 0, ''),
(41, 2, 12, 0, '0', '0', 2, 0, ''),
(42, 2, 143, 0, '0', '0', 2, 0, ''),
(43, 2, 139, 0, '0', '0', 2, 0, ''),
(44, 2, 13, 0, '0', '0', 2, 0, ''),
(45, 2, 2, 0, '0', '0', 2, 0, ''),
(46, 2, 14, 0, '0', '0', 2, 0, ''),
(47, 2, 15, 0, '0', '0', 2, 0, ''),
(48, 2, 36, 0, '0', '0', 2, 0, ''),
(49, 2, 193, 0, '0', '0', 2, 0, ''),
(50, 2, 37, 0, '0', '0', 2, 0, ''),
(51, 2, 7, 0, '0', '0', 2, 0, ''),
(52, 2, 18, 0, '0', '0', 2, 0, ''),
(53, 3, 3, 0, '0', '0', 3, 0, ''),
(54, 3, 236, 0, '0', '0', 3, 0, ''),
(55, 3, 16, 0, '0', '0', 3, 0, ''),
(56, 3, 20, 0, '0', '0', 3, 0, ''),
(57, 3, 1, 0, '0', '0', 3, 0, ''),
(58, 3, 86, 0, '0', '0', 3, 0, ''),
(59, 3, 9, 0, '0', '0', 3, 0, ''),
(60, 3, 6, 0, '0', '0', 3, 0, ''),
(61, 3, 8, 0, '0', '0', 3, 0, ''),
(62, 3, 26, 0, '0', '0', 3, 0, ''),
(63, 3, 10, 0, '0', '0', 3, 0, ''),
(64, 3, 76, 0, '0', '0', 3, 0, ''),
(65, 3, 125, 0, '0', '0', 3, 0, ''),
(66, 3, 131, 0, '0', '0', 3, 0, ''),
(67, 3, 12, 0, '0', '0', 3, 0, ''),
(68, 3, 143, 0, '0', '0', 3, 0, ''),
(69, 3, 139, 0, '0', '0', 3, 0, ''),
(70, 3, 13, 0, '0', '0', 3, 0, ''),
(71, 3, 2, 0, '0', '0', 3, 0, ''),
(72, 3, 14, 0, '0', '0', 3, 0, ''),
(73, 3, 15, 0, '0', '0', 3, 0, ''),
(74, 3, 36, 0, '0', '0', 3, 0, ''),
(75, 3, 193, 0, '0', '0', 3, 0, ''),
(76, 3, 37, 0, '0', '0', 3, 0, ''),
(77, 3, 7, 0, '0', '0', 3, 0, ''),
(78, 3, 18, 0, '0', '0', 3, 0, ''),
(79, 4, 3, 0, '0', '0', 3, 0, ''),
(80, 4, 236, 0, '0', '0', 3, 0, ''),
(81, 4, 16, 0, '0', '0', 3, 0, ''),
(82, 4, 20, 0, '0', '0', 3, 0, ''),
(83, 4, 1, 0, '0', '0', 3, 0, ''),
(84, 4, 86, 0, '0', '0', 3, 0, ''),
(85, 4, 9, 0, '0', '0', 3, 0, ''),
(86, 4, 6, 0, '0', '0', 3, 0, ''),
(87, 4, 8, 0, '0', '0', 3, 0, ''),
(88, 4, 26, 0, '0', '0', 3, 0, ''),
(89, 4, 10, 0, '0', '0', 3, 0, ''),
(90, 4, 76, 0, '0', '0', 3, 0, ''),
(91, 4, 125, 0, '0', '0', 3, 0, ''),
(92, 4, 131, 0, '0', '0', 3, 0, ''),
(93, 4, 12, 0, '0', '0', 3, 0, ''),
(94, 4, 143, 0, '0', '0', 3, 0, ''),
(95, 4, 139, 0, '0', '0', 3, 0, ''),
(96, 4, 13, 0, '0', '0', 3, 0, ''),
(97, 4, 2, 0, '0', '0', 3, 0, ''),
(98, 4, 14, 0, '0', '0', 3, 0, ''),
(99, 4, 15, 0, '0', '0', 3, 0, ''),
(100, 4, 36, 0, '0', '0', 3, 0, ''),
(101, 4, 193, 0, '0', '0', 3, 0, ''),
(102, 4, 37, 0, '0', '0', 3, 0, ''),
(103, 4, 7, 0, '0', '0', 3, 0, ''),
(104, 4, 18, 0, '0', '0', 3, 0, ''),
(105, 5, 3, 0, '0', '0', 3, 0, ''),
(106, 5, 236, 0, '0', '0', 3, 0, ''),
(107, 5, 16, 0, '0', '0', 3, 0, ''),
(108, 5, 20, 0, '0', '0', 3, 0, ''),
(109, 5, 1, 0, '0', '0', 3, 0, ''),
(110, 5, 86, 0, '0', '0', 3, 0, ''),
(111, 5, 9, 0, '0', '0', 3, 0, ''),
(112, 5, 6, 0, '0', '0', 3, 0, ''),
(113, 5, 8, 0, '0', '0', 3, 0, ''),
(114, 5, 26, 0, '0', '0', 3, 0, ''),
(115, 5, 10, 0, '0', '0', 3, 0, ''),
(116, 5, 76, 0, '0', '0', 3, 0, ''),
(117, 5, 125, 0, '0', '0', 3, 0, ''),
(118, 5, 131, 0, '0', '0', 3, 0, ''),
(119, 5, 12, 0, '0', '0', 3, 0, ''),
(120, 5, 143, 0, '0', '0', 3, 0, ''),
(121, 5, 139, 0, '0', '0', 3, 0, ''),
(122, 5, 13, 0, '0', '0', 3, 0, ''),
(123, 5, 2, 0, '0', '0', 3, 0, ''),
(124, 5, 14, 0, '0', '0', 3, 0, ''),
(125, 5, 15, 0, '0', '0', 3, 0, ''),
(126, 5, 36, 0, '0', '0', 3, 0, ''),
(127, 5, 193, 0, '0', '0', 3, 0, ''),
(128, 5, 37, 0, '0', '0', 3, 0, ''),
(129, 5, 7, 0, '0', '0', 3, 0, ''),
(130, 5, 18, 0, '0', '0', 3, 0, ''),
(131, 6, 15, 0, '0', '0', 1, 0, ''),
(132, 6, 2, 0, '0', '0', 4, 0, ''),
(133, 6, 3, 0, '0', '0', 5, 0, ''),
(134, 6, 236, 0, '0', '0', 6, 0, ''),
(135, 6, 76, 0, '0', '0', 7, 0, ''),
(136, 6, 16, 0, '0', '0', 8, 0, ''),
(137, 6, 1, 0, '0', '0', 9, 0, ''),
(138, 6, 20, 0, '0', '0', 10, 0, ''),
(139, 6, 86, 0, '0', '0', 11, 0, ''),
(140, 6, 6, 0, '0', '0', 12, 0, ''),
(141, 6, 7, 0, '0', '0', 13, 0, ''),
(142, 6, 8, 0, '0', '0', 14, 0, ''),
(143, 6, 17, 0, '0', '0', 15, 0, ''),
(144, 6, 9, 0, '0', '0', 16, 0, ''),
(145, 6, 74, 0, '0', '0', 17, 0, ''),
(146, 6, 143, 0, '0', '0', 18, 0, ''),
(147, 6, 26, 0, '0', '0', 19, 0, ''),
(148, 6, 10, 0, '0', '0', 20, 0, ''),
(149, 6, 131, 0, '0', '0', 21, 0, ''),
(150, 6, 12, 0, '0', '0', 22, 0, ''),
(151, 6, 125, 0, '0', '0', 23, 0, ''),
(152, 6, 139, 0, '0', '0', 24, 0, ''),
(153, 6, 13, 0, '0', '0', 25, 0, ''),
(154, 6, 14, 0, '0', '0', 26, 0, ''),
(155, 6, 36, 0, '0', '0', 27, 0, ''),
(156, 6, 18, 0, '0', '0', 28, 0, ''),
(157, 6, 193, 0, '0', '0', 29, 0, ''),
(158, 6, 37, 0, '0', '0', 30, 0, ''),
(159, 7, 3, 0, '0', '0', 14, 0, ''),
(160, 7, 236, 0, '0', '0', 14, 0, ''),
(161, 7, 16, 0, '0', '0', 14, 0, ''),
(162, 7, 20, 0, '0', '0', 14, 0, ''),
(163, 7, 1, 0, '0', '0', 14, 0, ''),
(164, 7, 86, 0, '0', '0', 14, 0, ''),
(165, 7, 9, 0, '0', '0', 14, 0, ''),
(166, 7, 74, 0, '0', '0', 14, 0, ''),
(167, 7, 6, 0, '0', '0', 14, 0, ''),
(168, 7, 8, 0, '0', '0', 14, 0, ''),
(169, 7, 26, 0, '0', '0', 14, 0, ''),
(170, 7, 10, 0, '0', '0', 14, 0, ''),
(171, 7, 76, 0, '0', '0', 14, 0, ''),
(172, 7, 125, 0, '0', '0', 14, 0, ''),
(173, 7, 131, 0, '0', '0', 14, 0, ''),
(174, 7, 12, 0, '0', '0', 14, 0, ''),
(175, 7, 143, 0, '0', '0', 14, 0, ''),
(176, 7, 139, 0, '0', '0', 14, 0, ''),
(177, 7, 13, 0, '0', '0', 14, 0, ''),
(178, 7, 2, 0, '0', '0', 14, 0, ''),
(179, 7, 14, 0, '0', '0', 14, 0, ''),
(180, 7, 15, 0, '0', '0', 14, 0, ''),
(181, 7, 36, 0, '0', '0', 14, 0, ''),
(182, 7, 193, 0, '0', '0', 14, 0, ''),
(183, 7, 37, 0, '0', '0', 14, 0, ''),
(184, 7, 7, 0, '0', '0', 14, 0, ''),
(185, 7, 18, 0, '0', '0', 14, 0, ''),
(186, 7, 17, 0, '0', '0', 14, 0, ''),
(187, 8, 3, 0, '0', '0', 31, 0, ''),
(188, 8, 236, 0, '0', '0', 31, 0, ''),
(189, 8, 16, 0, '0', '0', 31, 0, ''),
(190, 8, 20, 0, '0', '0', 31, 0, ''),
(191, 8, 1, 0, '0', '0', 31, 0, ''),
(192, 8, 86, 0, '0', '0', 31, 0, ''),
(193, 8, 9, 0, '0', '0', 31, 0, ''),
(194, 8, 74, 0, '0', '0', 31, 0, ''),
(195, 8, 6, 0, '0', '0', 31, 0, ''),
(196, 8, 8, 0, '0', '0', 31, 0, ''),
(197, 8, 26, 0, '0', '0', 31, 0, ''),
(198, 8, 10, 0, '0', '0', 31, 0, ''),
(199, 8, 76, 0, '0', '0', 31, 0, ''),
(200, 8, 125, 0, '0', '0', 31, 0, ''),
(201, 8, 131, 0, '0', '0', 31, 0, ''),
(202, 8, 12, 0, '0', '0', 31, 0, ''),
(203, 8, 143, 0, '0', '0', 31, 0, ''),
(204, 8, 139, 0, '0', '0', 31, 0, ''),
(205, 8, 13, 0, '0', '0', 31, 0, ''),
(206, 8, 2, 0, '0', '0', 31, 0, ''),
(207, 8, 14, 0, '0', '0', 31, 0, ''),
(208, 8, 15, 0, '0', '0', 31, 0, ''),
(209, 8, 36, 0, '0', '0', 31, 0, ''),
(210, 8, 193, 0, '0', '0', 31, 0, ''),
(211, 8, 37, 0, '0', '0', 31, 0, ''),
(212, 8, 7, 0, '0', '0', 31, 0, ''),
(213, 8, 18, 0, '0', '0', 31, 0, ''),
(214, 8, 17, 0, '0', '0', 31, 0, ''),
(215, 9, 3, 0, '0', '0', 32, 0, ''),
(216, 9, 236, 0, '0', '0', 32, 0, ''),
(217, 9, 16, 0, '0', '0', 32, 0, ''),
(218, 9, 20, 0, '0', '0', 32, 0, ''),
(219, 9, 1, 0, '0', '0', 32, 0, ''),
(220, 9, 86, 0, '0', '0', 32, 0, ''),
(221, 9, 9, 0, '0', '0', 32, 0, ''),
(222, 9, 74, 0, '0', '0', 32, 0, ''),
(223, 9, 6, 0, '0', '0', 32, 0, ''),
(224, 9, 8, 0, '0', '0', 32, 0, ''),
(225, 9, 26, 0, '0', '0', 32, 0, ''),
(226, 9, 10, 0, '0', '0', 32, 0, ''),
(227, 9, 76, 0, '0', '0', 32, 0, ''),
(228, 9, 125, 0, '0', '0', 32, 0, ''),
(229, 9, 131, 0, '0', '0', 32, 0, ''),
(230, 9, 12, 0, '0', '0', 32, 0, ''),
(231, 9, 143, 0, '0', '0', 32, 0, ''),
(232, 9, 139, 0, '0', '0', 32, 0, ''),
(233, 9, 13, 0, '0', '0', 32, 0, ''),
(234, 9, 2, 0, '0', '0', 32, 0, ''),
(235, 9, 14, 0, '0', '0', 32, 0, ''),
(236, 9, 15, 0, '0', '0', 32, 0, ''),
(237, 9, 36, 0, '0', '0', 32, 0, ''),
(238, 9, 193, 0, '0', '0', 32, 0, ''),
(239, 9, 37, 0, '0', '0', 32, 0, ''),
(240, 9, 7, 0, '0', '0', 32, 0, ''),
(241, 9, 18, 0, '0', '0', 32, 0, ''),
(242, 9, 17, 0, '0', '0', 32, 0, ''),
(243, 10, 3, 0, '0', '0', 33, 0, ''),
(244, 10, 236, 0, '0', '0', 33, 0, ''),
(245, 10, 16, 0, '0', '0', 33, 0, ''),
(246, 10, 20, 0, '0', '0', 33, 0, ''),
(247, 10, 1, 0, '0', '0', 33, 0, ''),
(248, 10, 86, 0, '0', '0', 33, 0, ''),
(249, 10, 9, 0, '0', '0', 33, 0, ''),
(250, 10, 74, 0, '0', '0', 33, 0, ''),
(251, 10, 6, 0, '0', '0', 33, 0, ''),
(252, 10, 8, 0, '0', '0', 33, 0, ''),
(253, 10, 26, 0, '0', '0', 33, 0, ''),
(254, 10, 10, 0, '0', '0', 33, 0, ''),
(255, 10, 76, 0, '0', '0', 33, 0, ''),
(256, 10, 125, 0, '0', '0', 33, 0, ''),
(257, 10, 131, 0, '0', '0', 33, 0, ''),
(258, 10, 12, 0, '0', '0', 33, 0, ''),
(259, 10, 143, 0, '0', '0', 33, 0, ''),
(260, 10, 139, 0, '0', '0', 33, 0, ''),
(261, 10, 13, 0, '0', '0', 33, 0, ''),
(262, 10, 2, 0, '0', '0', 33, 0, ''),
(263, 10, 14, 0, '0', '0', 33, 0, ''),
(264, 10, 15, 0, '0', '0', 33, 0, ''),
(265, 10, 36, 0, '0', '0', 33, 0, ''),
(266, 10, 193, 0, '0', '0', 33, 0, ''),
(267, 10, 37, 0, '0', '0', 33, 0, ''),
(268, 10, 7, 0, '0', '0', 33, 0, ''),
(269, 10, 18, 0, '0', '0', 33, 0, ''),
(270, 10, 17, 0, '0', '0', 33, 0, ''),
(271, 11, 3, 0, '0', '0', 36, 0, ''),
(272, 11, 236, 0, '0', '0', 36, 0, ''),
(273, 11, 16, 0, '0', '0', 36, 0, ''),
(274, 11, 20, 0, '0', '0', 36, 0, ''),
(275, 11, 1, 0, '0', '0', 36, 0, ''),
(276, 11, 86, 0, '0', '0', 36, 0, ''),
(277, 11, 9, 0, '0', '0', 36, 0, ''),
(278, 11, 74, 0, '0', '0', 36, 0, ''),
(279, 11, 6, 0, '0', '0', 36, 0, ''),
(280, 11, 8, 0, '0', '0', 36, 0, ''),
(281, 11, 26, 0, '0', '0', 36, 0, ''),
(282, 11, 10, 0, '0', '0', 36, 0, ''),
(283, 11, 76, 0, '0', '0', 36, 0, ''),
(284, 11, 125, 0, '0', '0', 36, 0, ''),
(285, 11, 131, 0, '0', '0', 36, 0, ''),
(286, 11, 12, 0, '0', '0', 36, 0, ''),
(287, 11, 143, 0, '0', '0', 36, 0, ''),
(288, 11, 139, 0, '0', '0', 36, 0, ''),
(289, 11, 13, 0, '0', '0', 36, 0, ''),
(290, 11, 2, 0, '0', '0', 36, 0, ''),
(291, 11, 14, 0, '0', '0', 36, 0, ''),
(292, 11, 15, 0, '0', '0', 36, 0, ''),
(293, 11, 36, 0, '0', '0', 36, 0, ''),
(294, 11, 193, 0, '0', '0', 36, 0, ''),
(295, 11, 37, 0, '0', '0', 36, 0, ''),
(296, 11, 7, 0, '0', '0', 36, 0, ''),
(297, 11, 18, 0, '0', '0', 36, 0, ''),
(298, 11, 17, 0, '0', '0', 36, 0, ''),
(302, 15, 3, 0, '0', '0', 2, 0, ''),
(303, 15, 236, 0, '0', '0', 2, 0, ''),
(304, 15, 16, 0, '0', '0', 2, 0, ''),
(305, 15, 20, 0, '0', '0', 2, 0, ''),
(306, 15, 1, 0, '0', '0', 2, 0, ''),
(307, 15, 86, 0, '0', '0', 2, 0, ''),
(308, 15, 9, 0, '0', '0', 2, 0, ''),
(309, 15, 6, 0, '0', '0', 2, 0, ''),
(310, 15, 8, 0, '0', '0', 2, 0, ''),
(311, 15, 26, 0, '0', '0', 2, 0, ''),
(312, 15, 10, 0, '0', '0', 2, 0, ''),
(313, 15, 76, 0, '0', '0', 2, 0, ''),
(314, 15, 125, 0, '0', '0', 2, 0, ''),
(315, 15, 131, 0, '0', '0', 2, 0, ''),
(316, 15, 12, 0, '0', '0', 2, 0, ''),
(317, 15, 143, 0, '0', '0', 2, 0, ''),
(318, 15, 58, 0, '0', '0', 2, 0, ''),
(319, 15, 13, 0, '0', '0', 2, 0, ''),
(320, 15, 2, 0, '0', '0', 2, 0, ''),
(321, 15, 14, 0, '0', '0', 2, 0, ''),
(322, 15, 15, 0, '0', '0', 2, 0, ''),
(323, 15, 36, 0, '0', '0', 2, 0, ''),
(324, 15, 193, 0, '0', '0', 2, 0, ''),
(325, 15, 37, 0, '0', '0', 2, 0, ''),
(326, 15, 7, 0, '0', '0', 2, 0, ''),
(327, 15, 18, 0, '0', '0', 2, 0, ''),
(333, 1, 231, 0, '0', '0', 1, 0, ''),
(334, 1, 244, 0, '0', '0', 1, 0, ''),
(335, 1, 230, 0, '0', '0', 1, 0, ''),
(336, 1, 38, 0, '0', '0', 1, 0, ''),
(337, 1, 39, 0, '0', '0', 1, 0, ''),
(338, 1, 40, 0, '0', '0', 1, 0, ''),
(339, 1, 41, 0, '0', '0', 1, 0, ''),
(340, 1, 42, 0, '0', '0', 1, 0, ''),
(341, 1, 232, 0, '0', '0', 1, 0, ''),
(342, 1, 43, 0, '0', '0', 1, 0, ''),
(343, 1, 44, 0, '0', '0', 1, 0, ''),
(344, 1, 45, 0, '0', '0', 1, 0, ''),
(345, 1, 46, 0, '0', '0', 1, 0, ''),
(346, 1, 24, 0, '0', '0', 1, 0, ''),
(347, 1, 58, 0, '0', '0', 1, 0, '');

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

--
-- Table structure for table `ps_tax_rules_group`
--

CREATE TABLE `ps_tax_rules_group` (
  `id_tax_rules_group` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `active` int(11) NOT NULL,
  `deleted` tinyint(1) UNSIGNED NOT NULL,
  `date_add` datetime NOT NULL,
  `date_upd` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_tax_rules_group`
--

INSERT INTO `ps_tax_rules_group` (`id_tax_rules_group`, `name`, `active`, `deleted`, `date_add`, `date_upd`) VALUES
(1, 'PT Standard Rate (23%)', 1, 0, '2020-11-14 18:14:16', '2021-10-26 12:06:12'),
(2, 'PT Reduced Rate (13%)', 1, 1, '2020-11-14 18:14:16', '2021-10-26 12:04:00'),
(3, 'PT Super Reduced Rate (6%)', 1, 0, '2020-11-14 18:14:16', '2020-11-14 18:14:16'),
(4, 'PT Foodstuff Rate (6%)', 1, 0, '2020-11-14 18:14:16', '2020-11-14 18:14:16'),
(5, 'PT Books Rate (6%)', 1, 0, '2020-11-14 18:14:16', '2020-11-14 18:14:16'),
(6, 'EU VAT For Virtual Products', 1, 0, '2020-11-14 18:14:16', '2020-11-14 18:14:16'),
(7, 'FR Taux standard (20%)', 1, 0, '2020-12-29 18:45:07', '2020-12-29 18:45:07'),
(8, 'FR Taux réduit (10%)', 1, 0, '2020-12-29 18:45:07', '2020-12-29 18:45:07'),
(9, 'FR Taux réduit (5.5%)', 1, 0, '2020-12-29 18:45:07', '2020-12-29 18:45:07'),
(10, 'FR Taux super réduit (2.1%)', 1, 0, '2020-12-29 18:45:07', '2020-12-29 18:45:07'),
(11, 'PT Zero Rate (0%)', 1, 0, '2021-07-01 11:58:21', '2021-10-26 12:01:23'),
(15, 'PT Reduced Rate (13%)', 1, 0, '2020-11-14 18:14:16', '2021-10-26 12:04:00');

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

--
-- Table structure for table `ps_tax_rules_group_shop`
--

CREATE TABLE `ps_tax_rules_group_shop` (
  `id_tax_rules_group` int(11) UNSIGNED NOT NULL,
  `id_shop` int(11) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_tax_rules_group_shop`
--

INSERT INTO `ps_tax_rules_group_shop` (`id_tax_rules_group`, `id_shop`) VALUES
(1, 1),
(2, 1),
(3, 1),
(4, 1),
(5, 1),
(6, 1),
(7, 1),
(8, 1),
(9, 1),
(10, 1),
(11, 1),
(15, 1);

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

--
-- Table structure for table `ps_timezone`
--

CREATE TABLE `ps_timezone` (
  `id_timezone` int(10) UNSIGNED NOT NULL,
  `name` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_timezone`
--

INSERT INTO `ps_timezone` (`id_timezone`, `name`) VALUES
(1, 'Africa/Abidjan'),
(2, 'Africa/Accra'),
(3, 'Africa/Addis_Ababa'),
(4, 'Africa/Algiers'),
(5, 'Africa/Asmara'),
(6, 'Africa/Asmera'),
(7, 'Africa/Bamako'),
(8, 'Africa/Bangui'),
(9, 'Africa/Banjul'),
(10, 'Africa/Bissau'),
(11, 'Africa/Blantyre'),
(12, 'Africa/Brazzaville'),
(13, 'Africa/Bujumbura'),
(14, 'Africa/Cairo'),
(15, 'Africa/Casablanca'),
(16, 'Africa/Ceuta'),
(17, 'Africa/Conakry'),
(18, 'Africa/Dakar'),
(19, 'Africa/Dar_es_Salaam'),
(20, 'Africa/Djibouti'),
(21, 'Africa/Douala'),
(22, 'Africa/El_Aaiun'),
(23, 'Africa/Freetown'),
(24, 'Africa/Gaborone'),
(25, 'Africa/Harare'),
(26, 'Africa/Johannesburg'),
(27, 'Africa/Kampala'),
(28, 'Africa/Khartoum'),
(29, 'Africa/Kigali'),
(30, 'Africa/Kinshasa'),
(31, 'Africa/Lagos'),
(32, 'Africa/Libreville'),
(33, 'Africa/Lome'),
(34, 'Africa/Luanda'),
(35, 'Africa/Lubumbashi'),
(36, 'Africa/Lusaka'),
(37, 'Africa/Malabo'),
(38, 'Africa/Maputo'),
(39, 'Africa/Maseru'),
(40, 'Africa/Mbabane'),
(41, 'Africa/Mogadishu'),
(42, 'Africa/Monrovia'),
(43, 'Africa/Nairobi'),
(44, 'Africa/Ndjamena'),
(45, 'Africa/Niamey'),
(46, 'Africa/Nouakchott'),
(47, 'Africa/Ouagadougou'),
(48, 'Africa/Porto-Novo'),
(49, 'Africa/Sao_Tome'),
(50, 'Africa/Timbuktu'),
(51, 'Africa/Tripoli'),
(52, 'Africa/Tunis'),
(53, 'Africa/Windhoek'),
(54, 'America/Adak'),
(55, 'America/Anchorage '),
(56, 'America/Anguilla'),
(57, 'America/Antigua'),
(58, 'America/Araguaina'),
(59, 'America/Argentina/Buenos_Aires'),
(60, 'America/Argentina/Catamarca'),
(61, 'America/Argentina/ComodRivadavia'),
(62, 'America/Argentina/Cordoba'),
(63, 'America/Argentina/Jujuy'),
(64, 'America/Argentina/La_Rioja'),
(65, 'America/Argentina/Mendoza'),
(66, 'America/Argentina/Rio_Gallegos'),
(67, 'America/Argentina/Salta'),
(68, 'America/Argentina/San_Juan'),
(69, 'America/Argentina/San_Luis'),
(70, 'America/Argentina/Tucuman'),
(71, 'America/Argentina/Ushuaia'),
(72, 'America/Aruba'),
(73, 'America/Asuncion'),
(74, 'America/Atikokan'),
(75, 'America/Atka'),
(76, 'America/Bahia'),
(77, 'America/Barbados'),
(78, 'America/Belem'),
(79, 'America/Belize'),
(80, 'America/Blanc-Sablon'),
(81, 'America/Boa_Vista'),
(82, 'America/Bogota'),
(83, 'America/Boise'),
(84, 'America/Buenos_Aires'),
(85, 'America/Cambridge_Bay'),
(86, 'America/Campo_Grande'),
(87, 'America/Cancun'),
(88, 'America/Caracas'),
(89, 'America/Catamarca'),
(90, 'America/Cayenne'),
(91, 'America/Cayman'),
(92, 'America/Chicago'),
(93, 'America/Chihuahua'),
(94, 'America/Coral_Harbour'),
(95, 'America/Cordoba'),
(96, 'America/Costa_Rica'),
(97, 'America/Cuiaba'),
(98, 'America/Curacao'),
(99, 'America/Danmarkshavn'),
(100, 'America/Dawson'),
(101, 'America/Dawson_Creek'),
(102, 'America/Denver'),
(103, 'America/Detroit'),
(104, 'America/Dominica'),
(105, 'America/Edmonton'),
(106, 'America/Eirunepe'),
(107, 'America/El_Salvador'),
(108, 'America/Ensenada'),
(109, 'America/Fort_Wayne'),
(110, 'America/Fortaleza'),
(111, 'America/Glace_Bay'),
(112, 'America/Godthab'),
(113, 'America/Goose_Bay'),
(114, 'America/Grand_Turk'),
(115, 'America/Grenada'),
(116, 'America/Guadeloupe'),
(117, 'America/Guatemala'),
(118, 'America/Guayaquil'),
(119, 'America/Guyana'),
(120, 'America/Halifax'),
(121, 'America/Havana'),
(122, 'America/Hermosillo'),
(123, 'America/Indiana/Indianapolis'),
(124, 'America/Indiana/Knox'),
(125, 'America/Indiana/Marengo'),
(126, 'America/Indiana/Petersburg'),
(127, 'America/Indiana/Tell_City'),
(128, 'America/Indiana/Vevay'),
(129, 'America/Indiana/Vincennes'),
(130, 'America/Indiana/Winamac'),
(131, 'America/Indianapolis'),
(132, 'America/Inuvik'),
(133, 'America/Iqaluit'),
(134, 'America/Jamaica'),
(135, 'America/Jujuy'),
(136, 'America/Juneau'),
(137, 'America/Kentucky/Louisville'),
(138, 'America/Kentucky/Monticello'),
(139, 'America/Knox_IN'),
(140, 'America/La_Paz'),
(141, 'America/Lima'),
(142, 'America/Los_Angeles'),
(143, 'America/Louisville'),
(144, 'America/Maceio'),
(145, 'America/Managua'),
(146, 'America/Manaus'),
(147, 'America/Marigot'),
(148, 'America/Martinique'),
(149, 'America/Mazatlan'),
(150, 'America/Mendoza'),
(151, 'America/Menominee'),
(152, 'America/Merida'),
(153, 'America/Mexico_City'),
(154, 'America/Miquelon'),
(155, 'America/Moncton'),
(156, 'America/Monterrey'),
(157, 'America/Montevideo'),
(158, 'America/Montreal'),
(159, 'America/Montserrat'),
(160, 'America/Nassau'),
(161, 'America/New_York'),
(162, 'America/Nipigon'),
(163, 'America/Nome'),
(164, 'America/Noronha'),
(165, 'America/North_Dakota/Center'),
(166, 'America/North_Dakota/New_Salem'),
(167, 'America/Panama'),
(168, 'America/Pangnirtung'),
(169, 'America/Paramaribo'),
(170, 'America/Phoenix'),
(171, 'America/Port-au-Prince'),
(172, 'America/Port_of_Spain'),
(173, 'America/Porto_Acre'),
(174, 'America/Porto_Velho'),
(175, 'America/Puerto_Rico'),
(176, 'America/Rainy_River'),
(177, 'America/Rankin_Inlet'),
(178, 'America/Recife'),
(179, 'America/Regina'),
(180, 'America/Resolute'),
(181, 'America/Rio_Branco'),
(182, 'America/Rosario'),
(183, 'America/Santarem'),
(184, 'America/Santiago'),
(185, 'America/Santo_Domingo'),
(186, 'America/Sao_Paulo'),
(187, 'America/Scoresbysund'),
(188, 'America/Shiprock'),
(189, 'America/St_Barthelemy'),
(190, 'America/St_Johns'),
(191, 'America/St_Kitts'),
(192, 'America/St_Lucia'),
(193, 'America/St_Thomas'),
(194, 'America/St_Vincent'),
(195, 'America/Swift_Current'),
(196, 'America/Tegucigalpa'),
(197, 'America/Thule'),
(198, 'America/Thunder_Bay'),
(199, 'America/Tijuana'),
(200, 'America/Toronto'),
(201, 'America/Tortola'),
(202, 'America/Vancouver'),
(203, 'America/Virgin'),
(204, 'America/Whitehorse'),
(205, 'America/Winnipeg'),
(206, 'America/Yakutat'),
(207, 'America/Yellowknife'),
(208, 'Antarctica/Casey'),
(209, 'Antarctica/Davis'),
(210, 'Antarctica/DumontDUrville'),
(211, 'Antarctica/Mawson'),
(212, 'Antarctica/McMurdo'),
(213, 'Antarctica/Palmer'),
(214, 'Antarctica/Rothera'),
(215, 'Antarctica/South_Pole'),
(216, 'Antarctica/Syowa'),
(217, 'Antarctica/Vostok'),
(218, 'Arctic/Longyearbyen'),
(219, 'Asia/Aden'),
(220, 'Asia/Almaty'),
(221, 'Asia/Amman'),
(222, 'Asia/Anadyr'),
(223, 'Asia/Aqtau'),
(224, 'Asia/Aqtobe'),
(225, 'Asia/Ashgabat'),
(226, 'Asia/Ashkhabad'),
(227, 'Asia/Baghdad'),
(228, 'Asia/Bahrain'),
(229, 'Asia/Baku'),
(230, 'Asia/Bangkok'),
(231, 'Asia/Beirut'),
(232, 'Asia/Bishkek'),
(233, 'Asia/Brunei'),
(234, 'Asia/Calcutta'),
(235, 'Asia/Choibalsan'),
(236, 'Asia/Chongqing'),
(237, 'Asia/Chungking'),
(238, 'Asia/Colombo'),
(239, 'Asia/Dacca'),
(240, 'Asia/Damascus'),
(241, 'Asia/Dhaka'),
(242, 'Asia/Dili'),
(243, 'Asia/Dubai'),
(244, 'Asia/Dushanbe'),
(245, 'Asia/Gaza'),
(246, 'Asia/Harbin'),
(247, 'Asia/Ho_Chi_Minh'),
(248, 'Asia/Hong_Kong'),
(249, 'Asia/Hovd'),
(250, 'Asia/Irkutsk'),
(251, 'Asia/Istanbul'),
(252, 'Asia/Jakarta'),
(253, 'Asia/Jayapura'),
(254, 'Asia/Jerusalem'),
(255, 'Asia/Kabul'),
(256, 'Asia/Kamchatka'),
(257, 'Asia/Karachi'),
(258, 'Asia/Kashgar'),
(259, 'Asia/Kathmandu'),
(260, 'Asia/Katmandu'),
(261, 'Asia/Kolkata'),
(262, 'Asia/Krasnoyarsk'),
(263, 'Asia/Kuala_Lumpur'),
(264, 'Asia/Kuching'),
(265, 'Asia/Kuwait'),
(266, 'Asia/Macao'),
(267, 'Asia/Macau'),
(268, 'Asia/Magadan'),
(269, 'Asia/Makassar'),
(270, 'Asia/Manila'),
(271, 'Asia/Muscat'),
(272, 'Asia/Nicosia'),
(273, 'Asia/Novosibirsk'),
(274, 'Asia/Omsk'),
(275, 'Asia/Oral'),
(276, 'Asia/Phnom_Penh'),
(277, 'Asia/Pontianak'),
(278, 'Asia/Pyongyang'),
(279, 'Asia/Qatar'),
(280, 'Asia/Qyzylorda'),
(281, 'Asia/Rangoon'),
(282, 'Asia/Riyadh'),
(283, 'Asia/Saigon'),
(284, 'Asia/Sakhalin'),
(285, 'Asia/Samarkand'),
(286, 'Asia/Seoul'),
(287, 'Asia/Shanghai'),
(288, 'Asia/Singapore'),
(289, 'Asia/Taipei'),
(290, 'Asia/Tashkent'),
(291, 'Asia/Tbilisi'),
(292, 'Asia/Tehran'),
(293, 'Asia/Tel_Aviv'),
(294, 'Asia/Thimbu'),
(295, 'Asia/Thimphu'),
(296, 'Asia/Tokyo'),
(297, 'Asia/Ujung_Pandang'),
(298, 'Asia/Ulaanbaatar'),
(299, 'Asia/Ulan_Bator'),
(300, 'Asia/Urumqi'),
(301, 'Asia/Vientiane'),
(302, 'Asia/Vladivostok'),
(303, 'Asia/Yakutsk'),
(304, 'Asia/Yekaterinburg'),
(305, 'Asia/Yerevan'),
(306, 'Atlantic/Azores'),
(307, 'Atlantic/Bermuda'),
(308, 'Atlantic/Canary'),
(309, 'Atlantic/Cape_Verde'),
(310, 'Atlantic/Faeroe'),
(311, 'Atlantic/Faroe'),
(312, 'Atlantic/Jan_Mayen'),
(313, 'Atlantic/Madeira'),
(314, 'Atlantic/Reykjavik'),
(315, 'Atlantic/South_Georgia'),
(316, 'Atlantic/St_Helena'),
(317, 'Atlantic/Stanley'),
(318, 'Australia/ACT'),
(319, 'Australia/Adelaide'),
(320, 'Australia/Brisbane'),
(321, 'Australia/Broken_Hill'),
(322, 'Australia/Canberra'),
(323, 'Australia/Currie'),
(324, 'Australia/Darwin'),
(325, 'Australia/Eucla'),
(326, 'Australia/Hobart'),
(327, 'Australia/LHI'),
(328, 'Australia/Lindeman'),
(329, 'Australia/Lord_Howe'),
(330, 'Australia/Melbourne'),
(331, 'Australia/North'),
(332, 'Australia/NSW'),
(333, 'Australia/Perth'),
(334, 'Australia/Queensland'),
(335, 'Australia/South'),
(336, 'Australia/Sydney'),
(337, 'Australia/Tasmania'),
(338, 'Australia/Victoria'),
(339, 'Australia/West'),
(340, 'Australia/Yancowinna'),
(341, 'Europe/Amsterdam'),
(342, 'Europe/Andorra'),
(343, 'Europe/Athens'),
(344, 'Europe/Belfast'),
(345, 'Europe/Belgrade'),
(346, 'Europe/Berlin'),
(347, 'Europe/Bratislava'),
(348, 'Europe/Brussels'),
(349, 'Europe/Bucharest'),
(350, 'Europe/Budapest'),
(351, 'Europe/Chisinau'),
(352, 'Europe/Copenhagen'),
(353, 'Europe/Dublin'),
(354, 'Europe/Gibraltar'),
(355, 'Europe/Guernsey'),
(356, 'Europe/Helsinki'),
(357, 'Europe/Isle_of_Man'),
(358, 'Europe/Istanbul'),
(359, 'Europe/Jersey'),
(360, 'Europe/Kaliningrad'),
(361, 'Europe/Kiev'),
(362, 'Europe/Lisbon'),
(363, 'Europe/Ljubljana'),
(364, 'Europe/London'),
(365, 'Europe/Luxembourg'),
(366, 'Europe/Madrid'),
(367, 'Europe/Malta'),
(368, 'Europe/Mariehamn'),
(369, 'Europe/Minsk'),
(370, 'Europe/Monaco'),
(371, 'Europe/Moscow'),
(372, 'Europe/Nicosia'),
(373, 'Europe/Oslo'),
(374, 'Europe/Paris'),
(375, 'Europe/Podgorica'),
(376, 'Europe/Prague'),
(377, 'Europe/Riga'),
(378, 'Europe/Rome'),
(379, 'Europe/Samara'),
(380, 'Europe/San_Marino'),
(381, 'Europe/Sarajevo'),
(382, 'Europe/Simferopol'),
(383, 'Europe/Skopje'),
(384, 'Europe/Sofia'),
(385, 'Europe/Stockholm'),
(386, 'Europe/Tallinn'),
(387, 'Europe/Tirane'),
(388, 'Europe/Tiraspol'),
(389, 'Europe/Uzhgorod'),
(390, 'Europe/Vaduz'),
(391, 'Europe/Vatican'),
(392, 'Europe/Vienna'),
(393, 'Europe/Vilnius'),
(394, 'Europe/Volgograd'),
(395, 'Europe/Warsaw'),
(396, 'Europe/Zagreb'),
(397, 'Europe/Zaporozhye'),
(398, 'Europe/Zurich'),
(399, 'Indian/Antananarivo'),
(400, 'Indian/Chagos'),
(401, 'Indian/Christmas'),
(402, 'Indian/Cocos'),
(403, 'Indian/Comoro'),
(404, 'Indian/Kerguelen'),
(405, 'Indian/Mahe'),
(406, 'Indian/Maldives'),
(407, 'Indian/Mauritius'),
(408, 'Indian/Mayotte'),
(409, 'Indian/Reunion'),
(410, 'Pacific/Apia'),
(411, 'Pacific/Auckland'),
(412, 'Pacific/Chatham'),
(413, 'Pacific/Easter'),
(414, 'Pacific/Efate'),
(415, 'Pacific/Enderbury'),
(416, 'Pacific/Fakaofo'),
(417, 'Pacific/Fiji'),
(418, 'Pacific/Funafuti'),
(419, 'Pacific/Galapagos'),
(420, 'Pacific/Gambier'),
(421, 'Pacific/Guadalcanal'),
(422, 'Pacific/Guam'),
(423, 'Pacific/Honolulu'),
(424, 'Pacific/Johnston'),
(425, 'Pacific/Kiritimati'),
(426, 'Pacific/Kosrae'),
(427, 'Pacific/Kwajalein'),
(428, 'Pacific/Majuro'),
(429, 'Pacific/Marquesas'),
(430, 'Pacific/Midway'),
(431, 'Pacific/Nauru'),
(432, 'Pacific/Niue'),
(433, 'Pacific/Norfolk'),
(434, 'Pacific/Noumea'),
(435, 'Pacific/Pago_Pago'),
(436, 'Pacific/Palau'),
(437, 'Pacific/Pitcairn'),
(438, 'Pacific/Ponape'),
(439, 'Pacific/Port_Moresby'),
(440, 'Pacific/Rarotonga'),
(441, 'Pacific/Saipan'),
(442, 'Pacific/Samoa'),
(443, 'Pacific/Tahiti'),
(444, 'Pacific/Tarawa'),
(445, 'Pacific/Tongatapu'),
(446, 'Pacific/Truk'),
(447, 'Pacific/Wake'),
(448, 'Pacific/Wallis'),
(449, 'Pacific/Yap'),
(450, 'Brazil/Acre'),
(451, 'Brazil/DeNoronha'),
(452, 'Brazil/East'),
(453, 'Brazil/West'),
(454, 'Canada/Atlantic'),
(455, 'Canada/Central'),
(456, 'Canada/East-Saskatchewan'),
(457, 'Canada/Eastern'),
(458, 'Canada/Mountain'),
(459, 'Canada/Newfoundland'),
(460, 'Canada/Pacific'),
(461, 'Canada/Saskatchewan'),
(462, 'Canada/Yukon'),
(463, 'CET'),
(464, 'Chile/Continental'),
(465, 'Chile/EasterIsland'),
(466, 'CST6CDT'),
(467, 'Cuba'),
(468, 'EET'),
(469, 'Egypt'),
(470, 'Eire'),
(471, 'EST'),
(472, 'EST5EDT'),
(473, 'Etc/GMT'),
(474, 'Etc/GMT+0'),
(475, 'Etc/GMT+1'),
(476, 'Etc/GMT+10'),
(477, 'Etc/GMT+11'),
(478, 'Etc/GMT+12'),
(479, 'Etc/GMT+2'),
(480, 'Etc/GMT+3'),
(481, 'Etc/GMT+4'),
(482, 'Etc/GMT+5'),
(483, 'Etc/GMT+6'),
(484, 'Etc/GMT+7'),
(485, 'Etc/GMT+8'),
(486, 'Etc/GMT+9'),
(487, 'Etc/GMT-0'),
(488, 'Etc/GMT-1'),
(489, 'Etc/GMT-10'),
(490, 'Etc/GMT-11'),
(491, 'Etc/GMT-12'),
(492, 'Etc/GMT-13'),
(493, 'Etc/GMT-14'),
(494, 'Etc/GMT-2'),
(495, 'Etc/GMT-3'),
(496, 'Etc/GMT-4'),
(497, 'Etc/GMT-5'),
(498, 'Etc/GMT-6'),
(499, 'Etc/GMT-7'),
(500, 'Etc/GMT-8'),
(501, 'Etc/GMT-9'),
(502, 'Etc/GMT0'),
(503, 'Etc/Greenwich'),
(504, 'Etc/UCT'),
(505, 'Etc/Universal'),
(506, 'Etc/UTC'),
(507, 'Etc/Zulu'),
(508, 'Factory'),
(509, 'GB'),
(510, 'GB-Eire'),
(511, 'GMT'),
(512, 'GMT+0'),
(513, 'GMT-0'),
(514, 'GMT0'),
(515, 'Greenwich'),
(516, 'Hongkong'),
(517, 'HST'),
(518, 'Iceland'),
(519, 'Iran'),
(520, 'Israel'),
(521, 'Jamaica'),
(522, 'Japan'),
(523, 'Kwajalein'),
(524, 'Libya'),
(525, 'MET'),
(526, 'Mexico/BajaNorte'),
(527, 'Mexico/BajaSur'),
(528, 'Mexico/General'),
(529, 'MST'),
(530, 'MST7MDT'),
(531, 'Navajo'),
(532, 'NZ'),
(533, 'NZ-CHAT'),
(534, 'Poland'),
(535, 'Portugal'),
(536, 'PRC'),
(537, 'PST8PDT'),
(538, 'ROC'),
(539, 'ROK'),
(540, 'Singapore'),
(541, 'Turkey'),
(542, 'UCT'),
(543, 'Universal'),
(544, 'US/Alaska'),
(545, 'US/Aleutian'),
(546, 'US/Arizona'),
(547, 'US/Central'),
(548, 'US/East-Indiana'),
(549, 'US/Eastern'),
(550, 'US/Hawaii'),
(551, 'US/Indiana-Starke'),
(552, 'US/Michigan'),
(553, 'US/Mountain'),
(554, 'US/Pacific'),
(555, 'US/Pacific-New'),
(556, 'US/Samoa'),
(557, 'UTC'),
(558, 'W-SU'),
(559, 'WET'),
(560, 'Zulu');

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

--
-- Table structure for table `ps_translation`
--

CREATE TABLE `ps_translation` (
  `id_translation` int(11) NOT NULL,
  `id_lang` int(11) NOT NULL,
  `key` text COLLATE utf8_unicode_ci NOT NULL,
  `translation` text COLLATE utf8_unicode_ci NOT NULL,
  `domain` varchar(80) COLLATE utf8_unicode_ci NOT NULL,
  `theme` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;



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

--
-- Table structure for table `ps_warehouse`
--

CREATE TABLE `ps_warehouse` (
  `id_warehouse` int(11) UNSIGNED NOT NULL,
  `id_currency` int(11) UNSIGNED NOT NULL,
  `id_address` int(11) UNSIGNED NOT NULL,
  `id_employee` int(11) UNSIGNED NOT NULL,
  `reference` varchar(64) DEFAULT NULL,
  `name` varchar(45) NOT NULL,
  `management_type` enum('WA','FIFO','LIFO') NOT NULL DEFAULT 'WA',
  `deleted` tinyint(1) UNSIGNED NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_warehouse_carrier`
--

CREATE TABLE `ps_warehouse_carrier` (
  `id_carrier` int(11) UNSIGNED NOT NULL,
  `id_warehouse` int(11) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_warehouse_product_location`
--

CREATE TABLE `ps_warehouse_product_location` (
  `id_warehouse_product_location` int(11) UNSIGNED NOT NULL,
  `id_product` int(11) UNSIGNED NOT NULL,
  `id_product_attribute` int(11) UNSIGNED NOT NULL,
  `id_warehouse` int(11) UNSIGNED NOT NULL,
  `location` varchar(64) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_warehouse_shop`
--

CREATE TABLE `ps_warehouse_shop` (
  `id_shop` int(11) UNSIGNED NOT NULL,
  `id_warehouse` int(11) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_wdaboutusinfo`
--

CREATE TABLE `ps_wdaboutusinfo` (
  `id_wdaboutusinfo` int(10) UNSIGNED NOT NULL,
  `id_shop` int(10) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_wdaboutusinfo`
--

INSERT INTO `ps_wdaboutusinfo` (`id_wdaboutusinfo`, `id_shop`) VALUES
(1, 1);

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

--
-- Table structure for table `ps_wdaboutusinfo_lang`
--

CREATE TABLE `ps_wdaboutusinfo_lang` (
  `id_wdaboutusinfo` int(10) UNSIGNED NOT NULL,
  `id_lang` int(10) UNSIGNED NOT NULL,
  `text` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_wdaboutusinfo_lang`
--

INSERT INTO `ps_wdaboutusinfo_lang` (`id_wdaboutusinfo`, `id_lang`, `text`) VALUES
(1, 1, '<table style=\"margin-left:auto;margin-right:auto;\">\n<tbody>\n<tr>\n<td><a href=\"https://vinhodetalha.com/Store/pt/content/9-historia-da-familia-frade\"><img src=\"https://vinhodetalha.com/Store/img/cms/banner%20historia_1.jpg\" alt=\"\" width=\"100%\" /></a></td>\n</tr>\n</tbody>\n</table>'),
(1, 2, '<table style=\"margin-left:auto;margin-right:auto;\">\n<tbody>\n<tr>\n<td><a href=\"https://vinhodetalha.com/Store/en/content/9-frade-family-history\"><img src=\"http://vinhodetalha.com/Store/img/cms/pagina%20historia%20en.jpg\" alt=\"\" width=\"100%\" /></a></td>\n</tr>\n</tbody>\n</table>\n<p></p>');

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

--
-- Table structure for table `ps_wdaboutwineinfo`
--

CREATE TABLE `ps_wdaboutwineinfo` (
  `id_wdaboutwineinfo` int(10) UNSIGNED NOT NULL,
  `id_shop` int(10) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_wdaboutwineinfo`
--

INSERT INTO `ps_wdaboutwineinfo` (`id_wdaboutwineinfo`, `id_shop`) VALUES
(1, 1);

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

--
-- Table structure for table `ps_wdaboutwineinfo_lang`
--

CREATE TABLE `ps_wdaboutwineinfo_lang` (
  `id_wdaboutwineinfo` int(10) UNSIGNED NOT NULL,
  `id_lang` int(10) UNSIGNED NOT NULL,
  `text` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_wdaboutwineinfo_lang`
--

INSERT INTO `ps_wdaboutwineinfo_lang` (`id_wdaboutwineinfo`, `id_lang`, `text`) VALUES
(1, 1, '<h4 class=\"page-subtitle\" style=\"color:#363a41;font-family:\'Open Sans\';font-weight:400;line-height:1.1;margin-bottom:8.5px;margin-top:60px;font-size:15px;background-color:#ffffff;\">WD - CMS Aboutwine block</h4>'),
(1, 2, '<h4 class=\"page-subtitle\" style=\"color:#363a41;font-family:\'Open Sans\';font-weight:400;line-height:1.1;margin-bottom:8.5px;margin-top:60px;font-size:15px;background-color:#ffffff;\">WD - CMS Aboutwine block</h4>');

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

--
-- Table structure for table `ps_wdbannerinfo`
--

CREATE TABLE `ps_wdbannerinfo` (
  `id_wdbannerinfo` int(10) UNSIGNED NOT NULL,
  `id_shop` int(10) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_wdbannerinfo`
--

INSERT INTO `ps_wdbannerinfo` (`id_wdbannerinfo`, `id_shop`) VALUES
(1, 1);

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

--
-- Table structure for table `ps_wdbannerinfo_lang`
--

CREATE TABLE `ps_wdbannerinfo_lang` (
  `id_wdbannerinfo` int(10) UNSIGNED NOT NULL,
  `id_lang` int(10) UNSIGNED NOT NULL,
  `text` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_wdbannerinfo_lang`
--

INSERT INTO `ps_wdbannerinfo_lang` (`id_wdbannerinfo`, `id_lang`, `text`) VALUES
(1, 1, '<table style=\"margin-left:auto;margin-right:auto;\"><tbody><tr><td><a href=\"https://vinhodetalha.com/Store/pt/inicio/36-talha-de-frades-branco-doc-2017.html\"><img src=\"https://bejinfor.eu/Store/img/cms/imagem%20premio.jpg\" alt=\"\" width=\"100%\" /></a></td>\n</tr></tbody></table><p></p>\n<p></p>'),
(1, 2, '<p></p>\n<table style=\"margin-left:auto;margin-right:auto;\"><tbody><tr><td><a href=\"https://vinhodetalha.com/Store/en/inicio/36-talha-de-frades-branco-doc-2017.html\"><img src=\"https://bejinfor.eu/Store/img/cms/imagem%20premio%20ingles.jpg\" alt=\"\" width=\"100%\" /></a></td>\n</tr></tbody></table><p></p>');

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

--
-- Table structure for table `ps_wdclientinfo`
--

CREATE TABLE `ps_wdclientinfo` (
  `id_wdclientinfo` int(10) UNSIGNED NOT NULL,
  `id_shop` int(10) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_wdclientinfo`
--

INSERT INTO `ps_wdclientinfo` (`id_wdclientinfo`, `id_shop`) VALUES
(1, 1);

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

--
-- Table structure for table `ps_wdclientinfo_lang`
--

CREATE TABLE `ps_wdclientinfo_lang` (
  `id_wdclientinfo` int(10) UNSIGNED NOT NULL,
  `id_lang` int(10) UNSIGNED NOT NULL,
  `text` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_wdclientinfo_lang`
--

INSERT INTO `ps_wdclientinfo_lang` (`id_wdclientinfo`, `id_lang`, `text`) VALUES
(1, 1, '<table style=\"margin-left:auto;margin-right:auto;\"><tbody><tr><td><img src=\"http://vinhodetalha.com/Store/img/cms/imagem%20premio.jpg\" alt=\"\" width=\"961\" height=\"637\" /></td>\n</tr></tbody></table><p style=\"text-align:center;\"> </p>'),
(1, 2, '<p>texto modulo wd cient block</p>');

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

--
-- Table structure for table `ps_wdcompare`
--

CREATE TABLE `ps_wdcompare` (
  `id_compare` int(10) UNSIGNED NOT NULL,
  `id_customer` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_wdcompare_product`
--

CREATE TABLE `ps_wdcompare_product` (
  `id_compare` int(10) UNSIGNED NOT NULL,
  `id_product` int(10) UNSIGNED NOT NULL,
  `date_add` datetime NOT NULL,
  `date_upd` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_wdproductcountdown`
--

CREATE TABLE `ps_wdproductcountdown` (
  `id_countdown` int(6) UNSIGNED NOT NULL,
  `id_product` int(6) UNSIGNED NOT NULL,
  `id_shop` int(10) UNSIGNED NOT NULL,
  `from` datetime DEFAULT NULL,
  `to` datetime DEFAULT NULL,
  `active` tinyint(1) DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_wdproductcountdown_lang`
--

CREATE TABLE `ps_wdproductcountdown_lang` (
  `id_countdown` int(6) NOT NULL,
  `id_lang` int(6) NOT NULL,
  `name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_wdproduct_comment`
--

CREATE TABLE `ps_wdproduct_comment` (
  `id_product_comment` int(10) UNSIGNED NOT NULL,
  `id_product` int(10) UNSIGNED NOT NULL,
  `id_customer` int(10) UNSIGNED NOT NULL,
  `id_guest` int(10) UNSIGNED DEFAULT NULL,
  `title` varchar(64) DEFAULT NULL,
  `content` text NOT NULL,
  `customer_name` varchar(64) DEFAULT NULL,
  `grade` float UNSIGNED NOT NULL,
  `validate` tinyint(1) NOT NULL,
  `deleted` tinyint(1) NOT NULL,
  `date_add` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_wdproduct_comment_criterion`
--

CREATE TABLE `ps_wdproduct_comment_criterion` (
  `id_product_comment_criterion` int(10) UNSIGNED NOT NULL,
  `id_product_comment_criterion_type` tinyint(1) NOT NULL,
  `active` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_wdproduct_comment_criterion`
--

INSERT INTO `ps_wdproduct_comment_criterion` (`id_product_comment_criterion`, `id_product_comment_criterion_type`, `active`) VALUES
(1, 1, 1);

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

--
-- Table structure for table `ps_wdproduct_comment_criterion_category`
--

CREATE TABLE `ps_wdproduct_comment_criterion_category` (
  `id_product_comment_criterion` int(10) UNSIGNED NOT NULL,
  `id_category` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_wdproduct_comment_criterion_lang`
--

CREATE TABLE `ps_wdproduct_comment_criterion_lang` (
  `id_product_comment_criterion` int(11) UNSIGNED NOT NULL,
  `id_lang` int(11) UNSIGNED NOT NULL,
  `name` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_wdproduct_comment_criterion_lang`
--

INSERT INTO `ps_wdproduct_comment_criterion_lang` (`id_product_comment_criterion`, `id_lang`, `name`) VALUES
(1, 1, 'Quality');

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

--
-- Table structure for table `ps_wdproduct_comment_criterion_product`
--

CREATE TABLE `ps_wdproduct_comment_criterion_product` (
  `id_product` int(10) UNSIGNED NOT NULL,
  `id_product_comment_criterion` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_wdproduct_comment_grade`
--

CREATE TABLE `ps_wdproduct_comment_grade` (
  `id_product_comment` int(10) UNSIGNED NOT NULL,
  `id_product_comment_criterion` int(10) UNSIGNED NOT NULL,
  `grade` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_wdproduct_comment_grade`
--

INSERT INTO `ps_wdproduct_comment_grade` (`id_product_comment`, `id_product_comment_criterion`, `grade`) VALUES
(1, 1, 5),
(2, 1, 5),
(3, 1, 5),
(4, 1, 5),
(5, 1, 5),
(6, 1, 5),
(7, 1, 5),
(8, 1, 5),
(9, 1, 5),
(10, 1, 5),
(11, 1, 3),
(12, 1, 5);

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

--
-- Table structure for table `ps_wdproduct_comment_report`
--

CREATE TABLE `ps_wdproduct_comment_report` (
  `id_product_comment` int(10) UNSIGNED NOT NULL,
  `id_customer` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_wdproduct_comment_usefulness`
--

CREATE TABLE `ps_wdproduct_comment_usefulness` (
  `id_product_comment` int(10) UNSIGNED NOT NULL,
  `id_customer` int(10) UNSIGNED NOT NULL,
  `usefulness` tinyint(1) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_wdwishlist`
--

CREATE TABLE `ps_wdwishlist` (
  `id_wishlist` int(10) UNSIGNED NOT NULL,
  `id_customer` int(10) UNSIGNED NOT NULL,
  `token` varchar(64) NOT NULL,
  `name` varchar(64) NOT NULL,
  `counter` int(10) UNSIGNED DEFAULT NULL,
  `id_shop` int(10) UNSIGNED DEFAULT '1',
  `id_shop_group` int(10) UNSIGNED DEFAULT '1',
  `date_add` datetime NOT NULL,
  `date_upd` datetime NOT NULL,
  `default` int(10) UNSIGNED DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_wdwishlist_email`
--

CREATE TABLE `ps_wdwishlist_email` (
  `id_wishlist` int(10) UNSIGNED NOT NULL,
  `email` varchar(128) NOT NULL,
  `date_add` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_wdwishlist_product`
--

CREATE TABLE `ps_wdwishlist_product` (
  `id_wishlist_product` int(10) NOT NULL,
  `id_wishlist` int(10) UNSIGNED NOT NULL,
  `id_product` int(10) UNSIGNED NOT NULL,
  `id_product_attribute` int(10) UNSIGNED NOT NULL,
  `quantity` int(10) UNSIGNED NOT NULL,
  `priority` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_webservice_account`
--

CREATE TABLE `ps_webservice_account` (
  `id_webservice_account` int(11) NOT NULL,
  `key` varchar(32) NOT NULL,
  `description` text,
  `class_name` varchar(50) NOT NULL DEFAULT 'WebserviceRequest',
  `is_module` tinyint(2) NOT NULL DEFAULT '0',
  `module_name` varchar(50) DEFAULT NULL,
  `active` tinyint(2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_webservice_account_shop`
--

CREATE TABLE `ps_webservice_account_shop` (
  `id_webservice_account` int(11) UNSIGNED NOT NULL,
  `id_shop` int(11) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_webservice_permission`
--

CREATE TABLE `ps_webservice_permission` (
  `id_webservice_permission` int(11) NOT NULL,
  `resource` varchar(50) NOT NULL,
  `method` enum('GET','POST','PUT','DELETE','HEAD') NOT NULL,
  `id_webservice_account` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `ps_web_browser`
--

CREATE TABLE `ps_web_browser` (
  `id_web_browser` int(10) UNSIGNED NOT NULL,
  `name` varchar(64) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_web_browser`
--

INSERT INTO `ps_web_browser` (`id_web_browser`, `name`) VALUES
(1, 'Safari'),
(2, 'Safari iPad'),
(3, 'Firefox'),
(4, 'Opera'),
(5, 'IE 6'),
(6, 'IE 7'),
(7, 'IE 8'),
(8, 'IE 9'),
(9, 'IE 10'),
(10, 'IE 11'),
(11, 'Chrome');

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

--
-- Table structure for table `ps_zone`
--

CREATE TABLE `ps_zone` (
  `id_zone` int(10) UNSIGNED NOT NULL,
  `name` varchar(64) NOT NULL,
  `active` tinyint(1) UNSIGNED NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_zone`
--

INSERT INTO `ps_zone` (`id_zone`, `name`, `active`) VALUES
(1, 'Europe', 0),
(2, 'North America', 0),
(3, 'Asia', 0),
(4, 'Africa', 0),
(5, 'Oceania', 0),
(6, 'South America', 1),
(7, 'Europe (non-EU)', 0),
(8, 'Central America/Antilla', 0),
(9, 'União Europeia Zona 2', 1),
(10, 'Continente', 1),
(11, 'Ilhas', 1),
(12, 'Espanha', 1),
(13, 'União Europeia Zona 3', 1),
(15, 'União Europeia Zona 5', 1);

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

--
-- Table structure for table `ps_zone_shop`
--

CREATE TABLE `ps_zone_shop` (
  `id_zone` int(11) UNSIGNED NOT NULL,
  `id_shop` int(11) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ps_zone_shop`
--

INSERT INTO `ps_zone_shop` (`id_zone`, `id_shop`) VALUES
(1, 1),
(2, 1),
(3, 1),
(4, 1),
(5, 1),
(6, 1),
(7, 1),
(8, 1),
(9, 1),
(10, 1),
(11, 1),
(12, 1),
(13, 1),
(15, 1);

--
-- Indexes for table `pspa_accessory`
--
ALTER TABLE `pspa_accessory`
  ADD KEY `accessory_product` (`id_product_1`,`id_product_2`);

--
-- Indexes for table `pspa_address`
--
ALTER TABLE `pspa_address`
  ADD PRIMARY KEY (`id_address`),
  ADD KEY `address_customer` (`id_customer`),
  ADD KEY `id_country` (`id_country`),
  ADD KEY `id_state` (`id_state`),
  ADD KEY `id_manufacturer` (`id_manufacturer`),
  ADD KEY `id_supplier` (`id_supplier`),
  ADD KEY `id_warehouse` (`id_warehouse`);

--
-- Indexes for table `pspa_address_format`
--
ALTER TABLE `pspa_address_format`
  ADD PRIMARY KEY (`id_country`);

--
-- Indexes for table `pspa_admin_filter`
--
ALTER TABLE `pspa_admin_filter`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `admin_filter_search_id_idx` (`employee`,`shop`,`controller`,`action`,`filter_id`);

--
-- Indexes for table `pspa_advice`
--
ALTER TABLE `pspa_advice`
  ADD PRIMARY KEY (`id_advice`);

--
-- Indexes for table `pspa_advice_lang`
--
ALTER TABLE `pspa_advice_lang`
  ADD PRIMARY KEY (`id_advice`,`id_lang`);

--
-- Indexes for table `pspa_alias`
--
ALTER TABLE `pspa_alias`
  ADD PRIMARY KEY (`id_alias`),
  ADD UNIQUE KEY `alias` (`alias`);

--
-- Indexes for table `pspa_attachment`
--
ALTER TABLE `pspa_attachment`
  ADD PRIMARY KEY (`id_attachment`);

--
-- Indexes for table `pspa_attachment_lang`
--
ALTER TABLE `pspa_attachment_lang`
  ADD PRIMARY KEY (`id_attachment`,`id_lang`);

--
-- Indexes for table `pspa_attribute`
--
ALTER TABLE `pspa_attribute`
  ADD PRIMARY KEY (`id_attribute`),
  ADD KEY `attribute_group` (`id_attribute_group`);

--
-- Indexes for table `pspa_attribute_group`
--
ALTER TABLE `pspa_attribute_group`
  ADD PRIMARY KEY (`id_attribute_group`);

--
-- Indexes for table `pspa_attribute_group_lang`
--
ALTER TABLE `pspa_attribute_group_lang`
  ADD PRIMARY KEY (`id_attribute_group`,`id_lang`),
  ADD KEY `IDX_F6F0FBF767A664FB` (`id_attribute_group`),
  ADD KEY `IDX_F6F0FBF7BA299860` (`id_lang`);

--
-- Indexes for table `pspa_attribute_group_shop`
--
ALTER TABLE `pspa_attribute_group_shop`
  ADD PRIMARY KEY (`id_attribute_group`,`id_shop`),
  ADD KEY `IDX_6B93333767A664FB` (`id_attribute_group`),
  ADD KEY `IDX_6B933337274A50A0` (`id_shop`);

--
-- Indexes for table `pspa_attribute_impact`
--
ALTER TABLE `pspa_attribute_impact`
  ADD PRIMARY KEY (`id_attribute_impact`),
  ADD UNIQUE KEY `id_product` (`id_product`,`id_attribute`);

--
-- Indexes for table `pspa_attribute_lang`
--
ALTER TABLE `pspa_attribute_lang`
  ADD PRIMARY KEY (`id_attribute`,`id_lang`),
  ADD KEY `IDX_13FE8D947A4F53DC` (`id_attribute`),
  ADD KEY `IDX_13FE8D94BA299860` (`id_lang`);

--
-- Indexes for table `pspa_attribute_shop`
--
ALTER TABLE `pspa_attribute_shop`
  ADD PRIMARY KEY (`id_attribute`,`id_shop`),
  ADD KEY `IDX_8E9D45547A4F53DC` (`id_attribute`),
  ADD KEY `IDX_8E9D4554274A50A0` (`id_shop`);

--
-- Indexes for table `pspa_badge`
--
ALTER TABLE `pspa_badge`
  ADD PRIMARY KEY (`id_badge`);

--
-- Indexes for table `pspa_badge_lang`
--
ALTER TABLE `pspa_badge_lang`
  ADD PRIMARY KEY (`id_badge`,`id_lang`);

--
-- Indexes for table `pspa_carrier`
--
ALTER TABLE `pspa_carrier`
  ADD PRIMARY KEY (`id_carrier`),
  ADD KEY `deleted` (`deleted`,`active`),
  ADD KEY `id_tax_rules_group` (`id_tax_rules_group`),
  ADD KEY `reference` (`id_reference`,`deleted`,`active`);

--
-- Indexes for table `pspa_carrier_group`
--
ALTER TABLE `pspa_carrier_group`
  ADD PRIMARY KEY (`id_carrier`,`id_group`);

--
-- Indexes for table `pspa_carrier_lang`
--
ALTER TABLE `pspa_carrier_lang`
  ADD PRIMARY KEY (`id_lang`,`id_shop`,`id_carrier`);

--
-- Indexes for table `pspa_carrier_shop`
--
ALTER TABLE `pspa_carrier_shop`
  ADD PRIMARY KEY (`id_carrier`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `pspa_carrier_tax_rules_group_shop`
--
ALTER TABLE `pspa_carrier_tax_rules_group_shop`
  ADD PRIMARY KEY (`id_carrier`,`id_tax_rules_group`,`id_shop`);

--
-- Indexes for table `pspa_carrier_zone`
--
ALTER TABLE `pspa_carrier_zone`
  ADD PRIMARY KEY (`id_carrier`,`id_zone`);

--
-- Indexes for table `pspa_cart`
--
ALTER TABLE `pspa_cart`
  ADD PRIMARY KEY (`id_cart`),
  ADD KEY `cart_customer` (`id_customer`),
  ADD KEY `id_address_delivery` (`id_address_delivery`),
  ADD KEY `id_address_invoice` (`id_address_invoice`),
  ADD KEY `id_carrier` (`id_carrier`),
  ADD KEY `id_lang` (`id_lang`),
  ADD KEY `id_currency` (`id_currency`),
  ADD KEY `id_guest` (`id_guest`),
  ADD KEY `id_shop_group` (`id_shop_group`),
  ADD KEY `id_shop_2` (`id_shop`,`date_upd`),
  ADD KEY `id_shop` (`id_shop`,`date_add`);

--
-- Indexes for table `pspa_cart_cart_rule`
--
ALTER TABLE `pspa_cart_cart_rule`
  ADD PRIMARY KEY (`id_cart`,`id_cart_rule`),
  ADD KEY `id_cart_rule` (`id_cart_rule`);

--
-- Indexes for table `pspa_cart_product`
--
ALTER TABLE `pspa_cart_product`
  ADD PRIMARY KEY (`id_cart`,`id_product`,`id_product_attribute`,`id_customization`,`id_address_delivery`),
  ADD KEY `id_product_attribute` (`id_product_attribute`),
  ADD KEY `id_cart_order` (`id_cart`,`date_add`,`id_product`,`id_product_attribute`);

--
-- Indexes for table `pspa_cart_rule`
--
ALTER TABLE `pspa_cart_rule`
  ADD PRIMARY KEY (`id_cart_rule`),
  ADD KEY `id_customer` (`id_customer`,`active`,`date_to`),
  ADD KEY `group_restriction` (`group_restriction`,`active`,`date_to`),
  ADD KEY `id_customer_2` (`id_customer`,`active`,`highlight`,`date_to`),
  ADD KEY `group_restriction_2` (`group_restriction`,`active`,`highlight`,`date_to`),
  ADD KEY `date_from` (`date_from`),
  ADD KEY `date_to` (`date_to`);

--
-- Indexes for table `pspa_cart_rule_carrier`
--
ALTER TABLE `pspa_cart_rule_carrier`
  ADD PRIMARY KEY (`id_cart_rule`,`id_carrier`);

--
-- Indexes for table `pspa_cart_rule_combination`
--
ALTER TABLE `pspa_cart_rule_combination`
  ADD PRIMARY KEY (`id_cart_rule_1`,`id_cart_rule_2`),
  ADD KEY `id_cart_rule_1` (`id_cart_rule_1`),
  ADD KEY `id_cart_rule_2` (`id_cart_rule_2`);

--
-- Indexes for table `pspa_cart_rule_country`
--
ALTER TABLE `pspa_cart_rule_country`
  ADD PRIMARY KEY (`id_cart_rule`,`id_country`);

--
-- Indexes for table `pspa_cart_rule_group`
--
ALTER TABLE `pspa_cart_rule_group`
  ADD PRIMARY KEY (`id_cart_rule`,`id_group`);

--
-- Indexes for table `pspa_cart_rule_lang`
--
ALTER TABLE `pspa_cart_rule_lang`
  ADD PRIMARY KEY (`id_cart_rule`,`id_lang`);

--
-- Indexes for table `pspa_cart_rule_product_rule`
--
ALTER TABLE `pspa_cart_rule_product_rule`
  ADD PRIMARY KEY (`id_product_rule`);

--
-- Indexes for table `pspa_cart_rule_product_rule_group`
--
ALTER TABLE `pspa_cart_rule_product_rule_group`
  ADD PRIMARY KEY (`id_product_rule_group`);

--
-- Indexes for table `pspa_cart_rule_product_rule_value`
--
ALTER TABLE `pspa_cart_rule_product_rule_value`
  ADD PRIMARY KEY (`id_product_rule`,`id_item`);

--
-- Indexes for table `pspa_cart_rule_shop`
--
ALTER TABLE `pspa_cart_rule_shop`
  ADD PRIMARY KEY (`id_cart_rule`,`id_shop`);

--
-- Indexes for table `pspa_category`
--
ALTER TABLE `pspa_category`
  ADD PRIMARY KEY (`id_category`),
  ADD KEY `category_parent` (`id_parent`),
  ADD KEY `nleftrightactive` (`nleft`,`nright`,`active`),
  ADD KEY `level_depth` (`level_depth`),
  ADD KEY `nright` (`nright`),
  ADD KEY `activenleft` (`active`,`nleft`),
  ADD KEY `activenright` (`active`,`nright`);

--
-- Indexes for table `pspa_category_group`
--
ALTER TABLE `pspa_category_group`
  ADD PRIMARY KEY (`id_category`,`id_group`),
  ADD KEY `id_category` (`id_category`),
  ADD KEY `id_group` (`id_group`);

--
-- Indexes for table `pspa_category_lang`
--
ALTER TABLE `pspa_category_lang`
  ADD PRIMARY KEY (`id_category`,`id_shop`,`id_lang`),
  ADD KEY `category_name` (`name`);

--
-- Indexes for table `pspa_category_product`
--
ALTER TABLE `pspa_category_product`
  ADD PRIMARY KEY (`id_category`,`id_product`),
  ADD KEY `id_product` (`id_product`),
  ADD KEY `id_category` (`id_category`,`position`);

--
-- Indexes for table `pspa_category_shop`
--
ALTER TABLE `pspa_category_shop`
  ADD PRIMARY KEY (`id_category`,`id_shop`);

--
-- Indexes for table `pspa_cms`
--
ALTER TABLE `pspa_cms`
  ADD PRIMARY KEY (`id_cms`);

--
-- Indexes for table `pspa_cms_block`
--
ALTER TABLE `pspa_cms_block`
  ADD PRIMARY KEY (`id_cms_block`);

--
-- Indexes for table `pspa_cms_block_lang`
--
ALTER TABLE `pspa_cms_block_lang`
  ADD PRIMARY KEY (`id_cms_block`,`id_lang`);

--
-- Indexes for table `pspa_cms_block_page`
--
ALTER TABLE `pspa_cms_block_page`
  ADD PRIMARY KEY (`id_cms_block_page`);

--
-- Indexes for table `pspa_cms_block_shop`
--
ALTER TABLE `pspa_cms_block_shop`
  ADD PRIMARY KEY (`id_cms_block`,`id_shop`);

--
-- Indexes for table `pspa_cms_category`
--
ALTER TABLE `pspa_cms_category`
  ADD PRIMARY KEY (`id_cms_category`),
  ADD KEY `category_parent` (`id_parent`);

--
-- Indexes for table `pspa_cms_category_lang`
--
ALTER TABLE `pspa_cms_category_lang`
  ADD PRIMARY KEY (`id_cms_category`,`id_shop`,`id_lang`),
  ADD KEY `category_name` (`name`);

--
-- Indexes for table `pspa_cms_category_shop`
--
ALTER TABLE `pspa_cms_category_shop`
  ADD PRIMARY KEY (`id_cms_category`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `pspa_cms_lang`
--
ALTER TABLE `pspa_cms_lang`
  ADD PRIMARY KEY (`id_cms`,`id_shop`,`id_lang`);

--
-- Indexes for table `pspa_cms_role`
--
ALTER TABLE `pspa_cms_role`
  ADD PRIMARY KEY (`id_cms_role`,`id_cms`),
  ADD UNIQUE KEY `name` (`name`);

--
-- Indexes for table `pspa_cms_role_lang`
--
ALTER TABLE `pspa_cms_role_lang`
  ADD PRIMARY KEY (`id_cms_role`,`id_lang`,`id_shop`);

--
-- Indexes for table `pspa_cms_shop`
--
ALTER TABLE `pspa_cms_shop`
  ADD PRIMARY KEY (`id_cms`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `pspa_condition`
--
ALTER TABLE `pspa_condition`
  ADD PRIMARY KEY (`id_condition`,`id_ps_condition`);

--
-- Indexes for table `pspa_condition_advice`
--
ALTER TABLE `pspa_condition_advice`
  ADD PRIMARY KEY (`id_condition`,`id_advice`);

--
-- Indexes for table `pspa_condition_badge`
--
ALTER TABLE `pspa_condition_badge`
  ADD PRIMARY KEY (`id_condition`,`id_badge`);

--
-- Indexes for table `pspa_configuration`
--
ALTER TABLE `pspa_configuration`
  ADD PRIMARY KEY (`id_configuration`),
  ADD KEY `name` (`name`),
  ADD KEY `id_shop` (`id_shop`),
  ADD KEY `id_shop_group` (`id_shop_group`);

--
-- Indexes for table `pspa_configuration_kpi`
--
ALTER TABLE `pspa_configuration_kpi`
  ADD PRIMARY KEY (`id_configuration_kpi`),
  ADD KEY `name` (`name`),
  ADD KEY `id_shop` (`id_shop`),
  ADD KEY `id_shop_group` (`id_shop_group`);

--
-- Indexes for table `pspa_configuration_kpi_lang`
--
ALTER TABLE `pspa_configuration_kpi_lang`
  ADD PRIMARY KEY (`id_configuration_kpi`,`id_lang`);

--
-- Indexes for table `pspa_configuration_lang`
--
ALTER TABLE `pspa_configuration_lang`
  ADD PRIMARY KEY (`id_configuration`,`id_lang`);

--
-- Indexes for table `pspa_connections`
--
ALTER TABLE `pspa_connections`
  ADD PRIMARY KEY (`id_connections`),
  ADD KEY `id_guest` (`id_guest`),
  ADD KEY `date_add` (`date_add`),
  ADD KEY `id_page` (`id_page`);

--
-- Indexes for table `pspa_connections_page`
--
ALTER TABLE `pspa_connections_page`
  ADD PRIMARY KEY (`id_connections`,`id_page`,`time_start`);

--
-- Indexes for table `pspa_connections_source`
--
ALTER TABLE `pspa_connections_source`
  ADD PRIMARY KEY (`id_connections_source`),
  ADD KEY `connections` (`id_connections`),
  ADD KEY `orderby` (`date_add`),
  ADD KEY `http_referer` (`http_referer`),
  ADD KEY `request_uri` (`request_uri`);

--
-- Indexes for table `pspa_contact`
--
ALTER TABLE `pspa_contact`
  ADD PRIMARY KEY (`id_contact`);

--
-- Indexes for table `pspa_contact_lang`
--
ALTER TABLE `pspa_contact_lang`
  ADD PRIMARY KEY (`id_contact`,`id_lang`);

--
-- Indexes for table `pspa_contact_shop`
--
ALTER TABLE `pspa_contact_shop`
  ADD PRIMARY KEY (`id_contact`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `pspa_country`
--
ALTER TABLE `pspa_country`
  ADD PRIMARY KEY (`id_country`),
  ADD KEY `country_iso_code` (`iso_code`),
  ADD KEY `country_` (`id_zone`);

--
-- Indexes for table `pspa_country_lang`
--
ALTER TABLE `pspa_country_lang`
  ADD PRIMARY KEY (`id_country`,`id_lang`);

--
-- Indexes for table `pspa_country_shop`
--
ALTER TABLE `pspa_country_shop`
  ADD PRIMARY KEY (`id_country`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `pspa_cronjobs`
--
ALTER TABLE `pspa_cronjobs`
  ADD PRIMARY KEY (`id_cronjob`),
  ADD KEY `id_module` (`id_module`);

--
-- Indexes for table `pspa_currency`
--
ALTER TABLE `pspa_currency`
  ADD PRIMARY KEY (`id_currency`),
  ADD KEY `currency_iso_code` (`iso_code`);

--
-- Indexes for table `pspa_currency_lang`
--
ALTER TABLE `pspa_currency_lang`
  ADD PRIMARY KEY (`id_currency`,`id_lang`);

--
-- Indexes for table `pspa_currency_shop`
--
ALTER TABLE `pspa_currency_shop`
  ADD PRIMARY KEY (`id_currency`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `pspa_customer_group`
--
ALTER TABLE `pspa_customer_group`
  ADD PRIMARY KEY (`id_customer`,`id_group`),
  ADD KEY `customer_login` (`id_group`),
  ADD KEY `id_customer` (`id_customer`);

--
-- Indexes for table `pspa_customer_message`
--
ALTER TABLE `pspa_customer_message`
  ADD PRIMARY KEY (`id_customer_message`),
  ADD KEY `id_customer_thread` (`id_customer_thread`),
  ADD KEY `id_employee` (`id_employee`);

--
-- Indexes for table `pspa_customer_message_sync_imap`
--
ALTER TABLE `pspa_customer_message_sync_imap`
  ADD KEY `md5_header_index` (`md5_header`(4));

--
-- Indexes for table `pspa_customer_session`
--
ALTER TABLE `pspa_customer_session`
  ADD PRIMARY KEY (`id_customer_session`);

--
-- Indexes for table `pspa_customization`
--
ALTER TABLE `pspa_customization`
  ADD PRIMARY KEY (`id_customization`,`id_cart`,`id_product`,`id_address_delivery`),
  ADD KEY `id_product_attribute` (`id_product_attribute`),
  ADD KEY `id_cart_product` (`id_cart`,`id_product`,`id_product_attribute`);

--
-- Indexes for table `pspa_customization_field`
--
ALTER TABLE `pspa_customization_field`
  ADD PRIMARY KEY (`id_customization_field`),
  ADD KEY `id_product` (`id_product`);

--
-- Indexes for table `pspa_customization_field_lang`
--
ALTER TABLE `pspa_customization_field_lang`
  ADD PRIMARY KEY (`id_customization_field`,`id_lang`,`id_shop`);

--
-- Indexes for table `pspa_customized_data`
--
ALTER TABLE `pspa_customized_data`
  ADD PRIMARY KEY (`id_customization`,`type`,`index`);

--
-- Indexes for table `pspa_date_range`
--
ALTER TABLE `pspa_date_range`
  ADD PRIMARY KEY (`id_date_range`);

--
-- Indexes for table `pspa_delivery`
--
ALTER TABLE `pspa_delivery`
  ADD PRIMARY KEY (`id_delivery`),
  ADD KEY `id_zone` (`id_zone`),
  ADD KEY `id_carrier` (`id_carrier`,`id_zone`),
  ADD KEY `id_range_price` (`id_range_price`),
  ADD KEY `id_range_weight` (`id_range_weight`);

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

--
-- Indexes for table `pspa_employee_shop`
--
ALTER TABLE `pspa_employee_shop`
  ADD PRIMARY KEY (`id_employee`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `pspa_feature`
--
ALTER TABLE `pspa_feature`
  ADD PRIMARY KEY (`id_feature`);

--
-- Indexes for table `pspa_feature_lang`
--
ALTER TABLE `pspa_feature_lang`
  ADD PRIMARY KEY (`id_feature`,`id_lang`),
  ADD KEY `id_lang` (`id_lang`,`name`);

--
-- Indexes for table `pspa_feature_product`
--
ALTER TABLE `pspa_feature_product`
  ADD PRIMARY KEY (`id_feature`,`id_product`,`id_feature_value`),
  ADD KEY `id_feature_value` (`id_feature_value`),
  ADD KEY `id_product` (`id_product`);

--
-- Indexes for table `pspa_feature_shop`
--
ALTER TABLE `pspa_feature_shop`
  ADD PRIMARY KEY (`id_feature`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `pspa_feature_value`
--
ALTER TABLE `pspa_feature_value`
  ADD PRIMARY KEY (`id_feature_value`),
  ADD KEY `feature` (`id_feature`);

--
-- Indexes for table `pspa_feature_value_lang`
--
ALTER TABLE `pspa_feature_value_lang`
  ADD PRIMARY KEY (`id_feature_value`,`id_lang`);

--
-- Indexes for table `pspa_gender`
--
ALTER TABLE `pspa_gender`
  ADD PRIMARY KEY (`id_gender`);

--
-- Indexes for table `pspa_gender_lang`
--
ALTER TABLE `pspa_gender_lang`
  ADD PRIMARY KEY (`id_gender`,`id_lang`),
  ADD KEY `id_gender` (`id_gender`);

--
-- Indexes for table `pspa_group`
--
ALTER TABLE `pspa_group`
  ADD PRIMARY KEY (`id_group`);

--
-- Indexes for table `pspa_group_lang`
--
ALTER TABLE `pspa_group_lang`
  ADD PRIMARY KEY (`id_group`,`id_lang`);

--
-- Indexes for table `pspa_group_reduction`
--
ALTER TABLE `pspa_group_reduction`
  ADD PRIMARY KEY (`id_group_reduction`),
  ADD UNIQUE KEY `id_group` (`id_group`,`id_category`);

--
-- Indexes for table `pspa_group_shop`
--
ALTER TABLE `pspa_group_shop`
  ADD PRIMARY KEY (`id_group`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `pspa_guest`
--
ALTER TABLE `pspa_guest`
  ADD PRIMARY KEY (`id_guest`),
  ADD KEY `id_customer` (`id_customer`),
  ADD KEY `id_operating_system` (`id_operating_system`),
  ADD KEY `id_web_browser` (`id_web_browser`);

--
-- Indexes for table `pspa_homeslider`
--
ALTER TABLE `pspa_homeslider`
  ADD PRIMARY KEY (`id_homeslider_slides`,`id_shop`);

--
-- Indexes for table `pspa_homeslider_slides`
--
ALTER TABLE `pspa_homeslider_slides`
  ADD PRIMARY KEY (`id_homeslider_slides`);

--
-- Indexes for table `pspa_homeslider_slides_lang`
--
ALTER TABLE `pspa_homeslider_slides_lang`
  ADD PRIMARY KEY (`id_homeslider_slides`,`id_lang`);

--
-- Indexes for table `pspa_hook`
--
ALTER TABLE `pspa_hook`
  ADD PRIMARY KEY (`id_hook`),
  ADD UNIQUE KEY `hook_name` (`name`);

--
-- Indexes for table `pspa_hook_alias`
--
ALTER TABLE `pspa_hook_alias`
  ADD PRIMARY KEY (`id_hook_alias`),
  ADD UNIQUE KEY `alias` (`alias`);

--
-- Indexes for table `pspa_hook_module`
--
ALTER TABLE `pspa_hook_module`
  ADD PRIMARY KEY (`id_module`,`id_hook`,`id_shop`),
  ADD KEY `id_hook` (`id_hook`),
  ADD KEY `id_module` (`id_module`),
  ADD KEY `position` (`id_shop`,`position`);

--
-- Indexes for table `pspa_hook_module_exceptions`
--
ALTER TABLE `pspa_hook_module_exceptions`
  ADD PRIMARY KEY (`id_hook_module_exceptions`),
  ADD KEY `id_module` (`id_module`),
  ADD KEY `id_hook` (`id_hook`);

--
-- Indexes for table `pspa_image`
--
ALTER TABLE `pspa_image`
  ADD PRIMARY KEY (`id_image`),
  ADD UNIQUE KEY `id_product_cover` (`id_product`,`cover`),
  ADD UNIQUE KEY `idx_product_image` (`id_image`,`id_product`,`cover`),
  ADD KEY `image_product` (`id_product`);

--
-- Indexes for table `pspa_image_lang`
--
ALTER TABLE `pspa_image_lang`
  ADD PRIMARY KEY (`id_image`,`id_lang`),
  ADD KEY `id_image` (`id_image`);

--
-- Indexes for table `pspa_image_shop`
--
ALTER TABLE `pspa_image_shop`
  ADD PRIMARY KEY (`id_image`,`id_shop`),
  ADD UNIQUE KEY `id_product` (`id_product`,`id_shop`,`cover`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `pspa_image_type`
--
ALTER TABLE `pspa_image_type`
  ADD PRIMARY KEY (`id_image_type`),
  ADD KEY `image_type_name` (`name`);

--
-- Indexes for table `pspa_import_match`
--
ALTER TABLE `pspa_import_match`
  ADD PRIMARY KEY (`id_import_match`);

--
-- Indexes for table `pspa_info`
--
ALTER TABLE `pspa_info`
  ADD PRIMARY KEY (`id_info`);

--
-- Indexes for table `pspa_info_lang`
--
ALTER TABLE `pspa_info_lang`
  ADD PRIMARY KEY (`id_info`,`id_lang`,`id_shop`);

--
-- Indexes for table `pspa_info_shop`
--
ALTER TABLE `pspa_info_shop`
  ADD PRIMARY KEY (`id_info`,`id_shop`);

--
-- Indexes for table `pspa_lang`
--
ALTER TABLE `pspa_lang`
  ADD PRIMARY KEY (`id_lang`);

--
-- Indexes for table `pspa_lang_shop`
--
ALTER TABLE `pspa_lang_shop`
  ADD PRIMARY KEY (`id_lang`,`id_shop`),
  ADD KEY `IDX_9EE6DE6ABA299860` (`id_lang`),
  ADD KEY `IDX_9EE6DE6A274A50A0` (`id_shop`);

--
-- Indexes for table `pspa_layered_category`
--
ALTER TABLE `pspa_layered_category`
  ADD PRIMARY KEY (`id_layered_category`),
  ADD KEY `id_category_shop` (`id_category`,`id_shop`,`type`,`id_value`,`position`),
  ADD KEY `id_category` (`id_category`,`type`);

--
-- Indexes for table `pspa_layered_filter`
--
ALTER TABLE `pspa_layered_filter`
  ADD PRIMARY KEY (`id_layered_filter`);

--
-- Indexes for table `pspa_layered_filter_block`
--
ALTER TABLE `pspa_layered_filter_block`
  ADD PRIMARY KEY (`hash`);

--
-- Indexes for table `pspa_layered_filter_shop`
--
ALTER TABLE `pspa_layered_filter_shop`
  ADD PRIMARY KEY (`id_layered_filter`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `pspa_layered_friendly_url`
--
ALTER TABLE `pspa_layered_friendly_url`
  ADD PRIMARY KEY (`id_layered_friendly_url`),
  ADD KEY `id_lang` (`id_lang`),
  ADD KEY `url_key` (`url_key`(5));

--
-- Indexes for table `pspa_layered_indexable_attribute_group`
--
ALTER TABLE `pspa_layered_indexable_attribute_group`
  ADD PRIMARY KEY (`id_attribute_group`);

--
-- Indexes for table `pspa_layered_indexable_attribute_group_lang_value`
--
ALTER TABLE `pspa_layered_indexable_attribute_group_lang_value`
  ADD PRIMARY KEY (`id_attribute_group`,`id_lang`);

--
-- Indexes for table `pspa_layered_indexable_attribute_lang_value`
--
ALTER TABLE `pspa_layered_indexable_attribute_lang_value`
  ADD PRIMARY KEY (`id_attribute`,`id_lang`);

--
-- Indexes for table `pspa_layered_indexable_feature`
--
ALTER TABLE `pspa_layered_indexable_feature`
  ADD PRIMARY KEY (`id_feature`);

--
-- Indexes for table `pspa_layered_indexable_feature_lang_value`
--
ALTER TABLE `pspa_layered_indexable_feature_lang_value`
  ADD PRIMARY KEY (`id_feature`,`id_lang`);

--
-- Indexes for table `pspa_layered_indexable_feature_value_lang_value`
--
ALTER TABLE `pspa_layered_indexable_feature_value_lang_value`
  ADD PRIMARY KEY (`id_feature_value`,`id_lang`);

--
-- Indexes for table `pspa_layered_price_index`
--
ALTER TABLE `pspa_layered_price_index`
  ADD PRIMARY KEY (`id_product`,`id_currency`,`id_shop`,`id_country`),
  ADD KEY `id_currency` (`id_currency`),
  ADD KEY `price_min` (`price_min`),
  ADD KEY `price_max` (`price_max`);

--
-- Indexes for table `pspa_layered_product_attribute`
--
ALTER TABLE `pspa_layered_product_attribute`
  ADD PRIMARY KEY (`id_attribute`,`id_product`,`id_shop`),
  ADD UNIQUE KEY `id_attribute_group` (`id_attribute_group`,`id_attribute`,`id_product`,`id_shop`);

--
-- Indexes for table `pspa_linksmenutop`
--
ALTER TABLE `pspa_linksmenutop`
  ADD PRIMARY KEY (`id_linksmenutop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `pspa_linksmenutop_lang`
--
ALTER TABLE `pspa_linksmenutop_lang`
  ADD KEY `id_linksmenutop` (`id_linksmenutop`,`id_lang`,`id_shop`);

--
-- Indexes for table `pspa_link_block`
--
ALTER TABLE `pspa_link_block`
  ADD PRIMARY KEY (`id_link_block`);

--
-- Indexes for table `pspa_link_block_lang`
--
ALTER TABLE `pspa_link_block_lang`
  ADD PRIMARY KEY (`id_link_block`,`id_lang`);

--
-- Indexes for table `pspa_link_block_shop`
--
ALTER TABLE `pspa_link_block_shop`
  ADD PRIMARY KEY (`id_link_block`,`id_shop`);

--
-- Indexes for table `pspa_log`
--
ALTER TABLE `pspa_log`
  ADD PRIMARY KEY (`id_log`);

--
-- Indexes for table `pspa_lyoreservation_bookings`
--
ALTER TABLE `pspa_lyoreservation_bookings`
  ADD PRIMARY KEY (`id_lyoreservation_bookings`);

--
-- Indexes for table `pspa_lyoreservation_calendars`
--
ALTER TABLE `pspa_lyoreservation_calendars`
  ADD PRIMARY KEY (`id_lyoreservation_calendars`);

--
-- Indexes for table `pspa_lyoreservation_calendars_days`
--
ALTER TABLE `pspa_lyoreservation_calendars_days`
  ADD PRIMARY KEY (`id_calendar`,`id_day`);

--
-- Indexes for table `pspa_lyoreservation_calendar_products`
--
ALTER TABLE `pspa_lyoreservation_calendar_products`
  ADD PRIMARY KEY (`id_calendar`,`id_product`);

--
-- Indexes for table `pspa_lyoreservation_cart_product`
--
ALTER TABLE `pspa_lyoreservation_cart_product`
  ADD PRIMARY KEY (`id_cart`,`id_product`,`id_product_attribute`);

--
-- Indexes for table `pspa_lyoreservation_exclusions`
--
ALTER TABLE `pspa_lyoreservation_exclusions`
  ADD PRIMARY KEY (`id_exclusion`,`id_calendar`);

--
-- Indexes for table `pspa_lyoreservation_products_settings`
--
ALTER TABLE `pspa_lyoreservation_products_settings`
  ADD PRIMARY KEY (`id_product`,`id_product_attribute`);

--
-- Indexes for table `pspa_mail`
--
ALTER TABLE `pspa_mail`
  ADD PRIMARY KEY (`id_mail`),
  ADD KEY `recipient` (`recipient`(10));

--
-- Indexes for table `pspa_manufacturer`
--
ALTER TABLE `pspa_manufacturer`
  ADD PRIMARY KEY (`id_manufacturer`);

--
-- Indexes for table `pspa_manufacturer_lang`
--
ALTER TABLE `pspa_manufacturer_lang`
  ADD PRIMARY KEY (`id_manufacturer`,`id_lang`);

--
-- Indexes for table `pspa_manufacturer_shop`
--
ALTER TABLE `pspa_manufacturer_shop`
  ADD PRIMARY KEY (`id_manufacturer`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `pspa_memcached_servers`
--
ALTER TABLE `pspa_memcached_servers`
  ADD PRIMARY KEY (`id_memcached_server`);

--
-- Indexes for table `pspa_message`
--
ALTER TABLE `pspa_message`
  ADD PRIMARY KEY (`id_message`),
  ADD KEY `message_order` (`id_order`),
  ADD KEY `id_cart` (`id_cart`),
  ADD KEY `id_customer` (`id_customer`),
  ADD KEY `id_employee` (`id_employee`);

--
-- Indexes for table `pspa_message_readed`
--
ALTER TABLE `pspa_message_readed`
  ADD PRIMARY KEY (`id_message`,`id_employee`);

--
-- Indexes for table `pspa_meta`
--
ALTER TABLE `pspa_meta`
  ADD PRIMARY KEY (`id_meta`),
  ADD UNIQUE KEY `page` (`page`);

--
-- Indexes for table `pspa_meta_lang`
--
ALTER TABLE `pspa_meta_lang`
  ADD PRIMARY KEY (`id_meta`,`id_shop`,`id_lang`),
  ADD KEY `id_shop` (`id_shop`),
  ADD KEY `id_lang` (`id_lang`);

--
-- Indexes for table `pspa_module`
--
ALTER TABLE `pspa_module`
  ADD PRIMARY KEY (`id_module`),
  ADD UNIQUE KEY `name_UNIQUE` (`name`),
  ADD KEY `name` (`name`);

--
-- Indexes for table `pspa_module_carrier`
--
ALTER TABLE `pspa_module_carrier`
  ADD PRIMARY KEY (`id_module`,`id_shop`,`id_reference`);

--
-- Indexes for table `pspa_module_country`
--
ALTER TABLE `pspa_module_country`
  ADD PRIMARY KEY (`id_module`,`id_shop`,`id_country`);

--
-- Indexes for table `pspa_module_currency`
--
ALTER TABLE `pspa_module_currency`
  ADD PRIMARY KEY (`id_module`,`id_shop`,`id_currency`),
  ADD KEY `id_module` (`id_module`);

--
-- Indexes for table `pspa_module_group`
--
ALTER TABLE `pspa_module_group`
  ADD PRIMARY KEY (`id_module`,`id_shop`,`id_group`);

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

--
-- Indexes for table `pspa_module_preference`
--
ALTER TABLE `pspa_module_preference`
  ADD PRIMARY KEY (`id_module_preference`),
  ADD UNIQUE KEY `employee_module` (`id_employee`,`module`);

--
-- Indexes for table `pspa_module_shop`
--
ALTER TABLE `pspa_module_shop`
  ADD PRIMARY KEY (`id_module`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

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

--
-- Indexes for table `pspa_operating_system`
--
ALTER TABLE `pspa_operating_system`
  ADD PRIMARY KEY (`id_operating_system`);

--
-- Indexes for table `pspa_orders`
--
ALTER TABLE `pspa_orders`
  ADD PRIMARY KEY (`id_order`),
  ADD KEY `reference` (`reference`),
  ADD KEY `id_customer` (`id_customer`),
  ADD KEY `id_cart` (`id_cart`),
  ADD KEY `invoice_number` (`invoice_number`),
  ADD KEY `id_carrier` (`id_carrier`),
  ADD KEY `id_lang` (`id_lang`),
  ADD KEY `id_currency` (`id_currency`),
  ADD KEY `id_address_delivery` (`id_address_delivery`),
  ADD KEY `id_address_invoice` (`id_address_invoice`),
  ADD KEY `id_shop_group` (`id_shop_group`),
  ADD KEY `current_state` (`current_state`),
  ADD KEY `id_shop` (`id_shop`),
  ADD KEY `date_add` (`date_add`);

--
-- Indexes for table `pspa_order_carrier`
--
ALTER TABLE `pspa_order_carrier`
  ADD PRIMARY KEY (`id_order_carrier`),
  ADD KEY `id_order` (`id_order`),
  ADD KEY `id_carrier` (`id_carrier`),
  ADD KEY `id_order_invoice` (`id_order_invoice`);

--
-- Indexes for table `pspa_order_cart_rule`
--
ALTER TABLE `pspa_order_cart_rule`
  ADD PRIMARY KEY (`id_order_cart_rule`),
  ADD KEY `id_order` (`id_order`),
  ADD KEY `id_cart_rule` (`id_cart_rule`);

--
-- Indexes for table `pspa_order_detail`
--
ALTER TABLE `pspa_order_detail`
  ADD PRIMARY KEY (`id_order_detail`),
  ADD KEY `order_detail_order` (`id_order`),
  ADD KEY `product_attribute_id` (`product_attribute_id`),
  ADD KEY `id_tax_rules_group` (`id_tax_rules_group`),
  ADD KEY `id_order_id_order_detail` (`id_order`,`id_order_detail`),
  ADD KEY `product_id` (`product_id`,`product_attribute_id`);

--
-- Indexes for table `pspa_order_detail_tax`
--
ALTER TABLE `pspa_order_detail_tax`
  ADD KEY `id_order_detail` (`id_order_detail`),
  ADD KEY `id_tax` (`id_tax`);

--
-- Indexes for table `pspa_order_history`
--
ALTER TABLE `pspa_order_history`
  ADD PRIMARY KEY (`id_order_history`),
  ADD KEY `order_history_order` (`id_order`),
  ADD KEY `id_employee` (`id_employee`),
  ADD KEY `id_order_state` (`id_order_state`);

--
-- Indexes for table `pspa_order_invoice`
--
ALTER TABLE `pspa_order_invoice`
  ADD PRIMARY KEY (`id_order_invoice`),
  ADD KEY `id_order` (`id_order`);

--
-- Indexes for table `pspa_order_invoice_payment`
--
ALTER TABLE `pspa_order_invoice_payment`
  ADD PRIMARY KEY (`id_order_invoice`,`id_order_payment`),
  ADD KEY `order_payment` (`id_order_payment`),
  ADD KEY `id_order` (`id_order`);

--
-- Indexes for table `pspa_order_invoice_tax`
--
ALTER TABLE `pspa_order_invoice_tax`
  ADD KEY `id_tax` (`id_tax`);

--
-- Indexes for table `pspa_order_message`
--
ALTER TABLE `pspa_order_message`
  ADD PRIMARY KEY (`id_order_message`);

--
-- Indexes for table `pspa_order_message_lang`
--
ALTER TABLE `pspa_order_message_lang`
  ADD PRIMARY KEY (`id_order_message`,`id_lang`);

--
-- Indexes for table `pspa_order_return`
--
ALTER TABLE `pspa_order_return`
  ADD PRIMARY KEY (`id_order_return`),
  ADD KEY `order_return_customer` (`id_customer`),
  ADD KEY `id_order` (`id_order`);

--
-- Indexes for table `pspa_order_return_detail`
--
ALTER TABLE `pspa_order_return_detail`
  ADD PRIMARY KEY (`id_order_return`,`id_order_detail`,`id_customization`);

--
-- Indexes for table `pspa_order_return_state`
--
ALTER TABLE `pspa_order_return_state`
  ADD PRIMARY KEY (`id_order_return_state`);

--
-- Indexes for table `pspa_order_return_state_lang`
--
ALTER TABLE `pspa_order_return_state_lang`
  ADD PRIMARY KEY (`id_order_return_state`,`id_lang`);

--
-- Indexes for table `pspa_order_slip`
--
ALTER TABLE `pspa_order_slip`
  ADD PRIMARY KEY (`id_order_slip`),
  ADD KEY `order_slip_customer` (`id_customer`),
  ADD KEY `id_order` (`id_order`);

--
-- Indexes for table `pspa_order_slip_detail`
--
ALTER TABLE `pspa_order_slip_detail`
  ADD PRIMARY KEY (`id_order_slip`,`id_order_detail`);

--
-- Indexes for table `pspa_order_slip_detail_tax`
--
ALTER TABLE `pspa_order_slip_detail_tax`
  ADD KEY `id_order_slip_detail` (`id_order_slip_detail`),
  ADD KEY `id_tax` (`id_tax`);

--
-- Indexes for table `pspa_order_state`
--
ALTER TABLE `pspa_order_state`
  ADD PRIMARY KEY (`id_order_state`),
  ADD KEY `module_name` (`module_name`);

--
-- Indexes for table `pspa_order_state_lang`
--
ALTER TABLE `pspa_order_state_lang`
  ADD PRIMARY KEY (`id_order_state`,`id_lang`);

--
-- Indexes for table `pspa_pack`
--
ALTER TABLE `pspa_pack`
  ADD PRIMARY KEY (`id_product_pack`,`id_product_item`,`id_product_attribute_item`),
  ADD KEY `product_item` (`id_product_item`,`id_product_attribute_item`);

--
-- Indexes for table `pspa_page`
--
ALTER TABLE `pspa_page`
  ADD PRIMARY KEY (`id_page`),
  ADD KEY `id_page_type` (`id_page_type`),
  ADD KEY `id_object` (`id_object`);

--
-- Indexes for table `pspa_pagenotfound`
--
ALTER TABLE `pspa_pagenotfound`
  ADD PRIMARY KEY (`id_pagenotfound`),
  ADD KEY `date_add` (`date_add`);

--
-- Indexes for table `pspa_page_type`
--
ALTER TABLE `pspa_page_type`
  ADD PRIMARY KEY (`id_page_type`),
  ADD KEY `name` (`name`);

--
-- Indexes for table `pspa_page_viewed`
--
ALTER TABLE `pspa_page_viewed`
  ADD PRIMARY KEY (`id_page`,`id_date_range`,`id_shop`);

--
-- Indexes for table `pspa_product`
--
ALTER TABLE `pspa_product`
  ADD PRIMARY KEY (`id_product`),
  ADD KEY `product_supplier` (`id_supplier`),
  ADD KEY `product_manufacturer` (`id_manufacturer`,`id_product`),
  ADD KEY `id_category_default` (`id_category_default`),
  ADD KEY `indexed` (`indexed`),
  ADD KEY `date_add` (`date_add`),
  ADD KEY `state` (`state`,`date_upd`);

--
-- Indexes for table `pspa_product_attachment`
--
ALTER TABLE `pspa_product_attachment`
  ADD PRIMARY KEY (`id_product`,`id_attachment`);

--
-- Indexes for table `pspa_product_attribute`
--
ALTER TABLE `pspa_product_attribute`
  ADD PRIMARY KEY (`id_product_attribute`),
  ADD UNIQUE KEY `product_default` (`id_product`,`default_on`),
  ADD KEY `product_attribute_product` (`id_product`),
  ADD KEY `reference` (`reference`),
  ADD KEY `supplier_reference` (`supplier_reference`),
  ADD KEY `id_product_id_product_attribute` (`id_product_attribute`,`id_product`);

--
-- Indexes for table `pspa_product_attribute_combination`
--
ALTER TABLE `pspa_product_attribute_combination`
  ADD PRIMARY KEY (`id_attribute`,`id_product_attribute`),
  ADD KEY `id_product_attribute` (`id_product_attribute`);

--
-- Indexes for table `pspa_product_attribute_image`
--
ALTER TABLE `pspa_product_attribute_image`
  ADD PRIMARY KEY (`id_product_attribute`,`id_image`),
  ADD KEY `id_image` (`id_image`);

--
-- Indexes for table `pspa_product_attribute_shop`
--
ALTER TABLE `pspa_product_attribute_shop`
  ADD PRIMARY KEY (`id_product_attribute`,`id_shop`),
  ADD UNIQUE KEY `id_product` (`id_product`,`id_shop`,`default_on`);

--
-- Indexes for table `pspa_product_carrier`
--
ALTER TABLE `pspa_product_carrier`
  ADD PRIMARY KEY (`id_product`,`id_carrier_reference`,`id_shop`);

--
-- Indexes for table `pspa_product_country_tax`
--
ALTER TABLE `pspa_product_country_tax`
  ADD PRIMARY KEY (`id_product`,`id_country`);

--
-- Indexes for table `pspa_product_download`
--
ALTER TABLE `pspa_product_download`
  ADD PRIMARY KEY (`id_product_download`);

--
-- Indexes for table `pspa_product_group_reduction_cache`
--
ALTER TABLE `pspa_product_group_reduction_cache`
  ADD PRIMARY KEY (`id_product`,`id_group`);

--
-- Indexes for table `pspa_product_lang`
--
ALTER TABLE `pspa_product_lang`
  ADD PRIMARY KEY (`id_product`,`id_shop`,`id_lang`),
  ADD KEY `id_lang` (`id_lang`),
  ADD KEY `name` (`name`);

--
-- Indexes for table `pspa_product_sale`
--
ALTER TABLE `pspa_product_sale`
  ADD PRIMARY KEY (`id_product`),
  ADD KEY `quantity` (`quantity`);

--
-- Indexes for table `pspa_product_shop`
--
ALTER TABLE `pspa_product_shop`
  ADD PRIMARY KEY (`id_product`,`id_shop`),
  ADD KEY `id_category_default` (`id_category_default`),
  ADD KEY `date_add` (`date_add`,`active`,`visibility`),
  ADD KEY `indexed` (`indexed`,`active`,`id_product`);

--
-- Indexes for table `pspa_product_supplier`
--
ALTER TABLE `pspa_product_supplier`
  ADD PRIMARY KEY (`id_product_supplier`),
  ADD UNIQUE KEY `id_product` (`id_product`,`id_product_attribute`,`id_supplier`),
  ADD KEY `id_supplier` (`id_supplier`,`id_product`);

--
-- Indexes for table `pspa_product_tag`
--
ALTER TABLE `pspa_product_tag`
  ADD PRIMARY KEY (`id_product`,`id_tag`),
  ADD KEY `id_tag` (`id_tag`),
  ADD KEY `id_lang` (`id_lang`,`id_tag`);

--
-- Indexes for table `pspa_profile`
--
ALTER TABLE `pspa_profile`
  ADD PRIMARY KEY (`id_profile`);

--
-- Indexes for table `pspa_profile_lang`
--
ALTER TABLE `pspa_profile_lang`
  ADD PRIMARY KEY (`id_profile`,`id_lang`);

--
-- Indexes for table `pspa_psreassurance`
--
ALTER TABLE `pspa_psreassurance`
  ADD PRIMARY KEY (`id_psreassurance`);

--
-- Indexes for table `pspa_psreassurance_lang`
--
ALTER TABLE `pspa_psreassurance_lang`
  ADD PRIMARY KEY (`id_psreassurance`,`id_shop`,`id_lang`);

--
-- Indexes for table `pspa_quick_access`
--
ALTER TABLE `pspa_quick_access`
  ADD PRIMARY KEY (`id_quick_access`);

--
-- Indexes for table `pspa_quick_access_lang`
--
ALTER TABLE `pspa_quick_access_lang`
  ADD PRIMARY KEY (`id_quick_access`,`id_lang`);

--
-- Indexes for table `pspa_range_price`
--
ALTER TABLE `pspa_range_price`
  ADD PRIMARY KEY (`id_range_price`),
  ADD UNIQUE KEY `id_carrier` (`id_carrier`,`delimiter1`,`delimiter2`);

--
-- Indexes for table `pspa_range_weight`
--
ALTER TABLE `pspa_range_weight`
  ADD PRIMARY KEY (`id_range_weight`),
  ADD UNIQUE KEY `id_carrier` (`id_carrier`,`delimiter1`,`delimiter2`);

--
-- Indexes for table `pspa_referrer`
--
ALTER TABLE `pspa_referrer`
  ADD PRIMARY KEY (`id_referrer`);

--
-- Indexes for table `pspa_referrer_cache`
--
ALTER TABLE `pspa_referrer_cache`
  ADD PRIMARY KEY (`id_connections_source`,`id_referrer`);

--
-- Indexes for table `pspa_referrer_shop`
--
ALTER TABLE `pspa_referrer_shop`
  ADD PRIMARY KEY (`id_referrer`,`id_shop`);

--
-- Indexes for table `pspa_request_sql`
--
ALTER TABLE `pspa_request_sql`
  ADD PRIMARY KEY (`id_request_sql`);

--
-- Indexes for table `pspa_required_field`
--
ALTER TABLE `pspa_required_field`
  ADD PRIMARY KEY (`id_required_field`),
  ADD KEY `object_name` (`object_name`);

--
-- Indexes for table `pspa_risk`
--
ALTER TABLE `pspa_risk`
  ADD PRIMARY KEY (`id_risk`);

--
-- Indexes for table `pspa_risk_lang`
--
ALTER TABLE `pspa_risk_lang`
  ADD PRIMARY KEY (`id_risk`,`id_lang`),
  ADD KEY `id_risk` (`id_risk`);

--
-- Indexes for table `pspa_search_engine`
--
ALTER TABLE `pspa_search_engine`
  ADD PRIMARY KEY (`id_search_engine`);

--
-- Indexes for table `pspa_search_index`
--
ALTER TABLE `pspa_search_index`
  ADD PRIMARY KEY (`id_word`,`id_product`),
  ADD KEY `id_product` (`id_product`,`weight`);

--
-- Indexes for table `pspa_search_word`
--
ALTER TABLE `pspa_search_word`
  ADD PRIMARY KEY (`id_word`),
  ADD UNIQUE KEY `id_lang` (`id_lang`,`id_shop`,`word`);

--
-- Indexes for table `pspa_sekeyword`
--
ALTER TABLE `pspa_sekeyword`
  ADD PRIMARY KEY (`id_sekeyword`);

--
-- Indexes for table `pspa_shop`
--
ALTER TABLE `pspa_shop`
  ADD PRIMARY KEY (`id_shop`),
  ADD KEY `IDX_2CD88678F5C9E40` (`id_shop_group`);

--
-- Indexes for table `pspa_shop_group`
--
ALTER TABLE `pspa_shop_group`
  ADD PRIMARY KEY (`id_shop_group`);

--
-- Indexes for table `pspa_shop_url`
--
ALTER TABLE `pspa_shop_url`
  ADD PRIMARY KEY (`id_shop_url`),
  ADD UNIQUE KEY `full_shop_url` (`domain`,`physical_uri`,`virtual_uri`),
  ADD UNIQUE KEY `full_shop_url_ssl` (`domain_ssl`,`physical_uri`,`virtual_uri`),
  ADD KEY `id_shop` (`id_shop`,`main`);

--
-- Indexes for table `pspa_smarty_cache`
--
ALTER TABLE `pspa_smarty_cache`
  ADD PRIMARY KEY (`id_smarty_cache`),
  ADD KEY `name` (`name`),
  ADD KEY `cache_id` (`cache_id`),
  ADD KEY `modified` (`modified`);

--
-- Indexes for table `pspa_smarty_last_flush`
--
ALTER TABLE `pspa_smarty_last_flush`
  ADD PRIMARY KEY (`type`);

--
-- Indexes for table `pspa_smarty_lazy_cache`
--
ALTER TABLE `pspa_smarty_lazy_cache`
  ADD PRIMARY KEY (`template_hash`,`cache_id`,`compile_id`);

--
-- Indexes for table `pspa_specific_price`
--
ALTER TABLE `pspa_specific_price`
  ADD PRIMARY KEY (`id_specific_price`),
  ADD UNIQUE KEY `id_product_2` (`id_product`,`id_product_attribute`,`id_customer`,`id_cart`,`from`,`to`,`id_shop`,`id_shop_group`,`id_currency`,`id_country`,`id_group`,`from_quantity`,`id_specific_price_rule`),
  ADD KEY `id_product` (`id_product`,`id_shop`,`id_currency`,`id_country`,`id_group`,`id_customer`,`from_quantity`,`from`,`to`),
  ADD KEY `from_quantity` (`from_quantity`),
  ADD KEY `id_specific_price_rule` (`id_specific_price_rule`),
  ADD KEY `id_cart` (`id_cart`),
  ADD KEY `id_product_attribute` (`id_product_attribute`),
  ADD KEY `id_shop` (`id_shop`),
  ADD KEY `id_customer` (`id_customer`),
  ADD KEY `from` (`from`),
  ADD KEY `to` (`to`);

--
-- Indexes for table `pspa_specific_price_priority`
--
ALTER TABLE `pspa_specific_price_priority`
  ADD PRIMARY KEY (`id_specific_price_priority`,`id_product`),
  ADD UNIQUE KEY `id_product` (`id_product`);

--
-- Indexes for table `pspa_specific_price_rule`
--
ALTER TABLE `pspa_specific_price_rule`
  ADD PRIMARY KEY (`id_specific_price_rule`),
  ADD KEY `id_product` (`id_shop`,`id_currency`,`id_country`,`id_group`,`from_quantity`,`from`,`to`);

--
-- Indexes for table `pspa_specific_price_rule_condition`
--
ALTER TABLE `pspa_specific_price_rule_condition`
  ADD PRIMARY KEY (`id_specific_price_rule_condition`),
  ADD KEY `id_specific_price_rule_condition_group` (`id_specific_price_rule_condition_group`);

--
-- Indexes for table `pspa_specific_price_rule_condition_group`
--
ALTER TABLE `pspa_specific_price_rule_condition_group`
  ADD PRIMARY KEY (`id_specific_price_rule_condition_group`,`id_specific_price_rule`);

--
-- Indexes for table `pspa_state`
--
ALTER TABLE `pspa_state`
  ADD PRIMARY KEY (`id_state`),
  ADD KEY `id_country` (`id_country`),
  ADD KEY `name` (`name`),
  ADD KEY `id_zone` (`id_zone`);

--
-- Indexes for table `pspa_statssearch`
--
ALTER TABLE `pspa_statssearch`
  ADD PRIMARY KEY (`id_statssearch`);

--
-- Indexes for table `pspa_stock`
--
ALTER TABLE `pspa_stock`
  ADD PRIMARY KEY (`id_stock`),
  ADD KEY `id_warehouse` (`id_warehouse`),
  ADD KEY `id_product` (`id_product`),
  ADD KEY `id_product_attribute` (`id_product_attribute`);

--
-- Indexes for table `pspa_stock_available`
--
ALTER TABLE `pspa_stock_available`
  ADD PRIMARY KEY (`id_stock_available`),
  ADD UNIQUE KEY `product_sqlstock` (`id_product`,`id_product_attribute`,`id_shop`,`id_shop_group`),
  ADD KEY `id_shop` (`id_shop`),
  ADD KEY `id_shop_group` (`id_shop_group`),
  ADD KEY `id_product` (`id_product`),
  ADD KEY `id_product_attribute` (`id_product_attribute`);

--
-- Indexes for table `pspa_stock_mvt`
--
ALTER TABLE `pspa_stock_mvt`
  ADD PRIMARY KEY (`id_stock_mvt`),
  ADD KEY `id_stock` (`id_stock`),
  ADD KEY `id_stock_mvt_reason` (`id_stock_mvt_reason`);

--
-- Indexes for table `pspa_stock_mvt_reason`
--
ALTER TABLE `pspa_stock_mvt_reason`
  ADD PRIMARY KEY (`id_stock_mvt_reason`);

--
-- Indexes for table `pspa_stock_mvt_reason_lang`
--
ALTER TABLE `pspa_stock_mvt_reason_lang`
  ADD PRIMARY KEY (`id_stock_mvt_reason`,`id_lang`);

--
-- Indexes for table `pspa_store`
--
ALTER TABLE `pspa_store`
  ADD PRIMARY KEY (`id_store`);

--
-- Indexes for table `pspa_store_lang`
--
ALTER TABLE `pspa_store_lang`
  ADD PRIMARY KEY (`id_store`,`id_lang`);

--
-- Indexes for table `pspa_store_shop`
--
ALTER TABLE `pspa_store_shop`
  ADD PRIMARY KEY (`id_store`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `pspa_supplier`
--
ALTER TABLE `pspa_supplier`
  ADD PRIMARY KEY (`id_supplier`);

--
-- Indexes for table `pspa_supplier_lang`
--
ALTER TABLE `pspa_supplier_lang`
  ADD PRIMARY KEY (`id_supplier`,`id_lang`);

--
-- Indexes for table `pspa_supplier_shop`
--
ALTER TABLE `pspa_supplier_shop`
  ADD PRIMARY KEY (`id_supplier`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `pspa_supply_order`
--
ALTER TABLE `pspa_supply_order`
  ADD PRIMARY KEY (`id_supply_order`),
  ADD KEY `id_supplier` (`id_supplier`),
  ADD KEY `id_warehouse` (`id_warehouse`),
  ADD KEY `reference` (`reference`);

--
-- Indexes for table `pspa_supply_order_detail`
--
ALTER TABLE `pspa_supply_order_detail`
  ADD PRIMARY KEY (`id_supply_order_detail`),
  ADD KEY `id_supply_order` (`id_supply_order`,`id_product`),
  ADD KEY `id_product_attribute` (`id_product_attribute`),
  ADD KEY `id_product_product_attribute` (`id_product`,`id_product_attribute`);

--
-- Indexes for table `pspa_supply_order_history`
--
ALTER TABLE `pspa_supply_order_history`
  ADD PRIMARY KEY (`id_supply_order_history`),
  ADD KEY `id_supply_order` (`id_supply_order`),
  ADD KEY `id_employee` (`id_employee`),
  ADD KEY `id_state` (`id_state`);

--
-- Indexes for table `pspa_supply_order_receipt_history`
--
ALTER TABLE `pspa_supply_order_receipt_history`
  ADD PRIMARY KEY (`id_supply_order_receipt_history`),
  ADD KEY `id_supply_order_detail` (`id_supply_order_detail`),
  ADD KEY `id_supply_order_state` (`id_supply_order_state`);

--
-- Indexes for table `pspa_supply_order_state`
--
ALTER TABLE `pspa_supply_order_state`
  ADD PRIMARY KEY (`id_supply_order_state`);

--
-- Indexes for table `pspa_supply_order_state_lang`
--
ALTER TABLE `pspa_supply_order_state_lang`
  ADD PRIMARY KEY (`id_supply_order_state`,`id_lang`);

--
-- Indexes for table `pspa_tab`
--
ALTER TABLE `pspa_tab`
  ADD PRIMARY KEY (`id_tab`);

--
-- Indexes for table `pspa_tab_advice`
--
ALTER TABLE `pspa_tab_advice`
  ADD PRIMARY KEY (`id_tab`,`id_advice`);

--
-- Indexes for table `pspa_tab_lang`
--
ALTER TABLE `pspa_tab_lang`
  ADD PRIMARY KEY (`id_tab`,`id_lang`),
  ADD KEY `IDX_6151AF16ED47AB56` (`id_tab`),
  ADD KEY `IDX_6151AF16BA299860` (`id_lang`);

--
-- Indexes for table `pspa_tab_module_preference`
--
ALTER TABLE `pspa_tab_module_preference`
  ADD PRIMARY KEY (`id_tab_module_preference`),
  ADD UNIQUE KEY `employee_module` (`id_employee`,`id_tab`,`module`);

--
-- Indexes for table `pspa_tag`
--
ALTER TABLE `pspa_tag`
  ADD PRIMARY KEY (`id_tag`),
  ADD KEY `tag_name` (`name`),
  ADD KEY `id_lang` (`id_lang`);

--
-- Indexes for table `pspa_tag_count`
--
ALTER TABLE `pspa_tag_count`
  ADD PRIMARY KEY (`id_group`,`id_tag`),
  ADD KEY `id_group` (`id_group`,`id_lang`,`id_shop`,`counter`);

--
-- Indexes for table `pspa_tax`
--
ALTER TABLE `pspa_tax`
  ADD PRIMARY KEY (`id_tax`);

--
-- Indexes for table `pspa_tax_lang`
--
ALTER TABLE `pspa_tax_lang`
  ADD PRIMARY KEY (`id_tax`,`id_lang`);

--
-- Indexes for table `pspa_tax_rule`
--
ALTER TABLE `pspa_tax_rule`
  ADD PRIMARY KEY (`id_tax_rule`),
  ADD KEY `id_tax_rules_group` (`id_tax_rules_group`),
  ADD KEY `id_tax` (`id_tax`),
  ADD KEY `category_getproducts` (`id_tax_rules_group`,`id_country`,`id_state`,`zipcode_from`);

--
-- Indexes for table `pspa_tax_rules_group`
--
ALTER TABLE `pspa_tax_rules_group`
  ADD PRIMARY KEY (`id_tax_rules_group`);

--
-- Indexes for table `pspa_tax_rules_group_shop`
--
ALTER TABLE `pspa_tax_rules_group_shop`
  ADD PRIMARY KEY (`id_tax_rules_group`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `pspa_themeconfigurator`
--
ALTER TABLE `pspa_themeconfigurator`
  ADD PRIMARY KEY (`id_item`);

--
-- Indexes for table `pspa_timezone`
--
ALTER TABLE `pspa_timezone`
  ADD PRIMARY KEY (`id_timezone`);

--
-- Indexes for table `pspa_translation`
--
ALTER TABLE `pspa_translation`
  ADD PRIMARY KEY (`id_translation`),
  ADD KEY `IDX_8CF7C9F9BA299860` (`id_lang`),
  ADD KEY `key` (`domain`);

--
-- Indexes for table `pspa_warehouse`
--
ALTER TABLE `pspa_warehouse`
  ADD PRIMARY KEY (`id_warehouse`);

--
-- Indexes for table `pspa_warehouse_carrier`
--
ALTER TABLE `pspa_warehouse_carrier`
  ADD PRIMARY KEY (`id_warehouse`,`id_carrier`),
  ADD KEY `id_warehouse` (`id_warehouse`),
  ADD KEY `id_carrier` (`id_carrier`);

--
-- Indexes for table `pspa_warehouse_product_location`
--
ALTER TABLE `pspa_warehouse_product_location`
  ADD PRIMARY KEY (`id_warehouse_product_location`),
  ADD UNIQUE KEY `id_product` (`id_product`,`id_product_attribute`,`id_warehouse`);

--
-- Indexes for table `pspa_warehouse_shop`
--
ALTER TABLE `pspa_warehouse_shop`
  ADD PRIMARY KEY (`id_warehouse`,`id_shop`),
  ADD KEY `id_warehouse` (`id_warehouse`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `pspa_webservice_account`
--
ALTER TABLE `pspa_webservice_account`
  ADD PRIMARY KEY (`id_webservice_account`),
  ADD KEY `key` (`key`);

--
-- Indexes for table `pspa_webservice_account_shop`
--
ALTER TABLE `pspa_webservice_account_shop`
  ADD PRIMARY KEY (`id_webservice_account`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `pspa_webservice_permission`
--
ALTER TABLE `pspa_webservice_permission`
  ADD PRIMARY KEY (`id_webservice_permission`),
  ADD UNIQUE KEY `resource_2` (`resource`,`method`,`id_webservice_account`),
  ADD KEY `resource` (`resource`),
  ADD KEY `method` (`method`),
  ADD KEY `id_webservice_account` (`id_webservice_account`);

--
-- Indexes for table `pspa_web_browser`
--
ALTER TABLE `pspa_web_browser`
  ADD PRIMARY KEY (`id_web_browser`);

--
-- Indexes for table `pspa_zone`
--
ALTER TABLE `pspa_zone`
  ADD PRIMARY KEY (`id_zone`);

--
-- Indexes for table `pspa_zone_shop`
--
ALTER TABLE `pspa_zone_shop`
  ADD PRIMARY KEY (`id_zone`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_accessory`
--
ALTER TABLE `ps_accessory`
  ADD KEY `accessory_product` (`id_product_1`,`id_product_2`);

--
-- Indexes for table `ps_address`
--
ALTER TABLE `ps_address`
  ADD PRIMARY KEY (`id_address`),
  ADD KEY `address_customer` (`id_customer`),
  ADD KEY `id_country` (`id_country`),
  ADD KEY `id_state` (`id_state`),
  ADD KEY `id_manufacturer` (`id_manufacturer`),
  ADD KEY `id_supplier` (`id_supplier`),
  ADD KEY `id_warehouse` (`id_warehouse`);

--
-- Indexes for table `ps_address_format`
--
ALTER TABLE `ps_address_format`
  ADD PRIMARY KEY (`id_country`);

--
-- Indexes for table `ps_admin_filter`
--
ALTER TABLE `ps_admin_filter`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `admin_filter_search_id_idx` (`employee`,`shop`,`controller`,`action`,`filter_id`);

--
-- Indexes for table `ps_advancedpopup`
--
ALTER TABLE `ps_advancedpopup`
  ADD PRIMARY KEY (`id_advancedpopup`),
  ADD KEY `id_advancedpopup` (`id_advancedpopup`);

--
-- Indexes for table `ps_advancedpopup_lang`
--
ALTER TABLE `ps_advancedpopup_lang`
  ADD PRIMARY KEY (`id_advancedpopup`,`id_lang`),
  ADD KEY `id_advancedpopup` (`id_advancedpopup`);

--
-- Indexes for table `ps_advice`
--
ALTER TABLE `ps_advice`
  ADD PRIMARY KEY (`id_advice`);

--
-- Indexes for table `ps_advice_lang`
--
ALTER TABLE `ps_advice_lang`
  ADD PRIMARY KEY (`id_advice`,`id_lang`);

--
-- Indexes for table `ps_alias`
--
ALTER TABLE `ps_alias`
  ADD PRIMARY KEY (`id_alias`),
  ADD UNIQUE KEY `alias` (`alias`);

--
-- Indexes for table `ps_attachment`
--
ALTER TABLE `ps_attachment`
  ADD PRIMARY KEY (`id_attachment`);

--
-- Indexes for table `ps_attachment_lang`
--
ALTER TABLE `ps_attachment_lang`
  ADD PRIMARY KEY (`id_attachment`,`id_lang`);

--
-- Indexes for table `ps_attribute`
--
ALTER TABLE `ps_attribute`
  ADD PRIMARY KEY (`id_attribute`),
  ADD KEY `attribute_group` (`id_attribute_group`);

--
-- Indexes for table `ps_attribute_group`
--
ALTER TABLE `ps_attribute_group`
  ADD PRIMARY KEY (`id_attribute_group`);

--
-- Indexes for table `ps_attribute_group_lang`
--
ALTER TABLE `ps_attribute_group_lang`
  ADD PRIMARY KEY (`id_attribute_group`,`id_lang`),
  ADD KEY `IDX_4653726C67A664FB` (`id_attribute_group`),
  ADD KEY `IDX_4653726CBA299860` (`id_lang`);

--
-- Indexes for table `ps_attribute_group_shop`
--
ALTER TABLE `ps_attribute_group_shop`
  ADD PRIMARY KEY (`id_attribute_group`,`id_shop`),
  ADD KEY `IDX_DB30BAAC67A664FB` (`id_attribute_group`),
  ADD KEY `IDX_DB30BAAC274A50A0` (`id_shop`);

--
-- Indexes for table `ps_attribute_impact`
--
ALTER TABLE `ps_attribute_impact`
  ADD PRIMARY KEY (`id_attribute_impact`),
  ADD UNIQUE KEY `id_product` (`id_product`,`id_attribute`);

--
-- Indexes for table `ps_attribute_lang`
--
ALTER TABLE `ps_attribute_lang`
  ADD PRIMARY KEY (`id_attribute`,`id_lang`),
  ADD KEY `IDX_3ABE46A77A4F53DC` (`id_attribute`),
  ADD KEY `IDX_3ABE46A7BA299860` (`id_lang`);

--
-- Indexes for table `ps_attribute_shop`
--
ALTER TABLE `ps_attribute_shop`
  ADD PRIMARY KEY (`id_attribute`,`id_shop`),
  ADD KEY `IDX_A7DD8E677A4F53DC` (`id_attribute`),
  ADD KEY `IDX_A7DD8E67274A50A0` (`id_shop`);

--
-- Indexes for table `ps_badge`
--
ALTER TABLE `ps_badge`
  ADD PRIMARY KEY (`id_badge`);

--
-- Indexes for table `ps_badge_lang`
--
ALTER TABLE `ps_badge_lang`
  ADD PRIMARY KEY (`id_badge`,`id_lang`);

--
-- Indexes for table `ps_carrier`
--
ALTER TABLE `ps_carrier`
  ADD PRIMARY KEY (`id_carrier`),
  ADD KEY `deleted` (`deleted`,`active`),
  ADD KEY `id_tax_rules_group` (`id_tax_rules_group`),
  ADD KEY `reference` (`id_reference`,`deleted`,`active`);

--
-- Indexes for table `ps_carrier_group`
--
ALTER TABLE `ps_carrier_group`
  ADD PRIMARY KEY (`id_carrier`,`id_group`);

--
-- Indexes for table `ps_carrier_lang`
--
ALTER TABLE `ps_carrier_lang`
  ADD PRIMARY KEY (`id_lang`,`id_shop`,`id_carrier`);

--
-- Indexes for table `ps_carrier_shop`
--
ALTER TABLE `ps_carrier_shop`
  ADD PRIMARY KEY (`id_carrier`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_carrier_tax_rules_group_shop`
--
ALTER TABLE `ps_carrier_tax_rules_group_shop`
  ADD PRIMARY KEY (`id_carrier`,`id_tax_rules_group`,`id_shop`);

--
-- Indexes for table `ps_carrier_zone`
--
ALTER TABLE `ps_carrier_zone`
  ADD PRIMARY KEY (`id_carrier`,`id_zone`);

--
-- Indexes for table `ps_cart`
--
ALTER TABLE `ps_cart`
  ADD PRIMARY KEY (`id_cart`),
  ADD KEY `cart_customer` (`id_customer`),
  ADD KEY `id_address_delivery` (`id_address_delivery`),
  ADD KEY `id_address_invoice` (`id_address_invoice`),
  ADD KEY `id_carrier` (`id_carrier`),
  ADD KEY `id_lang` (`id_lang`),
  ADD KEY `id_currency` (`id_currency`),
  ADD KEY `id_guest` (`id_guest`),
  ADD KEY `id_shop_group` (`id_shop_group`),
  ADD KEY `id_shop_2` (`id_shop`,`date_upd`),
  ADD KEY `id_shop` (`id_shop`,`date_add`);

--
-- Indexes for table `ps_cart_cart_rule`
--
ALTER TABLE `ps_cart_cart_rule`
  ADD PRIMARY KEY (`id_cart`,`id_cart_rule`),
  ADD KEY `id_cart_rule` (`id_cart_rule`);

--
-- Indexes for table `ps_cart_product`
--
ALTER TABLE `ps_cart_product`
  ADD PRIMARY KEY (`id_cart`,`id_product`,`id_product_attribute`,`id_customization`,`id_address_delivery`),
  ADD KEY `id_product_attribute` (`id_product_attribute`),
  ADD KEY `id_cart_order` (`id_cart`,`date_add`,`id_product`,`id_product_attribute`);

--
-- Indexes for table `ps_cart_rule`
--
ALTER TABLE `ps_cart_rule`
  ADD PRIMARY KEY (`id_cart_rule`),
  ADD KEY `id_customer` (`id_customer`,`active`,`date_to`),
  ADD KEY `group_restriction` (`group_restriction`,`active`,`date_to`),
  ADD KEY `id_customer_2` (`id_customer`,`active`,`highlight`,`date_to`),
  ADD KEY `group_restriction_2` (`group_restriction`,`active`,`highlight`,`date_to`),
  ADD KEY `date_from` (`date_from`),
  ADD KEY `date_to` (`date_to`);

--
-- Indexes for table `ps_cart_rule_carrier`
--
ALTER TABLE `ps_cart_rule_carrier`
  ADD PRIMARY KEY (`id_cart_rule`,`id_carrier`);

--
-- Indexes for table `ps_cart_rule_combination`
--
ALTER TABLE `ps_cart_rule_combination`
  ADD PRIMARY KEY (`id_cart_rule_1`,`id_cart_rule_2`),
  ADD KEY `id_cart_rule_1` (`id_cart_rule_1`),
  ADD KEY `id_cart_rule_2` (`id_cart_rule_2`);

--
-- Indexes for table `ps_cart_rule_country`
--
ALTER TABLE `ps_cart_rule_country`
  ADD PRIMARY KEY (`id_cart_rule`,`id_country`);

--
-- Indexes for table `ps_cart_rule_group`
--
ALTER TABLE `ps_cart_rule_group`
  ADD PRIMARY KEY (`id_cart_rule`,`id_group`);

--
-- Indexes for table `ps_cart_rule_lang`
--
ALTER TABLE `ps_cart_rule_lang`
  ADD PRIMARY KEY (`id_cart_rule`,`id_lang`);

--
-- Indexes for table `ps_cart_rule_product_rule`
--
ALTER TABLE `ps_cart_rule_product_rule`
  ADD PRIMARY KEY (`id_product_rule`);

--
-- Indexes for table `ps_cart_rule_product_rule_group`
--
ALTER TABLE `ps_cart_rule_product_rule_group`
  ADD PRIMARY KEY (`id_product_rule_group`);

--
-- Indexes for table `ps_cart_rule_product_rule_value`
--
ALTER TABLE `ps_cart_rule_product_rule_value`
  ADD PRIMARY KEY (`id_product_rule`,`id_item`);

--
-- Indexes for table `ps_cart_rule_shop`
--
ALTER TABLE `ps_cart_rule_shop`
  ADD PRIMARY KEY (`id_cart_rule`,`id_shop`);

--
-- Indexes for table `ps_category`
--
ALTER TABLE `ps_category`
  ADD PRIMARY KEY (`id_category`),
  ADD KEY `category_parent` (`id_parent`),
  ADD KEY `nleftrightactive` (`nleft`,`nright`,`active`),
  ADD KEY `level_depth` (`level_depth`),
  ADD KEY `nright` (`nright`),
  ADD KEY `activenleft` (`active`,`nleft`),
  ADD KEY `activenright` (`active`,`nright`);

--
-- Indexes for table `ps_category_group`
--
ALTER TABLE `ps_category_group`
  ADD PRIMARY KEY (`id_category`,`id_group`),
  ADD KEY `id_category` (`id_category`),
  ADD KEY `id_group` (`id_group`);

--
-- Indexes for table `ps_category_lang`
--
ALTER TABLE `ps_category_lang`
  ADD PRIMARY KEY (`id_category`,`id_shop`,`id_lang`),
  ADD KEY `category_name` (`name`);

--
-- Indexes for table `ps_category_product`
--
ALTER TABLE `ps_category_product`
  ADD PRIMARY KEY (`id_category`,`id_product`),
  ADD KEY `id_product` (`id_product`),
  ADD KEY `id_category` (`id_category`,`position`);

--
-- Indexes for table `ps_category_shop`
--
ALTER TABLE `ps_category_shop`
  ADD PRIMARY KEY (`id_category`,`id_shop`);

--
-- Indexes for table `ps_cms`
--
ALTER TABLE `ps_cms`
  ADD PRIMARY KEY (`id_cms`);

--
-- Indexes for table `ps_cms_category`
--
ALTER TABLE `ps_cms_category`
  ADD PRIMARY KEY (`id_cms_category`),
  ADD KEY `category_parent` (`id_parent`);

--
-- Indexes for table `ps_cms_category_lang`
--
ALTER TABLE `ps_cms_category_lang`
  ADD PRIMARY KEY (`id_cms_category`,`id_shop`,`id_lang`),
  ADD KEY `category_name` (`name`);

--
-- Indexes for table `ps_cms_category_shop`
--
ALTER TABLE `ps_cms_category_shop`
  ADD PRIMARY KEY (`id_cms_category`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_cms_lang`
--
ALTER TABLE `ps_cms_lang`
  ADD PRIMARY KEY (`id_cms`,`id_shop`,`id_lang`);

--
-- Indexes for table `ps_cms_role`
--
ALTER TABLE `ps_cms_role`
  ADD PRIMARY KEY (`id_cms_role`,`id_cms`),
  ADD UNIQUE KEY `name` (`name`);

--
-- Indexes for table `ps_cms_role_lang`
--
ALTER TABLE `ps_cms_role_lang`
  ADD PRIMARY KEY (`id_cms_role`,`id_lang`,`id_shop`);

--
-- Indexes for table `ps_cms_shop`
--
ALTER TABLE `ps_cms_shop`
  ADD PRIMARY KEY (`id_cms`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_condition`
--
ALTER TABLE `ps_condition`
  ADD PRIMARY KEY (`id_condition`,`id_ps_condition`);

--
-- Indexes for table `ps_condition_advice`
--
ALTER TABLE `ps_condition_advice`
  ADD PRIMARY KEY (`id_condition`,`id_advice`);

--
-- Indexes for table `ps_condition_badge`
--
ALTER TABLE `ps_condition_badge`
  ADD PRIMARY KEY (`id_condition`,`id_badge`);

--
-- Indexes for table `ps_configuration`
--
ALTER TABLE `ps_configuration`
  ADD PRIMARY KEY (`id_configuration`),
  ADD KEY `name` (`name`),
  ADD KEY `id_shop` (`id_shop`),
  ADD KEY `id_shop_group` (`id_shop_group`);

--
-- Indexes for table `ps_configuration_kpi`
--
ALTER TABLE `ps_configuration_kpi`
  ADD PRIMARY KEY (`id_configuration_kpi`),
  ADD KEY `name` (`name`),
  ADD KEY `id_shop` (`id_shop`),
  ADD KEY `id_shop_group` (`id_shop_group`);

--
-- Indexes for table `ps_configuration_kpi_lang`
--
ALTER TABLE `ps_configuration_kpi_lang`
  ADD PRIMARY KEY (`id_configuration_kpi`,`id_lang`);

--
-- Indexes for table `ps_configuration_lang`
--
ALTER TABLE `ps_configuration_lang`
  ADD PRIMARY KEY (`id_configuration`,`id_lang`);

--
-- Indexes for table `ps_connections`
--
ALTER TABLE `ps_connections`
  ADD PRIMARY KEY (`id_connections`),
  ADD KEY `id_guest` (`id_guest`),
  ADD KEY `date_add` (`date_add`),
  ADD KEY `id_page` (`id_page`);

--
-- Indexes for table `ps_connections_page`
--
ALTER TABLE `ps_connections_page`
  ADD PRIMARY KEY (`id_connections`,`id_page`,`time_start`);

--
-- Indexes for table `ps_connections_source`
--
ALTER TABLE `ps_connections_source`
  ADD PRIMARY KEY (`id_connections_source`),
  ADD KEY `connections` (`id_connections`),
  ADD KEY `orderby` (`date_add`),
  ADD KEY `http_referer` (`http_referer`),
  ADD KEY `request_uri` (`request_uri`);

--
-- Indexes for table `ps_contact`
--
ALTER TABLE `ps_contact`
  ADD PRIMARY KEY (`id_contact`);

--
-- Indexes for table `ps_contact_lang`
--
ALTER TABLE `ps_contact_lang`
  ADD PRIMARY KEY (`id_contact`,`id_lang`);

--
-- Indexes for table `ps_contact_shop`
--
ALTER TABLE `ps_contact_shop`
  ADD PRIMARY KEY (`id_contact`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_country`
--
ALTER TABLE `ps_country`
  ADD PRIMARY KEY (`id_country`),
  ADD KEY `country_iso_code` (`iso_code`),
  ADD KEY `country_` (`id_zone`);

--
-- Indexes for table `ps_country_lang`
--
ALTER TABLE `ps_country_lang`
  ADD PRIMARY KEY (`id_country`,`id_lang`);

--
-- Indexes for table `ps_country_shop`
--
ALTER TABLE `ps_country_shop`
  ADD PRIMARY KEY (`id_country`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_currency`
--
ALTER TABLE `ps_currency`
  ADD PRIMARY KEY (`id_currency`),
  ADD KEY `currency_iso_code` (`iso_code`);

--
-- Indexes for table `ps_currency_lang`
--
ALTER TABLE `ps_currency_lang`
  ADD PRIMARY KEY (`id_currency`,`id_lang`);

--
-- Indexes for table `ps_currency_shop`
--
ALTER TABLE `ps_currency_shop`
  ADD PRIMARY KEY (`id_currency`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_customer_group`
--
ALTER TABLE `ps_customer_group`
  ADD PRIMARY KEY (`id_customer`,`id_group`),
  ADD KEY `customer_login` (`id_group`),
  ADD KEY `id_customer` (`id_customer`);

--
-- Indexes for table `ps_customer_message`
--
ALTER TABLE `ps_customer_message`
  ADD PRIMARY KEY (`id_customer_message`),
  ADD KEY `id_customer_thread` (`id_customer_thread`),
  ADD KEY `id_employee` (`id_employee`);

--
-- Indexes for table `ps_customer_message_sync_imap`
--
ALTER TABLE `ps_customer_message_sync_imap`
  ADD KEY `md5_header_index` (`md5_header`(4));

--
-- Indexes for table `ps_customization`
--
ALTER TABLE `ps_customization`
  ADD PRIMARY KEY (`id_customization`,`id_cart`,`id_product`,`id_address_delivery`),
  ADD KEY `id_product_attribute` (`id_product_attribute`),
  ADD KEY `id_cart_product` (`id_cart`,`id_product`,`id_product_attribute`);

--
-- Indexes for table `ps_customization_field`
--
ALTER TABLE `ps_customization_field`
  ADD PRIMARY KEY (`id_customization_field`),
  ADD KEY `id_product` (`id_product`);

--
-- Indexes for table `ps_customization_field_lang`
--
ALTER TABLE `ps_customization_field_lang`
  ADD PRIMARY KEY (`id_customization_field`,`id_lang`,`id_shop`);

--
-- Indexes for table `ps_customized_data`
--
ALTER TABLE `ps_customized_data`
  ADD PRIMARY KEY (`id_customization`,`type`,`index`);

--
-- Indexes for table `ps_date_range`
--
ALTER TABLE `ps_date_range`
  ADD PRIMARY KEY (`id_date_range`);

--
-- Indexes for table `ps_delivery`
--
ALTER TABLE `ps_delivery`
  ADD PRIMARY KEY (`id_delivery`),
  ADD KEY `id_zone` (`id_zone`),
  ADD KEY `id_carrier` (`id_carrier`,`id_zone`),
  ADD KEY `id_range_price` (`id_range_price`),
  ADD KEY `id_range_weight` (`id_range_weight`);

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

--
-- Indexes for table `ps_employee_shop`
--
ALTER TABLE `ps_employee_shop`
  ADD PRIMARY KEY (`id_employee`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_feature`
--
ALTER TABLE `ps_feature`
  ADD PRIMARY KEY (`id_feature`);

--
-- Indexes for table `ps_feature_lang`
--
ALTER TABLE `ps_feature_lang`
  ADD PRIMARY KEY (`id_feature`,`id_lang`),
  ADD KEY `id_lang` (`id_lang`,`name`);

--
-- Indexes for table `ps_feature_product`
--
ALTER TABLE `ps_feature_product`
  ADD PRIMARY KEY (`id_feature`,`id_product`,`id_feature_value`),
  ADD KEY `id_feature_value` (`id_feature_value`),
  ADD KEY `id_product` (`id_product`);

--
-- Indexes for table `ps_feature_shop`
--
ALTER TABLE `ps_feature_shop`
  ADD PRIMARY KEY (`id_feature`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_feature_value`
--
ALTER TABLE `ps_feature_value`
  ADD PRIMARY KEY (`id_feature_value`),
  ADD KEY `feature` (`id_feature`);

--
-- Indexes for table `ps_feature_value_lang`
--
ALTER TABLE `ps_feature_value_lang`
  ADD PRIMARY KEY (`id_feature_value`,`id_lang`);

--
-- Indexes for table `ps_gender`
--
ALTER TABLE `ps_gender`
  ADD PRIMARY KEY (`id_gender`);

--
-- Indexes for table `ps_gender_lang`
--
ALTER TABLE `ps_gender_lang`
  ADD PRIMARY KEY (`id_gender`,`id_lang`),
  ADD KEY `id_gender` (`id_gender`);

--
-- Indexes for table `ps_group`
--
ALTER TABLE `ps_group`
  ADD PRIMARY KEY (`id_group`);

--
-- Indexes for table `ps_group_lang`
--
ALTER TABLE `ps_group_lang`
  ADD PRIMARY KEY (`id_group`,`id_lang`);

--
-- Indexes for table `ps_group_reduction`
--
ALTER TABLE `ps_group_reduction`
  ADD PRIMARY KEY (`id_group_reduction`),
  ADD UNIQUE KEY `id_group` (`id_group`,`id_category`);

--
-- Indexes for table `ps_group_shop`
--
ALTER TABLE `ps_group_shop`
  ADD PRIMARY KEY (`id_group`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_guest`
--
ALTER TABLE `ps_guest`
  ADD PRIMARY KEY (`id_guest`),
  ADD KEY `id_customer` (`id_customer`),
  ADD KEY `id_operating_system` (`id_operating_system`),
  ADD KEY `id_web_browser` (`id_web_browser`);

--
-- Indexes for table `ps_homeslider`
--
ALTER TABLE `ps_homeslider`
  ADD PRIMARY KEY (`id_homeslider_slides`,`id_shop`);

--
-- Indexes for table `ps_homeslider_slides`
--
ALTER TABLE `ps_homeslider_slides`
  ADD PRIMARY KEY (`id_homeslider_slides`);

--
-- Indexes for table `ps_homeslider_slides_lang`
--
ALTER TABLE `ps_homeslider_slides_lang`
  ADD PRIMARY KEY (`id_homeslider_slides`,`id_lang`);

--
-- Indexes for table `ps_hook`
--
ALTER TABLE `ps_hook`
  ADD PRIMARY KEY (`id_hook`),
  ADD UNIQUE KEY `hook_name` (`name`);

--
-- Indexes for table `ps_hook_alias`
--
ALTER TABLE `ps_hook_alias`
  ADD PRIMARY KEY (`id_hook_alias`),
  ADD UNIQUE KEY `alias` (`alias`);

--
-- Indexes for table `ps_hook_module`
--
ALTER TABLE `ps_hook_module`
  ADD PRIMARY KEY (`id_module`,`id_hook`,`id_shop`),
  ADD KEY `id_hook` (`id_hook`),
  ADD KEY `id_module` (`id_module`),
  ADD KEY `position` (`id_shop`,`position`);

--
-- Indexes for table `ps_hook_module_exceptions`
--
ALTER TABLE `ps_hook_module_exceptions`
  ADD PRIMARY KEY (`id_hook_module_exceptions`),
  ADD KEY `id_module` (`id_module`),
  ADD KEY `id_hook` (`id_hook`);

--
-- Indexes for table `ps_ifthenpay_log`
--
ALTER TABLE `ps_ifthenpay_log`
  ADD PRIMARY KEY (`id_ifthenpay_log`);

--
-- Indexes for table `ps_ifthenpay_mbway`
--
ALTER TABLE `ps_ifthenpay_mbway`
  ADD PRIMARY KEY (`id_ifthenpay_mbway`),
  ADD KEY `idTransacao` (`id_transacao`);

--
-- Indexes for table `ps_ifthenpay_mbway_shop`
--
ALTER TABLE `ps_ifthenpay_mbway_shop`
  ADD PRIMARY KEY (`id_ifthenpay_mbway`,`id_shop`);

--
-- Indexes for table `ps_ifthenpay_multibanco`
--
ALTER TABLE `ps_ifthenpay_multibanco`
  ADD PRIMARY KEY (`id_ifthenpay_multibanco`),
  ADD KEY `referencia` (`referencia`);

--
-- Indexes for table `ps_ifthenpay_multibanco_shop`
--
ALTER TABLE `ps_ifthenpay_multibanco_shop`
  ADD PRIMARY KEY (`id_ifthenpay_multibanco`,`id_shop`);

--
-- Indexes for table `ps_ifthenpay_payshop`
--
ALTER TABLE `ps_ifthenpay_payshop`
  ADD PRIMARY KEY (`id_ifthenpay_payshop`),
  ADD KEY `idTransacao` (`id_transacao`);

--
-- Indexes for table `ps_ifthenpay_payshop_shop`
--
ALTER TABLE `ps_ifthenpay_payshop_shop`
  ADD PRIMARY KEY (`id_ifthenpay_payshop`,`id_shop`);

--
-- Indexes for table `ps_image`
--
ALTER TABLE `ps_image`
  ADD PRIMARY KEY (`id_image`),
  ADD UNIQUE KEY `id_product_cover` (`id_product`,`cover`),
  ADD UNIQUE KEY `idx_product_image` (`id_image`,`id_product`,`cover`),
  ADD KEY `image_product` (`id_product`);

--
-- Indexes for table `ps_image_lang`
--
ALTER TABLE `ps_image_lang`
  ADD PRIMARY KEY (`id_image`,`id_lang`),
  ADD KEY `id_image` (`id_image`);

--
-- Indexes for table `ps_image_shop`
--
ALTER TABLE `ps_image_shop`
  ADD PRIMARY KEY (`id_image`,`id_shop`),
  ADD UNIQUE KEY `id_product` (`id_product`,`id_shop`,`cover`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_image_type`
--
ALTER TABLE `ps_image_type`
  ADD PRIMARY KEY (`id_image_type`),
  ADD KEY `image_type_name` (`name`);

--
-- Indexes for table `ps_import_match`
--
ALTER TABLE `ps_import_match`
  ADD PRIMARY KEY (`id_import_match`);

--
-- Indexes for table `ps_info`
--
ALTER TABLE `ps_info`
  ADD PRIMARY KEY (`id_info`);

--
-- Indexes for table `ps_info_lang`
--
ALTER TABLE `ps_info_lang`
  ADD PRIMARY KEY (`id_info`,`id_lang`,`id_shop`);

--
-- Indexes for table `ps_info_shop`
--
ALTER TABLE `ps_info_shop`
  ADD PRIMARY KEY (`id_info`,`id_shop`);

--
-- Indexes for table `ps_lang`
--
ALTER TABLE `ps_lang`
  ADD PRIMARY KEY (`id_lang`);

--
-- Indexes for table `ps_lang_shop`
--
ALTER TABLE `ps_lang_shop`
  ADD PRIMARY KEY (`id_lang`,`id_shop`),
  ADD KEY `IDX_2F43BFC7BA299860` (`id_lang`),
  ADD KEY `IDX_2F43BFC7274A50A0` (`id_shop`);

--
-- Indexes for table `ps_layered_category`
--
ALTER TABLE `ps_layered_category`
  ADD PRIMARY KEY (`id_layered_category`),
  ADD KEY `id_category_shop` (`id_category`,`id_shop`,`type`,`id_value`,`position`),
  ADD KEY `id_category` (`id_category`,`type`);

--
-- Indexes for table `ps_layered_filter`
--
ALTER TABLE `ps_layered_filter`
  ADD PRIMARY KEY (`id_layered_filter`);

--
-- Indexes for table `ps_layered_filter_block`
--
ALTER TABLE `ps_layered_filter_block`
  ADD PRIMARY KEY (`hash`);

--
-- Indexes for table `ps_layered_filter_shop`
--
ALTER TABLE `ps_layered_filter_shop`
  ADD PRIMARY KEY (`id_layered_filter`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_layered_indexable_attribute_group`
--
ALTER TABLE `ps_layered_indexable_attribute_group`
  ADD PRIMARY KEY (`id_attribute_group`);

--
-- Indexes for table `ps_layered_indexable_attribute_group_lang_value`
--
ALTER TABLE `ps_layered_indexable_attribute_group_lang_value`
  ADD PRIMARY KEY (`id_attribute_group`,`id_lang`);

--
-- Indexes for table `ps_layered_indexable_attribute_lang_value`
--
ALTER TABLE `ps_layered_indexable_attribute_lang_value`
  ADD PRIMARY KEY (`id_attribute`,`id_lang`);

--
-- Indexes for table `ps_layered_indexable_feature`
--
ALTER TABLE `ps_layered_indexable_feature`
  ADD PRIMARY KEY (`id_feature`);

--
-- Indexes for table `ps_layered_indexable_feature_lang_value`
--
ALTER TABLE `ps_layered_indexable_feature_lang_value`
  ADD PRIMARY KEY (`id_feature`,`id_lang`);

--
-- Indexes for table `ps_layered_indexable_feature_value_lang_value`
--
ALTER TABLE `ps_layered_indexable_feature_value_lang_value`
  ADD PRIMARY KEY (`id_feature_value`,`id_lang`);

--
-- Indexes for table `ps_layered_price_index`
--
ALTER TABLE `ps_layered_price_index`
  ADD PRIMARY KEY (`id_product`,`id_currency`,`id_shop`,`id_country`),
  ADD KEY `id_currency` (`id_currency`),
  ADD KEY `price_min` (`price_min`),
  ADD KEY `price_max` (`price_max`);

--
-- Indexes for table `ps_layered_product_attribute`
--
ALTER TABLE `ps_layered_product_attribute`
  ADD PRIMARY KEY (`id_attribute`,`id_product`,`id_shop`),
  ADD UNIQUE KEY `id_attribute_group` (`id_attribute_group`,`id_attribute`,`id_product`,`id_shop`);

--
-- Indexes for table `ps_linksmenutop`
--
ALTER TABLE `ps_linksmenutop`
  ADD PRIMARY KEY (`id_linksmenutop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_linksmenutop_lang`
--
ALTER TABLE `ps_linksmenutop_lang`
  ADD KEY `id_linksmenutop` (`id_linksmenutop`,`id_lang`,`id_shop`);

--
-- Indexes for table `ps_link_block`
--
ALTER TABLE `ps_link_block`
  ADD PRIMARY KEY (`id_link_block`);

--
-- Indexes for table `ps_link_block_lang`
--
ALTER TABLE `ps_link_block_lang`
  ADD PRIMARY KEY (`id_link_block`,`id_lang`);

--
-- Indexes for table `ps_link_block_shop`
--
ALTER TABLE `ps_link_block_shop`
  ADD PRIMARY KEY (`id_link_block`,`id_shop`);

--
-- Indexes for table `ps_log`
--
ALTER TABLE `ps_log`
  ADD PRIMARY KEY (`id_log`);

--
-- Indexes for table `ps_lyoreservation_bookings`
--
ALTER TABLE `ps_lyoreservation_bookings`
  ADD PRIMARY KEY (`id_lyoreservation_bookings`);

--
-- Indexes for table `ps_lyoreservation_calendars`
--
ALTER TABLE `ps_lyoreservation_calendars`
  ADD PRIMARY KEY (`id_lyoreservation_calendars`);

--
-- Indexes for table `ps_lyoreservation_calendars_days`
--
ALTER TABLE `ps_lyoreservation_calendars_days`
  ADD PRIMARY KEY (`id_calendar`,`id_day`);

--
-- Indexes for table `ps_lyoreservation_calendar_products`
--
ALTER TABLE `ps_lyoreservation_calendar_products`
  ADD PRIMARY KEY (`id_calendar`,`id_product`);

--
-- Indexes for table `ps_lyoreservation_cart_product`
--
ALTER TABLE `ps_lyoreservation_cart_product`
  ADD PRIMARY KEY (`id_cart`,`id_product`,`id_product_attribute`);

--
-- Indexes for table `ps_lyoreservation_exclusions`
--
ALTER TABLE `ps_lyoreservation_exclusions`
  ADD PRIMARY KEY (`id_exclusion`,`id_calendar`);

--
-- Indexes for table `ps_lyoreservation_products_settings`
--
ALTER TABLE `ps_lyoreservation_products_settings`
  ADD PRIMARY KEY (`id_product`,`id_product_attribute`);

--
-- Indexes for table `ps_mail`
--
ALTER TABLE `ps_mail`
  ADD PRIMARY KEY (`id_mail`),
  ADD KEY `recipient` (`recipient`(10));

--
-- Indexes for table `ps_manufacturer`
--
ALTER TABLE `ps_manufacturer`
  ADD PRIMARY KEY (`id_manufacturer`);

--
-- Indexes for table `ps_manufacturer_lang`
--
ALTER TABLE `ps_manufacturer_lang`
  ADD PRIMARY KEY (`id_manufacturer`,`id_lang`);

--
-- Indexes for table `ps_manufacturer_shop`
--
ALTER TABLE `ps_manufacturer_shop`
  ADD PRIMARY KEY (`id_manufacturer`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_memcached_servers`
--
ALTER TABLE `ps_memcached_servers`
  ADD PRIMARY KEY (`id_memcached_server`);

--
-- Indexes for table `ps_message`
--
ALTER TABLE `ps_message`
  ADD PRIMARY KEY (`id_message`),
  ADD KEY `message_order` (`id_order`),
  ADD KEY `id_cart` (`id_cart`),
  ADD KEY `id_customer` (`id_customer`),
  ADD KEY `id_employee` (`id_employee`);

--
-- Indexes for table `ps_message_readed`
--
ALTER TABLE `ps_message_readed`
  ADD PRIMARY KEY (`id_message`,`id_employee`);

--
-- Indexes for table `ps_meta`
--
ALTER TABLE `ps_meta`
  ADD PRIMARY KEY (`id_meta`),
  ADD UNIQUE KEY `page` (`page`);

--
-- Indexes for table `ps_meta_lang`
--
ALTER TABLE `ps_meta_lang`
  ADD PRIMARY KEY (`id_meta`,`id_shop`,`id_lang`),
  ADD KEY `id_shop` (`id_shop`),
  ADD KEY `id_lang` (`id_lang`);

--
-- Indexes for table `ps_module`
--
ALTER TABLE `ps_module`
  ADD PRIMARY KEY (`id_module`),
  ADD UNIQUE KEY `name_UNIQUE` (`name`),
  ADD KEY `name` (`name`);

--
-- Indexes for table `ps_module_carrier`
--
ALTER TABLE `ps_module_carrier`
  ADD PRIMARY KEY (`id_module`,`id_shop`,`id_reference`);

--
-- Indexes for table `ps_module_country`
--
ALTER TABLE `ps_module_country`
  ADD PRIMARY KEY (`id_module`,`id_shop`,`id_country`);

--
-- Indexes for table `ps_module_currency`
--
ALTER TABLE `ps_module_currency`
  ADD PRIMARY KEY (`id_module`,`id_shop`,`id_currency`),
  ADD KEY `id_module` (`id_module`);

--
-- Indexes for table `ps_module_group`
--
ALTER TABLE `ps_module_group`
  ADD PRIMARY KEY (`id_module`,`id_shop`,`id_group`);

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

--
-- Indexes for table `ps_module_preference`
--
ALTER TABLE `ps_module_preference`
  ADD PRIMARY KEY (`id_module_preference`),
  ADD UNIQUE KEY `employee_module` (`id_employee`,`module`);

--
-- Indexes for table `ps_module_shop`
--
ALTER TABLE `ps_module_shop`
  ADD PRIMARY KEY (`id_module`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_operating_system`
--
ALTER TABLE `ps_operating_system`
  ADD PRIMARY KEY (`id_operating_system`);

--
-- Indexes for table `ps_orders`
--
ALTER TABLE `ps_orders`
  ADD PRIMARY KEY (`id_order`),
  ADD KEY `reference` (`reference`),
  ADD KEY `id_customer` (`id_customer`),
  ADD KEY `id_cart` (`id_cart`),
  ADD KEY `invoice_number` (`invoice_number`),
  ADD KEY `id_carrier` (`id_carrier`),
  ADD KEY `id_lang` (`id_lang`),
  ADD KEY `id_currency` (`id_currency`),
  ADD KEY `id_address_delivery` (`id_address_delivery`),
  ADD KEY `id_address_invoice` (`id_address_invoice`),
  ADD KEY `id_shop_group` (`id_shop_group`),
  ADD KEY `current_state` (`current_state`),
  ADD KEY `id_shop` (`id_shop`),
  ADD KEY `date_add` (`date_add`);

--
-- Indexes for table `ps_order_carrier`
--
ALTER TABLE `ps_order_carrier`
  ADD PRIMARY KEY (`id_order_carrier`),
  ADD KEY `id_order` (`id_order`),
  ADD KEY `id_carrier` (`id_carrier`),
  ADD KEY `id_order_invoice` (`id_order_invoice`);

--
-- Indexes for table `ps_order_cart_rule`
--
ALTER TABLE `ps_order_cart_rule`
  ADD PRIMARY KEY (`id_order_cart_rule`),
  ADD KEY `id_order` (`id_order`),
  ADD KEY `id_cart_rule` (`id_cart_rule`);

--
-- Indexes for table `ps_order_detail`
--
ALTER TABLE `ps_order_detail`
  ADD PRIMARY KEY (`id_order_detail`),
  ADD KEY `order_detail_order` (`id_order`),
  ADD KEY `product_id` (`product_id`,`product_attribute_id`),
  ADD KEY `product_attribute_id` (`product_attribute_id`),
  ADD KEY `id_tax_rules_group` (`id_tax_rules_group`),
  ADD KEY `id_order_id_order_detail` (`id_order`,`id_order_detail`);

--
-- Indexes for table `ps_order_detail_tax`
--
ALTER TABLE `ps_order_detail_tax`
  ADD KEY `id_order_detail` (`id_order_detail`),
  ADD KEY `id_tax` (`id_tax`);

--
-- Indexes for table `ps_order_history`
--
ALTER TABLE `ps_order_history`
  ADD PRIMARY KEY (`id_order_history`),
  ADD KEY `order_history_order` (`id_order`),
  ADD KEY `id_employee` (`id_employee`),
  ADD KEY `id_order_state` (`id_order_state`);

--
-- Indexes for table `ps_order_invoice`
--
ALTER TABLE `ps_order_invoice`
  ADD PRIMARY KEY (`id_order_invoice`),
  ADD KEY `id_order` (`id_order`);

--
-- Indexes for table `ps_order_invoice_payment`
--
ALTER TABLE `ps_order_invoice_payment`
  ADD PRIMARY KEY (`id_order_invoice`,`id_order_payment`),
  ADD KEY `order_payment` (`id_order_payment`),
  ADD KEY `id_order` (`id_order`);

--
-- Indexes for table `ps_order_invoice_tax`
--
ALTER TABLE `ps_order_invoice_tax`
  ADD KEY `id_tax` (`id_tax`);

--
-- Indexes for table `ps_order_message`
--
ALTER TABLE `ps_order_message`
  ADD PRIMARY KEY (`id_order_message`);

--
-- Indexes for table `ps_order_message_lang`
--
ALTER TABLE `ps_order_message_lang`
  ADD PRIMARY KEY (`id_order_message`,`id_lang`);

--
-- Indexes for table `ps_order_return`
--
ALTER TABLE `ps_order_return`
  ADD PRIMARY KEY (`id_order_return`),
  ADD KEY `order_return_customer` (`id_customer`),
  ADD KEY `id_order` (`id_order`);

--
-- Indexes for table `ps_order_return_detail`
--
ALTER TABLE `ps_order_return_detail`
  ADD PRIMARY KEY (`id_order_return`,`id_order_detail`,`id_customization`);

--
-- Indexes for table `ps_order_return_state`
--
ALTER TABLE `ps_order_return_state`
  ADD PRIMARY KEY (`id_order_return_state`);

--
-- Indexes for table `ps_order_return_state_lang`
--
ALTER TABLE `ps_order_return_state_lang`
  ADD PRIMARY KEY (`id_order_return_state`,`id_lang`);

--
-- Indexes for table `ps_order_slip`
--
ALTER TABLE `ps_order_slip`
  ADD PRIMARY KEY (`id_order_slip`),
  ADD KEY `order_slip_customer` (`id_customer`),
  ADD KEY `id_order` (`id_order`);

--
-- Indexes for table `ps_order_slip_detail`
--
ALTER TABLE `ps_order_slip_detail`
  ADD PRIMARY KEY (`id_order_slip`,`id_order_detail`);

--
-- Indexes for table `ps_order_slip_detail_tax`
--
ALTER TABLE `ps_order_slip_detail_tax`
  ADD KEY `id_order_slip_detail` (`id_order_slip_detail`),
  ADD KEY `id_tax` (`id_tax`);

--
-- Indexes for table `ps_order_state`
--
ALTER TABLE `ps_order_state`
  ADD PRIMARY KEY (`id_order_state`),
  ADD KEY `module_name` (`module_name`);

--
-- Indexes for table `ps_order_state_lang`
--
ALTER TABLE `ps_order_state_lang`
  ADD PRIMARY KEY (`id_order_state`,`id_lang`);

--
-- Indexes for table `ps_pack`
--
ALTER TABLE `ps_pack`
  ADD PRIMARY KEY (`id_product_pack`,`id_product_item`,`id_product_attribute_item`),
  ADD KEY `product_item` (`id_product_item`,`id_product_attribute_item`);

--
-- Indexes for table `ps_page`
--
ALTER TABLE `ps_page`
  ADD PRIMARY KEY (`id_page`),
  ADD KEY `id_page_type` (`id_page_type`),
  ADD KEY `id_object` (`id_object`);

--
-- Indexes for table `ps_pagenotfound`
--
ALTER TABLE `ps_pagenotfound`
  ADD PRIMARY KEY (`id_pagenotfound`),
  ADD KEY `date_add` (`date_add`);

--
-- Indexes for table `ps_page_type`
--
ALTER TABLE `ps_page_type`
  ADD PRIMARY KEY (`id_page_type`),
  ADD KEY `name` (`name`);

--
-- Indexes for table `ps_page_viewed`
--
ALTER TABLE `ps_page_viewed`
  ADD PRIMARY KEY (`id_page`,`id_date_range`,`id_shop`);

--
-- Indexes for table `ps_paypal_capture`
--
ALTER TABLE `ps_paypal_capture`
  ADD PRIMARY KEY (`id_paypal_capture`);

--
-- Indexes for table `ps_paypal_ipn`
--
ALTER TABLE `ps_paypal_ipn`
  ADD PRIMARY KEY (`id_paypal_ipn`);

--
-- Indexes for table `ps_paypal_order`
--
ALTER TABLE `ps_paypal_order`
  ADD PRIMARY KEY (`id_paypal_order`);

--
-- Indexes for table `ps_paypal_processlogger`
--
ALTER TABLE `ps_paypal_processlogger`
  ADD PRIMARY KEY (`id_paypal_processlogger`);

--
-- Indexes for table `ps_paypal_vaulting`
--
ALTER TABLE `ps_paypal_vaulting`
  ADD PRIMARY KEY (`id_paypal_vaulting`);

--
-- Indexes for table `ps_paypal_webhook`
--
ALTER TABLE `ps_paypal_webhook`
  ADD PRIMARY KEY (`id_paypal_webhook`);

--
-- Indexes for table `ps_product`
--
ALTER TABLE `ps_product`
  ADD PRIMARY KEY (`id_product`),
  ADD KEY `product_supplier` (`id_supplier`),
  ADD KEY `product_manufacturer` (`id_manufacturer`,`id_product`),
  ADD KEY `id_category_default` (`id_category_default`),
  ADD KEY `indexed` (`indexed`),
  ADD KEY `date_add` (`date_add`),
  ADD KEY `state` (`state`,`date_upd`);

--
-- Indexes for table `ps_product_attachment`
--
ALTER TABLE `ps_product_attachment`
  ADD PRIMARY KEY (`id_product`,`id_attachment`);

--
-- Indexes for table `ps_product_attribute`
--
ALTER TABLE `ps_product_attribute`
  ADD PRIMARY KEY (`id_product_attribute`),
  ADD UNIQUE KEY `product_default` (`id_product`,`default_on`),
  ADD KEY `product_attribute_product` (`id_product`),
  ADD KEY `reference` (`reference`),
  ADD KEY `supplier_reference` (`supplier_reference`),
  ADD KEY `id_product_id_product_attribute` (`id_product_attribute`,`id_product`);

--
-- Indexes for table `ps_product_attribute_combination`
--
ALTER TABLE `ps_product_attribute_combination`
  ADD PRIMARY KEY (`id_attribute`,`id_product_attribute`),
  ADD KEY `id_product_attribute` (`id_product_attribute`);

--
-- Indexes for table `ps_product_attribute_image`
--
ALTER TABLE `ps_product_attribute_image`
  ADD PRIMARY KEY (`id_product_attribute`,`id_image`),
  ADD KEY `id_image` (`id_image`);

--
-- Indexes for table `ps_product_attribute_shop`
--
ALTER TABLE `ps_product_attribute_shop`
  ADD PRIMARY KEY (`id_product_attribute`,`id_shop`),
  ADD UNIQUE KEY `id_product` (`id_product`,`id_shop`,`default_on`);

--
-- Indexes for table `ps_product_carrier`
--
ALTER TABLE `ps_product_carrier`
  ADD PRIMARY KEY (`id_product`,`id_carrier_reference`,`id_shop`);

--
-- Indexes for table `ps_product_comment`
--
ALTER TABLE `ps_product_comment`
  ADD PRIMARY KEY (`id_product_comment`),
  ADD KEY `id_product` (`id_product`),
  ADD KEY `id_customer` (`id_customer`),
  ADD KEY `id_guest` (`id_guest`);

--
-- Indexes for table `ps_product_comment_criterion`
--
ALTER TABLE `ps_product_comment_criterion`
  ADD PRIMARY KEY (`id_product_comment_criterion`);

--
-- Indexes for table `ps_product_comment_criterion_category`
--
ALTER TABLE `ps_product_comment_criterion_category`
  ADD PRIMARY KEY (`id_product_comment_criterion`,`id_category`),
  ADD KEY `id_category` (`id_category`);

--
-- Indexes for table `ps_product_comment_criterion_lang`
--
ALTER TABLE `ps_product_comment_criterion_lang`
  ADD PRIMARY KEY (`id_product_comment_criterion`,`id_lang`);

--
-- Indexes for table `ps_product_comment_criterion_product`
--
ALTER TABLE `ps_product_comment_criterion_product`
  ADD PRIMARY KEY (`id_product`,`id_product_comment_criterion`),
  ADD KEY `id_product_comment_criterion` (`id_product_comment_criterion`);

--
-- Indexes for table `ps_product_comment_grade`
--
ALTER TABLE `ps_product_comment_grade`
  ADD PRIMARY KEY (`id_product_comment`,`id_product_comment_criterion`),
  ADD KEY `id_product_comment_criterion` (`id_product_comment_criterion`);

--
-- Indexes for table `ps_product_comment_report`
--
ALTER TABLE `ps_product_comment_report`
  ADD PRIMARY KEY (`id_product_comment`,`id_customer`);

--
-- Indexes for table `ps_product_comment_usefulness`
--
ALTER TABLE `ps_product_comment_usefulness`
  ADD PRIMARY KEY (`id_product_comment`,`id_customer`);

--
-- Indexes for table `ps_product_country_tax`
--
ALTER TABLE `ps_product_country_tax`
  ADD PRIMARY KEY (`id_product`,`id_country`);

--
-- Indexes for table `ps_product_download`
--
ALTER TABLE `ps_product_download`
  ADD PRIMARY KEY (`id_product_download`);

--
-- Indexes for table `ps_product_group_reduction_cache`
--
ALTER TABLE `ps_product_group_reduction_cache`
  ADD PRIMARY KEY (`id_product`,`id_group`);

--
-- Indexes for table `ps_product_lang`
--
ALTER TABLE `ps_product_lang`
  ADD PRIMARY KEY (`id_product`,`id_shop`,`id_lang`),
  ADD KEY `id_lang` (`id_lang`),
  ADD KEY `name` (`name`);

--
-- Indexes for table `ps_product_sale`
--
ALTER TABLE `ps_product_sale`
  ADD PRIMARY KEY (`id_product`),
  ADD KEY `quantity` (`quantity`);

--
-- Indexes for table `ps_product_shop`
--
ALTER TABLE `ps_product_shop`
  ADD PRIMARY KEY (`id_product`,`id_shop`),
  ADD KEY `id_category_default` (`id_category_default`),
  ADD KEY `date_add` (`date_add`,`active`,`visibility`),
  ADD KEY `indexed` (`indexed`,`active`,`id_product`);

--
-- Indexes for table `ps_product_supplier`
--
ALTER TABLE `ps_product_supplier`
  ADD PRIMARY KEY (`id_product_supplier`),
  ADD UNIQUE KEY `id_product` (`id_product`,`id_product_attribute`,`id_supplier`),
  ADD KEY `id_supplier` (`id_supplier`,`id_product`);

--
-- Indexes for table `ps_product_tag`
--
ALTER TABLE `ps_product_tag`
  ADD PRIMARY KEY (`id_product`,`id_tag`),
  ADD KEY `id_tag` (`id_tag`),
  ADD KEY `id_lang` (`id_lang`,`id_tag`);

--
-- Indexes for table `ps_profile`
--
ALTER TABLE `ps_profile`
  ADD PRIMARY KEY (`id_profile`);

--
-- Indexes for table `ps_profile_lang`
--
ALTER TABLE `ps_profile_lang`
  ADD PRIMARY KEY (`id_profile`,`id_lang`);

--
-- Indexes for table `ps_psgdpr_consent`
--
ALTER TABLE `ps_psgdpr_consent`
  ADD PRIMARY KEY (`id_gdpr_consent`,`id_module`);

--
-- Indexes for table `ps_psgdpr_consent_lang`
--
ALTER TABLE `ps_psgdpr_consent_lang`
  ADD PRIMARY KEY (`id_gdpr_consent`,`id_lang`,`id_shop`);

--
-- Indexes for table `ps_psgdpr_log`
--
ALTER TABLE `ps_psgdpr_log`
  ADD PRIMARY KEY (`id_gdpr_log`),
  ADD KEY `idx_id_customer` (`id_customer`,`id_guest`,`client_name`,`id_module`,`date_add`,`date_upd`);

--
-- Indexes for table `ps_psreassurance`
--
ALTER TABLE `ps_psreassurance`
  ADD PRIMARY KEY (`id_psreassurance`);

--
-- Indexes for table `ps_psreassurance_lang`
--
ALTER TABLE `ps_psreassurance_lang`
  ADD PRIMARY KEY (`id_psreassurance`,`id_shop`,`id_lang`);

--
-- Indexes for table `ps_quick_access`
--
ALTER TABLE `ps_quick_access`
  ADD PRIMARY KEY (`id_quick_access`);

--
-- Indexes for table `ps_quick_access_lang`
--
ALTER TABLE `ps_quick_access_lang`
  ADD PRIMARY KEY (`id_quick_access`,`id_lang`);

--
-- Indexes for table `ps_range_price`
--
ALTER TABLE `ps_range_price`
  ADD PRIMARY KEY (`id_range_price`),
  ADD UNIQUE KEY `id_carrier` (`id_carrier`,`delimiter1`,`delimiter2`);

--
-- Indexes for table `ps_range_weight`
--
ALTER TABLE `ps_range_weight`
  ADD PRIMARY KEY (`id_range_weight`),
  ADD UNIQUE KEY `id_carrier` (`id_carrier`,`delimiter1`,`delimiter2`);

--
-- Indexes for table `ps_reassurance`
--
ALTER TABLE `ps_reassurance`
  ADD PRIMARY KEY (`id_reassurance`);

--
-- Indexes for table `ps_reassurance_lang`
--
ALTER TABLE `ps_reassurance_lang`
  ADD PRIMARY KEY (`id_reassurance`,`id_lang`);

--
-- Indexes for table `ps_referrer`
--
ALTER TABLE `ps_referrer`
  ADD PRIMARY KEY (`id_referrer`);

--
-- Indexes for table `ps_referrer_cache`
--
ALTER TABLE `ps_referrer_cache`
  ADD PRIMARY KEY (`id_connections_source`,`id_referrer`);

--
-- Indexes for table `ps_referrer_shop`
--
ALTER TABLE `ps_referrer_shop`
  ADD PRIMARY KEY (`id_referrer`,`id_shop`);

--
-- Indexes for table `ps_request_sql`
--
ALTER TABLE `ps_request_sql`
  ADD PRIMARY KEY (`id_request_sql`);

--
-- Indexes for table `ps_required_field`
--
ALTER TABLE `ps_required_field`
  ADD PRIMARY KEY (`id_required_field`),
  ADD KEY `object_name` (`object_name`);

--
-- Indexes for table `ps_risk`
--
ALTER TABLE `ps_risk`
  ADD PRIMARY KEY (`id_risk`);

--
-- Indexes for table `ps_risk_lang`
--
ALTER TABLE `ps_risk_lang`
  ADD PRIMARY KEY (`id_risk`,`id_lang`),
  ADD KEY `id_risk` (`id_risk`);

--
-- Indexes for table `ps_search_engine`
--
ALTER TABLE `ps_search_engine`
  ADD PRIMARY KEY (`id_search_engine`);

--
-- Indexes for table `ps_search_index`
--
ALTER TABLE `ps_search_index`
  ADD PRIMARY KEY (`id_word`,`id_product`),
  ADD KEY `id_product` (`id_product`,`weight`);

--
-- Indexes for table `ps_search_word`
--
ALTER TABLE `ps_search_word`
  ADD PRIMARY KEY (`id_word`),
  ADD UNIQUE KEY `id_lang` (`id_lang`,`id_shop`,`word`);

--
-- Indexes for table `ps_sekeyword`
--
ALTER TABLE `ps_sekeyword`
  ADD PRIMARY KEY (`id_sekeyword`);

--
-- Indexes for table `ps_shop`
--
ALTER TABLE `ps_shop`
  ADD PRIMARY KEY (`id_shop`),
  ADD KEY `IDX_CBDFBB9EF5C9E40` (`id_shop_group`);

--
-- Indexes for table `ps_shop_group`
--
ALTER TABLE `ps_shop_group`
  ADD PRIMARY KEY (`id_shop_group`);

--
-- Indexes for table `ps_shop_url`
--
ALTER TABLE `ps_shop_url`
  ADD PRIMARY KEY (`id_shop_url`),
  ADD UNIQUE KEY `full_shop_url` (`domain`,`physical_uri`,`virtual_uri`),
  ADD UNIQUE KEY `full_shop_url_ssl` (`domain_ssl`,`physical_uri`,`virtual_uri`),
  ADD KEY `id_shop` (`id_shop`,`main`);

--
-- Indexes for table `ps_smarty_cache`
--
ALTER TABLE `ps_smarty_cache`
  ADD PRIMARY KEY (`id_smarty_cache`),
  ADD KEY `name` (`name`),
  ADD KEY `cache_id` (`cache_id`),
  ADD KEY `modified` (`modified`);

--
-- Indexes for table `ps_smarty_last_flush`
--
ALTER TABLE `ps_smarty_last_flush`
  ADD PRIMARY KEY (`type`);

--
-- Indexes for table `ps_smarty_lazy_cache`
--
ALTER TABLE `ps_smarty_lazy_cache`
  ADD PRIMARY KEY (`template_hash`,`cache_id`,`compile_id`);

--
-- Indexes for table `ps_smart_blog_category`
--
ALTER TABLE `ps_smart_blog_category`
  ADD PRIMARY KEY (`id_smart_blog_category`);

--
-- Indexes for table `ps_smart_blog_category_lang`
--
ALTER TABLE `ps_smart_blog_category_lang`
  ADD PRIMARY KEY (`id_smart_blog_category`,`id_lang`);

--
-- Indexes for table `ps_smart_blog_category_shop`
--
ALTER TABLE `ps_smart_blog_category_shop`
  ADD PRIMARY KEY (`id_smart_blog_category_shop`,`id_smart_blog_category`,`id_shop`);

--
-- Indexes for table `ps_smart_blog_comment`
--
ALTER TABLE `ps_smart_blog_comment`
  ADD PRIMARY KEY (`id_smart_blog_comment`);

--
-- Indexes for table `ps_smart_blog_comment_shop`
--
ALTER TABLE `ps_smart_blog_comment_shop`
  ADD PRIMARY KEY (`id_smart_blog_comment_shop`,`id_smart_blog_comment`,`id_shop`);

--
-- Indexes for table `ps_smart_blog_imagetype`
--
ALTER TABLE `ps_smart_blog_imagetype`
  ADD PRIMARY KEY (`id_smart_blog_imagetype`);

--
-- Indexes for table `ps_smart_blog_media`
--
ALTER TABLE `ps_smart_blog_media`
  ADD PRIMARY KEY (`id_media`);

--
-- Indexes for table `ps_smart_blog_post`
--
ALTER TABLE `ps_smart_blog_post`
  ADD PRIMARY KEY (`id_smart_blog_post`);

--
-- Indexes for table `ps_smart_blog_post_lang`
--
ALTER TABLE `ps_smart_blog_post_lang`
  ADD PRIMARY KEY (`id_smart_blog_post`,`id_lang`);

--
-- Indexes for table `ps_smart_blog_post_related`
--
ALTER TABLE `ps_smart_blog_post_related`
  ADD PRIMARY KEY (`id_post`);

--
-- Indexes for table `ps_smart_blog_post_shop`
--
ALTER TABLE `ps_smart_blog_post_shop`
  ADD PRIMARY KEY (`id_smart_blog_post_shop`,`id_smart_blog_post`,`id_shop`);

--
-- Indexes for table `ps_smart_blog_product_related`
--
ALTER TABLE `ps_smart_blog_product_related`
  ADD PRIMARY KEY (`id_post`);

--
-- Indexes for table `ps_smart_blog_tag`
--
ALTER TABLE `ps_smart_blog_tag`
  ADD PRIMARY KEY (`id_tag`);

--
-- Indexes for table `ps_specific_price`
--
ALTER TABLE `ps_specific_price`
  ADD PRIMARY KEY (`id_specific_price`),
  ADD UNIQUE KEY `id_product_2` (`id_product`,`id_product_attribute`,`id_customer`,`id_cart`,`from`,`to`,`id_shop`,`id_shop_group`,`id_currency`,`id_country`,`id_group`,`from_quantity`,`id_specific_price_rule`),
  ADD KEY `id_product` (`id_product`,`id_shop`,`id_currency`,`id_country`,`id_group`,`id_customer`,`from_quantity`,`from`,`to`),
  ADD KEY `from_quantity` (`from_quantity`),
  ADD KEY `id_specific_price_rule` (`id_specific_price_rule`),
  ADD KEY `id_cart` (`id_cart`),
  ADD KEY `id_product_attribute` (`id_product_attribute`),
  ADD KEY `id_shop` (`id_shop`),
  ADD KEY `id_customer` (`id_customer`),
  ADD KEY `from` (`from`),
  ADD KEY `to` (`to`);

--
-- Indexes for table `ps_specific_price_priority`
--
ALTER TABLE `ps_specific_price_priority`
  ADD PRIMARY KEY (`id_specific_price_priority`,`id_product`),
  ADD UNIQUE KEY `id_product` (`id_product`);

--
-- Indexes for table `ps_specific_price_rule`
--
ALTER TABLE `ps_specific_price_rule`
  ADD PRIMARY KEY (`id_specific_price_rule`),
  ADD KEY `id_product` (`id_shop`,`id_currency`,`id_country`,`id_group`,`from_quantity`,`from`,`to`);

--
-- Indexes for table `ps_specific_price_rule_condition`
--
ALTER TABLE `ps_specific_price_rule_condition`
  ADD PRIMARY KEY (`id_specific_price_rule_condition`),
  ADD KEY `id_specific_price_rule_condition_group` (`id_specific_price_rule_condition_group`);

--
-- Indexes for table `ps_specific_price_rule_condition_group`
--
ALTER TABLE `ps_specific_price_rule_condition_group`
  ADD PRIMARY KEY (`id_specific_price_rule_condition_group`,`id_specific_price_rule`);

--
-- Indexes for table `ps_state`
--
ALTER TABLE `ps_state`
  ADD PRIMARY KEY (`id_state`),
  ADD KEY `id_country` (`id_country`),
  ADD KEY `name` (`name`),
  ADD KEY `id_zone` (`id_zone`);

--
-- Indexes for table `ps_statssearch`
--
ALTER TABLE `ps_statssearch`
  ADD PRIMARY KEY (`id_statssearch`);

--
-- Indexes for table `ps_stock`
--
ALTER TABLE `ps_stock`
  ADD PRIMARY KEY (`id_stock`),
  ADD KEY `id_warehouse` (`id_warehouse`),
  ADD KEY `id_product` (`id_product`),
  ADD KEY `id_product_attribute` (`id_product_attribute`);

--
-- Indexes for table `ps_stock_available`
--
ALTER TABLE `ps_stock_available`
  ADD PRIMARY KEY (`id_stock_available`),
  ADD UNIQUE KEY `product_sqlstock` (`id_product`,`id_product_attribute`,`id_shop`,`id_shop_group`),
  ADD KEY `id_shop` (`id_shop`),
  ADD KEY `id_shop_group` (`id_shop_group`),
  ADD KEY `id_product` (`id_product`),
  ADD KEY `id_product_attribute` (`id_product_attribute`);

--
-- Indexes for table `ps_stock_mvt`
--
ALTER TABLE `ps_stock_mvt`
  ADD PRIMARY KEY (`id_stock_mvt`),
  ADD KEY `id_stock` (`id_stock`),
  ADD KEY `id_stock_mvt_reason` (`id_stock_mvt_reason`);

--
-- Indexes for table `ps_stock_mvt_reason`
--
ALTER TABLE `ps_stock_mvt_reason`
  ADD PRIMARY KEY (`id_stock_mvt_reason`);

--
-- Indexes for table `ps_stock_mvt_reason_lang`
--
ALTER TABLE `ps_stock_mvt_reason_lang`
  ADD PRIMARY KEY (`id_stock_mvt_reason`,`id_lang`);

--
-- Indexes for table `ps_store`
--
ALTER TABLE `ps_store`
  ADD PRIMARY KEY (`id_store`);

--
-- Indexes for table `ps_store_lang`
--
ALTER TABLE `ps_store_lang`
  ADD PRIMARY KEY (`id_store`,`id_lang`);

--
-- Indexes for table `ps_store_shop`
--
ALTER TABLE `ps_store_shop`
  ADD PRIMARY KEY (`id_store`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_supplier`
--
ALTER TABLE `ps_supplier`
  ADD PRIMARY KEY (`id_supplier`);

--
-- Indexes for table `ps_supplier_lang`
--
ALTER TABLE `ps_supplier_lang`
  ADD PRIMARY KEY (`id_supplier`,`id_lang`);

--
-- Indexes for table `ps_supplier_shop`
--
ALTER TABLE `ps_supplier_shop`
  ADD PRIMARY KEY (`id_supplier`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_supply_order`
--
ALTER TABLE `ps_supply_order`
  ADD PRIMARY KEY (`id_supply_order`),
  ADD KEY `id_supplier` (`id_supplier`),
  ADD KEY `id_warehouse` (`id_warehouse`),
  ADD KEY `reference` (`reference`);

--
-- Indexes for table `ps_supply_order_detail`
--
ALTER TABLE `ps_supply_order_detail`
  ADD PRIMARY KEY (`id_supply_order_detail`),
  ADD KEY `id_supply_order` (`id_supply_order`,`id_product`),
  ADD KEY `id_product_attribute` (`id_product_attribute`),
  ADD KEY `id_product_product_attribute` (`id_product`,`id_product_attribute`);

--
-- Indexes for table `ps_supply_order_history`
--
ALTER TABLE `ps_supply_order_history`
  ADD PRIMARY KEY (`id_supply_order_history`),
  ADD KEY `id_supply_order` (`id_supply_order`),
  ADD KEY `id_employee` (`id_employee`),
  ADD KEY `id_state` (`id_state`);

--
-- Indexes for table `ps_supply_order_receipt_history`
--
ALTER TABLE `ps_supply_order_receipt_history`
  ADD PRIMARY KEY (`id_supply_order_receipt_history`),
  ADD KEY `id_supply_order_detail` (`id_supply_order_detail`),
  ADD KEY `id_supply_order_state` (`id_supply_order_state`);

--
-- Indexes for table `ps_supply_order_state`
--
ALTER TABLE `ps_supply_order_state`
  ADD PRIMARY KEY (`id_supply_order_state`);

--
-- Indexes for table `ps_supply_order_state_lang`
--
ALTER TABLE `ps_supply_order_state_lang`
  ADD PRIMARY KEY (`id_supply_order_state`,`id_lang`);

--
-- Indexes for table `ps_tab`
--
ALTER TABLE `ps_tab`
  ADD PRIMARY KEY (`id_tab`);

--
-- Indexes for table `ps_tab_advice`
--
ALTER TABLE `ps_tab_advice`
  ADD PRIMARY KEY (`id_tab`,`id_advice`);

--
-- Indexes for table `ps_tab_lang`
--
ALTER TABLE `ps_tab_lang`
  ADD PRIMARY KEY (`id_tab`,`id_lang`),
  ADD KEY `IDX_CFD9262DED47AB56` (`id_tab`),
  ADD KEY `IDX_CFD9262DBA299860` (`id_lang`);

--
-- Indexes for table `ps_tab_module_preference`
--
ALTER TABLE `ps_tab_module_preference`
  ADD PRIMARY KEY (`id_tab_module_preference`),
  ADD UNIQUE KEY `employee_module` (`id_employee`,`id_tab`,`module`);

--
-- Indexes for table `ps_tag`
--
ALTER TABLE `ps_tag`
  ADD PRIMARY KEY (`id_tag`),
  ADD KEY `tag_name` (`name`),
  ADD KEY `id_lang` (`id_lang`);

--
-- Indexes for table `ps_tag_count`
--
ALTER TABLE `ps_tag_count`
  ADD PRIMARY KEY (`id_group`,`id_tag`),
  ADD KEY `id_group` (`id_group`,`id_lang`,`id_shop`,`counter`);

--
-- Indexes for table `ps_tax`
--
ALTER TABLE `ps_tax`
  ADD PRIMARY KEY (`id_tax`);

--
-- Indexes for table `ps_tax_lang`
--
ALTER TABLE `ps_tax_lang`
  ADD PRIMARY KEY (`id_tax`,`id_lang`);

--
-- Indexes for table `ps_tax_rule`
--
ALTER TABLE `ps_tax_rule`
  ADD PRIMARY KEY (`id_tax_rule`),
  ADD KEY `id_tax_rules_group` (`id_tax_rules_group`),
  ADD KEY `id_tax` (`id_tax`),
  ADD KEY `category_getproducts` (`id_tax_rules_group`,`id_country`,`id_state`,`zipcode_from`);

--
-- Indexes for table `ps_tax_rules_group`
--
ALTER TABLE `ps_tax_rules_group`
  ADD PRIMARY KEY (`id_tax_rules_group`);

--
-- Indexes for table `ps_tax_rules_group_shop`
--
ALTER TABLE `ps_tax_rules_group_shop`
  ADD PRIMARY KEY (`id_tax_rules_group`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_timezone`
--
ALTER TABLE `ps_timezone`
  ADD PRIMARY KEY (`id_timezone`);

--
-- Indexes for table `ps_translation`
--
ALTER TABLE `ps_translation`
  ADD PRIMARY KEY (`id_translation`),
  ADD KEY `IDX_ADEBEB36BA299860` (`id_lang`),
  ADD KEY `key` (`domain`);

--
-- Indexes for table `ps_warehouse`
--
ALTER TABLE `ps_warehouse`
  ADD PRIMARY KEY (`id_warehouse`);

--
-- Indexes for table `ps_warehouse_carrier`
--
ALTER TABLE `ps_warehouse_carrier`
  ADD PRIMARY KEY (`id_warehouse`,`id_carrier`),
  ADD KEY `id_warehouse` (`id_warehouse`),
  ADD KEY `id_carrier` (`id_carrier`);

--
-- Indexes for table `ps_warehouse_product_location`
--
ALTER TABLE `ps_warehouse_product_location`
  ADD PRIMARY KEY (`id_warehouse_product_location`),
  ADD UNIQUE KEY `id_product` (`id_product`,`id_product_attribute`,`id_warehouse`);

--
-- Indexes for table `ps_warehouse_shop`
--
ALTER TABLE `ps_warehouse_shop`
  ADD PRIMARY KEY (`id_warehouse`,`id_shop`),
  ADD KEY `id_warehouse` (`id_warehouse`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_wdaboutusinfo`
--
ALTER TABLE `ps_wdaboutusinfo`
  ADD PRIMARY KEY (`id_wdaboutusinfo`);

--
-- Indexes for table `ps_wdaboutusinfo_lang`
--
ALTER TABLE `ps_wdaboutusinfo_lang`
  ADD PRIMARY KEY (`id_wdaboutusinfo`,`id_lang`);

--
-- Indexes for table `ps_wdaboutwineinfo`
--
ALTER TABLE `ps_wdaboutwineinfo`
  ADD PRIMARY KEY (`id_wdaboutwineinfo`);

--
-- Indexes for table `ps_wdaboutwineinfo_lang`
--
ALTER TABLE `ps_wdaboutwineinfo_lang`
  ADD PRIMARY KEY (`id_wdaboutwineinfo`,`id_lang`);

--
-- Indexes for table `ps_wdbannerinfo`
--
ALTER TABLE `ps_wdbannerinfo`
  ADD PRIMARY KEY (`id_wdbannerinfo`);

--
-- Indexes for table `ps_wdbannerinfo_lang`
--
ALTER TABLE `ps_wdbannerinfo_lang`
  ADD PRIMARY KEY (`id_wdbannerinfo`,`id_lang`);

--
-- Indexes for table `ps_wdclientinfo`
--
ALTER TABLE `ps_wdclientinfo`
  ADD PRIMARY KEY (`id_wdclientinfo`);

--
-- Indexes for table `ps_wdclientinfo_lang`
--
ALTER TABLE `ps_wdclientinfo_lang`
  ADD PRIMARY KEY (`id_wdclientinfo`,`id_lang`);

--
-- Indexes for table `ps_wdcompare`
--
ALTER TABLE `ps_wdcompare`
  ADD PRIMARY KEY (`id_compare`);

--
-- Indexes for table `ps_wdcompare_product`
--
ALTER TABLE `ps_wdcompare_product`
  ADD PRIMARY KEY (`id_compare`,`id_product`);

--
-- Indexes for table `ps_wdproductcountdown`
--
ALTER TABLE `ps_wdproductcountdown`
  ADD PRIMARY KEY (`id_countdown`),
  ADD UNIQUE KEY `id_product_id_shop` (`id_product`,`id_shop`);

--
-- Indexes for table `ps_wdproduct_comment`
--
ALTER TABLE `ps_wdproduct_comment`
  ADD PRIMARY KEY (`id_product_comment`),
  ADD KEY `id_product` (`id_product`),
  ADD KEY `id_customer` (`id_customer`),
  ADD KEY `id_guest` (`id_guest`);

--
-- Indexes for table `ps_wdproduct_comment_criterion`
--
ALTER TABLE `ps_wdproduct_comment_criterion`
  ADD PRIMARY KEY (`id_product_comment_criterion`);

--
-- Indexes for table `ps_wdproduct_comment_criterion_category`
--
ALTER TABLE `ps_wdproduct_comment_criterion_category`
  ADD PRIMARY KEY (`id_product_comment_criterion`,`id_category`),
  ADD KEY `id_category` (`id_category`);

--
-- Indexes for table `ps_wdproduct_comment_criterion_lang`
--
ALTER TABLE `ps_wdproduct_comment_criterion_lang`
  ADD PRIMARY KEY (`id_product_comment_criterion`,`id_lang`);

--
-- Indexes for table `ps_wdproduct_comment_criterion_product`
--
ALTER TABLE `ps_wdproduct_comment_criterion_product`
  ADD PRIMARY KEY (`id_product`,`id_product_comment_criterion`),
  ADD KEY `id_product_comment_criterion` (`id_product_comment_criterion`);

--
-- Indexes for table `ps_wdproduct_comment_grade`
--
ALTER TABLE `ps_wdproduct_comment_grade`
  ADD PRIMARY KEY (`id_product_comment`,`id_product_comment_criterion`),
  ADD KEY `id_product_comment_criterion` (`id_product_comment_criterion`);

--
-- Indexes for table `ps_wdproduct_comment_report`
--
ALTER TABLE `ps_wdproduct_comment_report`
  ADD PRIMARY KEY (`id_product_comment`,`id_customer`);

--
-- Indexes for table `ps_wdproduct_comment_usefulness`
--
ALTER TABLE `ps_wdproduct_comment_usefulness`
  ADD PRIMARY KEY (`id_product_comment`,`id_customer`);

--
-- Indexes for table `ps_wdwishlist`
--
ALTER TABLE `ps_wdwishlist`
  ADD PRIMARY KEY (`id_wishlist`);

--
-- Indexes for table `ps_wdwishlist_product`
--
ALTER TABLE `ps_wdwishlist_product`
  ADD PRIMARY KEY (`id_wishlist_product`);

--
-- Indexes for table `ps_webservice_account`
--
ALTER TABLE `ps_webservice_account`
  ADD PRIMARY KEY (`id_webservice_account`),
  ADD KEY `key` (`key`);

--
-- Indexes for table `ps_webservice_account_shop`
--
ALTER TABLE `ps_webservice_account_shop`
  ADD PRIMARY KEY (`id_webservice_account`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Indexes for table `ps_webservice_permission`
--
ALTER TABLE `ps_webservice_permission`
  ADD PRIMARY KEY (`id_webservice_permission`),
  ADD UNIQUE KEY `resource_2` (`resource`,`method`,`id_webservice_account`),
  ADD KEY `resource` (`resource`),
  ADD KEY `method` (`method`),
  ADD KEY `id_webservice_account` (`id_webservice_account`);

--
-- Indexes for table `ps_web_browser`
--
ALTER TABLE `ps_web_browser`
  ADD PRIMARY KEY (`id_web_browser`);

--
-- Indexes for table `ps_zone`
--
ALTER TABLE `ps_zone`
  ADD PRIMARY KEY (`id_zone`);

--
-- Indexes for table `ps_zone_shop`
--
ALTER TABLE `ps_zone_shop`
  ADD PRIMARY KEY (`id_zone`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `pspa_address`
--
ALTER TABLE `pspa_address`
  MODIFY `id_address` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=51;

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

--
-- AUTO_INCREMENT for table `pspa_advice`
--
ALTER TABLE `pspa_advice`
  MODIFY `id_advice` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=57;

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

--
-- AUTO_INCREMENT for table `pspa_attachment`
--
ALTER TABLE `pspa_attachment`
  MODIFY `id_attachment` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;

--
-- AUTO_INCREMENT for table `pspa_attachment_lang`
--
ALTER TABLE `pspa_attachment_lang`
  MODIFY `id_attachment` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `pspa_attribute`
--
ALTER TABLE `pspa_attribute`
  MODIFY `id_attribute` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_attribute_group`
--
ALTER TABLE `pspa_attribute_group`
  MODIFY `id_attribute_group` int(11) NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `pspa_badge`
--
ALTER TABLE `pspa_badge`
  MODIFY `id_badge` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=235;

--
-- AUTO_INCREMENT for table `pspa_carrier`
--
ALTER TABLE `pspa_carrier`
  MODIFY `id_carrier` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=199;

--
-- AUTO_INCREMENT for table `pspa_cart`
--
ALTER TABLE `pspa_cart`
  MODIFY `id_cart` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=114;

--
-- AUTO_INCREMENT for table `pspa_cart_rule`
--
ALTER TABLE `pspa_cart_rule`
  MODIFY `id_cart_rule` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `pspa_cart_rule_product_rule`
--
ALTER TABLE `pspa_cart_rule_product_rule`
  MODIFY `id_product_rule` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;

--
-- AUTO_INCREMENT for table `pspa_cart_rule_product_rule_group`
--
ALTER TABLE `pspa_cart_rule_product_rule_group`
  MODIFY `id_product_rule_group` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;

--
-- AUTO_INCREMENT for table `pspa_category`
--
ALTER TABLE `pspa_category`
  MODIFY `id_category` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT for table `pspa_cms`
--
ALTER TABLE `pspa_cms`
  MODIFY `id_cms` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `pspa_cms_block`
--
ALTER TABLE `pspa_cms_block`
  MODIFY `id_cms_block` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `pspa_cms_block_page`
--
ALTER TABLE `pspa_cms_block_page`
  MODIFY `id_cms_block_page` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `pspa_cms_block_shop`
--
ALTER TABLE `pspa_cms_block_shop`
  MODIFY `id_cms_block` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `pspa_cms_category`
--
ALTER TABLE `pspa_cms_category`
  MODIFY `id_cms_category` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `pspa_cms_category_shop`
--
ALTER TABLE `pspa_cms_category_shop`
  MODIFY `id_cms_category` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `pspa_cms_role`
--
ALTER TABLE `pspa_cms_role`
  MODIFY `id_cms_role` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_condition`
--
ALTER TABLE `pspa_condition`
  MODIFY `id_condition` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=245;

--
-- AUTO_INCREMENT for table `pspa_configuration`
--
ALTER TABLE `pspa_configuration`
  MODIFY `id_configuration` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=529;

--
-- AUTO_INCREMENT for table `pspa_configuration_kpi`
--
ALTER TABLE `pspa_configuration_kpi`
  MODIFY `id_configuration_kpi` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44;

--
-- AUTO_INCREMENT for table `pspa_connections`
--
ALTER TABLE `pspa_connections`
  MODIFY `id_connections` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33805;

--
-- AUTO_INCREMENT for table `pspa_connections_source`
--
ALTER TABLE `pspa_connections_source`
  MODIFY `id_connections_source` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3365;

--
-- AUTO_INCREMENT for table `pspa_contact`
--
ALTER TABLE `pspa_contact`
  MODIFY `id_contact` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `pspa_country`
--
ALTER TABLE `pspa_country`
  MODIFY `id_country` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=245;

--
-- AUTO_INCREMENT for table `pspa_cronjobs`
--
ALTER TABLE `pspa_cronjobs`
  MODIFY `id_cronjob` int(10) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_currency`
--
ALTER TABLE `pspa_currency`
  MODIFY `id_currency` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `pspa_customer_message`
--
ALTER TABLE `pspa_customer_message`
  MODIFY `id_customer_message` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53;

--
-- AUTO_INCREMENT for table `pspa_customer_session`
--
ALTER TABLE `pspa_customer_session`
  MODIFY `id_customer_session` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

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

--
-- AUTO_INCREMENT for table `pspa_delivery`
--
ALTER TABLE `pspa_delivery`
  MODIFY `id_delivery` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4449;

--
-- AUTO_INCREMENT for table `pspa_emailsubscription`
--
ALTER TABLE `pspa_emailsubscription`
  MODIFY `id` int(6) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

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

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

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

--
-- AUTO_INCREMENT for table `pspa_group`
--
ALTER TABLE `pspa_group`
  MODIFY `id_group` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `pspa_group_reduction`
--
ALTER TABLE `pspa_group_reduction`
  MODIFY `id_group_reduction` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_guest`
--
ALTER TABLE `pspa_guest`
  MODIFY `id_guest` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33165;

--
-- AUTO_INCREMENT for table `pspa_homeslider`
--
ALTER TABLE `pspa_homeslider`
  MODIFY `id_homeslider_slides` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;

--
-- AUTO_INCREMENT for table `pspa_homeslider_slides`
--
ALTER TABLE `pspa_homeslider_slides`
  MODIFY `id_homeslider_slides` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;

--
-- AUTO_INCREMENT for table `pspa_hook`
--
ALTER TABLE `pspa_hook`
  MODIFY `id_hook` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=449;

--
-- AUTO_INCREMENT for table `pspa_hook_alias`
--
ALTER TABLE `pspa_hook_alias`
  MODIFY `id_hook_alias` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=93;

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

--
-- AUTO_INCREMENT for table `pspa_image`
--
ALTER TABLE `pspa_image`
  MODIFY `id_image` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=143;

--
-- AUTO_INCREMENT for table `pspa_image_type`
--
ALTER TABLE `pspa_image_type`
  MODIFY `id_image_type` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `pspa_import_match`
--
ALTER TABLE `pspa_import_match`
  MODIFY `id_import_match` int(10) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_info`
--
ALTER TABLE `pspa_info`
  MODIFY `id_info` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

--
-- AUTO_INCREMENT for table `pspa_layered_category`
--
ALTER TABLE `pspa_layered_category`
  MODIFY `id_layered_category` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `pspa_layered_filter`
--
ALTER TABLE `pspa_layered_filter`
  MODIFY `id_layered_filter` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `pspa_layered_friendly_url`
--
ALTER TABLE `pspa_layered_friendly_url`
  MODIFY `id_layered_friendly_url` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=56;

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

--
-- AUTO_INCREMENT for table `pspa_link_block`
--
ALTER TABLE `pspa_link_block`
  MODIFY `id_link_block` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

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

--
-- AUTO_INCREMENT for table `pspa_log`
--
ALTER TABLE `pspa_log`
  MODIFY `id_log` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2682;

--
-- AUTO_INCREMENT for table `pspa_lyoreservation_bookings`
--
ALTER TABLE `pspa_lyoreservation_bookings`
  MODIFY `id_lyoreservation_bookings` int(12) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

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

--
-- AUTO_INCREMENT for table `pspa_lyoreservation_exclusions`
--
ALTER TABLE `pspa_lyoreservation_exclusions`
  MODIFY `id_exclusion` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53;

--
-- AUTO_INCREMENT for table `pspa_mail`
--
ALTER TABLE `pspa_mail`
  MODIFY `id_mail` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=222;

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

--
-- AUTO_INCREMENT for table `pspa_memcached_servers`
--
ALTER TABLE `pspa_memcached_servers`
  MODIFY `id_memcached_server` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_message`
--
ALTER TABLE `pspa_message`
  MODIFY `id_message` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `pspa_meta`
--
ALTER TABLE `pspa_meta`
  MODIFY `id_meta` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43;

--
-- AUTO_INCREMENT for table `pspa_module`
--
ALTER TABLE `pspa_module`
  MODIFY `id_module` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=96;

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

--
-- AUTO_INCREMENT for table `pspa_module_preference`
--
ALTER TABLE `pspa_module_preference`
  MODIFY `id_module_preference` int(11) NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `pspa_operating_system`
--
ALTER TABLE `pspa_operating_system`
  MODIFY `id_operating_system` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `pspa_orders`
--
ALTER TABLE `pspa_orders`
  MODIFY `id_order` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;

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

--
-- AUTO_INCREMENT for table `pspa_order_cart_rule`
--
ALTER TABLE `pspa_order_cart_rule`
  MODIFY `id_order_cart_rule` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `pspa_order_detail`
--
ALTER TABLE `pspa_order_detail`
  MODIFY `id_order_detail` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `pspa_order_history`
--
ALTER TABLE `pspa_order_history`
  MODIFY `id_order_history` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53;

--
-- AUTO_INCREMENT for table `pspa_order_invoice`
--
ALTER TABLE `pspa_order_invoice`
  MODIFY `id_order_invoice` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

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

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

--
-- AUTO_INCREMENT for table `pspa_order_return_state`
--
ALTER TABLE `pspa_order_return_state`
  MODIFY `id_order_return_state` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

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

--
-- AUTO_INCREMENT for table `pspa_order_state`
--
ALTER TABLE `pspa_order_state`
  MODIFY `id_order_state` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT for table `pspa_page`
--
ALTER TABLE `pspa_page`
  MODIFY `id_page` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=316;

--
-- AUTO_INCREMENT for table `pspa_pagenotfound`
--
ALTER TABLE `pspa_pagenotfound`
  MODIFY `id_pagenotfound` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1199;

--
-- AUTO_INCREMENT for table `pspa_page_type`
--
ALTER TABLE `pspa_page_type`
  MODIFY `id_page_type` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT for table `pspa_product`
--
ALTER TABLE `pspa_product`
  MODIFY `id_product` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=56;

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

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

--
-- AUTO_INCREMENT for table `pspa_product_supplier`
--
ALTER TABLE `pspa_product_supplier`
  MODIFY `id_product_supplier` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_profile`
--
ALTER TABLE `pspa_profile`
  MODIFY `id_profile` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `pspa_psreassurance`
--
ALTER TABLE `pspa_psreassurance`
  MODIFY `id_psreassurance` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `pspa_quick_access`
--
ALTER TABLE `pspa_quick_access`
  MODIFY `id_quick_access` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `pspa_range_price`
--
ALTER TABLE `pspa_range_price`
  MODIFY `id_range_price` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `pspa_range_weight`
--
ALTER TABLE `pspa_range_weight`
  MODIFY `id_range_weight` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=141;

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

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

--
-- AUTO_INCREMENT for table `pspa_request_sql`
--
ALTER TABLE `pspa_request_sql`
  MODIFY `id_request_sql` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_required_field`
--
ALTER TABLE `pspa_required_field`
  MODIFY `id_required_field` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_risk`
--
ALTER TABLE `pspa_risk`
  MODIFY `id_risk` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `pspa_search_engine`
--
ALTER TABLE `pspa_search_engine`
  MODIFY `id_search_engine` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;

--
-- AUTO_INCREMENT for table `pspa_search_word`
--
ALTER TABLE `pspa_search_word`
  MODIFY `id_word` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=99744;

--
-- AUTO_INCREMENT for table `pspa_sekeyword`
--
ALTER TABLE `pspa_sekeyword`
  MODIFY `id_sekeyword` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

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

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

--
-- AUTO_INCREMENT for table `pspa_shop_url`
--
ALTER TABLE `pspa_shop_url`
  MODIFY `id_shop_url` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `pspa_specific_price`
--
ALTER TABLE `pspa_specific_price`
  MODIFY `id_specific_price` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `pspa_specific_price_priority`
--
ALTER TABLE `pspa_specific_price_priority`
  MODIFY `id_specific_price_priority` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=876;

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

--
-- AUTO_INCREMENT for table `pspa_specific_price_rule_condition`
--
ALTER TABLE `pspa_specific_price_rule_condition`
  MODIFY `id_specific_price_rule_condition` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_specific_price_rule_condition_group`
--
ALTER TABLE `pspa_specific_price_rule_condition_group`
  MODIFY `id_specific_price_rule_condition_group` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_state`
--
ALTER TABLE `pspa_state`
  MODIFY `id_state` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=362;

--
-- AUTO_INCREMENT for table `pspa_statssearch`
--
ALTER TABLE `pspa_statssearch`
  MODIFY `id_statssearch` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7570;

--
-- AUTO_INCREMENT for table `pspa_stock`
--
ALTER TABLE `pspa_stock`
  MODIFY `id_stock` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_stock_available`
--
ALTER TABLE `pspa_stock_available`
  MODIFY `id_stock_available` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=56;

--
-- AUTO_INCREMENT for table `pspa_stock_mvt`
--
ALTER TABLE `pspa_stock_mvt`
  MODIFY `id_stock_mvt` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_stock_mvt_reason`
--
ALTER TABLE `pspa_stock_mvt_reason`
  MODIFY `id_stock_mvt_reason` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `pspa_store`
--
ALTER TABLE `pspa_store`
  MODIFY `id_store` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

--
-- AUTO_INCREMENT for table `pspa_supply_order`
--
ALTER TABLE `pspa_supply_order`
  MODIFY `id_supply_order` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_supply_order_detail`
--
ALTER TABLE `pspa_supply_order_detail`
  MODIFY `id_supply_order_detail` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_supply_order_history`
--
ALTER TABLE `pspa_supply_order_history`
  MODIFY `id_supply_order_history` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_supply_order_receipt_history`
--
ALTER TABLE `pspa_supply_order_receipt_history`
  MODIFY `id_supply_order_receipt_history` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_supply_order_state`
--
ALTER TABLE `pspa_supply_order_state`
  MODIFY `id_supply_order_state` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `pspa_tab`
--
ALTER TABLE `pspa_tab`
  MODIFY `id_tab` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=241;

--
-- AUTO_INCREMENT for table `pspa_tab_module_preference`
--
ALTER TABLE `pspa_tab_module_preference`
  MODIFY `id_tab_module_preference` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_tag`
--
ALTER TABLE `pspa_tag`
  MODIFY `id_tag` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=831;

--
-- AUTO_INCREMENT for table `pspa_tax`
--
ALTER TABLE `pspa_tax`
  MODIFY `id_tax` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=83;

--
-- AUTO_INCREMENT for table `pspa_tax_rule`
--
ALTER TABLE `pspa_tax_rule`
  MODIFY `id_tax_rule` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=211;

--
-- AUTO_INCREMENT for table `pspa_tax_rules_group`
--
ALTER TABLE `pspa_tax_rules_group`
  MODIFY `id_tax_rules_group` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=59;

--
-- AUTO_INCREMENT for table `pspa_themeconfigurator`
--
ALTER TABLE `pspa_themeconfigurator`
  MODIFY `id_item` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=83;

--
-- AUTO_INCREMENT for table `pspa_timezone`
--
ALTER TABLE `pspa_timezone`
  MODIFY `id_timezone` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=561;

--
-- AUTO_INCREMENT for table `pspa_translation`
--
ALTER TABLE `pspa_translation`
  MODIFY `id_translation` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_warehouse`
--
ALTER TABLE `pspa_warehouse`
  MODIFY `id_warehouse` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_warehouse_product_location`
--
ALTER TABLE `pspa_warehouse_product_location`
  MODIFY `id_warehouse_product_location` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_webservice_account`
--
ALTER TABLE `pspa_webservice_account`
  MODIFY `id_webservice_account` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_webservice_permission`
--
ALTER TABLE `pspa_webservice_permission`
  MODIFY `id_webservice_permission` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pspa_web_browser`
--
ALTER TABLE `pspa_web_browser`
  MODIFY `id_web_browser` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `pspa_zone`
--
ALTER TABLE `pspa_zone`
  MODIFY `id_zone` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `ps_address`
--
ALTER TABLE `ps_address`
  MODIFY `id_address` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=129;

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

--
-- AUTO_INCREMENT for table `ps_advancedpopup`
--
ALTER TABLE `ps_advancedpopup`
  MODIFY `id_advancedpopup` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `ps_advice`
--
ALTER TABLE `ps_advice`
  MODIFY `id_advice` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_alias`
--
ALTER TABLE `ps_alias`
  MODIFY `id_alias` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

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

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

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

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

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

--
-- AUTO_INCREMENT for table `ps_badge`
--
ALTER TABLE `ps_badge`
  MODIFY `id_badge` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=235;

--
-- AUTO_INCREMENT for table `ps_carrier`
--
ALTER TABLE `ps_carrier`
  MODIFY `id_carrier` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `ps_cart`
--
ALTER TABLE `ps_cart`
  MODIFY `id_cart` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=256;

--
-- AUTO_INCREMENT for table `ps_cart_rule`
--
ALTER TABLE `ps_cart_rule`
  MODIFY `id_cart_rule` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `ps_cart_rule_product_rule`
--
ALTER TABLE `ps_cart_rule_product_rule`
  MODIFY `id_product_rule` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;

--
-- AUTO_INCREMENT for table `ps_cart_rule_product_rule_group`
--
ALTER TABLE `ps_cart_rule_product_rule_group`
  MODIFY `id_product_rule_group` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;

--
-- AUTO_INCREMENT for table `ps_category`
--
ALTER TABLE `ps_category`
  MODIFY `id_category` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;

--
-- AUTO_INCREMENT for table `ps_cms`
--
ALTER TABLE `ps_cms`
  MODIFY `id_cms` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT for table `ps_cms_category`
--
ALTER TABLE `ps_cms_category`
  MODIFY `id_cms_category` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `ps_cms_category_shop`
--
ALTER TABLE `ps_cms_category_shop`
  MODIFY `id_cms_category` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `ps_cms_role`
--
ALTER TABLE `ps_cms_role`
  MODIFY `id_cms_role` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `ps_condition`
--
ALTER TABLE `ps_condition`
  MODIFY `id_condition` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=245;

--
-- AUTO_INCREMENT for table `ps_configuration`
--
ALTER TABLE `ps_configuration`
  MODIFY `id_configuration` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=690;

--
-- AUTO_INCREMENT for table `ps_configuration_kpi`
--
ALTER TABLE `ps_configuration_kpi`
  MODIFY `id_configuration_kpi` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=73;

--
-- AUTO_INCREMENT for table `ps_connections`
--
ALTER TABLE `ps_connections`
  MODIFY `id_connections` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=511707;

--
-- AUTO_INCREMENT for table `ps_connections_source`
--
ALTER TABLE `ps_connections_source`
  MODIFY `id_connections_source` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11653;

--
-- AUTO_INCREMENT for table `ps_contact`
--
ALTER TABLE `ps_contact`
  MODIFY `id_contact` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `ps_country`
--
ALTER TABLE `ps_country`
  MODIFY `id_country` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=246;

--
-- AUTO_INCREMENT for table `ps_currency`
--
ALTER TABLE `ps_currency`
  MODIFY `id_currency` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `ps_customer_message`
--
ALTER TABLE `ps_customer_message`
  MODIFY `id_customer_message` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=253;

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

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

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

--
-- AUTO_INCREMENT for table `ps_delivery`
--
ALTER TABLE `ps_delivery`
  MODIFY `id_delivery` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=233;

--
-- AUTO_INCREMENT for table `ps_emailsubscription`
--
ALTER TABLE `ps_emailsubscription`
  MODIFY `id` int(6) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7306;

--
-- AUTO_INCREMENT for table `ps_feature`
--
ALTER TABLE `ps_feature`
  MODIFY `id_feature` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `ps_feature_value`
--
ALTER TABLE `ps_feature_value`
  MODIFY `id_feature_value` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

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

--
-- AUTO_INCREMENT for table `ps_group`
--
ALTER TABLE `ps_group`
  MODIFY `id_group` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `ps_group_reduction`
--
ALTER TABLE `ps_group_reduction`
  MODIFY `id_group_reduction` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_guest`
--
ALTER TABLE `ps_guest`
  MODIFY `id_guest` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=512838;

--
-- AUTO_INCREMENT for table `ps_homeslider`
--
ALTER TABLE `ps_homeslider`
  MODIFY `id_homeslider_slides` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `ps_homeslider_slides`
--
ALTER TABLE `ps_homeslider_slides`
  MODIFY `id_homeslider_slides` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `ps_hook`
--
ALTER TABLE `ps_hook`
  MODIFY `id_hook` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=513;

--
-- AUTO_INCREMENT for table `ps_hook_alias`
--
ALTER TABLE `ps_hook_alias`
  MODIFY `id_hook_alias` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=84;

--
-- AUTO_INCREMENT for table `ps_hook_module_exceptions`
--
ALTER TABLE `ps_hook_module_exceptions`
  MODIFY `id_hook_module_exceptions` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `ps_ifthenpay_log`
--
ALTER TABLE `ps_ifthenpay_log`
  MODIFY `id_ifthenpay_log` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=489;

--
-- AUTO_INCREMENT for table `ps_ifthenpay_mbway`
--
ALTER TABLE `ps_ifthenpay_mbway`
  MODIFY `id_ifthenpay_mbway` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `ps_ifthenpay_mbway_shop`
--
ALTER TABLE `ps_ifthenpay_mbway_shop`
  MODIFY `id_ifthenpay_mbway` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `ps_ifthenpay_multibanco`
--
ALTER TABLE `ps_ifthenpay_multibanco`
  MODIFY `id_ifthenpay_multibanco` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `ps_ifthenpay_multibanco_shop`
--
ALTER TABLE `ps_ifthenpay_multibanco_shop`
  MODIFY `id_ifthenpay_multibanco` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

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

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

--
-- AUTO_INCREMENT for table `ps_image`
--
ALTER TABLE `ps_image`
  MODIFY `id_image` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=330;

--
-- AUTO_INCREMENT for table `ps_image_type`
--
ALTER TABLE `ps_image_type`
  MODIFY `id_image_type` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `ps_import_match`
--
ALTER TABLE `ps_import_match`
  MODIFY `id_import_match` int(10) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_info`
--
ALTER TABLE `ps_info`
  MODIFY `id_info` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

--
-- AUTO_INCREMENT for table `ps_layered_category`
--
ALTER TABLE `ps_layered_category`
  MODIFY `id_layered_category` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=61;

--
-- AUTO_INCREMENT for table `ps_layered_filter`
--
ALTER TABLE `ps_layered_filter`
  MODIFY `id_layered_filter` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `ps_linksmenutop`
--
ALTER TABLE `ps_linksmenutop`
  MODIFY `id_linksmenutop` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `ps_link_block`
--
ALTER TABLE `ps_link_block`
  MODIFY `id_link_block` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

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

--
-- AUTO_INCREMENT for table `ps_log`
--
ALTER TABLE `ps_log`
  MODIFY `id_log` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2585;

--
-- AUTO_INCREMENT for table `ps_lyoreservation_bookings`
--
ALTER TABLE `ps_lyoreservation_bookings`
  MODIFY `id_lyoreservation_bookings` int(12) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_lyoreservation_calendars`
--
ALTER TABLE `ps_lyoreservation_calendars`
  MODIFY `id_lyoreservation_calendars` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_lyoreservation_exclusions`
--
ALTER TABLE `ps_lyoreservation_exclusions`
  MODIFY `id_exclusion` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_mail`
--
ALTER TABLE `ps_mail`
  MODIFY `id_mail` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2352;

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

--
-- AUTO_INCREMENT for table `ps_memcached_servers`
--
ALTER TABLE `ps_memcached_servers`
  MODIFY `id_memcached_server` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_message`
--
ALTER TABLE `ps_message`
  MODIFY `id_message` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `ps_meta`
--
ALTER TABLE `ps_meta`
  MODIFY `id_meta` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=110;

--
-- AUTO_INCREMENT for table `ps_module`
--
ALTER TABLE `ps_module`
  MODIFY `id_module` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=122;

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

--
-- AUTO_INCREMENT for table `ps_module_preference`
--
ALTER TABLE `ps_module_preference`
  MODIFY `id_module_preference` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_operating_system`
--
ALTER TABLE `ps_operating_system`
  MODIFY `id_operating_system` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `ps_orders`
--
ALTER TABLE `ps_orders`
  MODIFY `id_order` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=42;

--
-- AUTO_INCREMENT for table `ps_order_carrier`
--
ALTER TABLE `ps_order_carrier`
  MODIFY `id_order_carrier` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=42;

--
-- AUTO_INCREMENT for table `ps_order_cart_rule`
--
ALTER TABLE `ps_order_cart_rule`
  MODIFY `id_order_cart_rule` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `ps_order_detail`
--
ALTER TABLE `ps_order_detail`
  MODIFY `id_order_detail` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=68;

--
-- AUTO_INCREMENT for table `ps_order_history`
--
ALTER TABLE `ps_order_history`
  MODIFY `id_order_history` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=86;

--
-- AUTO_INCREMENT for table `ps_order_invoice`
--
ALTER TABLE `ps_order_invoice`
  MODIFY `id_order_invoice` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `ps_order_message`
--
ALTER TABLE `ps_order_message`
  MODIFY `id_order_message` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

--
-- AUTO_INCREMENT for table `ps_order_return_state`
--
ALTER TABLE `ps_order_return_state`
  MODIFY `id_order_return_state` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

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

--
-- AUTO_INCREMENT for table `ps_order_state`
--
ALTER TABLE `ps_order_state`
  MODIFY `id_order_state` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;

--
-- AUTO_INCREMENT for table `ps_page`
--
ALTER TABLE `ps_page`
  MODIFY `id_page` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=90;

--
-- AUTO_INCREMENT for table `ps_pagenotfound`
--
ALTER TABLE `ps_pagenotfound`
  MODIFY `id_pagenotfound` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12786;

--
-- AUTO_INCREMENT for table `ps_page_type`
--
ALTER TABLE `ps_page_type`
  MODIFY `id_page_type` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;

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

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

--
-- AUTO_INCREMENT for table `ps_paypal_order`
--
ALTER TABLE `ps_paypal_order`
  MODIFY `id_paypal_order` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

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

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

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

--
-- AUTO_INCREMENT for table `ps_product`
--
ALTER TABLE `ps_product`
  MODIFY `id_product` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=82;

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

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

--
-- AUTO_INCREMENT for table `ps_product_comment_criterion`
--
ALTER TABLE `ps_product_comment_criterion`
  MODIFY `id_product_comment_criterion` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

--
-- AUTO_INCREMENT for table `ps_product_supplier`
--
ALTER TABLE `ps_product_supplier`
  MODIFY `id_product_supplier` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_profile`
--
ALTER TABLE `ps_profile`
  MODIFY `id_profile` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `ps_psgdpr_consent`
--
ALTER TABLE `ps_psgdpr_consent`
  MODIFY `id_gdpr_consent` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `ps_psgdpr_consent_lang`
--
ALTER TABLE `ps_psgdpr_consent_lang`
  MODIFY `id_gdpr_consent` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `ps_psgdpr_log`
--
ALTER TABLE `ps_psgdpr_log`
  MODIFY `id_gdpr_log` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=47;

--
-- AUTO_INCREMENT for table `ps_psreassurance`
--
ALTER TABLE `ps_psreassurance`
  MODIFY `id_psreassurance` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `ps_quick_access`
--
ALTER TABLE `ps_quick_access`
  MODIFY `id_quick_access` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `ps_range_price`
--
ALTER TABLE `ps_range_price`
  MODIFY `id_range_price` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `ps_range_weight`
--
ALTER TABLE `ps_range_weight`
  MODIFY `id_range_weight` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53;

--
-- AUTO_INCREMENT for table `ps_reassurance`
--
ALTER TABLE `ps_reassurance`
  MODIFY `id_reassurance` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `ps_reassurance_lang`
--
ALTER TABLE `ps_reassurance_lang`
  MODIFY `id_reassurance` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

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

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

--
-- AUTO_INCREMENT for table `ps_request_sql`
--
ALTER TABLE `ps_request_sql`
  MODIFY `id_request_sql` int(11) NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `ps_risk`
--
ALTER TABLE `ps_risk`
  MODIFY `id_risk` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `ps_search_engine`
--
ALTER TABLE `ps_search_engine`
  MODIFY `id_search_engine` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;

--
-- AUTO_INCREMENT for table `ps_search_word`
--
ALTER TABLE `ps_search_word`
  MODIFY `id_word` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=71019;

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

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

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

--
-- AUTO_INCREMENT for table `ps_shop_url`
--
ALTER TABLE `ps_shop_url`
  MODIFY `id_shop_url` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

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

--
-- AUTO_INCREMENT for table `ps_smart_blog_comment`
--
ALTER TABLE `ps_smart_blog_comment`
  MODIFY `id_smart_blog_comment` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_smart_blog_comment_shop`
--
ALTER TABLE `ps_smart_blog_comment_shop`
  MODIFY `id_smart_blog_comment_shop` int(11) NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `ps_smart_blog_media`
--
ALTER TABLE `ps_smart_blog_media`
  MODIFY `id_media` int(11) NOT NULL AUTO_INCREMENT;

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

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

--
-- AUTO_INCREMENT for table `ps_smart_blog_tag`
--
ALTER TABLE `ps_smart_blog_tag`
  MODIFY `id_tag` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_specific_price`
--
ALTER TABLE `ps_specific_price`
  MODIFY `id_specific_price` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;

--
-- AUTO_INCREMENT for table `ps_specific_price_priority`
--
ALTER TABLE `ps_specific_price_priority`
  MODIFY `id_specific_price_priority` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=213;

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

--
-- AUTO_INCREMENT for table `ps_specific_price_rule_condition`
--
ALTER TABLE `ps_specific_price_rule_condition`
  MODIFY `id_specific_price_rule_condition` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_specific_price_rule_condition_group`
--
ALTER TABLE `ps_specific_price_rule_condition_group`
  MODIFY `id_specific_price_rule_condition_group` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_state`
--
ALTER TABLE `ps_state`
  MODIFY `id_state` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=355;

--
-- AUTO_INCREMENT for table `ps_statssearch`
--
ALTER TABLE `ps_statssearch`
  MODIFY `id_statssearch` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2276;

--
-- AUTO_INCREMENT for table `ps_stock`
--
ALTER TABLE `ps_stock`
  MODIFY `id_stock` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_stock_available`
--
ALTER TABLE `ps_stock_available`
  MODIFY `id_stock_available` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=132;

--
-- AUTO_INCREMENT for table `ps_stock_mvt`
--
ALTER TABLE `ps_stock_mvt`
  MODIFY `id_stock_mvt` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=95;

--
-- AUTO_INCREMENT for table `ps_stock_mvt_reason`
--
ALTER TABLE `ps_stock_mvt_reason`
  MODIFY `id_stock_mvt_reason` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `ps_store`
--
ALTER TABLE `ps_store`
  MODIFY `id_store` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

--
-- AUTO_INCREMENT for table `ps_supply_order`
--
ALTER TABLE `ps_supply_order`
  MODIFY `id_supply_order` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_supply_order_detail`
--
ALTER TABLE `ps_supply_order_detail`
  MODIFY `id_supply_order_detail` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_supply_order_history`
--
ALTER TABLE `ps_supply_order_history`
  MODIFY `id_supply_order_history` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_supply_order_receipt_history`
--
ALTER TABLE `ps_supply_order_receipt_history`
  MODIFY `id_supply_order_receipt_history` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_supply_order_state`
--
ALTER TABLE `ps_supply_order_state`
  MODIFY `id_supply_order_state` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `ps_tab`
--
ALTER TABLE `ps_tab`
  MODIFY `id_tab` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=219;

--
-- AUTO_INCREMENT for table `ps_tab_module_preference`
--
ALTER TABLE `ps_tab_module_preference`
  MODIFY `id_tab_module_preference` int(11) NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `ps_tax`
--
ALTER TABLE `ps_tax`
  MODIFY `id_tax` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;

--
-- AUTO_INCREMENT for table `ps_tax_rule`
--
ALTER TABLE `ps_tax_rule`
  MODIFY `id_tax_rule` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=348;

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

--
-- AUTO_INCREMENT for table `ps_timezone`
--
ALTER TABLE `ps_timezone`
  MODIFY `id_timezone` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=561;

--
-- AUTO_INCREMENT for table `ps_translation`
--
ALTER TABLE `ps_translation`
  MODIFY `id_translation` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=124;

--
-- AUTO_INCREMENT for table `ps_warehouse`
--
ALTER TABLE `ps_warehouse`
  MODIFY `id_warehouse` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_warehouse_product_location`
--
ALTER TABLE `ps_warehouse_product_location`
  MODIFY `id_warehouse_product_location` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_wdaboutusinfo`
--
ALTER TABLE `ps_wdaboutusinfo`
  MODIFY `id_wdaboutusinfo` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `ps_wdaboutwineinfo`
--
ALTER TABLE `ps_wdaboutwineinfo`
  MODIFY `id_wdaboutwineinfo` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `ps_wdbannerinfo`
--
ALTER TABLE `ps_wdbannerinfo`
  MODIFY `id_wdbannerinfo` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `ps_wdclientinfo`
--
ALTER TABLE `ps_wdclientinfo`
  MODIFY `id_wdclientinfo` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

--
-- AUTO_INCREMENT for table `ps_wdproductcountdown`
--
ALTER TABLE `ps_wdproductcountdown`
  MODIFY `id_countdown` int(6) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `ps_wdproduct_comment_criterion`
--
ALTER TABLE `ps_wdproduct_comment_criterion`
  MODIFY `id_product_comment_criterion` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

--
-- AUTO_INCREMENT for table `ps_wdwishlist_product`
--
ALTER TABLE `ps_wdwishlist_product`
  MODIFY `id_wishlist_product` int(10) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_webservice_account`
--
ALTER TABLE `ps_webservice_account`
  MODIFY `id_webservice_account` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_webservice_permission`
--
ALTER TABLE `ps_webservice_permission`
  MODIFY `id_webservice_permission` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ps_web_browser`
--
ALTER TABLE `ps_web_browser`
  MODIFY `id_web_browser` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `ps_zone`
--
ALTER TABLE `ps_zone`
  MODIFY `id_zone` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
COMMIT;

