673 lines
21 KiB
SQL
673 lines
21 KiB
SQL
-- phpMyAdmin SQL Dump
|
|
-- version 5.2.1
|
|
-- https://www.phpmyadmin.net/
|
|
--
|
|
-- Host: 127.0.0.1
|
|
-- Generation Time: Apr 27, 2025 at 04:58 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: `sim_rs`
|
|
--
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `asuransis`
|
|
--
|
|
|
|
CREATE TABLE `asuransis` (
|
|
`id` bigint(20) UNSIGNED NOT NULL,
|
|
`asuransi_name` varchar(50) 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 `asuransis`
|
|
--
|
|
|
|
INSERT INTO `asuransis` (`id`, `asuransi_name`, `created_at`, `updated_at`) VALUES
|
|
(1, 'BCA HEALTH', '2025-04-27 08:02:16', '2025-04-27 08:02:16'),
|
|
(2, 'PERMATA', '2025-04-27 08:02:22', '2025-04-27 08:02:22'),
|
|
(3, 'ACA', '2025-04-27 08:02:30', '2025-04-27 08:02:30');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 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;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 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 `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
|
|
(188, '0001_01_01_000000_create_users_table', 1),
|
|
(189, '0001_01_01_000001_create_cache_table', 1),
|
|
(190, '0001_01_01_000002_create_jobs_table', 1),
|
|
(191, '2025_04_25_235750_create_roles_table', 1),
|
|
(192, '2025_04_26_002813_create_module_lines_table', 1),
|
|
(193, '2025_04_26_042123_create_pasiens_table', 1),
|
|
(194, '2025_04_26_131642_create_asuransis_table', 1),
|
|
(195, '2025_04_26_141640_create_ruang_pelayanans_table', 1),
|
|
(196, '2025_04_26_145958_create_pegawais_table', 1),
|
|
(197, '2025_04_27_060718_create_tindakans_table', 1),
|
|
(198, '2025_04_27_081154_create_registrasis_table', 1),
|
|
(200, '2025_04_27_144648_create_transaksi_details_table', 1),
|
|
(203, '2025_04_27_144511_create_transaksis_table', 2);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `module_lines`
|
|
--
|
|
|
|
CREATE TABLE `module_lines` (
|
|
`id` bigint(20) UNSIGNED NOT NULL,
|
|
`parent_id` tinyint(4) NOT NULL DEFAULT 0,
|
|
`module_name` varchar(100) NOT NULL,
|
|
`image` varchar(100) DEFAULT NULL,
|
|
`module_url` varchar(100) 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 `module_lines`
|
|
--
|
|
|
|
INSERT INTO `module_lines` (`id`, `parent_id`, `module_name`, `image`, `module_url`, `created_at`, `updated_at`) VALUES
|
|
(1, 0, 'Transaksi', 'bi bi-clipboard-data', '#', '2025-04-27 08:00:58', '2025-04-27 08:00:58'),
|
|
(2, 0, 'Master', 'bi bi-book', '#', '2025-04-27 08:00:58', '2025-04-27 08:00:58'),
|
|
(3, 2, 'Pasien', NULL, 'pasien', '2025-04-27 08:00:58', '2025-04-27 08:00:58'),
|
|
(4, 2, 'Asuransi', NULL, 'asuransi', '2025-04-27 08:00:58', '2025-04-27 08:00:58'),
|
|
(5, 2, 'Ruang Pelayanan', NULL, 'ruang_pelayanan', '2025-04-27 08:00:58', '2025-04-27 08:00:58'),
|
|
(6, 2, 'Pegawai', NULL, 'pegawai', '2025-04-27 08:00:58', '2025-04-27 08:00:58'),
|
|
(7, 2, 'Tindakan', NULL, 'tindakan', '2025-04-27 08:00:58', '2025-04-27 08:00:58'),
|
|
(8, 1, 'Registrasi', NULL, 'registrasi', '2025-04-27 08:00:58', '2025-04-27 08:00:58'),
|
|
(9, 1, 'Dokter', NULL, 'dokter', '2025-04-27 08:00:58', '2025-04-27 08:00:58'),
|
|
(10, 1, 'Transaksi', NULL, 'transaksi', '2025-04-27 08:00:58', '2025-04-27 08:00:58');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `pasiens`
|
|
--
|
|
|
|
CREATE TABLE `pasiens` (
|
|
`id` bigint(20) UNSIGNED NOT NULL,
|
|
`pasien_nik` varchar(16) NOT NULL,
|
|
`pasien_name` varchar(100) NOT NULL,
|
|
`tanggal_lahir` date NOT NULL,
|
|
`jenis_kelamin` varchar(20) 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 `pasiens`
|
|
--
|
|
|
|
INSERT INTO `pasiens` (`id`, `pasien_nik`, `pasien_name`, `tanggal_lahir`, `jenis_kelamin`, `created_at`, `updated_at`) VALUES
|
|
(1, '1451512612512512', 'Muhammad Thoriq', '1999-06-11', 'laki-laki', '2025-04-27 08:01:51', '2025-04-27 08:01:51'),
|
|
(2, '2361361241241241', 'test', '2006-02-11', 'laki-laki', '2025-04-27 08:02:07', '2025-04-27 08:02:07'),
|
|
(3, '1512513252362362', 'Ahmad', '2000-12-21', 'laki-laki', '2025-04-27 14:26:53', '2025-04-27 14:26:53'),
|
|
(4, '3252356236236236', 'Test no auth', '2021-02-10', 'perempuan', '2025-04-27 14:42:51', '2025-04-27 14:42:51');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 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 `pegawais`
|
|
--
|
|
|
|
CREATE TABLE `pegawais` (
|
|
`id` bigint(20) UNSIGNED NOT NULL,
|
|
`pegawai_name` varchar(100) NOT NULL,
|
|
`ruang_pelayanan_id` int(11) 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 `pegawais`
|
|
--
|
|
|
|
INSERT INTO `pegawais` (`id`, `pegawai_name`, `ruang_pelayanan_id`, `created_at`, `updated_at`) VALUES
|
|
(1, 'DR UGD', 1, '2025-04-27 08:03:00', '2025-04-27 08:03:00'),
|
|
(2, 'DR Poliklinik Umum', 2, '2025-04-27 08:03:14', '2025-04-27 08:03:14');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `registrasis`
|
|
--
|
|
|
|
CREATE TABLE `registrasis` (
|
|
`id` bigint(20) UNSIGNED NOT NULL,
|
|
`nomor_urut` varchar(100) NOT NULL,
|
|
`registrasi_tanggal` date NOT NULL,
|
|
`pasien_id` int(11) NOT NULL,
|
|
`asuransi_id` int(11) DEFAULT NULL,
|
|
`asuransi_no` varchar(100) DEFAULT NULL,
|
|
`pegawai_id` int(11) NOT NULL,
|
|
`ruang_pelayanan_id` int(11) NOT NULL,
|
|
`status` tinyint(4) 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 `registrasis`
|
|
--
|
|
|
|
INSERT INTO `registrasis` (`id`, `nomor_urut`, `registrasi_tanggal`, `pasien_id`, `asuransi_id`, `asuransi_no`, `pegawai_id`, `ruang_pelayanan_id`, `status`, `created_at`, `updated_at`) VALUES
|
|
(1, 'RSHK1', '2025-04-27', 1, 1, '235236236', 1, 1, 3, '2025-04-27 08:04:52', '2025-04-27 13:13:56'),
|
|
(2, 'RSHK2', '2025-04-27', 2, -1, '', 2, 2, 4, '2025-04-27 08:06:45', '2025-04-27 09:50:43'),
|
|
(3, 'RSHK1', '2025-04-28', 2, -1, '', 1, 1, 1, '2025-04-27 08:07:13', '2025-04-27 13:16:15'),
|
|
(4, 'RSHK3', '2025-04-27', 2, 1, '15125165', 2, 2, 3, '2025-04-27 08:07:50', '2025-04-27 12:09:20'),
|
|
(5, 'RSHK2', '2025-04-28', 2, 3, '5112512412', 1, 1, 1, '2025-04-27 13:15:50', '2025-04-27 13:15:53'),
|
|
(6, 'RSHK4', '2025-04-27', 2, 3, '5325312512', 2, 2, 3, '2025-04-27 13:16:49', '2025-04-27 13:17:46'),
|
|
(7, 'RSHK3', '2025-04-28', 1, 1, '123512235125', 2, 2, 1, '2025-04-27 14:48:31', '2025-04-27 14:48:32');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `roles`
|
|
--
|
|
|
|
CREATE TABLE `roles` (
|
|
`id` bigint(20) UNSIGNED NOT NULL,
|
|
`role_name` varchar(20) NOT NULL,
|
|
`module` longtext 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 `roles`
|
|
--
|
|
|
|
INSERT INTO `roles` (`id`, `role_name`, `module`, `created_at`, `updated_at`) VALUES
|
|
(1, 'admin', '[1,2,3,4,5,6,7,8,9,10]', NULL, NULL),
|
|
(2, 'kasir', '[1,8,10]', NULL, NULL),
|
|
(3, 'dokter', '[1,9]', NULL, NULL);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `ruang_pelayanans`
|
|
--
|
|
|
|
CREATE TABLE `ruang_pelayanans` (
|
|
`id` bigint(20) UNSIGNED NOT NULL,
|
|
`ruang_pelayanan_name` varchar(50) 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 `ruang_pelayanans`
|
|
--
|
|
|
|
INSERT INTO `ruang_pelayanans` (`id`, `ruang_pelayanan_name`, `created_at`, `updated_at`) VALUES
|
|
(1, 'UGD', '2025-04-27 08:02:39', '2025-04-27 08:02:39'),
|
|
(2, 'Poliklinik Umum', '2025-04-27 08:02:45', '2025-04-27 08:02:45');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- 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_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `sessions`
|
|
--
|
|
|
|
INSERT INTO `sessions` (`id`, `user_id`, `ip_address`, `user_agent`, `payload`, `last_activity`) VALUES
|
|
('cACmLkZ20aAQ9ERMmg4Klicvm1AaQAepqGQKC2lN', NULL, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36', 'YTo4OntzOjk6Il9wcmV2aW91cyI7YToxOntzOjM6InVybCI7czozMjoiaHR0cDovLzEyNy4wLjAuMTo4MDAwL3JlZ2lzdHJhc2kiO31zOjY6Il9mbGFzaCI7YToyOntzOjM6Im9sZCI7YTowOnt9czozOiJuZXciO2E6MDp7fX1zOjY6Il90b2tlbiI7czo0MDoiU2MwbDdYYkd5cldLVXBZY09zNm9BS05FT2NPaE5PcUdhUjR4NTFrQyI7czo0OiJuYW1lIjtzOjU6IkFkbWluIjtzOjg6InVzZXJuYW1lIjtzOjU6ImFkbWluIjtzOjQ6InJvbGUiO2k6MTtzOjEzOiJtb2R1bGVfYWNjZXNzIjtzOjIyOiJbMSwyLDMsNCw1LDYsNyw4LDksMTBdIjtzOjEwOiJwZWdhd2FpX2lkIjtOO30=', 1745765357);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `tindakans`
|
|
--
|
|
|
|
CREATE TABLE `tindakans` (
|
|
`id` bigint(20) UNSIGNED NOT NULL,
|
|
`tindakan_name` varchar(100) NOT NULL,
|
|
`tarif` bigint(20) 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 `tindakans`
|
|
--
|
|
|
|
INSERT INTO `tindakans` (`id`, `tindakan_name`, `tarif`, `created_at`, `updated_at`) VALUES
|
|
(1, 'PERIKSA', 200000, '2025-04-27 08:03:29', '2025-04-27 08:03:29'),
|
|
(2, 'IMUNISASI', 500000, '2025-04-27 08:03:42', '2025-04-27 08:03:42'),
|
|
(3, 'OPNAME', 1000000, '2025-04-27 08:04:10', '2025-04-27 08:04:10');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `transaksis`
|
|
--
|
|
|
|
CREATE TABLE `transaksis` (
|
|
`id` bigint(20) UNSIGNED NOT NULL,
|
|
`registrasi_id` int(11) NOT NULL,
|
|
`tindakan_tarif_total` bigint(20) NOT NULL,
|
|
`biaya_tambahan` bigint(20) NOT NULL DEFAULT 0,
|
|
`pegawai_id` int(11) NOT NULL,
|
|
`catatan` text DEFAULT NULL,
|
|
`is_pay` tinyint(4) NOT NULL DEFAULT 0,
|
|
`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 `transaksis`
|
|
--
|
|
|
|
INSERT INTO `transaksis` (`id`, `registrasi_id`, `tindakan_tarif_total`, `biaya_tambahan`, `pegawai_id`, `catatan`, `is_pay`, `created_at`, `updated_at`) VALUES
|
|
(6, 4, 700000, 200000, 2, 'obat batuk', 0, '2025-04-27 09:47:28', '2025-04-27 12:09:20'),
|
|
(7, 1, 700000, 0, 1, 'cukup istirahat saja', 1, '2025-04-27 13:12:28', '2025-04-27 13:13:56'),
|
|
(8, 6, 200000, 0, 2, 'tidak ada', 1, '2025-04-27 13:17:29', '2025-04-27 13:17:46');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `transaksi_details`
|
|
--
|
|
|
|
CREATE TABLE `transaksi_details` (
|
|
`id` bigint(20) UNSIGNED NOT NULL,
|
|
`transaksi_id` int(11) NOT NULL,
|
|
`tindakan_id` int(11) DEFAULT NULL,
|
|
`tarif` bigint(20) 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 `transaksi_details`
|
|
--
|
|
|
|
INSERT INTO `transaksi_details` (`id`, `transaksi_id`, `tindakan_id`, `tarif`, `created_at`, `updated_at`) VALUES
|
|
(2, 6, 1, 200000, '2025-04-27 09:47:28', '2025-04-27 09:47:28'),
|
|
(3, 6, 2, 500000, '2025-04-27 09:47:28', '2025-04-27 09:47:28'),
|
|
(4, 6, -1, 200000, '2025-04-27 09:47:28', '2025-04-27 12:09:20'),
|
|
(5, 7, 1, 200000, '2025-04-27 13:12:28', '2025-04-27 13:12:28'),
|
|
(6, 7, 2, 500000, '2025-04-27 13:12:28', '2025-04-27 13:12:28'),
|
|
(7, 8, 1, 200000, '2025-04-27 13:17:29', '2025-04-27 13:17:29');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `users`
|
|
--
|
|
|
|
CREATE TABLE `users` (
|
|
`id` bigint(20) UNSIGNED NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`username` varchar(255) NOT NULL,
|
|
`role_id` int(11) NOT NULL,
|
|
`pegawai_id` int(11) DEFAULT NULL,
|
|
`password` varchar(255) NOT NULL,
|
|
`remember_token` varchar(100) 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`, `username`, `role_id`, `pegawai_id`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
|
|
(1, 'Admin', 'admin', 1, NULL, '$2y$12$L72XEbg8KDS12Zy//b8yjuign5MRsF0aDs6x8S4Rf2DEq0rAQ.Eym', NULL, NULL, NULL),
|
|
(2, 'Dokter', 'dokter_test', 3, 1, '$2y$12$xN99vGGRhkXxLW25pHYLael/xt2AsFbs5FmkrrgQgsser9ffdMlJC', NULL, NULL, NULL),
|
|
(3, 'Kasir', 'kasir_test', 2, NULL, '$2y$12$cAOr4s9NqXCFShDZVxb9OesZ.S0fvuQ2nLWmZliXPN5xK0B7OuLMS', NULL, NULL, NULL);
|
|
|
|
--
|
|
-- Indexes for dumped tables
|
|
--
|
|
|
|
--
|
|
-- Indexes for table `asuransis`
|
|
--
|
|
ALTER TABLE `asuransis`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `cache`
|
|
--
|
|
ALTER TABLE `cache`
|
|
ADD PRIMARY KEY (`key`);
|
|
|
|
--
|
|
-- Indexes for table `cache_locks`
|
|
--
|
|
ALTER TABLE `cache_locks`
|
|
ADD PRIMARY KEY (`key`);
|
|
|
|
--
|
|
-- 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 `module_lines`
|
|
--
|
|
ALTER TABLE `module_lines`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `module_lines_parent_id_index` (`parent_id`);
|
|
|
|
--
|
|
-- Indexes for table `pasiens`
|
|
--
|
|
ALTER TABLE `pasiens`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `pasiens_pasien_nik_unique` (`pasien_nik`);
|
|
|
|
--
|
|
-- Indexes for table `password_reset_tokens`
|
|
--
|
|
ALTER TABLE `password_reset_tokens`
|
|
ADD PRIMARY KEY (`email`);
|
|
|
|
--
|
|
-- Indexes for table `pegawais`
|
|
--
|
|
ALTER TABLE `pegawais`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `registrasis`
|
|
--
|
|
ALTER TABLE `registrasis`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `registrasis_nomor_urut_registrasi_tanggal_unique` (`nomor_urut`,`registrasi_tanggal`),
|
|
ADD KEY `registrasis_pasien_id_index` (`pasien_id`),
|
|
ADD KEY `registrasis_asuransi_id_index` (`asuransi_id`),
|
|
ADD KEY `registrasis_pegawai_id_index` (`pegawai_id`),
|
|
ADD KEY `registrasis_ruang_pelayanan_id_index` (`ruang_pelayanan_id`);
|
|
|
|
--
|
|
-- Indexes for table `roles`
|
|
--
|
|
ALTER TABLE `roles`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `ruang_pelayanans`
|
|
--
|
|
ALTER TABLE `ruang_pelayanans`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `sessions`
|
|
--
|
|
ALTER TABLE `sessions`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `sessions_user_id_index` (`user_id`),
|
|
ADD KEY `sessions_last_activity_index` (`last_activity`);
|
|
|
|
--
|
|
-- Indexes for table `tindakans`
|
|
--
|
|
ALTER TABLE `tindakans`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `transaksis`
|
|
--
|
|
ALTER TABLE `transaksis`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `transaksis_registrasi_id_index` (`registrasi_id`),
|
|
ADD KEY `transaksis_pegawai_id_index` (`pegawai_id`);
|
|
|
|
--
|
|
-- Indexes for table `transaksi_details`
|
|
--
|
|
ALTER TABLE `transaksi_details`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `transaksi_details_transaksi_id_index` (`transaksi_id`),
|
|
ADD KEY `transaksi_details_tindakan_id_index` (`tindakan_id`);
|
|
|
|
--
|
|
-- Indexes for table `users`
|
|
--
|
|
ALTER TABLE `users`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `users_username_unique` (`username`);
|
|
|
|
--
|
|
-- AUTO_INCREMENT for dumped tables
|
|
--
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `asuransis`
|
|
--
|
|
ALTER TABLE `asuransis`
|
|
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
|
|
--
|
|
-- 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=204;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `module_lines`
|
|
--
|
|
ALTER TABLE `module_lines`
|
|
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `pasiens`
|
|
--
|
|
ALTER TABLE `pasiens`
|
|
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `pegawais`
|
|
--
|
|
ALTER TABLE `pegawais`
|
|
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `registrasis`
|
|
--
|
|
ALTER TABLE `registrasis`
|
|
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `roles`
|
|
--
|
|
ALTER TABLE `roles`
|
|
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `ruang_pelayanans`
|
|
--
|
|
ALTER TABLE `ruang_pelayanans`
|
|
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `tindakans`
|
|
--
|
|
ALTER TABLE `tindakans`
|
|
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `transaksis`
|
|
--
|
|
ALTER TABLE `transaksis`
|
|
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `transaksi_details`
|
|
--
|
|
ALTER TABLE `transaksi_details`
|
|
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `users`
|
|
--
|
|
ALTER TABLE `users`
|
|
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
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 */;
|