-- phpMyAdmin SQL Dump -- version 5.2.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 07, 2026 at 02:47 PM -- Server version: 10.4.32-MariaDB -- PHP Version: 8.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 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: `golf` -- -- -------------------------------------------------------- -- -- Table structure for table `bookings` -- CREATE TABLE `bookings` ( `id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED DEFAULT NULL, `clinic_id` bigint(20) UNSIGNED DEFAULT NULL, `consultant_id` bigint(20) UNSIGNED DEFAULT NULL, `category_id` bigint(20) UNSIGNED DEFAULT NULL, `patient_id` int(255) DEFAULT NULL, `sub_category_id` bigint(20) UNSIGNED DEFAULT NULL, `session_id` bigint(20) UNSIGNED DEFAULT NULL, `session_type_id` bigint(20) UNSIGNED DEFAULT NULL, `appointment_date` date DEFAULT NULL, `start_time` time NOT NULL, `end_time` time DEFAULT NULL, `duration_minutes` int(11) DEFAULT NULL, `amount` decimal(10,2) DEFAULT NULL, `booking_status` enum('pending','confirmed','completed','cancelled') DEFAULT 'pending', `created_by_role` enum('admin','user','clinic') DEFAULT NULL, `status` varchar(255) DEFAULT '''upcoming'' , ''completed'' , ''cancelled''', `problem` varchar(255) DEFAULT NULL, `completed_at` timestamp NULL DEFAULT NULL, `payment_status` varchar(255) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `bookings` -- INSERT INTO `bookings` (`id`, `user_id`, `clinic_id`, `consultant_id`, `category_id`, `patient_id`, `sub_category_id`, `session_id`, `session_type_id`, `appointment_date`, `start_time`, `end_time`, `duration_minutes`, `amount`, `booking_status`, `created_by_role`, `status`, `problem`, `completed_at`, `payment_status`, `created_at`, `updated_at`) VALUES (2, 16, 20, 8, NULL, 4, NULL, NULL, NULL, '2026-03-27', '17:00:00', '18:00:00', NULL, 0.00, 'cancelled', NULL, 'cancelled', 'asdadssadsad', NULL, NULL, '2026-03-25 03:22:07', '2026-03-25 04:36:36'), (3, 16, 20, 8, NULL, 4, NULL, NULL, NULL, '2026-03-27', '16:36:00', '19:39:00', NULL, 0.00, 'cancelled', NULL, 'completed', 'bbbb', NULL, NULL, '2026-03-25 03:27:28', '2026-03-25 04:08:01'), (4, 5, 20, 3, NULL, 4, NULL, NULL, NULL, '2026-03-26', '09:30:00', '12:50:00', 200, 300.00, 'pending', 'admin', 'cancelled', NULL, NULL, 'pending', '2026-03-25 04:27:52', '2026-03-25 04:54:35'), (5, 16, 20, 8, NULL, 4, NULL, NULL, NULL, '2026-03-26', '16:36:00', '19:39:00', NULL, 0.00, 'pending', NULL, 'completed', 'aaa', NULL, 'pending', '2026-03-25 04:44:43', '2026-03-25 04:54:30'), (8, 2, 20, 8, NULL, 4, NULL, NULL, NULL, '2026-03-27', '16:47:00', '17:50:00', 63, 100.00, 'pending', 'admin', 'upcoming', NULL, NULL, 'pending', '2026-03-27 03:47:41', '2026-04-01 05:24:59'), (9, 17, 1, 3, NULL, NULL, NULL, NULL, NULL, '2026-04-02', '09:00:00', '11:00:00', 120, 300.00, 'pending', 'admin', 'upcoming', NULL, NULL, 'pending', '2026-04-02 03:16:20', '2026-04-02 03:16:20'), (10, 21, 1, 3, NULL, NULL, NULL, NULL, NULL, '2026-04-02', '03:00:00', '06:00:00', 180, 300.00, 'pending', 'admin', 'completed', NULL, NULL, 'pending', '2026-04-02 03:19:00', '2026-04-02 03:19:00'), (11, 4, 1, 3, NULL, NULL, NULL, NULL, NULL, '2026-04-02', '02:00:00', '03:00:00', 60, 200.00, 'confirmed', 'admin', 'cancelled', NULL, NULL, 'pending', '2026-04-02 03:22:28', '2026-04-02 03:22:28'); -- -------------------------------------------------------- -- -- Table structure for table `cache` -- CREATE TABLE `cache` ( `key` varchar(255) NOT NULL, `value` mediumtext NOT NULL, `expiration` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `cache` -- INSERT INTO `cache` (`key`, `value`, `expiration`) VALUES ('healthtech-cache-spatie.permission.cache', 'a:3:{s:5:\"alias\";a:4:{s:1:\"a\";s:2:\"id\";s:1:\"b\";s:4:\"name\";s:1:\"c\";s:10:\"guard_name\";s:1:\"r\";s:5:\"roles\";}s:11:\"permissions\";a:16:{i:0;a:4:{s:1:\"a\";i:1;s:1:\"b\";s:11:\"clinic_view\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:1;a:4:{s:1:\"a\";i:2;s:1:\"b\";s:13:\"clinic_create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:2;a:4:{s:1:\"a\";i:3;s:1:\"b\";s:11:\"clinic_edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:3;a:4:{s:1:\"a\";i:4;s:1:\"b\";s:13:\"clinic_delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:4;a:4:{s:1:\"a\";i:5;s:1:\"b\";s:13:\"category_view\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:5;a:4:{s:1:\"a\";i:6;s:1:\"b\";s:15:\"category_create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:6;a:4:{s:1:\"a\";i:7;s:1:\"b\";s:13:\"category_edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:7;a:4:{s:1:\"a\";i:8;s:1:\"b\";s:15:\"category_delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:8;a:4:{s:1:\"a\";i:9;s:1:\"b\";s:16:\"subcategory_view\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:9;a:4:{s:1:\"a\";i:10;s:1:\"b\";s:18:\"subcategory_create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:10;a:4:{s:1:\"a\";i:11;s:1:\"b\";s:16:\"subcategory_edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:11;a:4:{s:1:\"a\";i:12;s:1:\"b\";s:18:\"subcategory_delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:12;a:4:{s:1:\"a\";i:13;s:1:\"b\";s:9:\"role_view\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:13;a:4:{s:1:\"a\";i:14;s:1:\"b\";s:15:\"permission_view\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:14;a:4:{s:1:\"a\";i:15;s:1:\"b\";s:9:\"user_view\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:15;a:4:{s:1:\"a\";i:16;s:1:\"b\";s:10:\"doctor_add\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}}s:5:\"roles\";a:1:{i:0;a:3:{s:1:\"a\";i:1;s:1:\"b\";s:11:\"super_admin\";s:1:\"c\";s:3:\"web\";}}}', 1774684679), ('laravel-cache-spatie.permission.cache', 'a:3:{s:5:\"alias\";a:4:{s:1:\"a\";s:2:\"id\";s:1:\"b\";s:4:\"name\";s:1:\"c\";s:10:\"guard_name\";s:1:\"r\";s:5:\"roles\";}s:11:\"permissions\";a:16:{i:0;a:4:{s:1:\"a\";i:1;s:1:\"b\";s:11:\"clinic_view\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:1;a:4:{s:1:\"a\";i:2;s:1:\"b\";s:13:\"clinic_create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:2;a:4:{s:1:\"a\";i:3;s:1:\"b\";s:11:\"clinic_edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:3;a:4:{s:1:\"a\";i:4;s:1:\"b\";s:13:\"clinic_delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:4;a:4:{s:1:\"a\";i:5;s:1:\"b\";s:13:\"category_view\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:5;a:4:{s:1:\"a\";i:6;s:1:\"b\";s:15:\"category_create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:6;a:4:{s:1:\"a\";i:7;s:1:\"b\";s:13:\"category_edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:7;a:4:{s:1:\"a\";i:8;s:1:\"b\";s:15:\"category_delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:8;a:4:{s:1:\"a\";i:9;s:1:\"b\";s:16:\"subcategory_view\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:9;a:4:{s:1:\"a\";i:10;s:1:\"b\";s:18:\"subcategory_create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:10;a:4:{s:1:\"a\";i:11;s:1:\"b\";s:16:\"subcategory_edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:11;a:4:{s:1:\"a\";i:12;s:1:\"b\";s:18:\"subcategory_delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:12;a:4:{s:1:\"a\";i:13;s:1:\"b\";s:9:\"role_view\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:13;a:4:{s:1:\"a\";i:14;s:1:\"b\";s:15:\"permission_view\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:14;a:4:{s:1:\"a\";i:15;s:1:\"b\";s:9:\"user_view\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}i:15;a:4:{s:1:\"a\";i:16;s:1:\"b\";s:10:\"doctor_add\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:1;}}}s:5:\"roles\";a:1:{i:0;a:3:{s:1:\"a\";i:1;s:1:\"b\";s:11:\"super_admin\";s:1:\"c\";s:3:\"web\";}}}', 1775627954); -- -------------------------------------------------------- -- -- Table structure for table `cache_locks` -- CREATE TABLE `cache_locks` ( `key` varchar(255) NOT NULL, `owner` varchar(255) NOT NULL, `expiration` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `categories` -- CREATE TABLE `categories` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `status` tinyint(1) 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 `categories` -- INSERT INTO `categories` (`id`, `name`, `status`, `created_at`, `updated_at`) VALUES (1, 'test', 1, '2026-03-23 06:58:18', '2026-03-23 06:58:43'), (2, 'im happy', 1, '2026-03-27 01:47:25', '2026-03-27 01:47:25'); -- -------------------------------------------------------- -- -- Table structure for table `clinics` -- CREATE TABLE `clinics` ( `id` bigint(20) UNSIGNED NOT NULL, `trade_name` varchar(255) NOT NULL, `consultant_id` varchar(255) DEFAULT NULL, `role` varchar(255) DEFAULT NULL, `gst_no` varchar(255) DEFAULT NULL, `license_no` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `mobile` varchar(255) NOT NULL, `website` varchar(255) DEFAULT NULL, `category_id` bigint(20) UNSIGNED DEFAULT NULL, `subcategory_id` bigint(20) UNSIGNED DEFAULT NULL, `photos` varchar(255) DEFAULT NULL, `specialization` varchar(255) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `clinics` -- INSERT INTO `clinics` (`id`, `trade_name`, `consultant_id`, `role`, `gst_no`, `license_no`, `email`, `mobile`, `website`, `category_id`, `subcategory_id`, `photos`, `specialization`, `created_at`, `updated_at`) VALUES (2, 'aaaaa', '8', NULL, NULL, NULL, 'aq@gmail.com', '1234567890', NULL, NULL, NULL, NULL, NULL, '2026-03-13 23:20:42', '2026-04-06 04:42:03'), (3, 'aaa', NULL, NULL, 'aaaa123456', '1111111111111', 'aaaaa@gmail.com', '1234567890', 'youtube', NULL, NULL, '[\"1773464312_7.jpg\",\"1773464768_1.jpg\"]', NULL, '2026-03-13 23:28:32', '2026-03-13 23:42:06'), (4, 'ffhgh', NULL, NULL, 'et5464', '54645767', 'aq@gmail.com', '1234567890', 'https://www.youtube.com/', 2, 2, '\"[\\\"1773467127_1.jpg\\\",\\\"1773467861_7.jpg\\\"]\"', NULL, '2026-03-14 00:15:27', '2026-03-18 06:33:30'), (7, 'akshar clinic', NULL, NULL, '3213213113', '21321321321321', 'amitpatel@gmail.com', '9879879877', 'www.gp.com', 4, 3, '\"[\\\"1773661747_7.jpg\\\"]\"', NULL, '2026-03-16 06:19:07', '2026-03-16 06:19:07'), (11, 'sddd', '10', NULL, '546656', '55545454', 'sss@gmail.com', '1234567890', NULL, NULL, NULL, NULL, NULL, '2026-03-24 04:55:17', '2026-03-24 04:55:44'), (12, 'aaa', '8', NULL, NULL, NULL, 'mmmm@gmail.com', '1234567890', NULL, NULL, NULL, NULL, 'ffggg', '2026-03-24 05:21:40', '2026-03-24 05:50:39'), (13, 'new', '8', NULL, NULL, NULL, 'new@gmail.com', '9409667003', NULL, NULL, NULL, NULL, 'aaaa', '2026-03-24 05:51:23', '2026-03-24 05:51:23'), (14, 'post', '8', NULL, NULL, NULL, 'post@gmail.com', '2010305082', NULL, NULL, NULL, NULL, 'ffe', '2026-03-24 23:20:06', '2026-03-24 23:20:06'); -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `uuid` varchar(255) NOT NULL, `connection` text NOT NULL, `queue` text NOT NULL, `payload` longtext NOT NULL, `exception` longtext NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `jobs` -- CREATE TABLE `jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `queue` varchar(255) NOT NULL, `payload` longtext NOT NULL, `attempts` tinyint(3) UNSIGNED NOT NULL, `reserved_at` int(10) UNSIGNED DEFAULT NULL, `available_at` int(10) UNSIGNED NOT NULL, `created_at` int(10) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `job_batches` -- CREATE TABLE `job_batches` ( `id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `total_jobs` int(11) NOT NULL, `pending_jobs` int(11) NOT NULL, `failed_jobs` int(11) NOT NULL, `failed_job_ids` longtext NOT NULL, `options` mediumtext DEFAULT NULL, `cancelled_at` int(11) DEFAULT NULL, `created_at` int(11) NOT NULL, `finished_at` int(11) DEFAULT NULL ) 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) 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, '0001_01_01_000000_create_users_table', 1), (2, '0001_01_01_000001_create_cache_table', 1), (3, '0001_01_01_000002_create_jobs_table', 1), (4, '2026_03_10_124941_create_permission_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) NOT NULL, `model_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -------------------------------------------------------- -- -- Table structure for table `model_has_roles` -- CREATE TABLE `model_has_roles` ( `role_id` bigint(20) UNSIGNED NOT NULL, `model_type` varchar(255) NOT NULL, `model_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_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), (1, 'App\\Models\\User', 22), (2, 'App\\Models\\User', 2), (2, 'App\\Models\\User', 16), (2, 'App\\Models\\User', 21), (3, 'App\\Models\\User', 3), (3, 'App\\Models\\User', 8), (4, 'App\\Models\\User', 4), (4, 'App\\Models\\User', 17), (4, 'App\\Models\\User', 20); -- -------------------------------------------------------- -- -- Table structure for table `password_reset_tokens` -- CREATE TABLE `password_reset_tokens` ( `email` varchar(255) NOT NULL, `token` varchar(255) NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `permissions` -- CREATE TABLE `permissions` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `guard_name` varchar(255) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `updated_at` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `permissions` -- INSERT INTO `permissions` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES (1, 'clinic_view', 'web', '2026-03-16 10:16:13', '2026-03-16'), (2, 'clinic_create', 'web', '2026-03-16 02:11:48', '2026-03-16'), (3, 'clinic_edit', 'web', '2026-03-16 02:11:57', '2026-03-16'), (4, 'clinic_delete', 'web', '2026-03-16 02:12:05', '2026-03-16'), (5, 'category_view', 'web', '2026-03-16 02:12:14', '2026-03-16'), (6, 'category_create', 'web', '2026-03-16 02:12:22', '2026-03-16'), (7, 'category_edit', 'web', '2026-03-16 02:12:30', '2026-03-16'), (8, 'category_delete', 'web', '2026-03-16 02:12:39', '2026-03-16'), (9, 'subcategory_view', 'web', '2026-03-16 02:12:47', '2026-03-16'), (10, 'subcategory_create', 'web', '2026-03-16 02:12:53', '2026-03-16'), (11, 'subcategory_edit', 'web', '2026-03-16 02:13:01', '2026-03-16'), (12, 'subcategory_delete', 'web', '2026-03-16 02:13:15', '2026-03-16'), (13, 'role_view', 'web', '2026-03-16 02:13:23', '2026-03-16'), (14, 'permission_view', 'web', '2026-03-16 02:13:30', '2026-03-16'), (15, 'user_view', 'web', '2026-03-16 02:13:39', '2026-03-16'), (16, 'doctor_add', 'web', '2026-03-27 02:26:39', '2026-03-27'); -- -------------------------------------------------------- -- -- Table structure for table `roles` -- CREATE TABLE `roles` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `guard_name` varchar(255) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `updated_at` date NOT 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, 'super_admin', 'web', '2026-03-16 10:03:50', '0000-00-00'), (2, 'coach', 'web', '2026-04-07 11:26:55', '0000-00-00'), (3, 'student', 'web', '2026-04-07 11:27:00', '0000-00-00'), (4, 'clinic', 'web', '2026-03-16 10:03:50', '0000-00-00'); -- -------------------------------------------------------- -- -- 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_general_ci; -- -- Dumping data for table `role_has_permissions` -- INSERT INTO `role_has_permissions` (`permission_id`, `role_id`) VALUES (1, 1), (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); -- -------------------------------------------------------- -- -- Table structure for table `sessions` -- CREATE TABLE `sessions` ( `id` varchar(255) NOT NULL, `user_id` bigint(20) UNSIGNED DEFAULT NULL, `ip_address` varchar(45) DEFAULT NULL, `user_agent` text DEFAULT NULL, `payload` longtext NOT NULL, `last_activity` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `sessions` -- INSERT INTO `sessions` (`id`, `user_id`, `ip_address`, `user_agent`, `payload`, `last_activity`) VALUES ('OSvENwad7UAexXKGyNIq97o5vEO5UgivtzYYhcUs', 1, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36', 'YTo0OntzOjY6Il90b2tlbiI7czo0MDoiQ21QallhMXZqNEtCQkZtMWhYOHhWaDZtZ09NbGZhTWJjTzh5ME9WZiI7czo5OiJfcHJldmlvdXMiO2E6Mjp7czozOiJ1cmwiO3M6NjM6Imh0dHA6Ly8xMjcuMC4wLjE6ODAwMC9zdXBlci1hZG1pbi9wZXJtaXNzaW9ucy9jbGluaWMtbWFuYWdlbWVudCI7czo1OiJyb3V0ZSI7czoyNzoic3VwZXJhZG1pbi5jbGluaWNtYW5hZ2VtZW50Ijt9czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319czo1MDoibG9naW5fd2ViXzU5YmEzNmFkZGMyYjJmOTQwMTU4MGYwMTRjN2Y1OGVhNGUzMDk4OWQiO2k6MTt9', 1775565782); -- -------------------------------------------------------- -- -- Table structure for table `session_types` -- CREATE TABLE `session_types` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `session_types` -- INSERT INTO `session_types` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Online', '2026-03-23 06:59:18', '2026-03-23 06:59:18'), (2, 'xyz', '2026-03-25 05:52:44', '2026-03-25 05:52:44'); -- -------------------------------------------------------- -- -- Table structure for table `sub_categories` -- CREATE TABLE `sub_categories` ( `id` bigint(20) UNSIGNED NOT NULL, `category_id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `status` tinyint(1) 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 `sub_categories` -- INSERT INTO `sub_categories` (`id`, `category_id`, `name`, `status`, `created_at`, `updated_at`) VALUES (1, 1, 'testing', 1, '2026-03-23 06:58:24', '2026-03-23 06:58:24'), (3, 1, 'data', 1, '2026-03-23 23:30:45', '2026-03-23 23:30:45'), (4, 2, 'im happy2', 1, '2026-03-27 01:47:31', '2026-03-27 01:47:40'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `first_name` varchar(100) DEFAULT NULL, `last_name` varchar(100) DEFAULT NULL, `username` varchar(100) DEFAULT NULL, `email` varchar(150) NOT NULL, `password` varchar(255) NOT NULL, `user_type` enum('super_admin','patient','doctor','clinic') NOT NULL, `role_id` bigint(20) UNSIGNED DEFAULT NULL, `profile_image` varchar(255) DEFAULT NULL, `document_image` varchar(255) DEFAULT NULL, `created_at` timestamp NULL DEFAULT current_timestamp(), `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `mobile_number` varchar(20) DEFAULT NULL, `gender` enum('male','female','other') DEFAULT NULL, `date_of_birth` date DEFAULT NULL, `blood_group` varchar(10) DEFAULT NULL, `city` varchar(100) DEFAULT NULL, `state` varchar(100) DEFAULT NULL, `country` varchar(100) DEFAULT NULL, `pincode` varchar(10) DEFAULT NULL, `allergies` text DEFAULT NULL, `current_medication` text DEFAULT NULL, `medical_history` text DEFAULT NULL, `status` enum('active','inactive') DEFAULT 'active', `trade_name` varchar(255) DEFAULT NULL, `gst_no` varchar(255) DEFAULT NULL, `license_no` varchar(255) DEFAULT NULL, `website` varchar(255) DEFAULT NULL, `category_id` varchar(255) DEFAULT NULL, `subcategory_id` varchar(255) DEFAULT NULL, `photos` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `first_name`, `last_name`, `username`, `email`, `password`, `user_type`, `role_id`, `profile_image`, `document_image`, `created_at`, `updated_at`, `mobile_number`, `gender`, `date_of_birth`, `blood_group`, `city`, `state`, `country`, `pincode`, `allergies`, `current_medication`, `medical_history`, `status`, `trade_name`, `gst_no`, `license_no`, `website`, `category_id`, `subcategory_id`, `photos`) VALUES (1, 'Super', 'Admin', 'superadmin', 'superadmin@gmail.com', '$2y$12$Tpk7KrA2YYLKTm3e3yPgLuXesbid7mjl31b3As0k8pWxkw7UlJk4S', 'super_admin', 1, 'superadmin.png', NULL, '2026-03-16 06:59:29', '2026-04-03 01:08:34', '9876543210', NULL, NULL, NULL, 'Ahmedabad', 'Gujarat', 'India', NULL, NULL, NULL, NULL, 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL), (2, 'Aayushi', 'Admin', 'admin', 'admin@gmail.com', '$2y$12$dYVKZmQ.rIHAfwBY8dZeAuD37twB6OoCZs/S1rXlo4pDwi5e11Di.', 'patient', 2, 'admin.jpg', NULL, '2026-03-16 06:59:29', '2026-03-25 11:34:13', '9876543211', NULL, NULL, NULL, 'Surat', 'Gujarat', 'India', NULL, NULL, NULL, NULL, 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL), (3, 'Dr.Ankit', 'Nariya', 'drraj', 'doctor@gmail.com', '$2y$12$MNqO8FvARg2j7IY0jh8C/OtaSbxGBtHfrJeY8wrask7znsQekMxne', 'doctor', 3, 'superadmin.png', 'doctor_certificate.jpg', '2026-03-16 06:59:29', '2026-04-02 06:51:55', '1234567890', NULL, NULL, NULL, 'fgg', 'gfg', 'gfg', NULL, NULL, NULL, NULL, 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL), (4, 'test', 'Clinic', 'cityclinic', 'clinic@gmail.com', '$2y$12$w3W18VVKr2z0Xeq2ANWDrOTClIcwQqK7laAB4HEAqSR91tAdi1Hgi', 'clinic', 4, 'clinic.jpg', 'clinic_license.jpg', '2026-03-16 06:59:29', '2026-03-16 10:20:48', '9876543213', NULL, NULL, NULL, 'Vadodara', 'Gujarat', 'India', NULL, NULL, NULL, NULL, 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL), (8, 'Dr.Aayushi', 'Nariya', NULL, 'ayushi@gmail.com', '$2y$12$r7pn5FEXqrTxcN14LhV9EukDUeKxFoT9YZlTHxTEZqfxuaDfSjQde', 'doctor', 3, 'superadmin - Copy.png', NULL, '2026-03-19 03:49:58', '2026-03-27 11:35:42', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL), (16, 'patient', 'patient', NULL, 'patient@gmail.com', '$2y$12$K/wFr3mQtLdCTGe9GA8.9uKKpVq3ZRBxvjwEXCG0HLO31CVMBCmcm', 'patient', 2, NULL, NULL, '2026-03-24 07:49:41', '2026-03-28 05:19:27', '9409667003', NULL, NULL, NULL, 'rajkot', NULL, NULL, NULL, NULL, NULL, NULL, 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL), (17, 'Corporate', 'Client', NULL, 'corporateclient@gmail.com', '$2y$12$7P08u1Yni4vjafFHiyook..D6/t5l3jYXiSKveHDdnA8ErXq8DAwK', 'clinic', 4, NULL, NULL, '2026-03-27 01:39:36', '2026-03-27 01:39:36', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL), (20, 'Pradip', 'Vala', NULL, 'p.vala29@gmail.com', '$2y$12$R23VvFnyUAOPKW1XkTzil.h1ez0yWVSGSACCz1204kRkWaS6YRBYq', 'clinic', 4, 'superadmin - Copy.png', NULL, '2026-03-27 04:44:33', '2026-03-27 12:21:00', '9173191731', NULL, NULL, NULL, 'Ahmedabad', 'Gujarat', 'India', NULL, NULL, NULL, NULL, 'active', 'Innoversion Technolab', NULL, NULL, NULL, NULL, NULL, NULL), (21, 'newpatient', 'newpatient', NULL, 'newpatient@gmail.com', '$2y$12$knf7BE3JQywoPP0kaUxaUeBAp90I9es22WG.0/dJA39UNJ1kkRy..', 'patient', 2, NULL, NULL, '2026-03-28 00:22:48', '2026-04-01 04:04:33', '1234567890', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL), (22, 'data testing', 'testing', NULL, 'data@gmail.com', '$2y$12$9/I2mFi.PEwAKYUZAmD4F.bB7BoNxUyB2Rs8C3wBNGlKGIhKOeicC', 'super_admin', 1, NULL, NULL, '2026-04-03 01:26:40', '2026-04-03 01:29:29', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL); -- -- Indexes for dumped tables -- -- -- Indexes for table `bookings` -- ALTER TABLE `bookings` ADD PRIMARY KEY (`id`); -- -- Indexes for table `cache` -- ALTER TABLE `cache` ADD PRIMARY KEY (`key`), ADD KEY `cache_expiration_index` (`expiration`); -- -- Indexes for table `cache_locks` -- ALTER TABLE `cache_locks` ADD PRIMARY KEY (`key`), ADD KEY `cache_locks_expiration_index` (`expiration`); -- -- Indexes for table `categories` -- ALTER TABLE `categories` ADD PRIMARY KEY (`id`); -- -- Indexes for table `clinics` -- ALTER TABLE `clinics` ADD PRIMARY KEY (`id`); -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`); -- -- Indexes for table `jobs` -- ALTER TABLE `jobs` ADD PRIMARY KEY (`id`), ADD KEY `jobs_queue_index` (`queue`); -- -- Indexes for table `job_batches` -- ALTER TABLE `job_batches` 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`); -- -- Indexes for table `model_has_roles` -- ALTER TABLE `model_has_roles` ADD PRIMARY KEY (`role_id`,`model_id`,`model_type`); -- -- Indexes for table `password_reset_tokens` -- ALTER TABLE `password_reset_tokens` ADD PRIMARY KEY (`email`); -- -- Indexes for table `permissions` -- ALTER TABLE `permissions` ADD PRIMARY KEY (`id`); -- -- Indexes for table `roles` -- ALTER TABLE `roles` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `roles_name_guard_name_unique` (`name`,`guard_name`); -- -- 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 `sessions` -- ALTER TABLE `sessions` ADD PRIMARY KEY (`id`); -- -- Indexes for table `session_types` -- ALTER TABLE `session_types` ADD PRIMARY KEY (`id`); -- -- Indexes for table `sub_categories` -- ALTER TABLE `sub_categories` ADD PRIMARY KEY (`id`), ADD KEY `category_id` (`category_id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `email` (`email`), ADD UNIQUE KEY `username` (`username`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `bookings` -- ALTER TABLE `bookings` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `categories` -- ALTER TABLE `categories` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `clinics` -- ALTER TABLE `clinics` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `jobs` -- ALTER TABLE `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=5; -- -- AUTO_INCREMENT for table `permissions` -- ALTER TABLE `permissions` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `roles` -- ALTER TABLE `roles` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `session_types` -- ALTER TABLE `session_types` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `sub_categories` -- ALTER TABLE `sub_categories` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; -- -- Constraints for dumped tables -- -- -- 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; -- -- Constraints for table `sub_categories` -- ALTER TABLE `sub_categories` ADD CONSTRAINT `sub_categories_ibfk_1` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE; 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 */;