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

CREATE TABLE `giving` (
  `id` int(11) NOT NULL,
  `member_id` varchar(150) NOT NULL,
  `fullname` varchar(200) 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,
  `datetime` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `mode_of_giving` varchar(150) NOT NULL,
  `transaction_no` varchar(150) DEFAULT NULL,
  `institution` varchar(150) NOT NULL,
  `amount` int(11) NOT NULL,
  `token` varchar(150) DEFAULT NULL,
  `status` decimal(8,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `giving`
--

INSERT INTO `giving` (`id`, `member_id`, `fullname`, `church_id`, `care_group_id`, `fellowship_id`, `senior_cell_id`, `cell_id`, `datetime`, `mode_of_giving`, `transaction_no`, `institution`, `amount`, `token`, `status`) VALUES
(1, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 12:51:17', 'Mobile Money', '12345678', '1', 990, 'Senior High School', '131.56'),
(2, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 12:52:07', 'VISA', '0000011223', '2', 100, 'A Nation', '100.00'),
(3, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 13:20:43', 'Kingspay', '2345234455', '4', 500, 'Senior High School', '1.20'),
(4, '0200000123', 'Hilda Halm', 2, 1, 2, 2, 2, '2022-05-03 13:22:10', 'In Church', '23445556666', '1', 1000, 'Street', '132.89'),
(5, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 14:04:19', 'In Church', '323456666', '1', 500, 'University', '66.45'),
(6, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 14:09:30', 'In Church', '323456666', '1', 500, 'University', '66.45'),
(7, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 14:16:57', 'In Church', '323456666', '1', 500, 'University', '66.45'),
(8, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 14:17:03', 'In Church', '323456666', '1', 500, 'University', '66.45'),
(9, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 14:17:48', 'In Church', '556767888', '1', 80, 'Senior High School', '10.63'),
(10, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 14:21:26', 'In Church', '556767888', '1', 80, 'Senior High School', '10.63'),
(11, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 14:22:07', 'In Church', '9898679888', '1', 900, 'University', '119.60'),
(12, '0200000123', 'Hilda Halm', 2, 1, 2, 2, 2, '2022-05-03 17:02:59', 'In Church', '234787654', '4', 450, 'Junior High School', '1.08'),
(13, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 17:12:18', 'In Church', '3234456774', '1', 300, 'Senior High School', '39.87'),
(14, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 17:14:21', 'In Church', '3234456774', '1', 300, 'Senior High School', '39.87'),
(15, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 17:14:54', 'In Church', '233456789', '1', 600, 'Senior High School', '79.73'),
(16, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 17:19:27', 'In Church', '2345566778', '1', 450, 'Senior High School', '59.80'),
(17, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 17:25:09', 'In Church', '2456666', '1', 230, 'Senior High School', '30.56'),
(18, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 17:28:54', 'In Church', '12334567', '1', 560, 'Senior High School', '74.42'),
(19, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 17:34:03', 'In Church', '23456788887', '1', 2000, 'Senior High School', '265.78'),
(20, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 17:35:32', 'In Church', '2243567776', '1', 3000, 'Senior High School', '398.67'),
(21, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 17:44:18', 'In Church', '0009877889011', '4', 5000, 'Senior High School', '12.05'),
(22, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 18:01:44', 'In Church', '122344556', '1', 3000, 'Junior High School', '398.67'),
(23, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 18:04:19', 'In Church', '123456776', '1', 4000, 'University', '531.56'),
(24, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 18:14:43', 'Mobile Money', '753345555', '1', 3000, 'University', '398.67'),
(25, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 19:09:54', 'In Church', '212334455', '1', 8000, 'University', '1063.12'),
(26, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 19:18:51', 'Mobile Money', '2345667778', '1', 4000, 'University', '531.56'),
(27, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 21:18:50', 'In Church', '776654567', '2', 500, 'Senior High School', '500.00'),
(28, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 22:28:35', 'In Church', '0000000', '1', 650, 'Senior High School', '86.38'),
(29, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 22:31:40', 'In Church', '234567776', '1', 980, 'Senior High School', '130.23'),
(30, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 22:44:17', 'In Church', '000987788907', '1', 6000, 'Senior High School', '797.34'),
(31, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 22:45:38', 'Mobile Money', '456787', '1', 400, 'Street', '53.16'),
(32, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 22:47:54', 'VISA', '34235466', '2', 500, 'Senior High School', '500.00'),
(33, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 22:53:11', 'In Church', '776789', '1', 600, 'Senior High School', '79.73'),
(34, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 22:59:32', 'Mobile Money', '34567897', '1', 678, 'Junior High School', '90.10'),
(35, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 23:03:12', 'In Church', '2345676789', '3', 3000, 'Junior High School', '3756.57'),
(36, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 23:21:59', 'In Church', '4567555778', '1', 9000, 'University', '1196.01'),
(37, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-03 23:27:58', 'In Church', '787777777', '1', 500, 'Senior High School', '66.45'),
(38, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-04 01:59:46', 'Mobile Money', '121234567876', '1', 800, 'University', '106.31'),
(39, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-04 02:11:26', 'Mobile Money', NULL, '1', 5000, NULL, '664.45'),
(40, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-04 07:09:09', 'In Church', NULL, '1', 800, NULL, '106.31'),
(41, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-04 07:11:37', 'In Church', NULL, '3', 400, NULL, '500.88'),
(42, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-05-04 07:26:13', 'In Church', NULL, '1', 600, NULL, '79.73'),
(43, '020000000', 'KwameFosu', 1, 1, 1, 1, 1, '2022-06-08 17:04:57', 'paystack', '2234455', '1', 300, 'high', '38.02'),
(44, '020000001', 'KwameFosu', 1, 1, 1, 1, 1, '2022-06-08 19:31:44', 'paystack', '2234455', '1', 300, 'high', '38.02'),
(45, '020000000', 'KwameFosu', 1, 1, 1, 1, 1, '2022-06-08 19:57:49', 'paystack', '2234455', '1', 300, 'high', '38.02'),
(46, '020000000', 'KwameFosu', 1, 1, 1, 1, 1, '2022-06-08 20:02:13', 'paystack', '2234455', '1', 300, 'high', '38.02'),
(47, '020000000', 'KwameFosu', 1, 1, 1, 1, 1, '2022-06-08 20:04:35', 'paystack', '2234455', '1', 300, 'high', '38.02'),
(48, '020000000', 'KwameFosu', 1, 1, 1, 1, 1, '2022-06-08 20:11:08', 'paystack', '2234455', '1', 300, 'high', '38.02'),
(49, '0264323456', 'KwameFosu', 1, 1, 1, 1, 1, '2022-06-08 20:12:41', 'paystack', '2234455', '1', 300, 'high', '38.02'),
(50, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-06-08 20:25:30', 'paystack', '802645974', '1', 0, 'undefined', '0.00'),
(51, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-06-08 20:28:56', 'paystack', '111111', '1', 0, 'undefined', '0.00'),
(52, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-06-08 20:30:02', 'paystack', '987526845', '1', 600, 'hhhh', '76.05'),
(53, '0264323456', 'Miranda Fiano', 1, 2, 1, 1, 1, '2022-06-08 22:17:41', 'paystack', '478186859', '1', 0, 'hhhh', '0.00'),
(54, '0508857714', 'Eunice Frimpong', 1, 1, 1, 1, 1, '2022-06-09 08:59:44', 'In App Given', '808663809', '1', 1000, '', '126.74'),
(55, '0508857714', 'Eunice Frimpong', 1, 1, 1, 1, 1, '2022-06-09 18:26:59', 'In App Given', '856450784', '1', 0, '', '0.00'),
(56, '0508857714', 'Eunice Frimpong', 1, 1, 1, 1, 1, '2022-06-09 18:27:46', 'In App Given', '144271352', '1', 0, '', '0.00'),
(57, '0508857714', 'Eunice Frimpong', 1, 1, 1, 1, 1, '2022-06-09 18:29:09', 'In App Given', '216369870', '1', 0, '', '0.00'),
(58, '0508857714', 'Eunice Frimpong', 1, 1, 1, 1, 1, '2022-06-09 18:29:45', 'In App Given', '906845374', '1', 1000, '', '126.74'),
(59, '0508857714', 'Eunice Frimpong', 1, 1, 1, 1, 1, '2022-06-09 18:33:22', 'In App Given', '114079946', '1', 2000, '', '253.49'),
(60, '0508857714', 'Eunice Frimpong', 1, 1, 1, 1, 1, '2022-06-09 18:34:29', 'In App Given', '131050172', '1', 3000, '', '380.23'),
(61, '0508857714', 'Eunice Frimpong', 1, 1, 1, 1, 1, '2022-06-09 18:35:24', 'In App Given', '969159121', '1', 24000, '', '3041.83'),
(62, '0508857714', 'Eunice Frimpong', 1, 1, 1, 1, 1, '2022-06-09 18:36:11', 'In App Given', '178780682', '1', 6000, '', '760.46'),
(63, '0508857714', 'Eunice Frimpong', 1, 1, 1, 1, 1, '2022-06-09 18:56:31', 'In Church', NULL, '1', 1000, NULL, '127.23'),
(64, '0508857714', 'Eunice Frimpong', 1, 1, 1, 1, 1, '2022-06-09 18:57:25', 'In Church', NULL, '1', 1000, 'Normal', '127.23'),
(65, '0508857714', 'Eunice Frimpong', 1, 1, 1, 1, 1, '2022-06-09 18:58:03', 'In Church', '764678', '1', 1000, 'Normal', '127.23'),
(66, '0508857714', 'Eunice Frimpong', 1, 1, 1, 1, 1, '2022-06-09 18:59:29', 'In Church', NULL, '1', 1000, NULL, '127.23'),
(67, '0508857714', 'Eunice Frimpong', 1, 1, 1, 1, 1, '2022-06-10 08:10:14', 'In App Given', '5064075', '1', 8000, '', '1013.94'),
(68, '0508857714', 'Eunice Frimpong', 1, 1, 1, 1, 1, '2022-06-11 19:27:15', 'In App Given', '620268666', '1', 700, '', '88.72'),
(69, '0508857714', 'Eunice Frimpong', 1, 1, 1, 1, 1, '2022-06-11 19:51:57', 'In App Given', '268047577', '1', 8000, '', '1013.94'),
(70, '0508857714', 'Eunice Frimpong', 1, 1, 1, 1, 1, '2022-06-11 20:03:42', 'In App Given', '78570823', '1', 4000, '', '506.97');

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

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

--
-- Dumping data for table `password_resets`
--

INSERT INTO `password_resets` (`email`, `token`, `created_at`) VALUES
('nanakofiofori@gmail.com', '$2y$10$0p6odzITqjacka/KReNYzexsSP/LIVVJJfAcsssD7I0zj/DX093pW', '2022-05-29 12:26:36');

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

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

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

--
-- Table structure for table `user`
--

CREATE TABLE `user` (
  `id` int(11) NOT NULL,
  `member_id` varchar(150) NOT NULL,
  `username` varchar(150) NOT NULL,
  `email` varchar(150) NOT NULL,
  `tel` varchar(150) NOT NULL,
  `password` varchar(150) NOT NULL,
  `role` varchar(150) NOT NULL,
  `otp_code` varchar(50) DEFAULT NULL,
  `otp_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `user`
--

INSERT INTO `user` (`id`, `member_id`, `username`, `email`, `tel`, `password`, `role`, `otp_code`, `otp_date`) VALUES
(1, '0556804433', 'nanaofori', 'nanakofiofori@gmail.com', '0556804433', '$2y$10$nM6bSVRYuDD7qY8tEY6yXenhh6trVTIfLzzE9mU3hn7Ihx.kEIP1e', '1', NULL, NULL),
(2, '0264323456', 'miranda', '', '', '$2y$10$/okaRWjSrYcLA00o6xrfpuJKlfwM60jNVl0gthPXF.ba8Sc2lHrgm', '2', NULL, NULL),
(3, '024465667', '', '', '', '$2y$10$P6j8h9vK5ggJPfroFDG3oeOrK1DHCzR86F7TfHpY6eR5miCUHxodC', '', NULL, NULL),
(4, '0508857714', '', 'nana.ofori@wiuc-ghana.edu.gh', '', '$2y$10$dQbnPlrxSGbAhr8Y8T3EHux4E8OIG/6wsBSCLxEka3rVa7g3j0sNO', '3', NULL, NULL);

--
-- 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 `giving`
--
ALTER TABLE `giving`
  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 `password_resets`
--
ALTER TABLE `password_resets`
  ADD KEY `password_resets_email_index` (`email`);

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

--
-- Indexes for table `user`
--
ALTER TABLE `user`
  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 `giving`
--
ALTER TABLE `giving`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=71;

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

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

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

