text: -- phpMyAdmin SQL Dump
  -- version 4.9.0.1
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Sep 05, 2020 at 03:30 AM
  -- Server version: 10.3.15-MariaDB
  -- PHP Version: 7.2.19
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET AUTOCOMMIT = 0;
  START TRANSACTION;
  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: `test_audit`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `audits`
  --
  
  CREATE TABLE `audits` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `user_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `user_id` bigint(20) UNSIGNED DEFAULT NULL,
    `event` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `auditable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `auditable_id` bigint(20) UNSIGNED NOT NULL,
    `old_values` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `new_values` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `url` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `user_agent` varchar(1023) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `tags` 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 `audits`
  --
  
  INSERT INTO `audits` (`id`, `user_type`, `user_id`, `event`, `auditable_type`, `auditable_id`, `old_values`, `new_values`, `url`, `ip_address`, `user_agent`, `tags`, `created_at`, `updated_at`) VALUES
  (1, 'App\\User', 1, 'updated', 'App\\Student', 2, '{\"mobile_no\":1234567893}', '{\"mobile_no\":\"1234567894\"}', 'http://localhost/laravel_audit/public/students/edit_data', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', NULL, '2020-09-04 10:07:17', '2020-09-04 10:07:17'),
  (2, 'App\\User', 1, 'deleted', 'App\\Student', 5, '{\"id\":5,\"name\":\"sam\",\"email\":\"sam@gmail.com\",\"mobile_no\":1231231234,\"dob\":\"2020-10-03\",\"gender\":1,\"profile_pic\":null,\"user_id\":1}', '[]', 'http://localhost/laravel_audit/public/students/delete/5', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', NULL, '2020-09-04 18:57:25', '2020-09-04 18:57:25'),
  (3, 'App\\User', 1, 'deleted', 'App\\Student', 6, '{\"id\":6,\"name\":\"sam\",\"email\":\"sam@gmail.com\",\"mobile_no\":1234567894,\"dob\":\"2020-09-22\",\"gender\":1,\"profile_pic\":null,\"user_id\":1}', '[]', 'http://localhost/laravel_audit/public/students/delete/6', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', NULL, '2020-09-04 19:00:20', '2020-09-04 19:00:20'),
  (4, 'App\\User', 1, 'deleted', 'App\\Student', 7, '{\"id\":7,\"name\":\"saam1\",\"email\":\"samm@gmail.com\",\"mobile_no\":1234567891,\"dob\":\"2020-09-23\",\"gender\":1,\"profile_pic\":null,\"user_id\":1}', '[]', 'http://localhost/laravel_audit/public/students/delete/7', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', NULL, '2020-09-04 19:14:08', '2020-09-04 19:14:08'),
  (5, 'App\\User', 1, 'created', 'App\\Student', 8, '[]', '{\"name\":\"MTest\",\"email\":\"mohan@gmail.com\",\"mobile_no\":\"1231231234\",\"dob\":\"2020-10-07\",\"gender\":\"1\",\"user_id\":1,\"id\":8}', 'http://localhost/laravel_audit/public/students/save_data', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', NULL, '2020-09-04 19:24:27', '2020-09-04 19:24:27'),
  (6, 'App\\User', 1, 'updated', 'App\\Student', 8, '{\"gender\":1}', '{\"gender\":\"2\"}', 'http://localhost/laravel_audit/public/students/edit_data', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', NULL, '2020-09-04 19:32:18', '2020-09-04 19:32:18'),
  (7, 'App\\User', 1, 'created', 'App\\Student', 9, '[]', '{\"name\":\"awfaf\",\"email\":\"fm@gmail.com\",\"mobile_no\":\"1231231234\",\"dob\":\"2020-09-09\",\"gender\":\"1\",\"user_id\":1,\"id\":9}', 'http://localhost/laravel_audit/public/students/save_data', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36', NULL, '2020-09-04 19:37:04', '2020-09-04 19:37:04');
  
  -- --------------------------------------------------------
  
  --
  -- 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 `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, '2019_08_19_000000_create_failed_jobs_table', 1),
  (5, '2020_09_03_141547_create_audits_table', 2);
  
  -- --------------------------------------------------------
  
  --
  -- 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 `students`
  --
  
  CREATE TABLE `students` (
    `id` int(11) NOT NULL,
    `name` varchar(200) NOT NULL,
    `email` varchar(200) NOT NULL,
    `mobile_no` int(11) NOT NULL,
    `dob` date NOT NULL,
    `gender` tinyint(1) NOT NULL COMMENT '1-male, 2-female',
    `profile_pic` varchar(100) DEFAULT NULL,
    `user_id` int(11) NOT NULL,
    `created_at` datetime DEFAULT NULL,
    `updated_at` datetime DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `students`
  --
  
  INSERT INTO `students` (`id`, `name`, `email`, `mobile_no`, `dob`, `gender`, `profile_pic`, `user_id`, `created_at`, `updated_at`) VALUES
  (2, 'sample', 'tes@gmail.com', 1234567894, '2020-09-23', 1, '2.jpg', 1, '2020-09-04 13:23:26', '2020-09-04 15:37:16'),
  (8, 'MTest', 'mohan@gmail.com', 1231231234, '2020-10-07', 2, NULL, 1, '2020-09-05 00:54:27', '2020-09-05 01:02:18'),
  (9, 'awfaf', 'fm@gmail.com', 1231231234, '2020-09-09', 1, '9.jpg', 1, '2020-09-05 01:07:04', '2020-09-05 01:07:04');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE `users` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `name` 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,
    `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`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
  (1, 'test', 'test@gmail.com', NULL, '$2y$10$hBDtCKtlYo..ldPLjYn/FeH2OxJawGe.4D2g.MbvP.fbR/kMkJVCC', NULL, '2020-09-03 08:50:44', '2020-09-03 08:50:44');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `audits`
  --
  ALTER TABLE `audits`
    ADD PRIMARY KEY (`id`),
    ADD KEY `audits_auditable_type_auditable_id_index` (`auditable_type`,`auditable_id`),
    ADD KEY `audits_user_id_user_type_index` (`user_id`,`user_type`);
  
  --
  -- Indexes for table `failed_jobs`
  --
  ALTER TABLE `failed_jobs`
    ADD PRIMARY KEY (`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`);
  
  --
  -- Indexes for table `students`
  --
  ALTER TABLE `students`
    ADD PRIMARY KEY (`id`);
  
  --
  -- 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 `audits`
  --
  ALTER TABLE `audits`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
  
  --
  -- AUTO_INCREMENT for table `failed_jobs`
  --
  ALTER TABLE `failed_jobs`
    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=6;
  
  --
  -- AUTO_INCREMENT for table `students`
  --
  ALTER TABLE `students`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  COMMIT;
  
  /*!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 */;
  