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

START TRANSACTION;



--
-- Database: `rorapp`
--

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

--
-- Table structure for table `care_group`
--

CREATE TABLE `care_group` (
  `id` int(11) NOT NULL,
  `name` varchar(200) NOT NULL,
  `leader` varchar(200) NOT NULL,
  `leader_contact` varchar(200) NOT NULL,
  `church_id` varchar(150) DEFAULT NULL,
  `amount` int(11) NOT NULL,
  `created_on` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `care_group`
--

INSERT INTO `care_group` (`id`, `name`, `leader`, `leader_contact`, `church_id`, `amount`, `created_on`) VALUES
(1, 'Care Group 1', 'Pastor Peter', '0545303998', 'Loveworld Arena Accra', 0, '2022-05-01 19:04:24'),
(2, 'Care Group 1', 'Pastor Chidema', '020000000', 'Avenor Main', 0, '2022-05-01 19:05:26');

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

--
-- Table structure for table `cell`
--

CREATE TABLE `cell` (
  `id` int(11) NOT NULL,
  `name` varchar(200) NOT NULL,
  `leader` varchar(200) NOT NULL,
  `leader_contact` varchar(200) NOT NULL,
  `church_id` varchar(150) NOT NULL,
  `care_group_id` varchar(150) NOT NULL,
  `fellowship_id` varchar(150) NOT NULL,
  `senior_cell_id` varchar(150) NOT NULL,
  `amount` int(11) NOT NULL,
  `created_on` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `cell`
--

INSERT INTO `cell` (`id`, `name`, `leader`, `leader_contact`, `church_id`, `care_group_id`, `fellowship_id`, `senior_cell_id`, `amount`, `created_on`) VALUES
(1, 'Cell 1', 'Nana Kofi Ofori', '0556804433', 'Loveworld Arena Accra', 'Care Group 1', 'Magnificent', 'Harvesters', 0, '2022-05-01 19:12:03'),
(2, 'Cell 2', 'Emma', '020000011', 'Avenor Main', 'Care Group 1', 'Excel', 'Excel 1', 0, '2022-05-01 19:13:01');

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

--
-- Table structure for table `church`
--

CREATE TABLE `church` (
  `id` int(11) NOT NULL,
  `church_name` varchar(200) NOT NULL,
  `location` varchar(200) NOT NULL,
  `email` varchar(150) NOT NULL,
  `phone` varchar(150) NOT NULL,
  `amount` int(11) NOT NULL,
  `created_on` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `church`
--

INSERT INTO `church` (`id`, `church_name`, `location`, `email`, `phone`, `amount`, `created_on`) VALUES
(1, 'Loveworld Arena Accra', 'Nelson Mandela Enclave', 'laa@loveworld360.com', '024 472 2741', 0, '2022-05-01 18:57:47'),
(2, 'Avenor Main', 'Otoblohum Street', 'avenor@loveworld360.com', '030 225 4477', 0, '2022-05-01 19:01:43');

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

--
-- Table structure for table `currency`
--

CREATE TABLE `currency` (
  `id` int(11) NOT NULL,
  `cid` int(11) NOT NULL,
  `name` varchar(150) NOT NULL,
  `rate` varchar(150) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `currency`
--

INSERT INTO `currency` (`id`, `cid`, `name`, `rate`) VALUES
(1, 1, 'Cedis', '7.86'),
(2, 2, 'Dollars', '1'),
(3, 3, 'Pounds', '0.7986'),
(4, 4, 'Naira', '414.99');

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

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

CREATE TABLE `fellowship` (
  `id` int(11) NOT NULL,
  `name` varchar(200) NOT NULL,
  `leader` varchar(200) NOT NULL,
  `leader_contact` varchar(200) NOT NULL,
  `church_id` varchar(150) NOT NULL,
  `care_group_id` varchar(150) NOT NULL,
  `amount` int(11) NOT NULL,
  `created_on` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `fellowship`
--

INSERT INTO `fellowship` (`id`, `name`, `leader`, `leader_contact`, `church_id`, `care_group_id`, `amount`, `created_on`) VALUES
(1, 'Magnificent', 'Ursula Wellington', '0243418713', 'Loveworld Arena Accra', 'Care Group 1', 0, '2022-05-01 19:07:57'),
(2, 'Excel', 'Emmanuel', '020000001', 'Avenor Main', 'Care Group 1', 0, '2022-05-01 19:08:37');

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

--
-- Table structure for table `member`
--

CREATE TABLE `member` (
  `id` int(11) NOT NULL,
  `full_name` varchar(200) DEFAULT NULL,
  `email` varchar(150) DEFAULT NULL,
  `phone` varchar(150) DEFAULT NULL,
  `position` varchar(150) NOT NULL,
  `church_id` int(11) NOT NULL,
  `care_group_id` int(11) NOT NULL,
  `fellowship_id` int(11) NOT NULL,
  `senior_cell_id` int(11) NOT NULL,
  `cell_id` int(11) NOT NULL,
  `amount_id` int(11) NOT NULL,
  `user_id` int(150) DEFAULT NULL,
  `profile_pic` varchar(150) DEFAULT NULL,
  `date_join` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `created_on` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `member`
--

INSERT INTO `member` (`id`, `full_name`, `email`, `phone`, `position`, `church_id`, `care_group_id`, `fellowship_id`, `senior_cell_id`, `cell_id`, `amount_id`, `user_id`, `profile_pic`, `date_join`, `created_on`) VALUES
(1, 'Miranda Fiano', 'nanakofiofori@gmail.com', '0264323456', 'Member', 1, 2, 1, 1, 1, 0, NULL, 'uploads/files/aea5f085-2fb6-46af-bd4e-13b80ebd2c76.jpg', '2022-05-01 12:00:00', '2022-05-03 13:27:08'),
(2, 'Hilda Halm', 'hillda221@gmail.com', '0200000123', 'Member', 2, 1, 2, 2, 2, 0, NULL, 'uploads/files/368dc489-db95-46aa-960a-e3990c68cd87.png', '2022-05-01 12:00:00', '2022-05-01 19:20:11'),
(3, 'Daniel Mensah', 'employee@example.com', '0237564970', 'Cell Leader', 0, 0, 0, 0, 0, 0, NULL, NULL, '2022-06-07 04:17:16', '2022-06-07 04:17:16'),
(4, 'Daniel Mensah', 'employee@example.com', '0237564970', 'PCF Leader', 2, 1, 1, 1, 0, 0, NULL, NULL, '2022-06-07 04:22:40', '2022-06-07 04:22:40'),
(5, 'Daniel Mensah', 'employee@example.com', '0237564970', 'PCF Leader', 2, 1, 1, 1, 0, 0, NULL, NULL, '2022-06-07 04:22:41', '2022-06-07 04:22:41'),
(6, 'Daniel Mensah', 'employee@example.com', '0237564970', 'Deacon', 1, 1, 1, 1, 1, 0, NULL, NULL, '2022-06-07 04:25:02', '2022-06-07 04:25:02'),
(7, 'Daniel Mensah', 'employee@example.com', '0237564970', 'Deacon', 1, 1, 1, 1, 1, 0, NULL, NULL, '2022-06-07 04:25:17', '2022-06-07 04:25:17'),
(8, 'Daniel Mensah', 'employee@example.com', '0237564970', 'Deacon', 1, 1, 1, 1, 1, 0, NULL, NULL, '2022-06-07 04:27:10', '2022-06-07 04:27:10'),
(9, 'Daniel Mensah', 'employee@example.com', '0237564970', 'Deacon', 1, 1, 1, 1, 1, 0, NULL, NULL, '2022-06-07 04:50:25', '2022-06-07 04:50:25'),
(10, 'Daniel Mensah', 'employee@example.com', '0237564970', 'Deacon', 1, 1, 1, 1, 1, 0, NULL, NULL, '2022-06-07 05:01:07', '2022-06-07 05:01:07'),
(11, 'Daniel Mensah', 'employee@example.com', '0237564970', 'Governor', 1, 1, 1, 1, 2, 0, NULL, NULL, '2022-06-07 05:02:49', '2022-06-07 05:02:49'),
(15, 'Eunice Frimpong', 'nana.ofori@wiuc-ghana.edu.gh', '0508857714', 'Deaconess', 1, 1, 1, 1, 1, 0, NULL, NULL, '2022-06-09 07:50:46', '2022-06-09 07:50:46');

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

--
-- 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_100000_create_password_resets_table', 1),
(2, '2019_08_19_000000_create_failed_jobs_table', 1),
(3, '2020_10_15_000000_create_roles_permissions_tables', 2);

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

--
-- Table structure for table `model_has_permissions`
--

CREATE TABLE `model_has_permissions` (
  `permission_id` bigint(20) UNSIGNED NOT NULL,
  `model_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `model_has_roles`
--

CREATE TABLE `model_has_roles` (
  `role_id` bigint(20) UNSIGNED NOT NULL,
  `model_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `model_has_roles`
--

INSERT INTO `model_has_roles` (`role_id`, `model_type`, `model_id`) VALUES
(1, 'App\\Models\\User', 1);

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

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

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

INSERT INTO `permissions` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
(1, 'home/list', 'web', NULL, NULL),
(2, 'church/list', 'web', NULL, NULL),
(3, 'church/view', 'web', NULL, NULL),
(4, 'church/add', 'web', NULL, NULL),
(5, 'church/store', 'web', NULL, NULL),
(6, 'church/edit', 'web', NULL, NULL),
(7, 'church/delete', 'web', NULL, NULL),
(8, 'church/importdata', 'web', NULL, NULL),
(9, 'roles/list', 'web', NULL, NULL),
(10, 'roles/view', 'web', NULL, NULL),
(11, 'roles/add', 'web', NULL, NULL),
(12, 'roles/store', 'web', NULL, NULL),
(13, 'roles/edit', 'web', NULL, NULL),
(14, 'roles/delete', 'web', NULL, NULL),
(15, 'roles/importdata', 'web', NULL, NULL),
(16, 'fellowship/list', 'web', NULL, NULL),
(17, 'fellowship/view', 'web', NULL, NULL),
(18, 'fellowship/add', 'web', NULL, NULL),
(19, 'fellowship/store', 'web', NULL, NULL),
(20, 'fellowship/edit', 'web', NULL, NULL),
(21, 'fellowship/delete', 'web', NULL, NULL),
(22, 'fellowship/importdata', 'web', NULL, NULL),
(23, 'care_group/list', 'web', NULL, NULL),
(24, 'care_group/view', 'web', NULL, NULL),
(25, 'care_group/add', 'web', NULL, NULL),
(26, 'care_group/store', 'web', NULL, NULL),
(27, 'care_group/edit', 'web', NULL, NULL),
(28, 'care_group/delete', 'web', NULL, NULL),
(29, 'care_group/importdata', 'web', NULL, NULL),
(30, 'givings/importdata', 'web', NULL, NULL),
(31, 'user/list', 'web', NULL, NULL),
(32, 'user/view', 'web', NULL, NULL),
(33, 'user/add', 'web', NULL, NULL),
(34, 'user/store', 'web', NULL, NULL),
(35, 'user/edit', 'web', NULL, NULL),
(36, 'user/delete', 'web', NULL, NULL),
(37, 'user/importdata', 'web', NULL, NULL),
(38, 'senior_cell/list', 'web', NULL, NULL),
(39, 'senior_cell/view', 'web', NULL, NULL),
(40, 'senior_cell/add', 'web', NULL, NULL),
(41, 'senior_cell/store', 'web', NULL, NULL),
(42, 'senior_cell/edit', 'web', NULL, NULL),
(43, 'senior_cell/delete', 'web', NULL, NULL),
(44, 'senior_cell/importdata', 'web', NULL, NULL),
(45, 'member/list', 'web', NULL, NULL),
(46, 'member/view', 'web', NULL, NULL),
(47, 'member/add', 'web', NULL, NULL),
(48, 'member/store', 'web', NULL, NULL),
(49, 'member/edit', 'web', NULL, NULL),
(50, 'member/delete', 'web', NULL, NULL),
(51, 'member/importdata', 'web', NULL, NULL),
(52, 'cell/list', 'web', NULL, NULL),
(53, 'cell/view', 'web', NULL, NULL),
(54, 'cell/add', 'web', NULL, NULL),
(55, 'cell/store', 'web', NULL, NULL),
(56, 'cell/edit', 'web', NULL, NULL),
(57, 'cell/delete', 'web', NULL, NULL),
(58, 'cell/importdata', 'web', NULL, NULL),
(59, 'account/list', 'web', NULL, NULL),
(60, 'account/edit', 'web', NULL, NULL),
(61, 'giving/list', 'web', NULL, NULL),
(62, 'giving/view', 'web', NULL, NULL),
(63, 'giving/add', 'web', NULL, NULL),
(64, 'giving/store', 'web', NULL, NULL),
(65, 'giving/edit', 'web', NULL, NULL),
(66, 'giving/delete', 'web', NULL, NULL),
(67, 'giving/list', 'web', NULL, NULL),
(68, 'giving/view', 'web', NULL, NULL),
(69, 'giving/add', 'web', NULL, NULL),
(70, 'giving/store', 'web', NULL, NULL),
(71, 'giving/edit', 'web', NULL, NULL),
(72, 'giving/delete', 'web', NULL, NULL),
(73, 'permissions/list', 'web', NULL, NULL),
(74, 'permissions/view', 'web', NULL, NULL),
(75, 'permissions/add', 'web', NULL, NULL),
(76, 'permissions/store', 'web', NULL, NULL),
(77, 'permissions/edit', 'web', NULL, NULL),
(78, 'permissions/delete', 'web', NULL, NULL),
(79, 'model_has_permissions/list', 'web', NULL, NULL),
(80, 'model_has_permissions/view', 'web', NULL, NULL),
(81, 'model_has_permissions/add', 'web', NULL, NULL),
(82, 'model_has_permissions/store', 'web', NULL, NULL),
(83, 'model_has_permissions/edit', 'web', NULL, NULL),
(84, 'model_has_permissions/delete', 'web', NULL, NULL),
(85, 'model_has_roles/list', 'web', NULL, NULL),
(86, 'model_has_roles/view', 'web', NULL, NULL),
(87, 'model_has_roles/add', 'web', NULL, NULL),
(88, 'model_has_roles/store', 'web', NULL, NULL),
(89, 'model_has_roles/edit', 'web', NULL, NULL),
(90, 'model_has_roles/delete', 'web', NULL, NULL),
(91, 'role_has_permissions/list', 'web', NULL, NULL),
(92, 'role_has_permissions/view', 'web', NULL, NULL),
(93, 'role_has_permissions/add', 'web', NULL, NULL),
(94, 'role_has_permissions/store', 'web', NULL, NULL),
(95, 'role_has_permissions/edit', 'web', NULL, NULL),
(96, 'role_has_permissions/delete', 'web', NULL, NULL),
(97, 'church/list', 'web', NULL, NULL),
(98, 'church/view', 'web', NULL, NULL),
(99, 'church/add', 'web', NULL, NULL),
(100, 'church/store', 'web', NULL, NULL),
(101, 'church/edit', 'web', NULL, NULL),
(102, 'church/delete', 'web', NULL, NULL),
(103, 'giving/list', 'web', NULL, NULL),
(104, 'giving/view', 'web', NULL, NULL),
(105, 'giving/add', 'web', NULL, NULL),
(106, 'giving/store', 'web', NULL, NULL),
(107, 'giving/edit', 'web', NULL, NULL),
(108, 'giving/delete', 'web', NULL, NULL),
(109, 'member/awards', 'web', NULL, NULL),
(110, 'currency/list', 'web', NULL, NULL),
(111, 'currency/view', 'web', NULL, NULL),
(112, 'currency/add', 'web', NULL, NULL),
(113, 'currency/store', 'web', NULL, NULL),
(114, 'currency/edit', 'web', NULL, NULL),
(115, 'currency/delete', 'web', NULL, NULL),
(116, 'member/appmember', 'web', NULL, NULL),
(117, 'giving/appgiven', 'web', NULL, NULL),
(118, 'church/appchurch', 'web', NULL, NULL),
(119, 'care_group/appcaregroup', 'web', NULL, NULL),
(120, 'fellowship/appfellowship', 'web', NULL, NULL),
(121, 'senior_cell/appseniorcell', 'web', NULL, NULL),
(122, 'cell/appcell', 'web', NULL, NULL),
(123, 'home/list', 'web', NULL, NULL),
(124, 'account/list', 'web', NULL, NULL),
(125, 'account/edit', 'web', NULL, NULL),
(126, 'member/awards', 'web', NULL, NULL),
(127, 'member/appmember', 'web', NULL, NULL),
(128, 'giving/appgiven', 'web', NULL, NULL),
(129, 'church/appchurch', 'web', NULL, NULL),
(130, 'care_group/appcaregroup', 'web', NULL, NULL),
(131, 'fellowship/appfellowship', 'web', NULL, NULL),
(132, 'senior_cell/appseniorcell', 'web', NULL, NULL),
(133, 'cell/appcell', 'web', NULL, NULL),
(134, 'member/list', 'web', NULL, NULL),
(135, 'member/view', 'web', NULL, NULL),
(136, 'member/edit', 'web', NULL, NULL),
(137, 'giving/list', 'web', NULL, NULL),
(138, 'giving/view', 'web', NULL, NULL),
(139, 'giving/add', 'web', NULL, NULL),
(140, 'giving/store', 'web', NULL, NULL);

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

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

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

INSERT INTO `roles` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
(1, 'administrator', 'web', '2022-05-29 14:43:11', '2022-05-29 14:43:11'),
(2, 'user', 'web', '2022-05-29 14:43:19', '2022-05-29 14:43:19'),
(3, 'member', 'web', '2022-05-29 14:43:22', '2022-05-29 14:43:22');

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

--
-- Table structure for table `role_has_permissions`
--

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

INSERT INTO `role_has_permissions` (`permission_id`, `role_id`) VALUES
(1, 1),
(1, 2),
(2, 1),
(3, 1),
(4, 1),
(5, 1),
(6, 1),
(7, 1),
(8, 1),
(9, 1),
(10, 1),
(11, 1),
(12, 1),
(13, 1),
(14, 1),
(15, 1),
(16, 1),
(17, 1),
(18, 1),
(19, 1),
(20, 1),
(21, 1),
(22, 1),
(23, 1),
(24, 1),
(25, 1),
(26, 1),
(27, 1),
(28, 1),
(29, 1),
(30, 1),
(31, 1),
(32, 1),
(33, 1),
(34, 1),
(35, 1),
(36, 1),
(37, 1),
(38, 1),
(39, 1),
(40, 1),
(41, 1),
(42, 1),
(43, 1),
(44, 1),
(45, 1),
(45, 3),
(46, 1),
(46, 3),
(47, 1),
(48, 1),
(49, 1),
(49, 3),
(50, 1),
(51, 1),
(52, 1),
(53, 1),
(54, 1),
(55, 1),
(56, 1),
(57, 1),
(58, 1),
(59, 1),
(59, 2),
(60, 1),
(60, 2),
(61, 1),
(61, 3),
(62, 1),
(62, 3),
(63, 1),
(63, 3),
(64, 1),
(64, 3),
(65, 1),
(66, 1),
(73, 1),
(74, 1),
(75, 1),
(76, 1),
(77, 1),
(78, 1),
(79, 1),
(80, 1),
(81, 1),
(82, 1),
(83, 1),
(84, 1),
(85, 1),
(86, 1),
(87, 1),
(88, 1),
(89, 1),
(90, 1),
(91, 1),
(92, 1),
(93, 1),
(94, 1),
(95, 1),
(96, 1),
(109, 1),
(109, 2),
(110, 1),
(111, 1),
(112, 1),
(113, 1),
(114, 1),
(115, 1),
(116, 1),
(116, 2),
(117, 1),
(117, 2),
(118, 1),
(118, 2),
(119, 1),
(119, 2),
(120, 1),
(120, 2),
(121, 1),
(121, 2),
(122, 1),
(122, 2);

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

--
-- Table structure for table `senior_cell`
--

CREATE TABLE `senior_cell` (
  `id` int(11) NOT NULL,
  `name` varchar(200) NOT NULL,
  `leader` varchar(200) NOT NULL,
  `leader_contact` varchar(200) NOT NULL,
  `church_id` varchar(150) DEFAULT NULL,
  `care_group_id` varchar(150) DEFAULT NULL,
  `fellowship_id` varchar(150) NOT NULL,
  `amount` int(11) NOT NULL,
  `created_on` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `senior_cell`
--

INSERT INTO `senior_cell` (`id`, `name`, `leader`, `leader_contact`, `church_id`, `care_group_id`, `fellowship_id`, `amount`, `created_on`) VALUES
(1, 'Harvesters', 'Mishlyne Fiano', '0503885901', 'Loveworld Arena Accra', 'Care Group 1', 'Magnificent', 0, '2022-05-01 19:09:54'),
(2, 'Excel 1', 'Joshua', '020000002', 'Avenor Main', 'Care Group 1', 'Excel', 0, '2022-05-01 19:10:37');

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

--
-- Table structure for table `target`
--

CREATE TABLE `target` (
  `id` int(11) NOT NULL,
  `position` varchar(200) NOT NULL,
  `target` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `target`
--

INSERT INTO `target` (`id`, `position`, `target`) VALUES
(1, 'Pastor', '50000'),
(2, 'Coordinator', '40000'),
(3, 'Deacon', '100000'),
(4, 'Deaconess', '100000'),
(5, 'PCF Leader', '15000'),
(6, 'Senior Cell Leader', '10000'),
(7, 'Cell Leader', '10000'),
(8, 'Bible Class Teacher', '5000'),
(9, 'Staff', '8000'),
(10, 'Member', '3000');

--
-- Indexes for dumped tables
--

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

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

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

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

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

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

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

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

--
-- Indexes for table `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
  ADD PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
  ADD KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`);

--
-- Indexes for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
  ADD PRIMARY KEY (`role_id`,`model_id`,`model_type`),
  ADD KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`);

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

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Constraints for dumped tables
--

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

--
-- Constraints for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
  ADD CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
  ADD CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
COMMIT;

