text: -- phpMyAdmin SQL Dump
  -- version 4.6.5.2
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Mar 10, 2017 at 02:55 PM
  -- Server version: 10.1.21-MariaDB
  -- PHP Version: 5.6.30
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET time_zone = "+00:00";
  
  
  /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  /*!40101 SET NAMES utf8mb4 */;
  
  --
  -- Database: `peer`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `accounts`
  --
  
  CREATE TABLE `accounts` (
    `id` int(10) UNSIGNED NOT NULL,
    `user_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `account_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `account_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `bank_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `account_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `help_match`
  --
  
  CREATE TABLE `help_match` (
    `help_id` int(11) NOT NULL,
    `sender_id` int(11) NOT NULL,
    `receiver_id` int(11) NOT NULL,
    `amount` int(11) NOT NULL,
    `proof` text,
    `receiver_ack` tinyint(1) DEFAULT NULL,
    `sender_ack` tinyint(1) DEFAULT NULL,
    `status` tinyint(1) NOT NULL DEFAULT '0',
    `complaint` tinyint(4) DEFAULT NULL,
    `closed_on` datetime DEFAULT NULL,
    `created_on` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `help_members`
  --
  
  CREATE TABLE `help_members` (
    `id` int(11) NOT NULL,
    `member_id` int(11) NOT NULL,
    `status` tinyint(1) NOT NULL COMMENT '1=ReadyToProvide, 2=ReadyToGethelp',
    `onProcess` tinyint(1) NOT NULL DEFAULT '0',
    `eligible_for` tinyint(1) DEFAULT NULL,
    `accept_get` tinyint(1) DEFAULT NULL,
    `accept_get_on` datetime DEFAULT NULL,
    `accept_provide` tinyint(1) DEFAULT NULL,
    `accept_provide_on` datetime DEFAULT NULL,
    `last_updated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `migrations`
  --
  
  CREATE TABLE `migrations` (
    `id` int(10) UNSIGNED NOT NULL,
    `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `batch` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `password_resets`
  --
  
  CREATE TABLE `password_resets` (
    `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `token` varchar(191) 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 `referrals`
  --
  
  CREATE TABLE `referrals` (
    `id` int(11) NOT NULL,
    `member_id` int(11) NOT NULL,
    `ref_id` int(11) NOT NULL,
    `status` tinyint(4) NOT NULL DEFAULT '0',
    `is_paid` tinyint(4) NOT NULL DEFAULT '0',
    `is_rejected` tinyint(4) NOT NULL DEFAULT '0'
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `testimonial`
  --
  
  CREATE TABLE `testimonial` (
    `tId` int(11) NOT NULL,
    `member_id` int(11) NOT NULL,
    `content` text NOT NULL,
    `help_id` int(11) NOT NULL,
    `isDeleted` tinyint(4) DEFAULT NULL,
    `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE `users` (
    `id` int(10) UNSIGNED NOT NULL,
    `fname` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `lname` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `phoneno` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
    `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `remail` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `role` tinyint(1) NOT NULL DEFAULT '0',
    `status` tinyint(4) NOT NULL DEFAULT '1',
    `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;
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `accounts`
  --
  ALTER TABLE `accounts`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `user_id` (`user_id`);
  
  --
  -- Indexes for table `help_match`
  --
  ALTER TABLE `help_match`
    ADD PRIMARY KEY (`help_id`);
  
  --
  -- Indexes for table `help_members`
  --
  ALTER TABLE `help_members`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `member_id` (`member_id`);
  
  --
  -- Indexes for table `migrations`
  --
  ALTER TABLE `migrations`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `password_resets`
  --
  ALTER TABLE `password_resets`
    ADD KEY `password_resets_email_index` (`email`),
    ADD KEY `password_resets_token_index` (`token`);
  
  --
  -- Indexes for table `referrals`
  --
  ALTER TABLE `referrals`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `testimonial`
  --
  ALTER TABLE `testimonial`
    ADD PRIMARY KEY (`tId`);
  
  --
  -- Indexes for table `users`
  --
  ALTER TABLE `users`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `users_email_unique` (`email`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `accounts`
  --
  ALTER TABLE `accounts`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
  --
  -- AUTO_INCREMENT for table `help_match`
  --
  ALTER TABLE `help_match`
    MODIFY `help_id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `help_members`
  --
  ALTER TABLE `help_members`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  --
  -- AUTO_INCREMENT for table `referrals`
  --
  ALTER TABLE `referrals`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  --
  -- AUTO_INCREMENT for table `testimonial`
  --
  ALTER TABLE `testimonial`
    MODIFY `tId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
  /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  