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

START TRANSACTION;



--
-- Database: `covcenter`
--

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

--
-- Table structure for table `employees`
--

CREATE TABLE `employees` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `employee_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,
  `test_center_id` bigint(20) UNSIGNED NOT NULL,
  `employee_mobile` int(11) DEFAULT NULL,
  `employee_avatar` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1,
  `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 `employees`
--

INSERT INTO `employees` (`id`, `employee_name`, `email`, `password`, `test_center_id`, `employee_mobile`, `employee_avatar`, `status`, `created_at`, `updated_at`) VALUES
(4, 'EMP 11', 'emp@testcenter1.com', '$2y$10$mJY8C3L0yDQy.D.NofU5pOgmhzEHEcGDOy7OJyQUzlZt8tJXJMhuO', 3, NULL, NULL, 1, NULL, '2021-01-25 03:29:07');

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

--
-- 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),
(16, '2020_11_05_044226_create_employees_table', 9),
(17, '2021_01_23_062122_add_password_to_employee_table', 10),
(18, '2021_01_23_071341_create_site_settings_table', 11),
(19, '2021_01_23_082254_create_test_centers_table', 12),
(20, '2021_01_25_062224_add_test_center_id_in_employees_table', 13);

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

--
-- 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
('info@schooladmin.com', '$2y$10$ARkMOWx3HPi0Li6HWU1M3.ncmtIzunDB7u8oOx0ZcwLC9sJO2fsem', '2020-11-04 23:04:42');

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

--
-- Table structure for table `site_settings`
--

CREATE TABLE `site_settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `site_key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `site_slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `site_value` 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 `site_settings`
--

INSERT INTO `site_settings` (`id`, `site_key`, `site_slug`, `site_value`, `created_at`, `updated_at`) VALUES
(1, 'api key', 'api_key', 'AI5454fds5f4ssv1dvvdvd777', NULL, '2021-01-23 02:45:36');

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

--
-- Table structure for table `test_centers`
--

CREATE TABLE `test_centers` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `test_center_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `test_center_logo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1,
  `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 `test_centers`
--

INSERT INTO `test_centers` (`id`, `test_center_name`, `test_center_logo`, `status`, `created_at`, `updated_at`) VALUES
(3, 'Test Center I', NULL, 1, '2021-01-25 01:03:43', '2021-01-25 01:03:43'),
(4, 'Test Center II', NULL, 1, '2021-01-25 01:03:56', '2021-01-25 01:03:56'),
(5, 'Test Center III', NULL, 1, '2021-01-25 01:06:34', '2021-01-25 01:06:34');

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

--
-- 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, 'Super Admin', 'info@covcenter.com', '2020-11-05 04:33:15', '$2y$10$mJY8C3L0yDQy.D.NofU5pOgmhzEHEcGDOy7OJyQUzlZt8tJXJMhuO', NULL, '2020-11-05 04:33:15', '2020-11-05 04:33:15');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `employees`
--
ALTER TABLE `employees`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `employees_employee_email_unique` (`email`),
  ADD UNIQUE KEY `employees_employee_mobile_unique` (`employee_mobile`),
  ADD KEY `employees_test_center_id_foreign` (`test_center_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 `site_settings`
--
ALTER TABLE `site_settings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `test_centers`
--
ALTER TABLE `test_centers`
  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 `employees`
--
ALTER TABLE `employees`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

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

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

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

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

--
-- Constraints for dumped tables
--

--
-- Constraints for table `employees`
--
ALTER TABLE `employees`
  ADD CONSTRAINT `employees_test_center_id_foreign` FOREIGN KEY (`test_center_id`) REFERENCES `test_centers` (`id`) ON DELETE CASCADE;
COMMIT;

