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

START TRANSACTION;



--
-- Database: `paytekaf_khuzela`
--

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

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

CREATE TABLE `auditoria_delete_membros` (
  `id` int(11) UNSIGNED NOT NULL,
  `members_id` int(11) UNSIGNED 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) UNSIGNED NOT NULL,
  `quotas_id` int(11) UNSIGNED NOT NULL,
  `cities_id` int(11) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- 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, 'Clube De Teste', 'Corinthians@gmail.com', '258000664777778', '/storage/club/1593806484esporte-clube-corinthians-de-laguna-sc.svg', '2020-07-03 16:01:24', '2020-07-03 16:01:24');

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

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

CREATE TABLE `auditoria_insert_membros` (
  `id` int(11) UNSIGNED 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, 31, 'Socio Z', 4501151, 'Maputo', '842004414400000', '/storage/member/1593806615i.png', 'socio@socio.com', '4101515151515', 1, 1, 5, '2020-07-03 16:03:35', '2020-07-03 16:03:35');

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

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

CREATE TABLE `categories` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) 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;

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

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

CREATE TABLE `cities` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) 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', '2020-07-30 07:23:32', '2020-07-30 07:23:32'),
(2, 'Maputo Provincia', '2020-07-30 07:23:32', '2020-07-30 07:23:32'),
(3, 'Gaza', '2020-07-30 07:23:32', '2020-07-30 07:23:32'),
(4, 'Inhambane', '2020-07-30 07:23:32', '2020-07-30 07:23:32'),
(5, 'Sofala', '2020-07-30 07:23:32', '2020-07-30 07:23:32'),
(6, 'Nampula', '2020-07-30 07:23:32', '2020-07-30 07:23:32'),
(7, 'Tete', '2020-07-30 07:23:32', '2020-07-30 07:23:32'),
(8, 'Zambézia', '2020-07-30 07:23:32', '2020-07-30 07:23:32'),
(9, 'Sofala', '2020-07-30 07:23:32', '2020-07-30 07:23:32'),
(10, 'Cabo Delgado', '2020-07-30 07:23:32', '2020-07-30 07:23:32'),
(11, 'Quelimane', '2020-07-30 07:23:32', '2020-07-30 07:23:32');

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

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

CREATE TABLE `clubs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `nuit` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `color` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `picture` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `responsible_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `responsible_phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `responsible_email` varchar(191) 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
(1, 'Khuzela', 'khuzela@gmail.com', '840000123', 'Maxaquene', '100123558', '#f57010', 'http://khuzeladmin.paytek-africa.com/storage/club/1608039477Khuzela.png', 'Edson Usaca', '8400000256', 'edsonusaca@gmail.com', 1, 1, '2020-11-30 08:17:29', '2020-12-15 11:37:57'),
(2, 'Clube Ferroviario de Maputo', 'fmaputo@gmail.com', '841000058', 'Maxaquene', '110259130', '#0be047', 'http://khuzeladmin.paytek-africa.com/storage/club/160803936212379.png', 'Armando Machava', '840002849', 'amachava@gmail.com', 1, 1, '2020-11-30 09:35:08', '2020-12-15 11:36:02'),
(3, 'Clube Costa do Sol', 'costasol@gmail.com', '870113022', 'Costa do Sol', '112051939', '#fcf201', 'http://khuzeladmin.paytek-africa.com/storage/club/16080393051606736351CD_Costa_do_Sol.png', 'Thomas Salvador', '850134905', 'tsalvador@gmail.com', 1, 1, '2020-11-30 09:37:51', '2020-12-15 11:35:05'),
(4, 'Maxaquene', 'maxaquene@gmail.com', '849231169', 'Maxaquene', '143435435', '#ff0f0f', 'http://khuzeladmin.paytek-africa.com/storage/club/1608039422img000172-397-20180929-175552.png', 'Rodrigues', '849231169', 'mafumorodrigues@gmail.com', 1, 2, '2020-12-04 11:30:01', '2020-12-15 11:37:02');

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

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

CREATE TABLE `colors` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `cody` varchar(191) 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`, `cody`, `created_at`, `updated_at`) VALUES
(1, 'Vermelho', '01', '2020-07-30 07:30:51', '2020-07-30 07:30:51'),
(2, 'Branco', '02', '2020-07-30 07:30:51', '2020-07-31 11:28:42'),
(3, 'Amarelo', '03', '2020-07-30 07:30:51', '2020-07-30 07:30:51'),
(4, 'Verde', '04', '2020-07-30 07:30:51', '2020-07-30 07:30:51'),
(5, 'Cinza', '05', '2020-07-30 07:30:51', '2020-07-30 07:30:51'),
(6, 'Laranja', '06', '2020-07-30 07:30:51', '2020-07-30 07:30:51'),
(7, 'Violeta', '07', '2020-07-30 07:30:51', '2020-07-30 07:30:51'),
(8, 'Preto', '08', '2020-07-30 07:30:51', '2020-07-30 07:30:51'),
(9, 'Encarnado', '09', '2020-07-30 07:30:51', '2020-07-30 07:30:51'),
(10, 'Azul Celeste', '10', '2020-07-30 07:30:51', '2020-07-30 07:30:51'),
(11, 'Rosa', '11', '2020-07-30 07:30:51', '2020-07-30 07:30:51'),
(12, 'Castanho', '12', '2020-07-30 07:30:51', '2020-07-30 07:30:51'),
(13, 'Creme', '13', '2020-07-30 07:30:51', '2020-07-30 07:30:51'),
(14, 'Azul Marinho', '14', '2020-11-30 11:26:21', '2020-11-30 11:26:41');

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

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

CREATE TABLE `compras` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `codigo_compra` varchar(191) 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;

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

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

CREATE TABLE `documents` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) 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(191) 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', '2020-07-30 07:48:49', '2020-07-30 07:48:49'),
(2, 'Suspenso', '2020-07-30 07:48:49', '2020-07-30 07:48:49');

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

--
-- 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(191) 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;

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

--
-- 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(191) 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;

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

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

CREATE TABLE `migrations` (
  `id` int(10) UNSIGNED NOT NULL,
  `migration` varchar(191) 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
(85, '2014_02_12_000000_create_documents_table', 1),
(86, '2014_10_12_000000_create_users_table', 1),
(87, '2014_10_12_100000_create_password_resets_table', 1),
(88, '2016_06_01_000001_create_oauth_auth_codes_table', 1),
(89, '2016_06_01_000002_create_oauth_access_tokens_table', 1),
(90, '2016_06_01_000003_create_oauth_refresh_tokens_table', 1),
(91, '2016_06_01_000004_create_oauth_clients_table', 1),
(92, '2016_06_01_000005_create_oauth_personal_access_clients_table', 1),
(93, '2019_08_19_000000_create_failed_jobs_table', 1),
(94, '2019_09_25_182323_create_roles_table', 1),
(95, '2019_09_25_183138_create_role_user_table', 1),
(96, '2020_04_30_150270_create_categories_table', 1),
(97, '2020_04_30_150301_create_subcategorias_table', 1),
(98, '2020_04_30_150360_create_colors_table', 1),
(99, '2020_05_09_222554_create_cities_table', 1),
(100, '2020_05_09_222573_create_estados_table', 1),
(101, '2020_05_09_222600_create_percentagems_table', 1),
(102, '2020_05_09_222648_create_clubs_table', 1),
(103, '2020_05_09_222854_create_quotas_table', 1),
(104, '2020_05_09_222932_create_members_table', 1),
(105, '2020_05_09_223009_create_member_clubs_table', 1),
(106, '2020_05_09_223134_create_partners_table', 1),
(107, '2020_05_09_223160_create_meios_pagamentos_table', 1),
(108, '2020_05_09_223180_create_tamanhos_table', 1),
(109, '2020_05_09_223230_create_producto_categorias_table', 1),
(110, '2020_05_09_223360_create_producto_subcategorias_table', 1),
(111, '2020_05_09_223442_create_services_table', 1),
(112, '2020_05_09_223500_create_statuses_table', 1),
(113, '2020_05_09_223516_create_products_table', 1),
(114, '2020_05_09_223533_create_compras_table', 1),
(115, '2020_05_22_110712_create_partner_clubs_table', 1),
(116, '2020_05_22_110720_create_service_clubs_table', 1),
(117, '2020_05_26_15452_create_images_table', 1),
(118, '2020_05_28_084059_create_posts_table', 1),
(119, '2020_06_02_043936_create_periods_table', 1),
(120, '2020_06_11_045954_create_post_khuzelas_table', 1),
(121, '2020_06_24_154927_create_product_colors_table', 1),
(122, '2020_06_28_193359_add_soft_deletes_to_post_khuzela_table', 1),
(123, '2020_07_01_220301_create_product_items_table', 1),
(124, '2020_07_01_221917_create_product_item_images_table', 1),
(125, '2020_07_07_095030_create_stocks_table', 1),
(126, '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-07-30 07:25:32', '2020-07-30 07:25:32'),
(2, 3, '2020-07-30 11:36:33', '2020-07-30 11:36:33');

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

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `clubs_id` int(10) UNSIGNED NOT NULL,
  `member_id` int(11) NOT NULL,
  `status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pendente',
  `amount` double NOT NULL,
  `transaction` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `received_date` datetime DEFAULT NULL,
  `sent_date` datetime DEFAULT NULL,
  `in_process_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `orders`
--

INSERT INTO `orders` (`id`, `clubs_id`, `member_id`, `status`, `amount`, `transaction`, `created_at`, `updated_at`, `received_date`, `sent_date`, `in_process_date`) VALUES
(19, 4, 5, 'completo', 200, 'AHDWJHNSNS', '2020-09-14 07:57:41', '2020-12-22 07:32:15', NULL, NULL, NULL),
(20, 2, 4, 'em processo', 150, 'UHSKOPLDMW', '2020-09-25 06:25:19', '2020-12-22 14:12:57', NULL, NULL, NULL),
(21, 2, 3, 'pendente', 350, 'TEZNOSNXCO', '2020-11-17 06:00:48', '2020-11-17 06:00:48', NULL, NULL, NULL),
(22, 2, 2, 'completo', 700, 'OPWSMQUSJP', '2020-11-17 06:00:58', '2020-12-22 14:04:49', NULL, NULL, NULL),
(23, 3, 1, 'completo', 1200, 'GOSNDLPWBI', '2020-11-30 09:35:35', '2020-12-22 09:43:28', NULL, NULL, NULL),
(24, 3, 6, 'completo', 4200, 'lMqRx5KHkywn', '2020-12-17 14:53:00', '2020-12-22 09:47:08', NULL, NULL, NULL),
(25, 3, 1, 'completo', 2710, 'DRINp3Eh9n1e', '2020-12-17 14:54:23', '2020-12-22 09:42:06', NULL, NULL, NULL),
(26, 3, 6, 'pendente', 0, 'Zjx7jxPsQr15', '2020-12-17 15:15:16', '2020-12-17 15:15:16', NULL, NULL, NULL),
(27, 3, 6, 'em processo', 0, 'ZNDLfg3wskfR', '2020-12-17 15:15:22', '2020-12-22 10:11:14', NULL, NULL, NULL),
(28, 3, 1, 'completo', 2500, 'IP2zjkUjY0TI', '2020-12-21 15:20:32', '2020-12-22 09:46:30', NULL, NULL, NULL),
(29, 3, 7, 'completo', 2700, 'k2HlBnFT78dW', '2020-12-22 10:17:37', '2020-12-22 10:20:17', NULL, NULL, NULL),
(30, 3, 7, 'completo', 7500, 'Rf02zb5uiSHA', '2020-12-22 10:44:30', '2020-12-22 12:50:21', NULL, NULL, NULL),
(31, 3, 7, 'completo', 5500, '8nUFXzw7E7V8', '2020-12-22 12:48:42', '2020-12-22 12:50:56', NULL, NULL, NULL),
(32, 3, 7, 'pendente', 2500, 'machOVaQsIQ3', '2020-12-22 14:19:07', '2020-12-22 14:19:07', NULL, NULL, NULL);

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

--
-- Table structure for table `origims`
--

CREATE TABLE `origims` (
  `id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `origims`
--

INSERT INTO `origims` (`id`, `name`) VALUES
(0, 'Todos'),
(1, 'Clubes');

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

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

CREATE TABLE `partners` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `partner_description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` bigint(20) NOT NULL,
  `address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `nuit` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `picture` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `responsible_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `responsible_phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `responsible_email` varchar(191) 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, 'Lojas Adidas', 'Lojas de vestiario', 820248800, 'Maxaquene', '110288858', 'http://khuzeladmin.paytek-africa.com/storage/partner/1608039146images (10).png', 'Carlos Mavo', '840028258', 'mavo@gmail.com', 1, '2020-11-30 09:47:35', '2020-12-15 11:32:26'),
(2, 'Total', 'Bombas de Combustivel', 8400051096, 'Coop', '100541848', 'http://khuzeladmin.paytek-africa.com/storage/partner/1608039256Logo-Total-1.jpg', 'Sara Almeida', '850018289', 'sara@hotmail.com', 1, '2020-11-30 09:48:40', '2020-12-15 11:34:16'),
(3, 'Sazol', 'Sazol Descrição', 849231169, 'Maputo', '134565533', 'http://khuzeladmin.paytek-africa.com/storage/partner/1608039197SASOL-logo-400x400.jpg', NULL, NULL, NULL, 2, '2020-12-04 11:23:00', '2020-12-15 11:33:17');

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

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

CREATE TABLE `partner_clubs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `destription` varchar(191) 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;

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

--
-- Table structure for table `pedido_items`
--

CREATE TABLE `pedido_items` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `quantity` int(11) NOT NULL,
  `amount` double NOT NULL,
  `status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pendente',
  `product_item_id` int(10) UNSIGNED NOT NULL,
  `orders_id` int(10) UNSIGNED DEFAULT NULL,
  `member_id` int(11) 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 `pedido_items`
--

INSERT INTO `pedido_items` (`id`, `quantity`, `amount`, `status`, `product_item_id`, `orders_id`, `member_id`, `created_at`, `updated_at`) VALUES
(19, 2, 850, 'pendente', 1, 19, 5, '2020-09-14 05:57:41', '2020-09-14 05:57:41'),
(20, 1, 400, 'pendente', 2, 20, 4, '2020-09-25 04:25:19', '2020-09-25 04:25:19'),
(21, 1, 650, 'pendente', 3, 21, 3, '2020-11-17 04:00:48', '2020-11-17 04:00:48'),
(22, 2, 1200, 'pendente', 4, 22, 2, '2020-11-17 04:00:58', '2020-11-17 04:00:58'),
(23, 4, 510, 'Processado', 5, 25, 1, '2020-11-30 07:35:35', '2020-12-17 14:54:23'),
(24, 1, 0, 'Processado', 0, 24, 6, '2020-12-17 14:52:31', '2020-12-17 14:53:00'),
(25, 1, 2200, 'Processado', 4, 24, 6, '2020-12-17 14:52:34', '2020-12-17 14:53:00'),
(26, 2, 2000, 'Processado', 2, 24, 6, '2020-12-17 14:52:45', '2020-12-17 14:53:00'),
(27, 3, 2200, 'Processado', 4, 25, 1, '2020-12-17 14:54:02', '2020-12-17 14:54:23'),
(28, 1, 2000, 'Processado', 2, 28, 1, '2020-12-21 15:20:08', '2020-12-21 15:20:32'),
(29, 1, 500, 'Processado', 5, 28, 1, '2020-12-21 15:20:19', '2020-12-21 15:20:32'),
(30, 1, 2200, 'pendente', 4, NULL, 6, '2020-12-21 17:25:10', '2020-12-21 17:25:10'),
(31, 1, 500, 'pendente', 5, NULL, 6, '2020-12-21 17:25:17', '2020-12-21 17:25:17'),
(32, 3, 2200, 'Processado', 4, 29, 7, '2020-12-22 10:16:55', '2020-12-22 10:17:37'),
(33, 2, 500, 'Processado', 5, 29, 7, '2020-12-22 10:17:18', '2020-12-22 10:17:37'),
(34, 2, 5000, 'Processado', 6, 30, 7, '2020-12-22 10:42:59', '2020-12-22 10:44:30'),
(35, 3, 500, 'Processado', 5, 30, 7, '2020-12-22 10:43:42', '2020-12-22 10:44:30'),
(36, 2, 2000, 'Processado', 2, 30, 7, '2020-12-22 10:43:55', '2020-12-22 10:44:30'),
(37, 3, 5000, 'Processado', 6, 31, 7, '2020-12-22 12:48:17', '2020-12-22 12:48:42'),
(38, 2, 500, 'Processado', 5, 31, 7, '2020-12-22 12:48:28', '2020-12-22 12:48:42'),
(39, 4, 2000, 'Processado', 2, 32, 7, '2020-12-22 14:18:30', '2020-12-22 14:19:07'),
(40, 2, 500, 'Processado', 5, 32, 7, '2020-12-22 14:18:43', '2020-12-22 14:19:07');

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

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

CREATE TABLE `percentagems` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(191) 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
(1, 'MZN', 'Valor - MZN', NULL, NULL),
(3, '%', 'Percentagem - %', NULL, NULL);

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

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

CREATE TABLE `periods` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) 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', '2020-07-30 07:48:49', '2020-07-30 07:48:49'),
(2, 'Trimestral', '2020-07-30 07:48:49', '2020-07-30 07:48:49'),
(3, 'Semestral', '2020-07-30 07:48:50', '2020-07-30 07:48:50'),
(4, 'Anual', '2020-07-30 07:48:50', '2020-07-30 07:48:50');

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

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

CREATE TABLE `posts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `photo` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `source` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `origin` int(11) NOT NULL,
  `estados_id` int(10) UNSIGNED NOT NULL,
  `club_default_id` int(11) DEFAULT NULL,
  `users_id` int(10) UNSIGNED NOT NULL,
  `clubs_id` bigint(20) UNSIGNED DEFAULT 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`, `origin`, `estados_id`, `club_default_id`, `users_id`, `clubs_id`, `created_at`, `updated_at`) VALUES
(1, 'Mambas perdem 2 - 0 para Angola', '<p><font size=\"4\"><i><b>Mambas perdem 2 - 0 para Angola</b></i></font><br></p><p><font size=\"4\"><i><b><br></b></i></font></p><p><br></p><p>O craque argentino jogou toda sua carreira profissional apenas no&#160;<a class=\"crossLinks\" href=\"https://www.goal.com/br/equipe/barcelona/agh9ifb2mw3ivjusgedj7c3fe\">Barcelona</a>&#160;e nos &#250;ltimos tempos esteve muito pr&#243;ximo de deixar o clube catal&#227;o. Por&#233;m,&#160;<a href=\"https://www.goal.com/br/not%C3%ADcias/lionel-messi-exclusivo-jamais-iria-a-justica-contra-o-clube/1d28nipb9qnde16r4ugnz8nhkr\" target=\"_blank\">em uma entrevista exclusiva para a&#160;<span>Goal&#160;</span>, o camisa 10 revelou para o mundo que ficaria&#160;</a>pelo menos mais essa temporada no Bar&#231;a a despeito das muitas cr&#237;ticas feitas a Josep Maria Bartomeu, ent&#227;o presidente do Barcelona.</p><p>Portanto,&#160;</p><p><br></p><h2><b><i><font size=\"4\">&#160;Qualificacao para o CAN</font></i></b></h2><p>n&#227;o &#233; imposs&#237;vel pensar que&#160;<a href=\"https://www.goal.com/br/not%C3%ADcias/barcelona-pai-messi-avisa-clube-muito-dificil-leo-fique/zv9etnffbzsb1vokxw9xj56q0#:~:text=Lionel%20Messi-,Em%20Barcelona%2C%20pai%20de%20Messi%20avisa%20clube%3A%20%22,Muito%20dif%C3%ADcil%20que%20Leo%20fique%22&amp;text=O%20pai%20e%20agente%20de,seis%20vezes%20melhor%20do%20mundo.\" target=\"_blank\">em 2021 o mundo possa ver o craque argentino defendendo as cores de outro clube&#160;</a>europeu, onde possa competir para conquistar a&#160;<a class=\"crossLinks\" href=\"https://www.goal.com/br/liga-dos-campe%C3%B5es-da-uefa/4oogyu6o156iphvdvphwpck10\">Champions League</a>, que &#233; o grande objetivo do atleta.</p><p>Colecionador de trof&#233;us individuais e coletivos, a estrela argentina acumulou uma enorme quantidade de gols, nada menos que 712&#160;em 884&#160;jogos no total entre Bar&#231;a e&#160;<a class=\"crossLinks\" href=\"https://www.goal.com/br/equipe/argentina/ak48fkypnql8y4n69cvcq5ghc\">Argentina</a>.</p>', 'http://khuzeladmin.paytek-africa.com/storage/postsKhuzela/160804051016067411551591856937transferir.jpeg', 'active', NULL, 0, 1, 3, 1, 3, '2020-11-30 11:02:04', '2020-12-17 15:29:17'),
(2, 'Costa do Sol sonha com a Champions League Africana', '<b>Costa do Sol</b> sonha alto com a qualifica&#231;&#227;o a <u>Champions League africana</u>.', 'http://khuzeladmin.paytek-africa.com/storage/postsKhuzela/16080404181606748625img001420-398-20190723-072526.jpg', 'active', NULL, 0, 1, 3, 1, 3, '2020-11-30 11:06:41', '2020-12-15 11:53:38'),
(3, 'Noticia da Semana', 'Costa do Sol vence Desportivo de Maputo por 3 bolas a uma (3-1)<div>...</div>', 'http://khuzeladmin.paytek-africa.com/storage/postsKhuzela/16080405271606748625img001420-398-20190723-072526.jpg', 'active', NULL, 0, 1, 3, 1, 3, '2020-11-30 12:52:18', '2020-12-15 11:55:27'),
(4, 'Ferroviario interesado no Khuzela', 'O Clube Ferroviario de Maputo, ve a Khuzela como um&#160;<div>aliado forte para fazer chegar aos seus adeptos os beneficios&#160;</div><div>....</div>', 'http://khuzeladmin.paytek-africa.com/storage/postsKhuzela/16080404341606748625img001420-398-20190723-072526.jpg', 'active', NULL, 0, 1, NULL, 1, 1, '2020-11-30 13:03:45', '2020-12-17 15:30:35'),
(5, 'Consagracacao do Titulo Nacional', 'Maxaquene consagra-se campeao Nacional&#160;', 'http://khuzeladmin.paytek-africa.com/storage/postsKhuzela/16080403661607003170MAXAQUENE(1).jpg', 'active', NULL, 0, 1, NULL, 1, 1, '2020-12-03 11:46:10', '2020-12-17 14:39:41'),
(6, 'COSTA DO SOL DE HORÁCIO GONÇALVES ESTREIA-SE FRENTE AO PLATINUM NA LIGA DOS CAMPEÕES', '<p><font face=\"Arial\" size=\"3\">O Costa do Sol, orientado pelo treinador portugu&#234;s&#160;Hor&#225;cio Gon&#231;alves, ter&#225; pela frente o Platinum FC do Zimbabwe na pr&#233;-eliminat&#243;ria de acesso &#224; fase de grupos da Liga dos Campe&#245;es Africanos, ditou o sorteio realizado segunda-feira no Cairo, Egito, sede da Confera&#231;&#227;o Africana de Futebol (CAF).</font></p><div></div><font face=\"Arial\" size=\"3\">Os canarinhos far&#227;o o primeiro jogo em casa, no Est&#225;dio Nacional do Zimpeto, em Maputo, entre os dias 20 e 22 de novembro corrente e a segunda &#8220;m&#227;o&#8221;realiza-se em Harare no intervalo de 27 a 29 do mesmo m&#234;s.&#160;&#160;</font><p><font face=\"Arial\" size=\"3\">A equipa comandada por Hor&#225;cio Gon&#231;alves regressa &#224;&#160;principal competi&#231;&#227;o de clubes do futebol africano 12 anos depois e aposta tudo para chegar a fase de grupos, tendo investido no plantel com a contrata&#231;&#227;o de internacionais mo&#231;ambicanos, casos de Telinho e Geraldo. Para tal a turma canarinha ter&#225; que come&#231;ar por afastar o Platinum, forma&#231;&#227;o que na temporada passada jogou e eliminou uma equipa mo&#231;ambicana, no caso a Uni&#227;o Desportiva do Songo.</font></p><p><font face=\"Arial\" size=\"3\">Em caso de se qualificar, o campe&#227;o mo&#231;ambicano ter&#225; ainda que jogar com o vencedor da eliminat&#243;ria entre &#160;Plateau United da Nig&#233;ria e Simba &#160;United da Tanzania de Lu&#237;s Miquissone, para assegurar o bilhete para a fase de grupos.</font></p>', 'http://khuzeladmin.paytek-africa.com/storage/postsKhuzela/160804038416067416011591958238unnamed.png', 'active', NULL, 0, 1, 3, 1, 3, '2020-12-03 13:45:04', '2020-12-15 11:53:04'),
(7, 'Khuzela apresenta solucao Tecnologica ...', '<h2><i>Where does it come from?</i></h2><p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of &#34;de Finibus Bonorum et Malorum&#34; (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, &#34;Lorem ipsum dolor sit amet..&#34;, comes from a line in section 1.10.32.</p><p>The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from &#34;de Finibus Bonorum et Malorum&#34; by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.</p>', 'http://khuzeladmin.paytek-africa.com/storage/postsKhuzela/16080404501607086178250px-NetworkTopology-Star.png', 'active', NULL, 0, 1, NULL, 1, 1, '2020-12-04 06:48:41', '2020-12-15 11:54:10'),
(9, 'Costa do sol derrota Maxaquene por 4-0', '<h2>What is Lorem Ipsum?</h2><p><strong>Lorem Ipsum</strong>&#160;is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>', 'http://khuzeladmin.paytek-africa.com/storage/postsKhuzela/160804040116067416011591958238unnamed.png', 'active', NULL, 0, 1, NULL, 1, 3, '2020-12-04 12:01:27', '2020-12-15 11:53:21'),
(10, 'Noticia de teste', 'Noticia de teste do clube ferroviario', 'http://khuzeladmin.paytek-africa.com/storage/postsKhuzela/16080405421607090487kid10.jpg', 'active', NULL, 0, 1, NULL, 1, 2, '2020-12-04 12:25:22', '2020-12-15 11:55:42');

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

--
-- Table structure for table `post_comments`
--

CREATE TABLE `post_comments` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `comment` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
  `member_id` int(10) UNSIGNED DEFAULT NULL,
  `post_id` int(11) 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 `post_comments`
--

INSERT INTO `post_comments` (`id`, `comment`, `status`, `member_id`, `post_id`, `created_at`, `updated_at`) VALUES
(1, 'Que sonho é esse?', 'active', 1, 2, '2020-11-30 13:01:00', '2020-11-30 13:01:00'),
(2, 'Mais u um comentário', 'active', 1, 2, '2020-12-01 10:21:43', '2020-12-01 10:21:43'),
(3, 'Essa noticia é boa', 'active', 1, 3, '2020-12-01 10:23:39', '2020-12-01 10:23:39'),
(4, 'Melhorndo', 'active', 1, 3, '2020-12-03 07:42:24', '2020-12-03 07:42:24'),
(5, 'Outro Cometa', 'active', 1, 3, '2020-12-03 08:06:59', '2020-12-03 08:06:59'),
(6, 'um', 'active', 1, 2, '2020-12-03 13:26:23', '2020-12-03 13:26:23'),
(7, 'atenção aos caracteres portugueses', 'active', 1, 6, '2020-12-04 10:43:33', '2020-12-04 10:43:33'),
(8, 'Obrigado', 'active', 4, 10, '2020-12-04 12:26:14', '2020-12-04 12:26:14'),
(9, 'teste de comentário', 'active', 6, 9, '2020-12-21 17:33:25', '2020-12-21 17:33:25'),
(10, 'teste', 'active', 6, 3, '2020-12-22 14:43:58', '2020-12-22 14:43:58');

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

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

CREATE TABLE `post_khuzelas` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `photo` varchar(191) 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;

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

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

CREATE TABLE `producto_categorias` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `cody` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` varchar(191) 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`, `status`, `created_at`, `updated_at`) VALUES
(1, 'Equipamentos', '01', 'NULL', '2020-07-30 07:26:31', '2020-08-27 10:12:30'),
(2, 'Bola', '02', 'NULL', '2020-07-30 07:26:36', '2020-08-31 11:24:04'),
(3, 'Carteira', '03', 'NULL', '2020-07-30 07:26:41', '2020-08-31 11:24:23'),
(4, 'Camisetes', '04', 'NULL', '2020-07-30 07:26:45', '2020-08-27 10:22:52'),
(5, 'Bandeiras', '05', 'NULL', '2020-07-30 07:26:50', '2020-08-31 11:24:49'),
(6, 'Relogios', '06', 'NULL', '2020-07-30 07:26:54', '2020-08-31 11:25:37'),
(7, 'Cachecóis', '07', 'NULL', '2020-07-30 07:26:59', '2020-08-31 11:26:26'),
(8, 'Porta-Chaves', '08', 'NULL', '2020-07-30 07:27:04', '2020-08-31 11:26:57'),
(9, 'Chapeos e Gorros', '09', 'NULL', '2020-07-30 07:27:09', '2020-08-31 11:27:30'),
(10, 'Toalhas', '10', 'NULL', '2020-07-30 07:27:13', '2020-08-31 11:27:50'),
(11, 'Bijoteria', '11', 'NULL', '2020-07-30 07:27:22', '2020-08-31 11:28:11'),
(12, 'Institucional', '12', 'NULL', '2020-07-30 18:55:02', '2020-08-31 11:29:03'),
(13, 'Oleos', '13', '1', '2020-11-30 11:23:48', '2020-11-30 11:24:23');

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

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

CREATE TABLE `producto_subcategorias` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `cody` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` varchar(191) 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`, `status`, `producto_categorias_id`, `created_at`, `updated_at`) VALUES
(14, 'Bola de Futebol', '01', '1', 2, '2020-09-04 16:46:35', '2020-09-04 16:46:35'),
(15, 'Carteira Escolar', '15', '1', 3, '2020-09-04 16:47:54', '2020-09-04 16:47:54'),
(16, 'Carteira Porta-cartões em Pele Preta', '16', '1', 3, '2020-09-04 16:48:27', '2020-09-04 16:48:27'),
(17, 'Camiseta do Clube', '17', '1', 4, '2020-09-04 16:49:27', '2020-09-04 16:49:27'),
(18, 'Camiseta de Treino', '18', '1', 4, '2020-09-04 16:49:44', '2020-09-04 16:49:44'),
(19, 'Bandeira Lista', '19', '1', 5, '2020-09-04 16:50:21', '2020-09-04 16:50:21'),
(20, 'Bandeira Stromp', '20', '1', 5, '2020-09-04 16:50:40', '2020-09-04 16:50:40'),
(21, 'Relogio / Bracelete Preto', '21', '1', 6, '2020-09-04 16:51:44', '2020-09-04 16:51:44'),
(22, 'Relógio Pulso Preto', '22', '1', 6, '2020-09-04 16:52:21', '2020-09-04 16:52:21'),
(23, 'Cachecol Efeito Tricotado', '23', '1', 7, '2020-09-04 16:53:49', '2020-09-04 16:53:49'),
(24, 'Cachecol Listado', '24', '1', 7, '2020-09-04 16:54:10', '2020-09-04 16:54:10'),
(25, 'Cachecol Listado Logo Bordado', '25', '1', 7, '2020-09-04 16:54:47', '2020-09-04 16:54:47'),
(26, 'Porta-chaves em Pele', '26', '1', 8, '2020-09-04 16:55:46', '2020-09-04 16:55:46'),
(27, 'Porta-Chaves Emblema do Clube', '27', '1', 8, '2020-09-04 16:56:05', '2020-09-04 16:56:05'),
(28, 'Porta-Chaves Camisola de Metal', '28', '1', 8, '2020-09-04 16:56:20', '2020-09-04 16:56:20'),
(29, 'Cap Monograma Cinza', '29', '1', 9, '2020-09-04 16:58:01', '2020-09-04 16:58:01'),
(30, 'Gorro Mescla', '30', '1', 9, '2020-09-04 16:58:20', '2020-09-04 16:58:20'),
(31, 'Toalha de Praia', '31', '1', 10, '2020-09-04 16:58:59', '2020-09-04 16:58:59'),
(32, 'Pulseira de Silicone', '32', '1', 11, '2020-09-04 17:13:48', '2020-09-04 17:13:48'),
(33, 'Autocolante do Clube', '33', '1', 12, '2020-09-04 17:14:46', '2020-09-04 17:14:46'),
(34, 'Sapatilhas', '34', '1', 1, '2020-11-30 10:53:09', '2020-11-30 10:53:09'),
(35, 'Calcoes', '35', '1', 1, '2020-11-30 10:53:44', '2020-11-30 10:53:44'),
(36, 'Oleo de Carros', '36', '1', 13, '2020-11-30 11:24:45', '2020-11-30 11:25:08');

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

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

CREATE TABLE `products` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `product_code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `statuses_id` int(10) UNSIGNED NOT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `visible` tinyint(1) NOT NULL,
  `image` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `flash` tinyint(1) NOT NULL DEFAULT 0,
  `clubs_id` bigint(20) UNSIGNED NOT NULL,
  `product_category_id` bigint(20) 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`, `product_code`, `statuses_id`, `description`, `visible`, `image`, `flash`, `clubs_id`, `product_category_id`, `subcategorias_id`, `created_at`, `updated_at`) VALUES
(1, 'Camiseta Retro', '0001', 1, 'Camiseta Retro Masculina Dry Fit', 1, 'http://khuzeladmin.paytek-africa.com/storage/storage/productsKhuzela/1608040072b2e370de8e92484249396b0850e697d4.jpg', 1, 3, 4, 17, '2020-11-30 10:23:33', '2020-12-15 11:47:52'),
(2, 'Chaveiro', '0002', 1, 'Chaveiro do Clube', 1, 'http://khuzeladmin.paytek-africa.com/storage/storage/productsKhuzela/1608039818download (1).jpg', 1, 2, 8, 27, '2020-11-30 10:24:44', '2020-12-15 11:43:38'),
(3, 'Sapatilhas Adidas', '0003', 1, 'Sapatilhas desportivas', 0, 'http://khuzeladmin.paytek-africa.com/storage/storage/productsKhuzela/1608039864021-sapatilha-adidas-rockstar-7963.jpg', 0, 2, 1, 34, '2020-11-30 10:54:27', '2020-12-15 11:44:24'),
(4, 'Cachecol', '0004', 1, 'descrição do cachecol', 1, 'http://khuzeladmin.paytek-africa.com/storage/storage/productsKhuzela/1608039925Cachecol-Feminino-Estampado-Xadrez-em-Trico-com-Barra-Desfiada-Cinza-9801879-Cinza_1.jpg', 1, 3, 7, 23, '2020-12-04 11:52:58', '2020-12-15 11:45:25'),
(5, 'Sapatilhas Adidas M10', '0005', 1, 'Adidas', 1, 'http://localhost:4200/assets/khuzela.png', 1, 3, 1, 34, '2020-12-22 10:37:58', '2020-12-22 10:37:58');

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

--
-- 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;

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

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

CREATE TABLE `product_items` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `product_code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quant_min` int(11) NOT NULL,
  `quant_total` int(11) NOT NULL,
  `visible` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `price` int(11) NOT NULL,
  `flash` tinyint(1) NOT NULL DEFAULT 0,
  `color_id` int(10) UNSIGNED DEFAULT NULL,
  `product_id` int(10) UNSIGNED NOT NULL,
  `size_id` int(10) UNSIGNED DEFAULT NULL,
  `statuses_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 `product_items`
--

INSERT INTO `product_items` (`id`, `name`, `description`, `product_code`, `quant_min`, `quant_total`, `visible`, `price`, `flash`, `color_id`, `product_id`, `size_id`, `statuses_id`, `created_at`, `updated_at`) VALUES
(1, 'null', 'null', '082703080001', 20, 100, 'MNAK', 50, 1, 8, 2, 3, 1, '2020-11-30 10:30:21', '2020-12-04 08:41:48'),
(2, 'null', 'null', '041702020002', 50, 280, 'MNAK', 2000, 0, 2, 1, 2, 1, '2020-11-30 10:31:13', '2020-12-03 13:38:07'),
(3, 'null', 'null', '041704140003', 5, 100, 'MNAK', 2000, 1, 2, 3, 3, 1, '2020-12-03 13:37:32', '2020-12-04 08:11:01'),
(4, 'null', 'null', '041705140004', 2, 100, 'MNAK', 2200, 0, 2, 1, 5, 1, '2020-12-03 13:37:53', '2020-12-03 13:55:22'),
(5, 'null', 'null', '072302100005', 100, 2000, 'MNAK', 500, 1, 10, 4, 2, 1, '2020-12-04 11:55:17', '2020-12-04 11:55:17'),
(6, 'null', 'null', '013403050006', 20, 100, 'MNAK', 5000, 1, 5, 5, 3, 1, '2020-12-22 10:41:01', '2020-12-22 10:41:01');

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

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

CREATE TABLE `product_item_images` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `image` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `product_item_id` int(10) UNSIGNED DEFAULT NULL,
  `description` varchar(191) 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 `product_item_images`
--

INSERT INTO `product_item_images` (`id`, `image`, `status`, `product_item_id`, `description`, `created_at`, `updated_at`) VALUES
(10, 'http://khuzeladmin.paytek-africa.com/storage/storage/productsKhuzela/1608039999cachecol-de-la-trico-trico.jpg', '1', 5, 'null', '2020-12-15 11:46:40', '2020-12-15 11:46:40'),
(11, 'http://khuzeladmin.paytek-africa.com/storage/storage/productsKhuzela/1608040000D_NQ_NP_685624-MLB43207360119_082020-W.jpg', '1', 5, 'null', '2020-12-15 11:46:40', '2020-12-15 11:46:40'),
(12, 'http://khuzeladmin.paytek-africa.com/storage/storage/productsKhuzela/1608040000UCB-Bambino_20A_6U87N511Q_681_FS_large.jpg', '1', 5, 'null', '2020-12-15 11:46:40', '2020-12-15 11:46:40'),
(13, 'http://khuzeladmin.paytek-africa.com/storage/storage/productsKhuzela/16080400921606739686thumb (6).jpeg', '1', 2, 'null', '2020-12-15 11:48:12', '2020-12-15 11:48:12'),
(14, 'http://khuzeladmin.paytek-africa.com/storage/storage/productsKhuzela/16080400921606739686thumb (7).jpeg', '1', 2, 'null', '2020-12-15 11:48:12', '2020-12-15 11:48:12'),
(15, 'http://khuzeladmin.paytek-africa.com/storage/storage/productsKhuzela/16080400921606739686thumb (8).jpeg', '1', 2, 'null', '2020-12-15 11:48:12', '2020-12-15 11:48:12'),
(16, 'http://khuzeladmin.paytek-africa.com/storage/storage/productsKhuzela/1608040215CHAVEIRO APARECIDA PRATA-455x455.jpg', '1', 1, 'null', '2020-12-15 11:50:15', '2020-12-15 11:50:15'),
(17, 'http://khuzeladmin.paytek-africa.com/storage/storage/productsKhuzela/1608040215chaveiro-metal-c-logo.jpg', '1', 1, 'null', '2020-12-15 11:50:15', '2020-12-15 11:50:15'),
(18, 'http://khuzeladmin.paytek-africa.com/storage/storage/productsKhuzela/1608040215download (2).jpg', '1', 1, 'null', '2020-12-15 11:50:15', '2020-12-15 11:50:15'),
(19, 'http://khuzeladmin.paytek-africa.com/storage/storage/productsKhuzela/16080403054c9e31ba5a3529cad7b75caa0d7ceeeb.jpg', '1', 3, 'null', '2020-12-15 11:51:45', '2020-12-15 11:51:45'),
(20, 'http://khuzeladmin.paytek-africa.com/storage/storage/productsKhuzela/1608040305021-sapatilha-adidas-rockstar-7963.jpg', '1', 3, 'null', '2020-12-15 11:51:45', '2020-12-15 11:51:45'),
(21, 'http://khuzeladmin.paytek-africa.com/storage/storage/productsKhuzela/1608040305Botas_de_Futebol_Copa_20.1_Piso_sintetico_Branco_G28635_01_standard.jpg', '1', 3, 'null', '2020-12-15 11:51:45', '2020-12-15 11:51:45');

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

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

CREATE TABLE `quotas` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `quota_description` varchar(191) 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
(1, 'Quota Semanal', 50, 29, 3, 3, '2020-11-30 09:41:49', '2020-11-30 09:41:49'),
(2, 'Quota Mensal', 125, 25, 1, 3, '2020-11-30 09:42:28', '2020-12-04 06:43:44'),
(3, 'Quota Anual', 250, 25, 4, 2, '2020-11-30 09:42:52', '2020-11-30 09:45:41'),
(4, 'Quota Semanal', 50, 15, 3, 2, '2020-11-30 09:43:20', '2020-11-30 09:43:20');

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

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

CREATE TABLE `roles` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(191) 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-07-30 07:24:35', '2020-07-30 07:24:35'),
(2, 'manager', 'Administrador Clube', '2020-07-30 07:24:35', '2020-07-30 07:24:35'),
(3, 'user', 'Utilizador Khuzela', '2020-07-30 07:24:35', '2020-07-30 07:24:35'),
(4, 'userClube', 'Utilizador Clube', '2020-07-30 07:24:35', '2020-07-30 07:24:35');

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

--
-- 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),
(13, 4, 6, '2020-07-30 21:20:29', '2020-07-30 21:20:29'),
(20, 1, 35, NULL, NULL),
(21, 3, 36, NULL, NULL),
(22, 1, 37, NULL, NULL),
(23, 2, 38, NULL, NULL),
(24, 4, 39, NULL, NULL),
(25, 4, 40, NULL, NULL),
(26, 2, 41, NULL, NULL);

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

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

CREATE TABLE `services` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(191) 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
(1, 'Desconto em Lubrificantes Total', 'Desconto na aquisição de Lubrificantes em todas bombas Total\nCom acesso a sorteio anual', 1, 2, 5, 2, 3, '2020-11-30 09:52:00', '2020-12-03 13:35:43'),
(2, 'Desconto nos productos Adidas', 'Desconto nos productos Adidas em 50% em todas Lojas', 50, 25, 25, 1, 3, '2020-11-30 09:52:57', '2020-11-30 09:52:57'),
(3, 'Desconto de Combustivel Total', 'Desconto nos combustiveis', 2, 2, 5, 2, 1, '2020-12-03 11:31:55', '2020-12-04 06:42:20'),
(4, 'Bonus na compra de combustível', 'Bonus na compra de combustível descrição', 1, 3, 2, 3, 3, '2020-12-04 11:27:12', '2020-12-04 11:27:12');

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

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

CREATE TABLE `service_clubs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `destription` varchar(191) 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, 'Promocao da Marca Adidas no Clube', 2, 2, 1, '2020-11-30 09:54:29', '2020-12-04 06:44:04'),
(2, 'Desconto nos lubrificantes', 3, 1, 1, '2020-11-30 09:56:22', '2020-12-03 13:36:28'),
(3, 'Desconto de Combustivel Shell', 3, 3, 1, '2020-12-03 11:33:43', '2020-12-03 11:33:43'),
(4, 'descrição da parceria sazol  maxaquene', 4, 4, 1, '2020-12-04 11:39:08', '2020-12-04 11:39:08');

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

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

CREATE TABLE `statuses` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) 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(191) 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;

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

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

CREATE TABLE `tamanhos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `size` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `cody` varchar(191) 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`, `cody`, `created_at`, `updated_at`) VALUES
(1, 'XL', 'Extra Smal - extra pequeno', '01', NULL, NULL),
(2, 'S', 'Smal - pequeno', '02', NULL, NULL),
(3, 'M', 'Medium - Medio', '03', NULL, NULL),
(4, 'L', 'Large - Grande', '04', NULL, NULL),
(5, 'XL ', 'Extra Large - extra grande', '05', NULL, NULL),
(6, 'MXL', 'Tamanho Master Large', '06', '2020-11-30 11:25:41', '2020-11-30 11:26:00');

--
-- Indexes for dumped tables
--

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

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

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

--
-- 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 `orders`
--
ALTER TABLE `orders`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `origims`
--
ALTER TABLE `origims`
  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 `pedido_items`
--
ALTER TABLE `pedido_items`
  ADD PRIMARY KEY (`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 `clubs_id` (`clubs_id`);

--
-- Indexes for table `post_comments`
--
ALTER TABLE `post_comments`
  ADD PRIMARY KEY (`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`),
  ADD KEY `product_category_id` (`product_category_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 `auditoria_delete_membros`
--
ALTER TABLE `auditoria_delete_membros`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `auditoria_insert_membros`
--
ALTER TABLE `auditoria_insert_membros`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

--
-- 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=5;

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

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

--
-- 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 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 for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=127;

--
-- 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=3;

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

--
-- AUTO_INCREMENT for table `origims`
--
ALTER TABLE `origims`
  MODIFY `id` int(11) 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 for table `pedido_items`
--
ALTER TABLE `pedido_items`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41;

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

--
-- 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=11;

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

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

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

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

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

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

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

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

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

--
-- 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=27;

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

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

--
-- 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 for table `tamanhos`
--
ALTER TABLE `tamanhos`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- 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 `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;

