-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 8.0.30 - MySQL Community Server - GPL -- Server OS: Win64 -- HeidiSQL Version: 12.1.0.6537 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- Dumping database structure for task_rsbhak CREATE DATABASE IF NOT EXISTS `task_rsbhak` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `task_rsbhak`; -- Dumping structure for table task_rsbhak.asuransis CREATE TABLE IF NOT EXISTS `asuransis` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `uid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `is_delete` tinyint(1) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `asuransis_uid_unique` (`uid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Dumping data for table task_rsbhak.asuransis: ~9 rows (approximately) INSERT IGNORE INTO `asuransis` (`id`, `uid`, `name`, `is_delete`, `created_at`, `updated_at`) VALUES (1, 'KedISANwDmhQ4A', 'BPJS', 0, '2025-04-27 00:36:13', '2025-04-27 04:25:33'), (22, 'eVw2L9fkyP-ZXg', 'AIA', 0, '2025-04-27 04:31:13', '2025-04-27 04:31:13'), (23, '0uNEhkYLfPEv6g', 'test', 1, '2025-04-27 06:01:41', '2025-04-27 06:01:43'); -- Dumping structure for table task_rsbhak.failed_jobs CREATE TABLE IF NOT EXISTS `failed_jobs` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `uuid` varchar(255) COLLATE utf8mb4_unicode_ci 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, PRIMARY KEY (`id`), UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Dumping data for table task_rsbhak.failed_jobs: ~0 rows (approximately) -- Dumping structure for table task_rsbhak.migrations CREATE TABLE IF NOT EXISTS `migrations` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Dumping data for table task_rsbhak.migrations: ~0 rows (approximately) INSERT IGNORE INTO `migrations` (`id`, `migration`, `batch`) VALUES (2, '2014_10_12_100000_create_password_reset_tokens_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2019_12_14_000001_create_personal_access_tokens_table', 1), (5, '2014_10_12_000000_create_users_table', 2), (6, '2025_04_27_072551_create_asuransis_table', 3), (7, '2025_04_27_075631_create_room_services_table', 4), (8, '2025_04_27_085339_create_services_table', 5), (10, '2025_04_27_094307_create_patients_table', 6), (12, '2025_04_27_124513_create_registrasi_pasiens_table', 7), (15, '2025_04_27_142732_create_transaksis_table', 8); -- Dumping structure for table task_rsbhak.password_reset_tokens CREATE TABLE IF NOT EXISTS `password_reset_tokens` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Dumping data for table task_rsbhak.password_reset_tokens: ~0 rows (approximately) -- Dumping structure for table task_rsbhak.patients CREATE TABLE IF NOT EXISTS `patients` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `uid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `birth` date NOT NULL, `gender` enum('Laki-Laki','Perempuan') COLLATE utf8mb4_unicode_ci NOT NULL, `is_delete` tinyint(1) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `patients_uid_unique` (`uid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Dumping data for table task_rsbhak.patients: ~3 rows (approximately) INSERT IGNORE INTO `patients` (`id`, `uid`, `name`, `birth`, `gender`, `is_delete`, `created_at`, `updated_at`) VALUES (1, 'pHvvkA-0jYATHA', 'pasien 2', '1998-03-12', 'Perempuan', 0, '2025-04-27 03:41:17', '2025-04-27 06:05:07'), (2, 'b4vySdqXcTYmWw', 'Pasien 2', '2000-12-12', 'Laki-Laki', 1, '2025-04-27 03:41:33', '2025-04-27 03:44:44'), (3, 'Xi0_S5LCE1vsAg', 'Pasien 3', '2025-04-12', 'Perempuan', 1, '2025-04-27 03:41:47', '2025-04-27 03:44:41'), (4, 'UdspOTiN33l_ng', 'Tio', '1998-08-12', 'Laki-Laki', 0, '2025-04-27 05:42:55', '2025-04-27 05:42:55'), (5, 'Zs6volqlJ-VW4g', 'Pasien 3', '2000-02-12', 'Laki-Laki', 0, '2025-04-27 06:02:29', '2025-04-27 06:02:29'); -- Dumping structure for table task_rsbhak.personal_access_tokens CREATE TABLE IF NOT EXISTS `personal_access_tokens` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `tokenable_id` bigint unsigned NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, `abilities` text COLLATE utf8mb4_unicode_ci, `last_used_at` timestamp NULL DEFAULT NULL, `expires_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `personal_access_tokens_token_unique` (`token`), KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Dumping data for table task_rsbhak.personal_access_tokens: ~0 rows (approximately) -- Dumping structure for table task_rsbhak.registrasi_pasiens CREATE TABLE IF NOT EXISTS `registrasi_pasiens` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `uid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `pasien_uid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `asuransi_uid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `no_card_asuransi` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `pegawai_uid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `date_regist` datetime DEFAULT NULL, `ruang_pelayanan_uid` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `is_delete` tinyint(1) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `registrasi_pasiens_uid_unique` (`uid`), KEY `registrasi_pasiens_pasien_uid_foreign` (`pasien_uid`), KEY `registrasi_pasiens_asuransi_uid_foreign` (`asuransi_uid`), KEY `registrasi_pasiens_pegawai_uid_foreign` (`pegawai_uid`), KEY `registrasi_pasiens_ruang_pelayanan_uid_foreign` (`ruang_pelayanan_uid`), CONSTRAINT `registrasi_pasiens_asuransi_uid_foreign` FOREIGN KEY (`asuransi_uid`) REFERENCES `asuransis` (`uid`) ON DELETE CASCADE, CONSTRAINT `registrasi_pasiens_pasien_uid_foreign` FOREIGN KEY (`pasien_uid`) REFERENCES `patients` (`uid`) ON DELETE CASCADE, CONSTRAINT `registrasi_pasiens_pegawai_uid_foreign` FOREIGN KEY (`pegawai_uid`) REFERENCES `users` (`uid`) ON DELETE CASCADE, CONSTRAINT `registrasi_pasiens_ruang_pelayanan_uid_foreign` FOREIGN KEY (`ruang_pelayanan_uid`) REFERENCES `room_services` (`uid`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Dumping data for table task_rsbhak.registrasi_pasiens: ~0 rows (approximately) INSERT IGNORE INTO `registrasi_pasiens` (`id`, `uid`, `pasien_uid`, `asuransi_uid`, `no_card_asuransi`, `pegawai_uid`, `date_regist`, `ruang_pelayanan_uid`, `is_delete`, `created_at`, `updated_at`) VALUES (1, 'bqwXdVAbLYYlDA', 'pHvvkA-0jYATHA', 'KedISANwDmhQ4A', 'sadf', 'Da5sqbcopPFZCQ', NULL, 'T_pPy_MoCu_c8g', 0, '2025-04-27 06:56:13', '2025-04-27 07:26:53'), (2, 'ukI1-3XN2YOR2Q', 'Zs6volqlJ-VW4g', 'KedISANwDmhQ4A', '1234567', 'Da5sqbcopPFZCQ', NULL, 'J18nY_QqEwjY8w', 0, '2025-04-27 07:38:55', '2025-04-27 07:38:55'); -- Dumping structure for table task_rsbhak.room_services CREATE TABLE IF NOT EXISTS `room_services` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `uid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `is_delete` tinyint(1) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `room_services_uid_unique` (`uid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Dumping data for table task_rsbhak.room_services: ~9 rows (approximately) INSERT IGNORE INTO `room_services` (`id`, `uid`, `name`, `is_delete`, `created_at`, `updated_at`) VALUES (1, 'MJuDzk8QFrHNKA', 'test', 1, '2025-04-27 01:12:40', '2025-04-27 01:20:31'), (2, 'jqbeJUPnQmbWUQ', 'teadfsadf', 1, '2025-04-27 01:12:40', '2025-04-27 01:20:28'), (3, 'wRXtMmPlIb8s1g', 'asdfasdfasfdsa', 1, '2025-04-27 01:12:40', '2025-04-27 01:20:25'), (4, 'x5b4Qp24K-rnGQ', 'Ruangan Dokter Gigi', 0, '2025-04-27 01:13:37', '2025-04-27 01:19:06'), (5, 'EoFMagnFPrFlRA', 'asdfafdasd', 1, '2025-04-27 01:13:37', '2025-04-27 01:19:10'), (6, 'I3zKdpiI87Bt6A', 'adfasdf', 1, '2025-04-27 01:13:37', '2025-04-27 01:20:22'), (7, 'J18nY_QqEwjY8w', 'Ruangan Dokter Anak', 0, '2025-04-27 01:13:37', '2025-04-27 01:20:17'), (8, 'T_pPy_MoCu_c8g', 'Ruangan Radiologi', 0, '2025-04-27 01:13:50', '2025-04-27 01:19:55'), (9, 'Pajky6cguQnYJw', 'test', 1, '2025-04-27 01:20:44', '2025-04-27 01:20:49'), (10, 'IA4fljdqxJXxRg', 'Ruangan Dokter Umum', 0, '2025-04-27 04:25:50', '2025-04-27 04:25:50'), (11, '9D8gqB8XXdnrKQ', 'teasdfasfasf', 1, '2025-04-27 06:01:48', '2025-04-27 06:01:53'); -- Dumping structure for table task_rsbhak.services CREATE TABLE IF NOT EXISTS `services` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `uid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `tarif` bigint unsigned NOT NULL, `is_delete` tinyint(1) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `services_uid_unique` (`uid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Dumping data for table task_rsbhak.services: ~5 rows (approximately) INSERT IGNORE INTO `services` (`id`, `uid`, `name`, `tarif`, `is_delete`, `created_at`, `updated_at`) VALUES (1, 'G3HmhGeag4JwFA', 'data 1', 20000, 1, '2025-04-27 02:30:58', '2025-04-27 04:26:48'), (2, '8Jk-P910QSEZvw', 'Surat Sehat', 20000, 0, '2025-04-27 02:31:18', '2025-04-27 02:40:28'), (3, 'JGZ9tjN_mFE91Q', 'data 12323', 12323232, 1, '2025-04-27 02:31:18', '2025-04-27 04:26:45'), (4, 'UVIl7qqzEdie3Q', 'data 232', 23123213, 1, '2025-04-27 02:31:18', '2025-04-27 02:35:59'), (5, '3lAY1upDm6gFNg', 'DATA 12323', 222222, 1, '2025-04-27 02:32:14', '2025-04-27 02:35:56'), (6, '5xOF5ApXhbuybQ', 'General practitioner', 50000, 0, '2025-04-27 04:30:54', '2025-04-27 04:30:54'), (7, '81E_LXkxK2psLg', 'Cabut Kuku', 150000, 0, '2025-04-27 04:30:54', '2025-04-27 04:30:54'), (8, 'Lj-vpXeJ5iI6XA', 'Suntik Vitamin C', 150000, 0, '2025-04-27 04:30:54', '2025-04-27 04:30:54'), (9, '3Zb8gUk2JwXh_g', 'Sunat', 500000, 0, '2025-04-27 04:30:54', '2025-04-27 04:30:54'), (10, 'O2ZJop5n7tH-_A', 'testeas', 123232, 1, '2025-04-27 06:02:00', '2025-04-27 06:02:04'); -- Dumping structure for table task_rsbhak.transaksis CREATE TABLE IF NOT EXISTS `transaksis` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `uid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `reg_uid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `services_uid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `pegawai_uid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `price` bigint unsigned DEFAULT NULL, `is_delete` tinyint(1) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `transaksis_uid_unique` (`uid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Dumping data for table task_rsbhak.transaksis: ~2 rows (approximately) INSERT IGNORE INTO `transaksis` (`id`, `uid`, `reg_uid`, `services_uid`, `pegawai_uid`, `price`, `is_delete`, `created_at`, `updated_at`) VALUES (1, 'CXXR7J5PSQgCyA', 'ukI1-3XN2YOR2Q', '5xOF5ApXhbuybQ', 'Da5sqbcopPFZCQ', 0, 1, '2025-04-27 08:04:39', '2025-04-27 08:17:21'), (2, 'TNs_p318NyHkdQ', 'bqwXdVAbLYYlDA', '8Jk-P910QSEZvw', 'Da5sqbcopPFZCQ', 20000, 0, '2025-04-27 08:09:19', '2025-04-27 08:17:02'); -- Dumping structure for table task_rsbhak.users CREATE TABLE IF NOT EXISTS `users` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `uid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `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, `is_delete` tinyint(1) NOT NULL DEFAULT '0', `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `users_uid_unique` (`uid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Dumping data for table task_rsbhak.users: ~1 rows (approximately) INSERT IGNORE INTO `users` (`id`, `uid`, `name`, `email`, `password`, `is_delete`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'Da5sqbcopPFZCQ', 'Joko', 'joko12prasetio@gmail.com', '$2y$10$OYttHxXsvtarfjI38alwIeSCqtXGqoIuK95C5yljT4xJKbCQC.Y16', 0, NULL, '2025-04-27 00:06:27', '2025-04-27 04:24:55'), (2, 'v_zEQBpj5pTFeQ', 'Data 1', 'data@gmail.com', '$2y$10$PG8.qxtiFdLs6.BFmB6S6.om8wyCaauzW8hW3hyQi3myRP6owqMeq', 1, NULL, '2025-04-27 00:20:04', '2025-04-27 04:24:58'), (5, 'NBpFcicOdHaJNg', 'testee', 'admwh12@gmail.com', '$2y$10$GGrFw2wF6RH7R5QxmwY1uOCpb1AgpaaqhefqMjgnBKOMqzGezxoIO', 1, NULL, '2025-04-27 06:01:33', '2025-04-27 06:01:36'); /*!40103 SET TIME_ZONE=IFNULL(@OLD_TIME_ZONE, 'system') */; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */;