-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `khuzela2`
--

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

--
-- Table structure for table `auditoria_delete_membros`
--

CREATE TABLE `auditoria_delete_membros` (
  `id` int(11) NOT NULL,
  `members_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `member_number` int(11) NOT NULL,
  `address` varchar(255) NOT NULL,
  `phone` varchar(255) NOT NULL,
  `photo` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `document_number` varchar(255) NOT NULL,
  `clubs_id` int(11) NOT NULL,
  `quotas_id` int(11) NOT NULL,
  `cities_id` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `auditoria_delete_membros`
--

INSERT INTO `auditoria_delete_membros` (`id`, `members_id`, `name`, `member_number`, `address`, `phone`, `photo`, `email`, `document_number`, `clubs_id`, `quotas_id`, `cities_id`, `created_at`, `updated_at`) VALUES
(1, 32, 'Clarise', 1101558, 'Matola', '840002515121212', 'http://localhost:8000/storage/member/1593790690tottenham-hotspur-fc-logo.png', 'clarise@gmail.com', '1551550115551', 5, 3, 9, '2020-07-03 11:38:10', '2020-07-03 11:38:10');

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

--
-- Table structure for table `auditoria_insert_clubes`
--

CREATE TABLE `auditoria_insert_clubes` (
  `id` int(11) NOT NULL,
  `user` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `phone` varchar(200) NOT NULL,
  `picture` varchar(200) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `auditoria_insert_clubes`
--

INSERT INTO `auditoria_insert_clubes` (`id`, `user`, `name`, `email`, `phone`, `picture`, `created_at`, `updated_at`) VALUES
(1, 15, 'FC Porto', 'porto@pt.com', '840002155151514', 'http://localhost:8000/storage/club/1593446213thumb (7).jpeg', '2020-06-29 11:56:53', '2020-06-29 11:56:53'),
(2, 15, 'Flamengo', 'flamengao@hotmail.com', '255801658548844', 'http://localhost:8000/storage/club/1593712541download (3).png', '2020-07-02 13:55:41', '2020-07-02 13:55:41');

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

--
-- Table structure for table `auditoria_insert_membros`
--

CREATE TABLE `auditoria_insert_membros` (
  `id` int(11) NOT NULL,
  `members_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `member_number` int(11) NOT NULL,
  `address` varchar(255) NOT NULL,
  `phone` varchar(255) NOT NULL,
  `photo` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `document_number` varchar(255) NOT NULL,
  `clubs_id` int(11) NOT NULL,
  `quotas_id` int(11) NOT NULL,
  `cities_id` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `auditoria_insert_membros`
--

INSERT INTO `auditoria_insert_membros` (`id`, `members_id`, `name`, `member_number`, `address`, `phone`, `photo`, `email`, `document_number`, `clubs_id`, `quotas_id`, `cities_id`, `created_at`, `updated_at`) VALUES
(1, 28, 'Solange Ramos', 1250000, 'Coop', '841000000025555', 'http://localhost:8000/storage/member/1593352681b8c6ca393c6494c2f821f5314393c167.jpg', 'solange@gmail.com', '110212515151z', 2, 8, 1, '2020-06-28 09:58:01', '2020-06-28 09:58:01'),
(3, 31, 'Rihanna', 1451557, 'Maputo', '484022151515151', 'http://localhost:8000/storage/member/1593711393i.png', 'rihanna@usa.com', '1451515151515', 12, 8, 1, '2020-07-02 13:36:33', '2020-07-02 13:36:33'),
(4, 32, 'Clarise', 1101558, 'Matola', '840002515121212', 'http://localhost:8000/storage/member/1593790690tottenham-hotspur-fc-logo.png', 'clarise@gmail.com', '1551550115551', 5, 3, 9, '2020-07-03 11:38:10', '2020-07-03 11:38:10'),
(5, 33, 'Billie', 1500248, 'Texas', '845002255555555', 'http://localhost:8000/storage/member/1593883268005672cb8ff33f3834bdaf0f0c676505.jpg', 'wwwe@gmail.com', '110212515151z', 10, 7, 2, '2020-07-04 13:21:08', '2020-07-04 13:21:08');

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

--
-- Table structure for table `categories`
--

CREATE TABLE `categories` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `cody` varchar(2) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `categories`
--

INSERT INTO `categories` (`id`, `name`, `cody`, `created_at`, `updated_at`) VALUES
(1, 'Bola de Futebol', '1', '2020-05-28 06:17:56', '2020-07-07 16:10:32'),
(2, 'Clube', '2', NULL, NULL),
(3, 'Camisola do clube', '3', NULL, '2020-07-08 01:04:52'),
(4, 'Transferencia', '4', NULL, NULL),
(5, 'Categoria Teste', '5', '2020-07-07 14:44:38', '2020-07-08 01:09:12'),
(6, 'Pastas', '6', '2020-07-13 10:53:00', '2020-07-13 10:54:11');

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

--
-- Table structure for table `cities`
--

CREATE TABLE `cities` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cities`
--

INSERT INTO `cities` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'Maputo Cidade', NULL, NULL),
(2, 'Maputo Provincia', NULL, NULL),
(3, 'Gaza', NULL, NULL),
(4, 'Inhambane', NULL, NULL),
(5, 'Manica', NULL, NULL),
(6, 'Sofala', NULL, NULL),
(7, 'Tete', NULL, NULL),
(8, 'Zambezia', NULL, NULL),
(9, 'Nampula', NULL, NULL),
(10, 'Niassa', NULL, NULL),
(11, 'Cabo Delgado', NULL, NULL);

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

--
-- Table structure for table `clubs`
--

CREATE TABLE `clubs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `nuit` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `color` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `picture` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `responsible_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `responsible_phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `responsible_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `users_id` int(10) UNSIGNED NOT NULL,
  `cities_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `clubs`
--

INSERT INTO `clubs` (`id`, `name`, `email`, `phone`, `address`, `nuit`, `color`, `picture`, `responsible_name`, `responsible_phone`, `responsible_email`, `users_id`, `cities_id`, `created_at`, `updated_at`) VALUES
(0, 'Todos', NULL, '8451203978', 'Todos', '1100225445454', '#079440', '/storage/club/66906f43adefb3bc553f7601fa7c1ed9.jpg', 'Todos', '84012555555', NULL, 2, 1, NULL, NULL),
(1, 'Clube Desportivo de Maputo', 'desp@gmail.com', '845123568', 'Av. 25 de Setembro, Maputo', '111212', '#0d0b0b', '/storage/club/1589280032050.jpg', 'Ana Cordeiro', '512121', 'maxa@gmail.com', 2, 1, '2020-05-10 09:16:08', '2020-05-24 20:34:53'),
(2, 'Clube Ferroviario de Maputo', 'cfm@gmail.com', '8412345678', 'maputo Cidade', '11021225', '#079440', '/storage/club/15892848221589280064731.jpg', 'Carlos Perreira', '84124545166', 'carlos@gmail.com', 2, 1, '2020-05-11 22:00:22', '2020-05-11 22:00:22'),
(3, 'Clube Costa do Sol..', 'costasol@gmail.com', '841234567', 'Maputo, Costa do Sol', '111011616', '#edf201', '/storage/club/15892885451589280016607.jpg', 'Amade Momed', '841221516', 'amade@gmail.com', 2, 1, '2020-05-11 23:02:25', '2020-06-16 03:35:21'),
(4, 'Clube Maxaquene', 'maxa@gmail.com', '845121619', 'Maxaquene', '10205121', '#f21001', '/storage/club/15892893031589280104034.jpg', 'Fariah Momed', '845121619', 'faria@gmail.com', 2, 1, '2020-05-11 23:15:03', '2020-05-24 20:35:58'),
(5, 'Clube das Mahotas', 'mahotas@gmail.com', '8451215100', 'Bairro das Mahotas', '11005541', '#11b303', '/storage/club/i.png', 'Rogerio Armando', '8451339', 'maxa@gmail.com', 1, 1, '2020-05-14 01:41:38', '2020-06-11 04:26:51'),
(6, 'Sport Lisboa e Benfica', 'slb@benfica.pt', '+25884512', 'Lisboa Portugual', '10005116', '#fa0000', '/storage/club/download (1).png', 'Luis Filipe Vieira', '21554664', 'lfv@hotmail.com', 15, 1, '2020-05-14 09:03:06', '2020-05-14 09:03:06'),
(7, 'Khuzela', 'khuzela@khuzela.com', '840000000000000', 'Maputo', '100000000', '#ff2e00', '/storage/club/FreeVector-FC-Barcelona-2002.jpg', 'Khuzela', NULL, NULL, 15, 1, '2020-06-15 16:22:26', '2020-06-15 16:22:26'),
(9, 'Clube', 'userClube@userClube.com', '842200555555555', 'Clube', '11000000a', '#b00f18', '/storage/club/1200px-Liverpool_FC.svg.png', 'User Clube', NULL, NULL, 15, 1, '2020-06-17 08:48:55', '2020-07-05 16:25:30'),
(10, 'Clube do Bairro', 'pank@gmail.com', '100518152145484', 'Maputo', '', '#1aed3c', '/storage/club/1592619200images (9).png', 'Lam', NULL, NULL, 15, 1, '2020-06-19 22:13:20', '2020-06-22 13:07:30'),
(12, 'FC Porto', 'porto@pt.com', '840002155151514', 'Porto, Portugal', '110051551', '#ed5716', 'http://localhost:8000/storage/club/download.png', 'Pinto da Costa', '841015151511', 'costa@galp.com', 15, 1, '2020-06-29 11:56:53', '2020-06-29 11:56:53'),
(13, 'Flamengo', 'flamengao@hotmail.com', '2558016585488', 'Rio de janeiro', '100202200', '#e440f2', 'http://localhost:8000/storage/club/1593712541download (3).png', 'JJ', NULL, NULL, 15, 4, '2020-07-02 13:55:41', '2020-07-02 13:58:11');

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

--
-- Table structure for table `colors`
--

CREATE TABLE `colors` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `colors`
--

INSERT INTO `colors` (`id`, `description`, `created_at`, `updated_at`) VALUES
(1, 'Branco', NULL, NULL),
(2, 'Preto', NULL, NULL),
(3, 'Azul', NULL, NULL),
(4, 'Amarelo', NULL, NULL),
(5, 'Vermelho', NULL, NULL),
(6, 'Verde', NULL, NULL),
(7, 'Cinza', NULL, NULL),
(8, 'Castanho', NULL, NULL),
(9, 'Laranja', NULL, NULL),
(10, 'Violeta', NULL, NULL);

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

--
-- Table structure for table `compras`
--

CREATE TABLE `compras` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `codigo_compra` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `quantTotal` int(11) NOT NULL,
  `precoTotal` int(11) NOT NULL,
  `meios_pagamentos_id` bigint(20) UNSIGNED NOT NULL,
  `statuses_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `compras`
--

INSERT INTO `compras` (`id`, `codigo_compra`, `quantTotal`, `precoTotal`, `meios_pagamentos_id`, `statuses_id`, `created_at`, `updated_at`) VALUES
(1, '8iYegI32', 10, 5000, 1, 4, '2020-07-08 02:51:28', '2020-07-08 02:51:28'),
(2, '8pSgp99S', 36, 5800, 1, 4, '2020-07-08 03:21:00', '2020-07-08 03:21:00');

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

--
-- Table structure for table `documents`
--

CREATE TABLE `documents` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `documents`
--

INSERT INTO `documents` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'BI', NULL, NULL),
(2, 'Passaporte', NULL, NULL),
(3, 'Carta de Condução', NULL, NULL),
(4, 'NUIT', NULL, NULL),
(5, 'DIR', NULL, NULL),
(6, 'Cédula Pessoal', NULL, NULL),
(7, 'Cartão de Eleitor', NULL, NULL);

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

--
-- Table structure for table `estados`
--

CREATE TABLE `estados` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `estados`
--

INSERT INTO `estados` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'Activo', NULL, NULL),
(2, 'Suspenso', NULL, NULL);

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

--
-- Table structure for table `failed_jobs`
--

CREATE TABLE `failed_jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `images`
--

CREATE TABLE `images` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `products_id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `images`
--

INSERT INTO `images` (`id`, `url`, `products_id`, `created_at`, `updated_at`) VALUES
(23, '/storage/productsKhuzela/b8c6ca393c6494c2f821f5314393c167.jpg', 25, '2020-06-26 06:54:44', '2020-06-26 06:54:44'),
(24, '/storage/productsKhuzela/thumb (7).jpeg', 26, '2020-06-26 08:53:28', '2020-06-26 08:53:28'),
(25, '/storage/productsKhuzela/thumb (6).jpeg', 26, '2020-06-26 08:53:28', '2020-06-26 08:53:28'),
(26, '/storage/productsKhuzela/thumb (8).jpeg', 26, '2020-06-26 08:53:28', '2020-06-26 08:53:28'),
(28, '/storage/productsKhuzela/65f63383d8934fce2e7f1f69b10598ba.jpg', 33, '2020-06-27 12:45:01', '2020-06-27 12:45:01'),
(29, '/storage/productsKhuzela/bec3e337495eeb79870c88ab8cceab78.jpg', 34, '2020-06-27 13:16:10', '2020-06-27 13:16:10'),
(30, '/storage/productsKhuzela/los-angeles-lakers-legends-19472020-signatures-classic-ladies.png', 35, '2020-06-27 13:51:47', '2020-06-27 13:51:47'),
(31, '/storage/productsKhuzela/NIKE AIR FORCE 1 MID 07 - 54385ea57bc9a57ccf.jpg', 36, '2020-06-29 20:41:29', '2020-06-29 20:41:29'),
(32, '/storage/productsKhuzela/FreeVector-FC-Barcelona-2002.jpg', 37, '2020-07-02 14:35:58', '2020-07-02 14:35:58'),
(33, '/storage/productsKhuzela/b760773f73bde107c3cf628ea2aee715.png', 38, '2020-07-02 14:39:34', '2020-07-02 14:39:34'),
(34, '/storage/productsKhuzela/66906f43adefb3bc553f7601fa7c1ed9.jpg', 39, '2020-07-04 15:00:59', '2020-07-04 15:00:59'),
(35, '/storage/productsKhuzela/download (4).png', 40, '2020-07-04 15:01:50', '2020-07-04 15:01:50'),
(36, '/storage/productsKhuzela/Camisa-do-Borussia-Dortmund-Champions-League-2019-2020-PUMA-1-min.jpg', 41, '2020-07-07 16:48:08', '2020-07-07 16:48:08'),
(37, '/storage/productsKhuzela/66906f43adefb3bc553f7601fa7c1ed9.jpg', 42, '2020-07-08 04:54:34', '2020-07-08 04:54:34'),
(38, '/storage/productsKhuzela/Adidas-Original-Nova-Chegada-17-4-dos-homens-AG-Futebol-Futebol-Cal-a-As-Sapatilhas.jpg', 43, '2020-07-13 10:59:58', '2020-07-13 10:59:58');

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

--
-- Table structure for table `item_compras`
--

CREATE TABLE `item_compras` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `quantidade` int(11) NOT NULL,
  `price` int(11) NOT NULL,
  `products_id` bigint(20) UNSIGNED NOT NULL,
  `compras_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `meios_pagamentos`
--

CREATE TABLE `meios_pagamentos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `meios_pagamentos`
--

INSERT INTO `meios_pagamentos` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'IMali', NULL, NULL),
(2, 'Cartao VISA', NULL, NULL),
(3, 'mPesa', NULL, NULL),
(4, 'IZI', NULL, NULL),
(5, 'mKesh', NULL, NULL),
(6, 'eMola', NULL, NULL);

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

--
-- Table structure for table `member_clubs`
--

CREATE TABLE `member_clubs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `nr_quotas_em_divida` bigint(20) DEFAULT NULL,
  `next_payment_date` date DEFAULT NULL,
  `members_id` bigint(20) UNSIGNED NOT NULL,
  `clubs_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `member_clubs`
--

INSERT INTO `member_clubs` (`id`, `nr_quotas_em_divida`, `next_payment_date`, `members_id`, `clubs_id`, `created_at`, `updated_at`) VALUES
(30, NULL, NULL, 6, 2, '2020-05-27 17:12:59', '2020-05-27 17:12:59'),
(31, NULL, NULL, 10, 1, '2020-05-27 18:01:45', '2020-05-27 18:01:45'),
(32, NULL, NULL, 10, 1, '2020-05-27 18:05:48', '2020-05-27 18:05:48'),
(33, NULL, NULL, 10, 1, '2020-05-27 19:17:33', '2020-05-27 19:17:33'),
(34, NULL, NULL, 1, 1, '2020-05-27 20:24:19', '2020-05-27 20:24:19'),
(35, NULL, NULL, 1, 1, '2020-05-27 20:27:50', '2020-05-27 20:27:50'),
(36, NULL, NULL, 1, 1, '2020-05-27 20:32:26', '2020-05-27 20:32:26'),
(37, NULL, NULL, 10, 1, '2020-05-27 23:53:51', '2020-05-27 23:53:51'),
(38, NULL, NULL, 10, 1, '2020-05-28 00:47:13', '2020-05-28 00:47:13'),
(39, NULL, NULL, 15, 3, '2020-05-28 01:07:42', '2020-05-28 01:07:42'),
(40, NULL, NULL, 15, 3, '2020-05-28 01:08:13', '2020-05-28 01:08:13'),
(42, NULL, NULL, 15, 2, '2020-05-29 05:56:55', '2020-05-29 05:56:55'),
(43, NULL, NULL, 15, 2, '2020-05-29 05:57:19', '2020-05-29 05:57:19'),
(44, NULL, NULL, 15, 2, '2020-05-29 06:04:49', '2020-05-29 06:04:49'),
(45, NULL, NULL, 15, 2, '2020-05-29 06:12:44', '2020-05-29 06:12:44'),
(46, NULL, NULL, 15, 2, '2020-05-29 06:12:55', '2020-05-29 06:12:55'),
(47, NULL, NULL, 15, 2, '2020-05-29 06:14:13', '2020-05-29 06:14:13'),
(48, NULL, NULL, 2, 1, '2020-05-29 06:16:53', '2020-05-29 06:16:53'),
(49, NULL, NULL, 2, 1, '2020-05-29 06:18:15', '2020-05-29 06:18:15'),
(50, NULL, NULL, 2, 1, '2020-05-29 06:20:39', '2020-05-29 06:20:39'),
(51, NULL, NULL, 8, 8, '2020-05-29 12:05:19', '2020-05-29 12:05:19'),
(52, NULL, NULL, 8, 8, '2020-05-29 12:05:33', '2020-05-29 12:05:33'),
(53, NULL, NULL, 2, 1, '2020-05-29 12:13:39', '2020-05-29 12:13:39'),
(54, NULL, NULL, 7, 1, '2020-05-29 14:04:42', '2020-05-29 14:04:42'),
(55, NULL, NULL, 7, 1, '2020-05-29 14:09:15', '2020-05-29 14:09:15'),
(56, NULL, NULL, 7, 1, '2020-05-29 14:30:34', '2020-05-29 14:30:34'),
(57, NULL, NULL, 7, 1, '2020-05-29 14:40:51', '2020-05-29 14:40:51'),
(58, NULL, NULL, 7, 1, '2020-05-29 14:43:38', '2020-05-29 14:43:38'),
(59, NULL, NULL, 7, 1, '2020-05-29 14:44:19', '2020-05-29 14:44:19'),
(60, NULL, NULL, 7, 1, '2020-05-29 14:49:01', '2020-05-29 14:49:01'),
(61, NULL, NULL, 7, 1, '2020-05-29 14:50:08', '2020-05-29 14:50:08'),
(62, NULL, NULL, 7, 1, '2020-05-29 14:51:18', '2020-05-29 14:51:18'),
(63, NULL, NULL, 7, 1, '2020-05-29 14:52:56', '2020-05-29 14:52:56'),
(64, NULL, NULL, 7, 1, '2020-05-29 15:16:58', '2020-05-29 15:16:58'),
(65, NULL, NULL, 1, 1, '2020-05-29 15:19:02', '2020-05-29 15:19:02'),
(66, NULL, NULL, 7, 1, '2020-05-29 15:35:34', '2020-05-29 15:35:34'),
(67, NULL, NULL, 7, 5, '2020-05-29 15:45:02', '2020-05-29 15:45:02'),
(68, NULL, NULL, 7, 2, '2020-05-29 15:54:43', '2020-05-29 15:54:43'),
(69, NULL, NULL, 7, 4, '2020-05-29 16:12:16', '2020-05-29 16:12:16'),
(70, NULL, NULL, 7, 1, '2020-05-29 16:30:46', '2020-05-29 16:30:46'),
(71, NULL, NULL, 7, 4, '2020-05-29 16:31:15', '2020-05-29 16:31:15'),
(72, NULL, NULL, 7, 1, '2020-05-29 16:31:29', '2020-05-29 16:31:29'),
(73, NULL, NULL, 7, 3, '2020-05-29 16:31:57', '2020-05-29 16:31:57'),
(74, NULL, NULL, 7, 1, '2020-05-29 16:38:53', '2020-05-29 16:38:53'),
(75, NULL, NULL, 7, 5, '2020-05-29 16:42:10', '2020-05-29 16:42:10'),
(76, NULL, NULL, 7, 1, '2020-05-29 16:42:31', '2020-05-29 16:42:31'),
(77, NULL, NULL, 10, 5, '2020-05-29 16:49:07', '2020-05-29 16:49:07'),
(78, NULL, NULL, 10, 10, '2020-05-29 16:54:02', '2020-05-29 16:54:02'),
(79, NULL, NULL, 10, 1, '2020-05-29 17:00:52', '2020-05-29 17:00:52'),
(80, NULL, NULL, 10, 1, '2020-05-29 17:01:30', '2020-05-29 17:01:30'),
(81, NULL, NULL, 10, 2, '2020-05-29 17:02:05', '2020-05-29 17:02:05'),
(82, NULL, NULL, 10, 2, '2020-05-29 18:13:26', '2020-05-29 18:13:26'),
(83, NULL, NULL, 7, 1, '2020-05-29 18:45:38', '2020-05-29 18:45:38'),
(84, NULL, NULL, 7, 1, '2020-05-29 18:49:59', '2020-05-29 18:49:59'),
(85, NULL, NULL, 7, 1, '2020-05-29 18:52:29', '2020-05-29 18:52:29'),
(86, NULL, NULL, 7, 1, '2020-05-29 18:54:38', '2020-05-29 18:54:38'),
(87, NULL, NULL, 7, 1, '2020-05-29 18:55:45', '2020-05-29 18:55:45'),
(88, NULL, NULL, 7, 1, '2020-05-29 18:56:01', '2020-05-29 18:56:01'),
(89, NULL, NULL, 7, 1, '2020-05-29 18:59:39', '2020-05-29 18:59:39'),
(90, NULL, NULL, 7, 1, '2020-06-01 15:35:08', '2020-06-01 15:35:08'),
(91, NULL, NULL, 16, 5, '2020-06-01 20:04:35', '2020-06-01 20:04:35'),
(92, NULL, NULL, 17, 1, '2020-06-01 20:39:18', '2020-06-01 20:39:18'),
(93, NULL, NULL, 18, 1, '2020-06-02 02:38:28', '2020-06-02 02:38:28'),
(94, NULL, NULL, 19, 1, '2020-06-02 03:58:13', '2020-06-02 03:58:13'),
(95, NULL, NULL, 19, 1, '2020-06-02 03:58:58', '2020-06-02 03:58:58'),
(96, NULL, NULL, 19, 1, '2020-06-02 04:00:04', '2020-06-02 04:00:04'),
(97, NULL, NULL, 10, 1, '2020-06-02 04:04:47', '2020-06-02 04:04:47'),
(98, NULL, NULL, 18, 1, '2020-06-02 05:25:38', '2020-06-02 05:25:38'),
(99, NULL, NULL, 18, 1, '2020-06-02 09:49:51', '2020-06-02 09:49:51'),
(100, NULL, NULL, 19, 1, '2020-06-02 10:03:15', '2020-06-02 10:03:15'),
(101, NULL, NULL, 18, 1, '2020-06-02 10:07:30', '2020-06-02 10:07:30'),
(102, NULL, NULL, 19, 1, '2020-06-02 12:11:43', '2020-06-02 12:11:43'),
(103, NULL, NULL, 19, 1, '2020-06-02 12:12:17', '2020-06-02 12:12:17'),
(104, NULL, NULL, 20, 1, '2020-06-03 13:50:12', '2020-06-03 13:50:12'),
(105, NULL, NULL, 18, 1, '2020-06-03 19:07:12', '2020-06-03 19:07:12'),
(106, NULL, NULL, 18, 1, '2020-06-03 19:07:31', '2020-06-03 19:07:31'),
(107, NULL, NULL, 21, 5, '2020-06-03 19:52:58', '2020-06-03 19:52:58'),
(108, NULL, NULL, 21, 5, '2020-06-03 20:03:08', '2020-06-03 20:03:08'),
(109, NULL, NULL, 21, 5, '2020-06-03 20:11:18', '2020-06-03 20:11:18'),
(110, NULL, NULL, 21, 5, '2020-06-03 20:13:21', '2020-06-03 20:13:21'),
(111, NULL, NULL, 18, 1, '2020-06-06 10:31:57', '2020-06-06 10:31:57'),
(112, NULL, NULL, 22, 1, '2020-06-06 11:30:00', '2020-06-06 11:30:00'),
(113, NULL, NULL, 23, 1, '2020-06-06 11:32:22', '2020-06-06 11:32:22'),
(114, NULL, NULL, 24, 1, '2020-06-06 12:02:39', '2020-06-06 12:02:39'),
(115, NULL, NULL, 10, 1, '2020-06-06 12:25:11', '2020-06-06 12:25:11'),
(116, NULL, NULL, 10, 1, '2020-06-06 12:25:33', '2020-06-06 12:25:33'),
(117, NULL, NULL, 24, 1, '2020-06-06 12:25:57', '2020-06-06 12:25:57'),
(118, NULL, NULL, 19, 1, '2020-06-06 12:26:31', '2020-06-06 12:26:31'),
(119, NULL, NULL, 25, 1, '2020-06-06 12:32:38', '2020-06-06 12:32:38'),
(120, NULL, NULL, 28, 2, '2020-06-28 09:58:02', '2020-06-28 09:58:02'),
(121, NULL, NULL, 29, 2, '2020-06-28 12:35:19', '2020-06-28 12:35:19'),
(122, NULL, NULL, 18, 1, '2020-07-01 09:15:54', '2020-07-01 09:15:54'),
(123, NULL, NULL, 18, 1, '2020-07-01 09:16:23', '2020-07-01 09:16:23'),
(124, NULL, NULL, 18, 1, '2020-07-01 09:18:54', '2020-07-01 09:18:54'),
(125, NULL, NULL, 31, 12, '2020-07-02 13:36:33', '2020-07-02 13:36:33'),
(126, NULL, NULL, 31, 12, '2020-07-02 13:43:23', '2020-07-02 13:43:23'),
(127, NULL, NULL, 31, 12, '2020-07-02 13:45:11', '2020-07-02 13:45:11'),
(128, NULL, NULL, 32, 5, '2020-07-03 11:38:10', '2020-07-03 11:38:10'),
(129, NULL, NULL, 33, 10, '2020-07-04 13:21:10', '2020-07-04 13:21:10'),
(130, NULL, NULL, 18, 1, '2020-07-04 14:14:51', '2020-07-04 14:14:51'),
(131, NULL, NULL, 18, 1, '2020-07-04 14:16:52', '2020-07-04 14:16:52'),
(132, NULL, NULL, 33, 10, '2020-07-04 14:24:42', '2020-07-04 14:24:42');

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

--
-- Table structure for table `migrations`
--

CREATE TABLE `migrations` (
  `id` int(10) UNSIGNED NOT NULL,
  `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `migrations`
--

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_02_12_000000_create_documents_table', 1),
(2, '2014_10_12_000000_create_users_table', 1),
(3, '2014_10_12_100000_create_password_resets_table', 1),
(4, '2016_06_01_000001_create_oauth_auth_codes_table', 1),
(5, '2016_06_01_000002_create_oauth_access_tokens_table', 1),
(6, '2016_06_01_000003_create_oauth_refresh_tokens_table', 1),
(7, '2016_06_01_000004_create_oauth_clients_table', 1),
(8, '2016_06_01_000005_create_oauth_personal_access_clients_table', 1),
(9, '2019_08_19_000000_create_failed_jobs_table', 1),
(10, '2019_09_25_182323_create_roles_table', 1),
(11, '2019_09_25_183138_create_role_user_table', 1),
(12, '2020_04_30_150270_create_categories_table', 1),
(13, '2020_04_30_150301_create_subcategorias_table', 1),
(14, '2020_04_30_150360_create_colors_table', 1),
(15, '2020_05_09_222554_create_cities_table', 1),
(16, '2020_05_09_222573_create_estados_table', 1),
(17, '2020_05_09_222600_create_percentagems_table', 1),
(18, '2020_05_09_222648_create_clubs_table', 1),
(19, '2020_05_09_222854_create_quotas_table', 1),
(20, '2020_05_09_222932_create_members_table', 1),
(21, '2020_05_09_223009_create_member_clubs_table', 1),
(22, '2020_05_09_223134_create_partners_table', 1),
(23, '2020_05_09_223160_create_meios_pagamentos_table', 1),
(24, '2020_05_09_223180_create_tamanhos_table', 1),
(25, '2020_05_09_223230_create_producto_categorias_table', 1),
(26, '2020_05_09_223360_create_producto_subcategorias_table', 1),
(27, '2020_05_09_223442_create_services_table', 1),
(28, '2020_05_09_223500_create_statuses_table', 1),
(29, '2020_05_09_223516_create_products_table', 1),
(30, '2020_05_09_223533_create_compras_table', 1),
(31, '2020_05_22_110712_create_partner_clubs_table', 1),
(32, '2020_05_22_110720_create_service_clubs_table', 1),
(33, '2020_05_26_15452_create_images_table', 1),
(34, '2020_05_28_084059_create_posts_table', 1),
(35, '2020_06_02_043936_create_periods_table', 1),
(36, '2020_06_11_045954_create_post_khuzelas_table', 1),
(37, '2020_06_24_154927_create_product_colors_table', 1),
(38, '2020_06_28_193359_add_soft_deletes_to_post_khuzela_table', 1),
(39, '2020_07_01_220301_create_product_items_table', 1),
(40, '2020_07_01_221917_create_product_item_images_table', 1),
(41, '2020_07_07_095030_create_stocks_table', 1),
(42, '2020_07_07_162317_create_item_compras_table', 1);

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

--
-- Table structure for table `oauth_auth_codes`
--

CREATE TABLE `oauth_auth_codes` (
  `id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `client_id` bigint(20) UNSIGNED NOT NULL,
  `scopes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `revoked` tinyint(1) NOT NULL,
  `expires_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `oauth_personal_access_clients`
--

CREATE TABLE `oauth_personal_access_clients` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `client_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `oauth_personal_access_clients`
--

INSERT INTO `oauth_personal_access_clients` (`id`, `client_id`, `created_at`, `updated_at`) VALUES
(1, 1, '2020-06-26 08:58:35', '2020-06-26 08:58:35');

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

--
-- Table structure for table `partners`
--

CREATE TABLE `partners` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `partner_description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` bigint(20) NOT NULL,
  `address` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `nuit` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `picture` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `responsible_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `responsible_phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `responsible_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cities_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `partners`
--

INSERT INTO `partners` (`id`, `name`, `partner_description`, `phone`, `address`, `nuit`, `picture`, `responsible_name`, `responsible_phone`, `responsible_email`, `cities_id`, `created_at`, `updated_at`) VALUES
(1, 'Bombas de Combustivel Total', 'Bombas de Combustivel', 84512356, 'Av. Vladimir Lenine', '11120121', '/storage/partner/1590154718557.jpg', 'Amade Machava', '84515161', 'maxa@gmail.com', 1, '2020-05-10 10:58:14', '2020-05-26 07:23:29'),
(2, 'Loja Adidas', 'Loja de Equipamentos Desportivos', 8451268, 'Av. Vladimir Lenine - Maputo Shopping', '125545', '/storage/partner/15903746731590288147744.jpg', NULL, NULL, NULL, 1, '2020-05-24 20:44:33', '2020-05-27 18:48:27'),
(3, 'Bombas de Combustivel Galp', NULL, 8445550125, 'Maputo', '100555155', 'http://localhost:8000/storage/partner/15937134413d62773a421755449d8a32e8dbc0a9f9.jpeg', NULL, NULL, NULL, 4, '2020-07-02 14:10:41', '2020-07-05 16:08:25');

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

--
-- Table structure for table `partner_clubs`
--

CREATE TABLE `partner_clubs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `destription` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `clubs_id` bigint(20) UNSIGNED NOT NULL,
  `partners_id` bigint(20) UNSIGNED NOT NULL,
  `users_id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `partner_clubs`
--

INSERT INTO `partner_clubs` (`id`, `destription`, `clubs_id`, `partners_id`, `users_id`, `created_at`, `updated_at`) VALUES
(1, 'Memorando de Entendimento para apoio na disponibilizacao de Equipamentos desportivos', 1, 1, 15, '2020-05-22 04:49:32', '2020-06-12 04:26:38'),
(2, 'Venda de Equipamento desportivo', 2, 2, 15, '2020-05-29 11:23:18', '2020-05-29 11:23:18'),
(9, NULL, 5, 3, 15, '2020-07-02 14:21:09', '2020-07-02 14:22:57');

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

--
-- Table structure for table `percentagems`
--

CREATE TABLE `percentagems` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `percentagems`
--

INSERT INTO `percentagems` (`id`, `name`, `description`, `created_at`, `updated_at`) VALUES
(0, '%', 'Percentagem - %', NULL, NULL),
(1, 'MZN', 'Valor - MZN', NULL, NULL);

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

--
-- Table structure for table `periods`
--

CREATE TABLE `periods` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `periods`
--

INSERT INTO `periods` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'Mensal', NULL, NULL),
(2, 'Trimestral', NULL, NULL),
(3, 'Semestral ', NULL, NULL),
(4, 'Anual', NULL, NULL);

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

--
-- Table structure for table `posts`
--

CREATE TABLE `posts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `photo` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `source` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `estados_id` int(10) UNSIGNED NOT NULL,
  `users_id` int(10) UNSIGNED NOT NULL,
  `clubs_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `posts`
--

INSERT INTO `posts` (`id`, `title`, `description`, `photo`, `status`, `source`, `estados_id`, `users_id`, `clubs_id`, `created_at`, `updated_at`) VALUES
(1, 'Taca de Mocambique', 'Jogo da taca de Mocambique.. a se realizar no estado do Zimpeto pelas 7h da noite', '/storage/posts/15906661381590084955794.jpg', NULL, NULL, 0, 0, 1, '2020-05-28 07:42:18', '2020-05-29 07:41:09'),
(2, 'Noticia do Clube das Mahotas', 'Publicacao de Publicidade da marca patrocinadora dos nossos enventos...', '/storage/posts/1591227422maxresdefault.jpg', NULL, NULL, 0, 0, 5, '2020-06-03 19:37:02', '2020-06-03 19:37:43'),
(3, 'Taca de Mocambique', 'Jogo da Taca de Mocambique.. a se realizar no estado do Zimpeto pelas 7h da noite', '/storage/posts/15906661381590084955794.jpg', NULL, NULL, 0, 0, 1, '2020-05-28 05:42:18', '2020-06-01 08:04:46'),
(4, 'Grande Golo!!!', 'Grande golo do Bruno Fernandes neste fim de semana no classico Benfica Sporting.', '/storage/posts/bruno.jpg', NULL, NULL, 0, 0, 1, '2020-06-01 08:07:24', '2020-06-01 08:07:43'),
(5, 'Jogo final da semana', 'Proximo finald e seman grande jogo', '/storage/posts/image001.jpg', NULL, NULL, 0, 0, 1, '2020-06-02 10:17:51', '2020-06-02 10:17:51'),
(6, 'Jogo Contra o Mengao', 'Jogo Grande XXXNNNm', 'http://localhost:8000/storage/posts/1593717628esporte-clube-corinthians-de-laguna-sc.svg', NULL, NULL, 0, 0, 1, '2020-07-02 15:20:28', '2020-07-02 15:32:17'),
(7, 'Exemplo Noticia', 'Real Madrid 2020 Champions League..', 'http://localhost:8000/storage/posts/1593717892oficial-novo-do-molde-logotipo-futebol-134846476.jpg', NULL, NULL, 0, 0, 1, '2020-07-02 15:24:52', '2020-07-10 15:47:14'),
(8, 'Noticia do Clube', 'Teste Clube do Bairro', 'http://localhost:8000/storage/posts/1593893008download (1).png', NULL, NULL, 0, 0, 10, '2020-07-04 16:03:28', '2020-07-04 16:07:47');

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

--
-- Table structure for table `post_khuzelas`
--

CREATE TABLE `post_khuzelas` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `photo` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `estados_id` int(10) UNSIGNED NOT NULL,
  `origin` int(11) NOT NULL,
  `clubs_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `post_khuzelas`
--

INSERT INTO `post_khuzelas` (`id`, `title`, `description`, `photo`, `estados_id`, `origin`, `clubs_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'Noticias', '<div>Corintiasns</div>', 'http://localhost:8000/storage/postsKhuzela/1593715416esporte-clube-corinthians-de-laguna-sc.svg', 2, 0, 3, '2020-05-28 05:42:18', '2020-07-02 14:55:56', '2020-07-02 14:55:56'),
(2, 'Grande Golo!!!', 'Grande golo do Bruno Fernandes neste fim de semana no classico Benfica Sporting.', '/storage/posts/bruno.jpg', 1, 0, 1, '2020-06-01 08:07:24', '2020-06-01 08:07:43', NULL),
(3, 'Jogo final da semana', 'Proximo finald e seman grande jogo', '/storage/posts/download.jpg', 1, 0, 1, '2020-06-02 10:17:51', '2020-06-02 10:17:51', NULL),
(4, 'Jogo do Costa do Sol', 'Jogo do Mocambola', '/storage/postsKhuzela/1591960822unnamed.png', 1, 0, 3, '2020-06-12 07:20:22', '2020-06-28 15:59:53', '2020-06-28 15:59:53'),
(5, 'Convocatoria para Jogo da Selecao Nacional', 'A selecao convocou 3 jogadores do Desportivo', '/storage/postsKhuzela/1591961830transferir.jpeg', 1, 0, 1, '2020-06-12 07:37:10', '2020-06-29 01:46:10', '2020-06-29 01:46:10'),
(7, 'Noticias', '<div>Corintiasns</div>', 'http://localhost:8000/storage/postsKhuzela/1593715416esporte-clube-corinthians-de-laguna-sc.svg', 1, 0, 3, '2020-07-02 14:43:36', '2020-07-02 14:43:36', NULL);

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

--
-- Table structure for table `producto_categorias`
--

CREATE TABLE `producto_categorias` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `cody` varchar(2) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `producto_categorias`
--

INSERT INTO `producto_categorias` (`id`, `name`, `cody`, `created_at`, `updated_at`) VALUES
(56, 'None', '09', '2020-07-16 09:14:27', '2020-07-16 09:14:27'),
(60, 'Sete', '07', '2020-07-16 09:18:14', '2020-07-16 09:18:14');

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

--
-- Table structure for table `producto_subcategorias`
--

CREATE TABLE `producto_subcategorias` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `cody` varchar(2) COLLATE utf8mb4_unicode_ci NOT NULL,
  `producto_categorias_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `producto_subcategorias`
--

INSERT INTO `producto_subcategorias` (`id`, `name`, `cody`, `producto_categorias_id`, `created_at`, `updated_at`) VALUES
(6, 'Bm', '09', 56, '2020-07-16 09:34:40', '2020-07-16 09:34:40');

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

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `quantMin` int(11) NOT NULL,
  `quantity` int(11) NOT NULL,
  `price` int(11) NOT NULL,
  `product_code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `statuses_id` int(10) UNSIGNED NOT NULL,
  `clubs_id` bigint(20) UNSIGNED NOT NULL,
  `colors_id` int(10) UNSIGNED NOT NULL,
  `tamanhos_id` int(10) UNSIGNED NOT NULL,
  `subcategorias_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `products`
--

INSERT INTO `products` (`id`, `title`, `description`, `quantMin`, `quantity`, `price`, `product_code`, `statuses_id`, `clubs_id`, `colors_id`, `tamanhos_id`, `subcategorias_id`, `created_at`, `updated_at`) VALUES
(25, 'Sapatilhas', 'Marca : Vans\r\nCor : Castanho', 21, 22, 20, '66d36p', 1, 5, 0, 0, 0, '2020-06-26 06:54:44', '2020-06-26 07:47:26'),
(26, 'T-Shirt do Clube', 'Camiseta Basket Los Angeles Lakers\r\nPreta - Algodao', 25, 150, 3600, '4037Ap', 1, 1, 0, 0, 0, '2020-06-26 08:53:27', '2020-06-26 08:53:27'),
(33, 'Exemplo', 'Sapatilhas Vans Old School \r\nPreta,\r\nBarra Branca, \r\nSola Castanha Borracha', 500, 200, 200, '70407', 1, 5, 0, 0, 0, '2020-06-27 12:45:01', '2020-06-27 14:29:15'),
(34, 'Exemplo2', 'Camiseta Adidas Preta,\r\nSimples interior Branca', 1500, 3000, 2500, '3F83lX', 1, 5, 0, 0, 0, '2020-06-27 13:16:09', '2020-06-27 14:29:57'),
(35, 'Los Angeles Lakers Legend Woman', 'Camiseta Los Angeles Lakers Legends\r\nPreta', 50, 1500, 2000, '5MNq6D', 1, 3, 0, 0, 0, '2020-06-27 13:51:47', '2020-06-27 14:31:08'),
(36, 'Sapatilhas Nike', 'Sapatilhas Nike', 20, 50, 5600, '1Mswcl', 1, 1, 0, 0, 0, '2020-06-29 20:41:29', '2020-06-29 20:41:29'),
(37, 'Producto NY', 'mmMMMmm', 50, 500, 25, '3c3503', 1, 5, 0, 0, 0, '2020-07-02 14:35:58', '2020-07-02 14:35:58'),
(38, 'Producto NY', 'MMMMMMM', 10, 50, 250, '9qTv6a', 1, 1, 0, 0, 0, '2020-07-02 14:39:34', '2020-07-02 14:42:27'),
(39, 'Producto Clube do Bairro', 'Producto Teste Clube do Bairro', 20, 2500, 245, '796sQ7', 1, 10, 0, 0, 0, '2020-07-04 15:00:59', '2020-07-04 15:39:49'),
(40, 'Producto 2', 'Meias', 150, 501, 500, '9FFu9L', 1, 10, 0, 0, 0, '2020-07-04 15:01:50', '2020-07-05 16:31:53'),
(41, 'Camisola do Clube Dortmund', 'Camisola Alternativa Amarela', 201, 250, 500, '7PaZ87', 1, 1, 3, 2, 3, '2020-07-07 16:48:08', '2020-07-08 04:19:27'),
(42, 'Sapatilhas Adidas', 'Sapatilhas...', 10, 20, 2500, '3BwRs9', 1, 10, 1, 4, 1, '2020-07-08 04:54:33', '2020-07-08 04:54:33'),
(43, 'Sapatilhas Adidas', 'Sapatilhas do Clube', 20, 500, 2500, '7092', 1, 1, 2, 2, 1, '2020-07-13 10:59:57', '2020-07-13 10:59:57');

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

--
-- Table structure for table `product_colors`
--

CREATE TABLE `product_colors` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `colors_id` int(10) UNSIGNED NOT NULL,
  `products_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `product_colors`
--

INSERT INTO `product_colors` (`id`, `colors_id`, `products_id`, `created_at`, `updated_at`) VALUES
(12, 3, 25, '2020-06-26 06:54:45', '2020-06-26 06:54:45'),
(13, 2, 26, '2020-06-26 08:53:28', '2020-06-26 08:53:28'),
(15, 7, 33, '2020-06-27 12:45:01', '2020-06-27 12:45:01'),
(16, 7, 34, '2020-06-27 13:16:10', '2020-06-27 13:16:10'),
(17, 6, 35, '2020-06-27 13:51:47', '2020-06-27 13:51:47'),
(18, 8, 36, '2020-06-29 20:41:29', '2020-06-29 20:41:29'),
(19, 6, 38, '2020-07-02 14:39:34', '2020-07-02 14:39:34'),
(20, 7, 39, '2020-07-04 15:00:59', '2020-07-04 15:00:59'),
(21, 4, 40, '2020-07-04 15:01:50', '2020-07-04 15:01:50');

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

--
-- Table structure for table `product_items`
--

CREATE TABLE `product_items` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `product_code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quant_min` int(11) NOT NULL,
  `quant_total` int(11) NOT NULL,
  `price` int(11) NOT NULL,
  `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `color_id` int(10) UNSIGNED DEFAULT NULL,
  `product_id` int(10) UNSIGNED NOT NULL,
  `size_id` int(10) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `product_item_images`
--

CREATE TABLE `product_item_images` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `product_item_id` int(10) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `quotas`
--

CREATE TABLE `quotas` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `quota_description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `quota_value` bigint(20) NOT NULL,
  `payment_date` int(11) NOT NULL,
  `periods_id` int(10) UNSIGNED NOT NULL,
  `clubs_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `quotas`
--

INSERT INTO `quotas` (`id`, `quota_description`, `quota_value`, `payment_date`, `periods_id`, `clubs_id`, `created_at`, `updated_at`) VALUES
(2, 'Quota PlatinAa', 250, 30, 2, 1, '2020-05-23 05:46:56', '2020-07-08 05:20:34'),
(3, 'Quota Mensal', 101, 30, 1, 1, '2020-05-27 22:00:42', '2020-06-04 15:02:32'),
(7, 'Lugar Anual no EstadiO', 150, 2, 1, 1, '2020-06-02 00:49:37', '2020-06-02 00:49:37'),
(8, 'Quota Mensal', 75, 27, 1, 5, '2020-06-03 19:42:27', '2020-06-04 17:11:19'),
(9, 'Quota Seamanal', 50, 10, 3, 5, '2020-06-04 15:04:34', '2020-06-09 12:26:57'),
(10, 'QuotaBaC', 25, 5, 4, 5, '2020-07-02 14:27:22', '2020-07-08 05:19:50'),
(11, 'Quota Prata', 200, 2, 1, 10, '2020-07-04 14:46:51', '2020-07-04 14:46:51');

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

--
-- Table structure for table `roles`
--

CREATE TABLE `roles` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `roles`
--

INSERT INTO `roles` (`id`, `name`, `description`, `created_at`, `updated_at`) VALUES
(1, 'admin', 'Administrador Khuzela', '2020-05-09 06:16:54', '2020-05-09 06:16:54'),
(2, 'manager', 'Administrador Clube', '2020-05-09 06:16:54', '2020-05-09 06:16:54'),
(3, 'user', 'Utilizador Khuzela', '2020-05-09 06:16:54', '2020-05-09 06:16:54'),
(4, 'userClube', 'Utilizador Clube', NULL, NULL);

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

--
-- Table structure for table `role_user`
--

CREATE TABLE `role_user` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `role_id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `role_user`
--

INSERT INTO `role_user` (`id`, `role_id`, `user_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1, NULL, NULL),
(2, 2, 2, NULL, NULL),
(7, 2, 8, NULL, NULL),
(11, 2, 13, '2020-05-14 04:10:46', '2020-05-14 04:10:46'),
(13, 1, 15, '2020-05-14 04:28:41', '2020-05-14 04:28:41'),
(18, 2, 19, '2020-05-27 19:02:52', '2020-05-27 19:02:52'),
(26, 2, 23, NULL, NULL),
(28, 1, 25, '2020-06-15 16:27:40', '2020-06-15 16:27:40'),
(29, 3, 26, '2020-06-15 22:45:58', '2020-06-15 22:45:58'),
(30, 4, 27, '2020-06-17 08:51:26', '2020-06-17 08:51:26'),
(31, 3, 28, '2020-06-23 13:49:06', '2020-06-23 13:49:06'),
(32, 2, 29, '2020-07-02 12:58:41', '2020-07-02 12:58:41'),
(33, 4, 30, '2020-07-02 13:23:12', '2020-07-02 13:23:12');

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

--
-- Table structure for table `services`
--

CREATE TABLE `services` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `khuzelaBonus` int(11) NOT NULL,
  `clubBonus` int(11) NOT NULL,
  `partnerBonus` int(11) NOT NULL,
  `partners_id` bigint(20) UNSIGNED NOT NULL,
  `percentagems_id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `services`
--

INSERT INTO `services` (`id`, `name`, `description`, `khuzelaBonus`, `clubBonus`, `partnerBonus`, `partners_id`, `percentagems_id`, `created_at`, `updated_at`) VALUES
(2, 'Sapatilhas Adidas', 'Equipamento..', 15, 10, 5, 2, 0, '2020-06-04 09:44:43', '2020-07-01 10:03:08'),
(3, 'Sapatilhas Adidas', 'Producto', 20, 10, 5, 2, 1, '2020-06-04 15:52:30', '2020-07-01 10:02:38'),
(4, 'Servico de Teste', 'Descrisao Descrisao', 10, 10, 52, 2, 0, '2020-06-11 03:29:29', '2020-06-22 08:45:38'),
(6, 'Servico JZ', 'Producto', 150, 500, 500, 3, 1, '2020-07-02 14:25:04', '2020-07-03 11:08:56');

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

--
-- Table structure for table `service_clubs`
--

CREATE TABLE `service_clubs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `destription` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `clubs_id` bigint(20) UNSIGNED NOT NULL,
  `services_id` bigint(20) UNSIGNED NOT NULL,
  `users_id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `service_clubs`
--

INSERT INTO `service_clubs` (`id`, `destription`, `clubs_id`, `services_id`, `users_id`, `created_at`, `updated_at`) VALUES
(1, 'Descrisao...', 1, 2, 15, '2020-07-20 10:15:17', '2020-07-20 10:15:17'),
(2, 'Parceria ...', 3, 6, 15, '2020-07-20 11:51:22', '2020-07-20 11:51:22');

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

--
-- Table structure for table `statuses`
--

CREATE TABLE `statuses` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `statuses`
--

INSERT INTO `statuses` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'Disponivel', NULL, NULL),
(2, 'Indisponivel', NULL, NULL),
(3, 'Por Esgotar', NULL, NULL),
(4, 'Completa', NULL, NULL),
(5, 'Cancelada', NULL, NULL),
(6, 'Pendente', NULL, NULL);

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

--
-- Table structure for table `stocks`
--

CREATE TABLE `stocks` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `quantMin` int(11) NOT NULL,
  `quantity` int(11) NOT NULL,
  `products_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `subcategorias`
--

CREATE TABLE `subcategorias` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `cody` varchar(2) COLLATE utf8mb4_unicode_ci NOT NULL,
  `categories_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `subcategorias`
--

INSERT INTO `subcategorias` (`id`, `name`, `cody`, `categories_id`, `created_at`, `updated_at`) VALUES
(1, 'Bolas de Futebol', '1', 5, '2020-07-07 15:35:33', '2020-07-13 10:57:28'),
(3, 'Camisola do Clube', '2', 2, '2020-07-07 16:45:14', '2020-07-08 01:08:51');

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

--
-- Table structure for table `tamanhos`
--

CREATE TABLE `tamanhos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `size` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `tamanhos`
--

INSERT INTO `tamanhos` (`id`, `size`, `description`, `created_at`, `updated_at`) VALUES
(1, 'XL', 'Extra Smal - extra pequeno', NULL, NULL),
(2, 'S', 'Smal - pequeno', NULL, NULL),
(3, 'M', 'Medium - Medio', NULL, NULL),
(4, 'L', 'Large - Grande', NULL, NULL),
(5, 'XL ', 'Extra Large - extra grande', NULL, NULL);

--
-- Indexes for dumped tables
--

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

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

--
-- Indexes for table `clubs`
--
ALTER TABLE `clubs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `clubs_email_unique` (`email`),
  ADD KEY `clubs_cities_id_foreign` (`cities_id`);

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

--
-- Indexes for table `compras`
--
ALTER TABLE `compras`
  ADD PRIMARY KEY (`id`),
  ADD KEY `compras_meios_pagamentos_id_foreign` (`meios_pagamentos_id`),
  ADD KEY `compras_statuses_id_foreign` (`statuses_id`);

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

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

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

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

--
-- Indexes for table `item_compras`
--
ALTER TABLE `item_compras`
  ADD PRIMARY KEY (`id`),
  ADD KEY `item_compras_products_id_foreign` (`products_id`),
  ADD KEY `item_compras_compras_id_foreign` (`compras_id`);

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

--
-- Indexes for table `member_clubs`
--
ALTER TABLE `member_clubs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `member_clubs_members_id_foreign` (`members_id`),
  ADD KEY `member_clubs_clubs_id_foreign` (`clubs_id`);

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

--
-- Indexes for table `oauth_auth_codes`
--
ALTER TABLE `oauth_auth_codes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `oauth_auth_codes_user_id_index` (`user_id`);

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

--
-- Indexes for table `partners`
--
ALTER TABLE `partners`
  ADD PRIMARY KEY (`id`),
  ADD KEY `partners_cities_id_foreign` (`cities_id`);

--
-- Indexes for table `partner_clubs`
--
ALTER TABLE `partner_clubs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `partner_clubs_clubs_id_foreign` (`clubs_id`),
  ADD KEY `partner_clubs_partners_id_foreign` (`partners_id`);

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

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

--
-- Indexes for table `posts`
--
ALTER TABLE `posts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `posts_clubs_id_foreign` (`clubs_id`);

--
-- Indexes for table `post_khuzelas`
--
ALTER TABLE `post_khuzelas`
  ADD PRIMARY KEY (`id`),
  ADD KEY `post_khuzelas_clubs_id_foreign` (`clubs_id`);

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

--
-- Indexes for table `producto_subcategorias`
--
ALTER TABLE `producto_subcategorias`
  ADD PRIMARY KEY (`id`),
  ADD KEY `producto_subcategorias_producto_categorias_id_foreign` (`producto_categorias_id`);

--
-- Indexes for table `products`
--
ALTER TABLE `products`
  ADD PRIMARY KEY (`id`),
  ADD KEY `products_clubs_id_foreign` (`clubs_id`),
  ADD KEY `products_subcategorias_id_foreign` (`subcategorias_id`);

--
-- Indexes for table `product_colors`
--
ALTER TABLE `product_colors`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_colors_products_id_foreign` (`products_id`);

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

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

--
-- Indexes for table `quotas`
--
ALTER TABLE `quotas`
  ADD PRIMARY KEY (`id`),
  ADD KEY `quotas_clubs_id_foreign` (`clubs_id`);

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

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

--
-- Indexes for table `services`
--
ALTER TABLE `services`
  ADD PRIMARY KEY (`id`),
  ADD KEY `services_partners_id_foreign` (`partners_id`);

--
-- Indexes for table `service_clubs`
--
ALTER TABLE `service_clubs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `service_clubs_clubs_id_foreign` (`clubs_id`),
  ADD KEY `service_clubs_services_id_foreign` (`services_id`);

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

--
-- Indexes for table `stocks`
--
ALTER TABLE `stocks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `stocks_products_id_foreign` (`products_id`);

--
-- Indexes for table `subcategorias`
--
ALTER TABLE `subcategorias`
  ADD PRIMARY KEY (`id`),
  ADD KEY `subcategorias_categories_id_foreign` (`categories_id`);

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `cities`
--
ALTER TABLE `cities`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `clubs`
--
ALTER TABLE `clubs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=56;

--
-- AUTO_INCREMENT for table `colors`
--
ALTER TABLE `colors`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `compras`
--
ALTER TABLE `compras`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `documents`
--
ALTER TABLE `documents`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `estados`
--
ALTER TABLE `estados`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `images`
--
ALTER TABLE `images`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;

--
-- AUTO_INCREMENT for table `item_compras`
--
ALTER TABLE `item_compras`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `meios_pagamentos`
--
ALTER TABLE `meios_pagamentos`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `member_clubs`
--
ALTER TABLE `member_clubs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=133;

--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43;

--
-- AUTO_INCREMENT for table `oauth_personal_access_clients`
--
ALTER TABLE `oauth_personal_access_clients`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `partners`
--
ALTER TABLE `partners`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `partner_clubs`
--
ALTER TABLE `partner_clubs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `percentagems`
--
ALTER TABLE `percentagems`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `periods`
--
ALTER TABLE `periods`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `posts`
--
ALTER TABLE `posts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `post_khuzelas`
--
ALTER TABLE `post_khuzelas`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `producto_categorias`
--
ALTER TABLE `producto_categorias`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=61;

--
-- AUTO_INCREMENT for table `producto_subcategorias`
--
ALTER TABLE `producto_subcategorias`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44;

--
-- AUTO_INCREMENT for table `product_colors`
--
ALTER TABLE `product_colors`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;

--
-- AUTO_INCREMENT for table `product_items`
--
ALTER TABLE `product_items`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_item_images`
--
ALTER TABLE `product_item_images`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `quotas`
--
ALTER TABLE `quotas`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `role_user`
--
ALTER TABLE `role_user`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34;

--
-- AUTO_INCREMENT for table `services`
--
ALTER TABLE `services`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `service_clubs`
--
ALTER TABLE `service_clubs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `statuses`
--
ALTER TABLE `statuses`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `stocks`
--
ALTER TABLE `stocks`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `subcategorias`
--
ALTER TABLE `subcategorias`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `tamanhos`
--
ALTER TABLE `tamanhos`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `clubs`
--
ALTER TABLE `clubs`
  ADD CONSTRAINT `clubs_cities_id_foreign` FOREIGN KEY (`cities_id`) REFERENCES `cities` (`id`) ON DELETE NO ACTION;

--
-- Constraints for table `compras`
--
ALTER TABLE `compras`
  ADD CONSTRAINT `compras_meios_pagamentos_id_foreign` FOREIGN KEY (`meios_pagamentos_id`) REFERENCES `meios_pagamentos` (`id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `compras_statuses_id_foreign` FOREIGN KEY (`statuses_id`) REFERENCES `statuses` (`id`) ON DELETE NO ACTION;

--
-- Constraints for table `item_compras`
--
ALTER TABLE `item_compras`
  ADD CONSTRAINT `item_compras_compras_id_foreign` FOREIGN KEY (`compras_id`) REFERENCES `compras` (`id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `item_compras_products_id_foreign` FOREIGN KEY (`products_id`) REFERENCES `products` (`id`) ON DELETE NO ACTION;

--
-- Constraints for table `member_clubs`
--
ALTER TABLE `member_clubs`
  ADD CONSTRAINT `member_clubs_clubs_id_foreign` FOREIGN KEY (`clubs_id`) REFERENCES `clubs` (`id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `member_clubs_members_id_foreign` FOREIGN KEY (`members_id`) REFERENCES `members` (`id`) ON DELETE NO ACTION;

--
-- Constraints for table `partners`
--
ALTER TABLE `partners`
  ADD CONSTRAINT `partners_cities_id_foreign` FOREIGN KEY (`cities_id`) REFERENCES `cities` (`id`) ON DELETE NO ACTION;

--
-- Constraints for table `partner_clubs`
--
ALTER TABLE `partner_clubs`
  ADD CONSTRAINT `partner_clubs_clubs_id_foreign` FOREIGN KEY (`clubs_id`) REFERENCES `clubs` (`id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `partner_clubs_partners_id_foreign` FOREIGN KEY (`partners_id`) REFERENCES `partners` (`id`) ON DELETE NO ACTION;

--
-- Constraints for table `posts`
--
ALTER TABLE `posts`
  ADD CONSTRAINT `posts_clubs_id_foreign` FOREIGN KEY (`clubs_id`) REFERENCES `clubs` (`id`) ON DELETE NO ACTION;

--
-- Constraints for table `post_khuzelas`
--
ALTER TABLE `post_khuzelas`
  ADD CONSTRAINT `post_khuzelas_clubs_id_foreign` FOREIGN KEY (`clubs_id`) REFERENCES `clubs` (`id`) ON DELETE NO ACTION;

--
-- Constraints for table `producto_subcategorias`
--
ALTER TABLE `producto_subcategorias`
  ADD CONSTRAINT `producto_subcategorias_producto_categorias_id_foreign` FOREIGN KEY (`producto_categorias_id`) REFERENCES `producto_categorias` (`id`) ON DELETE NO ACTION;

--
-- Constraints for table `products`
--
ALTER TABLE `products`
  ADD CONSTRAINT `products_clubs_id_foreign` FOREIGN KEY (`clubs_id`) REFERENCES `clubs` (`id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `products_subcategorias_id_foreign` FOREIGN KEY (`subcategorias_id`) REFERENCES `producto_subcategorias` (`id`) ON DELETE NO ACTION;

--
-- Constraints for table `product_colors`
--
ALTER TABLE `product_colors`
  ADD CONSTRAINT `product_colors_products_id_foreign` FOREIGN KEY (`products_id`) REFERENCES `products` (`id`) ON DELETE NO ACTION;

--
-- Constraints for table `quotas`
--
ALTER TABLE `quotas`
  ADD CONSTRAINT `quotas_clubs_id_foreign` FOREIGN KEY (`clubs_id`) REFERENCES `clubs` (`id`) ON DELETE NO ACTION;

--
-- Constraints for table `services`
--
ALTER TABLE `services`
  ADD CONSTRAINT `services_partners_id_foreign` FOREIGN KEY (`partners_id`) REFERENCES `partners` (`id`) ON DELETE NO ACTION;

--
-- Constraints for table `service_clubs`
--
ALTER TABLE `service_clubs`
  ADD CONSTRAINT `service_clubs_clubs_id_foreign` FOREIGN KEY (`clubs_id`) REFERENCES `clubs` (`id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `service_clubs_services_id_foreign` FOREIGN KEY (`services_id`) REFERENCES `services` (`id`) ON DELETE NO ACTION;

--
-- Constraints for table `stocks`
--
ALTER TABLE `stocks`
  ADD CONSTRAINT `stocks_products_id_foreign` FOREIGN KEY (`products_id`) REFERENCES `products` (`id`) ON DELETE NO ACTION;

--
-- Constraints for table `subcategorias`
--
ALTER TABLE `subcategorias`
  ADD CONSTRAINT `subcategorias_categories_id_foreign` FOREIGN KEY (`categories_id`) REFERENCES `categories` (`id`) ON DELETE NO ACTION;
COMMIT;

