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

START TRANSACTION;



--
-- Database: `permissoes`
--

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

--
-- Table structure for table `aplication_savings`
--

CREATE TABLE `aplication_savings` (
  `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;

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

--
-- Table structure for table `coins`
--

CREATE TABLE `coins` (
  `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;

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

--
-- Table structure for table `countries`
--

CREATE TABLE `countries` (
  `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 `countries`
--

INSERT INTO `countries` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'Mozambique', '2023-08-18 11:15:29', '2023-08-18 11:15:29');

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

--
-- Table structure for table `cycles`
--

CREATE TABLE `cycles` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `cycle_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `number_meetings` int(11) NOT NULL,
  `objective` int(11) NOT NULL,
  `meeting_frequencies_id` bigint(20) UNSIGNED NOT NULL,
  `week_days_id` bigint(20) UNSIGNED NOT NULL,
  `groups_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 `districts`
--

CREATE TABLE `districts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `provinces_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 `districts`
--

INSERT INTO `districts` (`id`, `name`, `provinces_id`, `created_at`, `updated_at`) VALUES
(1, 'Boane', 1, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(2, 'Magude', 1, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(3, 'Manhica', 1, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(4, 'Maputo Cidade', 1, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(5, 'Marracuene', 1, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(6, 'Matola', 1, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(7, 'Matutuine', 1, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(8, 'Muamba', 1, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(9, 'Namaacha', 1, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(10, 'Bilene Macia', 2, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(11, 'Chibuto', 2, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(12, 'Chicualacuala', 2, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(13, 'Chigubo', 2, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(14, 'Chokwe', 2, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(15, 'Guija', 2, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(16, 'Mabalane', 2, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(17, 'Manjacaze', 2, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(18, 'Massangena', 2, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(19, 'Massingir', 2, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(20, 'Xai-Xai', 2, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(21, 'Funhalouro', 3, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(22, 'Govuro', 3, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(23, 'Homoine', 3, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(24, 'Inhambane', 3, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(25, 'Inharime', 3, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(26, 'Inhassoro', 3, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(27, 'Jangamo', 3, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(28, 'Mabote', 3, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(29, 'Massinga', 3, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(30, 'Morrunbene', 3, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(31, 'Panda', 3, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(32, 'Vilanculos', 3, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(33, 'Zavala', 3, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(34, 'Barue', 4, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(35, 'Chimoio', 4, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(36, 'Gondola', 4, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(37, 'Guro', 4, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(38, 'Machaze', 4, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(39, 'Macossa', 4, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(40, 'Manica', 4, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(41, 'Mossurize', 4, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(42, 'Sussundenga', 4, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(43, 'Tambara', 4, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(44, 'Beira', 5, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(45, 'Buzi', 5, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(46, 'Caia', 5, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(47, 'Chemba', 5, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(48, 'Cheringoma', 5, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(49, 'Chibabava', 5, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(50, 'Dondo', 5, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(51, 'Gorongosa', 5, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(52, 'Machanga', 5, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(53, 'Maringue', 5, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(54, 'Marromeu', 5, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(55, 'Muanza', 5, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(56, 'Nhamatanda', 5, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(57, 'Angonia', 6, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(58, 'Cahora-Bassa', 6, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(59, 'Changara', 6, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(60, 'Chifunde', 6, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(61, 'Chiuta', 6, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(62, 'Macanga', 6, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(63, 'Magoe', 6, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(64, 'Maravia', 6, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(65, 'Moatize', 6, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(66, 'Mutarara', 6, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(67, 'Tete', 6, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(68, 'Tsangano', 6, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(69, 'Alto Molocue', 7, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(70, 'Chinde', 7, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(71, 'Gile', 7, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(72, 'Gurue', 7, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(73, 'Ile', 7, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(74, 'Inhassunge', 7, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(75, 'Lugela', 7, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(76, 'Maganja da Costa', 7, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(77, 'Milange', 7, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(78, 'Mocuba', 7, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(79, 'Mopeia', 7, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(80, 'Morrumbala', 7, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(81, 'Namacurra', 7, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(82, 'Namarroi', 7, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(83, 'Nicoadala', 7, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(84, 'Pebane', 7, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(85, 'Quelimane', 7, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(86, 'Angoche', 8, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(87, 'Erati', 8, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(88, 'Lalaua', 8, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(89, 'Malema', 8, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(90, 'Meconta', 8, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(91, 'Mecuburi', 8, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(92, 'Memba', 8, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(93, 'Mongincual', 8, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(94, 'Mogovolas', 8, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(95, 'Moma', 8, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(96, 'Monapo', 8, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(97, 'Mossuril', 8, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(98, 'Muecate', 8, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(99, 'Murrupula', 8, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(100, 'Nacala-a-Velha', 8, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(101, 'Nacaroa', 8, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(102, 'Nampula', 8, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(103, 'Ribaue', 8, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(104, 'Cuamba', 9, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(105, 'Lago', 9, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(106, 'Lichinga', 9, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(107, 'Majune', 9, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(108, 'Mandimba', 9, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(109, 'Marrupa', 9, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(110, 'Maua', 9, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(111, 'Mavago', 9, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(112, 'Mecanheias', 9, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(113, 'Mecula', 9, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(114, 'Metarica', 9, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(115, 'N\'gauma', 9, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(116, 'Nipepe', 9, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(117, 'Sanga', 9, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(118, 'Ancuabe', 10, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(119, 'Balama', 10, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(120, 'Chiure', 10, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(121, 'Ibo', 10, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(122, 'Macomia', 10, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(123, 'Mecufi', 10, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(124, 'Meluco', 10, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(125, 'Mocimboa da Praia', 10, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(126, 'Montepuez', 10, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(127, 'Mueda', 10, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(128, 'Muidumbe', 10, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(129, 'Namuno', 10, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(130, 'Nangade', 10, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(131, 'Palma', 10, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(132, 'Pemba-Metuge', 10, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(133, 'Quissanga', 10, '2023-08-18 11:15:29', '2023-08-18 11:15:29');

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

--
-- Table structure for table `education`
--

CREATE TABLE `education` (
  `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;

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

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

CREATE TABLE `failed_jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `uuid` varchar(255) COLLATE utf8mb4_unicode_ci 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 `funds`
--

CREATE TABLE `funds` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` double 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 `genders`
--

CREATE TABLE `genders` (
  `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;

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

--
-- Table structure for table `groups`
--

CREATE TABLE `groups` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `group_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `mobile_phone` int(11) NOT NULL,
  `creation_date` date NOT NULL,
  `home_address` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `latitude` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `longitude` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `community` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `pin` int(11) NOT NULL,
  `coins_id` bigint(20) UNSIGNED NOT NULL,
  `countries_id` bigint(20) UNSIGNED NOT NULL,
  `districts_id` bigint(20) UNSIGNED NOT NULL,
  `provinces_id` bigint(20) UNSIGNED NOT NULL,
  `projects_id` bigint(20) UNSIGNED DEFAULT NULL,
  `organizations_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;

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

--
-- Table structure for table `marital_statuses`
--

CREATE TABLE `marital_statuses` (
  `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;

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

--
-- Table structure for table `meetings`
--

CREATE TABLE `meetings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `cycle_number` int(11) NOT NULL,
  `meeting_number_cycle` int(11) NOT NULL,
  `start_date` date NOT NULL,
  `start_hour` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `closing_time` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `social_fund_opening_balance` int(11) NOT NULL,
  `opening_balance_other_funds` int(11) NOT NULL,
  `new_savings` int(11) NOT NULL,
  `refund_credits` int(11) NOT NULL,
  `new_fines` int(11) NOT NULL,
  `new_contributions` int(11) NOT NULL,
  `meeting_notes` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `estimated_distribution` int(11) NOT NULL,
  `status` tinyint(1) NOT NULL,
  `funds_id` bigint(20) UNSIGNED NOT NULL,
  `cycles_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 `meeting_frequencies`
--

CREATE TABLE `meeting_frequencies` (
  `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;

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

--
-- Table structure for table `members`
--

CREATE TABLE `members` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `member_number` int(11) NOT NULL,
  `name_surname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `mobile` int(11) NOT NULL,
  `pin` int(11) NOT NULL,
  `birthday` date NOT NULL,
  `household` int(11) NOT NULL,
  `id_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `NUIT` int(11) DEFAULT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `photo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `member_heir` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contact_heir` int(11) DEFAULT NULL,
  `authorization` tinyint(1) NOT NULL,
  `target_value` int(11) NOT NULL,
  `positions_id` bigint(20) UNSIGNED NOT NULL,
  `education_id` bigint(20) UNSIGNED NOT NULL,
  `genders_id` bigint(20) UNSIGNED NOT NULL,
  `groups_id` bigint(20) UNSIGNED NOT NULL,
  `marital_statuses_id` bigint(20) UNSIGNED NOT NULL,
  `aplication_savings_id` bigint(20) UNSIGNED NOT NULL,
  `users_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(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_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2016_06_01_000001_create_oauth_auth_codes_table', 1),
(4, '2016_06_01_000002_create_oauth_access_tokens_table', 1),
(5, '2016_06_01_000003_create_oauth_refresh_tokens_table', 1),
(6, '2016_06_01_000004_create_oauth_clients_table', 1),
(7, '2016_06_01_000005_create_oauth_personal_access_clients_table', 1),
(8, '2019_08_19_000000_create_failed_jobs_table', 1),
(9, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(10, '2022_10_19_131930_laratrust_setup_tables', 1),
(11, '2023_08_15_133442_create_organizations_table', 1),
(12, '2023_08_15_134606_create_projects_table', 1),
(13, '2023_08_17_211739_create_countries_table', 1),
(14, '2023_08_17_211958_create_penalts_table', 1),
(15, '2023_08_17_212228_create_funds_table', 1),
(16, '2023_08_17_212350_create_transaction_types_table', 1),
(17, '2023_08_17_212534_create_coins_table', 1),
(18, '2023_08_17_212652_create_positions_table', 1),
(19, '2023_08_17_212758_create_genders_table', 1),
(20, '2023_08_17_212852_create_education_table', 1),
(21, '2023_08_17_212949_create_marital_statuses_table', 1),
(22, '2023_08_17_213100_create_aplication_savings_table', 1),
(23, '2023_08_17_213158_create_week_days_table', 1),
(24, '2023_08_17_213358_create_meeting_frequencies_table', 1),
(25, '2023_08_17_213730_create_provinces_table', 1),
(26, '2023_08_17_214008_create_districts_table', 1),
(27, '2023_08_17_215828_create_transactions_table', 1),
(28, '2023_08_17_220448_create_regulation_funds_table', 1),
(29, '2023_08_17_220741_create_groups_table', 1),
(30, '2023_08_17_222519_create_cycles_table', 1),
(31, '2023_08_17_223019_create_regulations_table', 1),
(32, '2023_08_17_223133_create_meetings_table', 1),
(33, '2023_08_17_224421_create_members_table', 1),
(34, '2023_08_17_225228_create_presences_table', 1);

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

--
-- Table structure for table `oauth_access_tokens`
--

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

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

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

CREATE TABLE `oauth_clients` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `secret` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `provider` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `redirect` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `personal_access_client` tinyint(1) NOT NULL,
  `password_client` tinyint(1) NOT NULL,
  `revoked` tinyint(1) 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 `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;

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

--
-- Table structure for table `oauth_refresh_tokens`
--

CREATE TABLE `oauth_refresh_tokens` (
  `id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `access_token_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `revoked` tinyint(1) NOT NULL,
  `expires_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `organizations`
--

CREATE TABLE `organizations` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `address` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `acronym` 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;

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

--
-- Table structure for table `password_resets`
--

CREATE TABLE `password_resets` (
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `penalts`
--

CREATE TABLE `penalts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` 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;

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

--
-- Table structure for table `permissions`
--

CREATE TABLE `permissions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `display_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci 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 `permissions`
--

INSERT INTO `permissions` (`id`, `name`, `display_name`, `description`, `created_at`, `updated_at`) VALUES
(1, 'users-create', 'Create Users', 'Create Users', '2023-08-18 11:15:28', '2023-08-18 11:15:28'),
(2, 'users-read', 'Read Users', 'Read Users', '2023-08-18 11:15:28', '2023-08-18 11:15:28'),
(3, 'users-update', 'Update Users', 'Update Users', '2023-08-18 11:15:28', '2023-08-18 11:15:28'),
(4, 'users-delete', 'Delete Users', 'Delete Users', '2023-08-18 11:15:28', '2023-08-18 11:15:28'),
(5, 'payments-create', 'Create Payments', 'Create Payments', '2023-08-18 11:15:28', '2023-08-18 11:15:28'),
(6, 'payments-read', 'Read Payments', 'Read Payments', '2023-08-18 11:15:28', '2023-08-18 11:15:28'),
(7, 'payments-update', 'Update Payments', 'Update Payments', '2023-08-18 11:15:28', '2023-08-18 11:15:28'),
(8, 'payments-delete', 'Delete Payments', 'Delete Payments', '2023-08-18 11:15:28', '2023-08-18 11:15:28'),
(9, 'profile-read', 'Read Profile', 'Read Profile', '2023-08-18 11:15:28', '2023-08-18 11:15:28'),
(10, 'profile-update', 'Update Profile', 'Update Profile', '2023-08-18 11:15:28', '2023-08-18 11:15:28');

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

--
-- Table structure for table `permission_role`
--

CREATE TABLE `permission_role` (
  `permission_id` bigint(20) UNSIGNED NOT NULL,
  `role_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `permission_role`
--

INSERT INTO `permission_role` (`permission_id`, `role_id`) VALUES
(1, 1),
(1, 3),
(1, 4),
(2, 1),
(2, 3),
(2, 4),
(3, 1),
(3, 3),
(3, 4),
(4, 1),
(4, 3),
(4, 4),
(5, 1),
(5, 2),
(6, 1),
(6, 2),
(7, 1),
(7, 2),
(8, 1),
(8, 2),
(9, 1),
(9, 2),
(9, 3),
(9, 4),
(10, 1),
(10, 2),
(10, 3),
(10, 4);

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

--
-- Table structure for table `permission_user`
--

CREATE TABLE `permission_user` (
  `permission_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `user_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `personal_access_tokens`
--

CREATE TABLE `personal_access_tokens` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tokenable_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
  `abilities` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `last_used_at` timestamp NULL 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 `positions`
--

CREATE TABLE `positions` (
  `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;

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

--
-- Table structure for table `presences`
--

CREATE TABLE `presences` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `members_id` bigint(20) UNSIGNED NOT NULL,
  `meetings_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 `projects`
--

CREATE TABLE `projects` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `organizations_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 `provinces`
--

CREATE TABLE `provinces` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `countries_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 `provinces`
--

INSERT INTO `provinces` (`id`, `name`, `countries_id`, `created_at`, `updated_at`) VALUES
(1, 'Maputo', 1, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(2, 'Gaza', 1, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(3, 'Inhambane', 1, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(4, 'Manica', 1, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(5, 'Sofala', 1, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(6, 'Tete', 1, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(7, 'Zambezia', 1, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(8, 'Nampula', 1, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(9, 'Niassa', 1, '2023-08-18 11:15:29', '2023-08-18 11:15:29'),
(10, 'Cabo Delgado', 1, '2023-08-18 11:15:29', '2023-08-18 11:15:29');

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

--
-- Table structure for table `regulations`
--

CREATE TABLE `regulations` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `share_savings` tinyint(1) NOT NULL,
  `value_per_share` int(11) NOT NULL,
  `minimum_numbers_actions` int(11) DEFAULT NULL,
  `maximum_numbers_actions` int(11) DEFAULT NULL,
  `savings_for_money` tinyint(1) NOT NULL,
  `minimum_amount_meeting` int(11) DEFAULT NULL,
  `maximum_amount_meeting` int(11) DEFAULT NULL,
  `has_funds` tinyint(1) NOT NULL,
  `contribution_fixed_social_fund` int(11) DEFAULT NULL,
  `maximum_load_amount_index` int(11) NOT NULL,
  `interest_rate_applied_once` int(11) NOT NULL,
  `added_interest_amount` tinyint(1) NOT NULL,
  `discounted_interest_amount` tinyint(1) NOT NULL,
  `interest_rate_applied_mounthly` int(11) NOT NULL,
  `declining_mounthly_interest` tinyint(1) NOT NULL,
  `fixed_mounthly_interest` tinyint(1) NOT NULL,
  `member_registration_fee` int(11) NOT NULL,
  `late_fee` int(11) NOT NULL,
  `fine_for_disturbing_meeting` int(11) DEFAULT NULL,
  `penalty_for_disturbing_meeting` int(11) DEFAULT NULL,
  `penalty_failure_save` int(11) DEFAULT NULL,
  `fine_justified_absence` int(11) DEFAULT NULL,
  `fine_unexcused_absence` int(11) DEFAULT NULL,
  `name_fine_fee1` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `amount_fine_fee1` int(11) DEFAULT NULL,
  `name_fine_fee2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `amount_fine_fee2` int(11) DEFAULT NULL,
  `penalts_id` bigint(20) UNSIGNED NOT NULL,
  `cycles_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 `regulation_funds`
--

CREATE TABLE `regulation_funds` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `regulations_id` bigint(20) UNSIGNED NOT NULL,
  `funds_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 `roles`
--

CREATE TABLE `roles` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `display_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci 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 `roles`
--

INSERT INTO `roles` (`id`, `name`, `display_name`, `description`, `created_at`, `updated_at`) VALUES
(1, 'admin', 'Admin', 'Admin', '2023-08-18 11:15:28', '2023-08-18 11:15:28'),
(2, 'admin_user', 'Admin User', 'Admin User', '2023-08-18 11:15:28', '2023-08-18 11:15:28'),
(3, 'organization', 'Organization', 'Organization', '2023-08-18 11:15:28', '2023-08-18 11:15:28'),
(4, 'organization_user', 'Organization User', 'Organization User', '2023-08-18 11:15:28', '2023-08-18 11:15:28');

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

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

CREATE TABLE `role_user` (
  `role_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `user_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `role_user` (`role_id`, `user_id`, `user_type`) VALUES
(1, 1, 'AppModelsUser');

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

--
-- Table structure for table `transactions`
--

CREATE TABLE `transactions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `cycle_number` int(11) NOT NULL,
  `meeting_number` int(11) NOT NULL,
  `member_number` int(11) NOT NULL,
  `date` date NOT NULL,
  `hour` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` int(11) NOT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `has_funds` int(11) NOT NULL,
  `transaction_types_id` bigint(20) UNSIGNED NOT NULL,
  `funds_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 `transaction_types`
--

CREATE TABLE `transaction_types` (
  `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;

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

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `session_status` tinyint(1) NOT NULL DEFAULT 0,
  `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci 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 `users`
--

INSERT INTO `users` (`id`, `name`, `phone`, `email`, `email_verified_at`, `password`, `user_type`, `status`, `session_status`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'Admin', '846002000', 'admin@gmail.com', NULL, '$2y$10$MlQdJLYN26ZBvqO0.DbOuereT0PgIA0AzaEAMB4SOCCnmcIY9zwtC', 'admin', 1, 0, NULL, NULL, NULL);

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

--
-- Table structure for table `week_days`
--

CREATE TABLE `week_days` (
  `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;

--
-- Indexes for dumped tables
--

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

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

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

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

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

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

--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);

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

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

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

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

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

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

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

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

--
-- Indexes for table `oauth_access_tokens`
--
ALTER TABLE `oauth_access_tokens`
  ADD PRIMARY KEY (`id`),
  ADD KEY `oauth_access_tokens_user_id_index` (`user_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_clients`
--
ALTER TABLE `oauth_clients`
  ADD PRIMARY KEY (`id`),
  ADD KEY `oauth_clients_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 `oauth_refresh_tokens`
--
ALTER TABLE `oauth_refresh_tokens`
  ADD PRIMARY KEY (`id`),
  ADD KEY `oauth_refresh_tokens_access_token_id_index` (`access_token_id`);

--
-- Indexes for table `organizations`
--
ALTER TABLE `organizations`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `organizations_email_unique` (`email`);

--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
  ADD KEY `password_resets_email_index` (`email`);

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

--
-- Indexes for table `permissions`
--
ALTER TABLE `permissions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `permissions_name_unique` (`name`);

--
-- Indexes for table `permission_role`
--
ALTER TABLE `permission_role`
  ADD PRIMARY KEY (`permission_id`,`role_id`),
  ADD KEY `permission_role_role_id_foreign` (`role_id`);

--
-- Indexes for table `permission_user`
--
ALTER TABLE `permission_user`
  ADD PRIMARY KEY (`user_id`,`permission_id`,`user_type`),
  ADD KEY `permission_user_permission_id_foreign` (`permission_id`);

--
-- Indexes for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
  ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`);

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

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

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

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

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

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

--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `roles_name_unique` (`name`);

--
-- Indexes for table `role_user`
--
ALTER TABLE `role_user`
  ADD PRIMARY KEY (`user_id`,`role_id`,`user_type`),
  ADD KEY `role_user_role_id_foreign` (`role_id`);

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

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

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `users_email_unique` (`email`);

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

--
-- AUTO_INCREMENT for dumped tables
--

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `members`
--
ALTER TABLE `members`
  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=35;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Constraints for dumped tables
--

--
-- Constraints for table `permission_role`
--
ALTER TABLE `permission_role`
  ADD CONSTRAINT `permission_role_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `permission_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `permission_user`
--
ALTER TABLE `permission_user`
  ADD CONSTRAINT `permission_user_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `role_user`
--
ALTER TABLE `role_user`
  ADD CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
COMMIT;

