-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 09, 2026 at 04:05 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: `webgis`
--

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

--
-- Table structure for table `jalan`
--

CREATE TABLE `jalan` (
  `id` int(11) NOT NULL,
  `nama_jalan` varchar(100) DEFAULT NULL,
  `status_jalan` enum('Nasional','Provinsi','Kabupaten') DEFAULT NULL,
  `panjang_m` float DEFAULT NULL,
  `geojson` longtext DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `jalan`
--

INSERT INTO `jalan` (`id`, `nama_jalan`, `status_jalan`, `panjang_m`, `geojson`) VALUES
(3, 'Jl. Khatulistiwa', 'Nasional', 3661.42, '{\"type\":\"LineString\",\"coordinates\":[[109.291627,0.011609],[109.293097,0.011072],[109.294589,0.010482],[109.295983,0.009742],[109.297442,0.008937],[109.298869,0.00825],[109.299631,0.007832],[109.301659,0.007167],[109.30403,0.006598],[109.306755,0.00604],[109.308858,0.005633],[109.3111,0.00515],[109.311486,0.005021],[109.31272,0.003862],[109.314265,0.003101],[109.314909,0.002704],[109.317076,0.001802],[109.318535,0.001245],[109.318964,0.00118],[109.321915,0.001298],[109.322312,0.001287]]}'),
(4, 'Jl. Gusti Situt Mahmud', 'Nasional', 5453.62, '{\"type\":\"LineString\",\"coordinates\":[[109.322312,0.001298],[109.32272,0.00074],[109.32302,0.000322],[109.324586,-0.000869],[109.32596,-0.001867],[109.327236,-0.002832],[109.328234,-0.00368],[109.329489,-0.004935],[109.333395,-0.008862],[109.334328,-0.009892],[109.335347,-0.011019],[109.336571,-0.012285],[109.337279,-0.013089],[109.338888,-0.014634],[109.340283,-0.015965],[109.341227,-0.016769],[109.341516,-0.017134],[109.341892,-0.017413],[109.3423,-0.017606],[109.343019,-0.017885],[109.344038,-0.018153],[109.34466,-0.018293],[109.345518,-0.018389],[109.346495,-0.0184],[109.347214,-0.018475],[109.348286,-0.018668],[109.349231,-0.018775],[109.35026,-0.018668],[109.351312,-0.018572],[109.351999,-0.018443],[109.352267,-0.018336],[109.353951,-0.017263],[109.355088,-0.016705],[109.355668,-0.016437],[109.356451,-0.016297],[109.357663,-0.016093],[109.359262,-0.015825],[109.360592,-0.015621],[109.361376,-0.01545],[109.361821,-0.01545],[109.362148,-0.01546],[109.362481,-0.015476],[109.362953,-0.015562]]}'),
(6, 'Jl. Perintis Kemerdekaan', 'Nasional', 3441.19, '{\"type\":\"LineString\",\"coordinates\":[[109.348061,-0.039504],[109.34849,-0.039128],[109.349113,-0.038613],[109.349767,-0.038152],[109.350572,-0.037637],[109.351666,-0.037057],[109.353147,-0.036156],[109.354455,-0.035384],[109.355958,-0.034558],[109.35746,-0.033635],[109.35849,-0.033002],[109.359208,-0.032444],[109.359734,-0.032004],[109.360195,-0.031435],[109.360657,-0.030481],[109.361064,-0.02959],[109.361601,-0.02767],[109.362223,-0.025878],[109.362438,-0.024912],[109.362652,-0.023925],[109.362749,-0.021458],[109.362738,-0.02002],[109.362765,-0.018824],[109.362797,-0.017338],[109.362883,-0.015551]]}'),
(7, 'Jl. Perintis Kemerdekaan', 'Nasional', 3447.91, '{\"type\":\"LineString\",\"coordinates\":[[109.348115,-0.039568],[109.34863,-0.039225],[109.349322,-0.038736],[109.350105,-0.038264],[109.351071,-0.03768],[109.352648,-0.036698],[109.353409,-0.036226],[109.354209,-0.035732],[109.354423,-0.035582],[109.354954,-0.035325],[109.355405,-0.034997],[109.356097,-0.034568],[109.356671,-0.034225],[109.357696,-0.033619],[109.358565,-0.033066],[109.359278,-0.032508],[109.359992,-0.031849],[109.360308,-0.031355],[109.360855,-0.030352],[109.361231,-0.029295],[109.361408,-0.028726],[109.361853,-0.027428],[109.362175,-0.026259],[109.362599,-0.024971],[109.362776,-0.024258],[109.362904,-0.023743],[109.362947,-0.02237],[109.362963,-0.020889],[109.362985,-0.01987],[109.36298,-0.018497],[109.363006,-0.017279],[109.363033,-0.015948],[109.362996,-0.015584]]}'),
(8, 'Jl. Veteran', 'Nasional', 1023.3, '{\"type\":\"LineString\",\"coordinates\":[[109.342268,-0.046434],[109.343255,-0.044482],[109.34407,-0.042765],[109.344692,-0.041864],[109.346666,-0.040426],[109.347975,-0.039546]]}'),
(9, 'Jl. Ahmad Yani', 'Nasional', 3347.9, '{\"type\":\"LineString\",\"coordinates\":[[109.342321,-0.04666],[109.343072,-0.047615],[109.344478,-0.049213],[109.345497,-0.050458],[109.346741,-0.051917],[109.347814,-0.053258],[109.349059,-0.054642],[109.349284,-0.054964],[109.349391,-0.055039],[109.349542,-0.054969],[109.349735,-0.05505],[109.349821,-0.055302],[109.349815,-0.0555],[109.349767,-0.055597],[109.350024,-0.055908],[109.351248,-0.057415],[109.351746,-0.057979],[109.35312,-0.059674],[109.353908,-0.060623],[109.354863,-0.06168],[109.355695,-0.062699],[109.356682,-0.063928],[109.357969,-0.06543],[109.359203,-0.066776],[109.36011,-0.067876],[109.361504,-0.069485]]}'),
(10, 'Jl. Ahmad Yani', 'Nasional', 3341.8, '{\"type\":\"LineString\",\"coordinates\":[[109.342214,-0.046783],[109.342799,-0.047513],[109.34348,-0.048296],[109.343871,-0.048768],[109.344816,-0.0499],[109.345481,-0.050656],[109.345974,-0.051262],[109.346554,-0.05196],[109.347063,-0.052555],[109.347793,-0.05344],[109.348442,-0.054186],[109.348957,-0.05484],[109.34908,-0.054942],[109.34915,-0.055162],[109.349161,-0.055302],[109.349172,-0.055473],[109.349252,-0.055629],[109.34944,-0.055661],[109.349622,-0.055629],[109.350341,-0.056498],[109.3515,-0.05793],[109.352186,-0.058735],[109.353184,-0.059931],[109.354321,-0.06131],[109.354713,-0.061793],[109.355593,-0.062823],[109.356746,-0.064196],[109.357862,-0.065457],[109.359053,-0.066846],[109.359874,-0.06779],[109.361429,-0.069598]]}'),
(11, 'Jl. Husein Hamzah', 'Provinsi', 3830.62, '{\"type\":\"LineString\",\"coordinates\":[[109.281805,-0.042395],[109.282154,-0.042025],[109.28254,-0.041606],[109.282969,-0.041268],[109.28342,-0.040871],[109.28386,-0.040458],[109.284257,-0.039976],[109.284815,-0.039552],[109.285464,-0.039015],[109.286199,-0.038372],[109.286596,-0.037953],[109.287003,-0.037594],[109.287212,-0.037369],[109.287459,-0.037208],[109.288092,-0.036982],[109.288291,-0.03688],[109.288462,-0.036762],[109.288607,-0.036585],[109.28887,-0.035926],[109.289122,-0.03548],[109.28938,-0.035148],[109.289997,-0.034579],[109.290587,-0.034],[109.291284,-0.033297],[109.291595,-0.032997],[109.292148,-0.032578],[109.292765,-0.032068],[109.293451,-0.031468],[109.293875,-0.030974],[109.29409,-0.030738],[109.29483,-0.029842],[109.295141,-0.029547],[109.295763,-0.028973],[109.296005,-0.02878],[109.296316,-0.028587],[109.296852,-0.028233],[109.29756,-0.02775],[109.29814,-0.02745],[109.298891,-0.02701],[109.299803,-0.026549],[109.300629,-0.026076],[109.300961,-0.025873],[109.30189,-0.025068],[109.302818,-0.024258],[109.302968,-0.024118],[109.303333,-0.023898],[109.304738,-0.023346],[109.306229,-0.022793],[109.306637,-0.022713],[109.306755,-0.022718],[109.306959,-0.022724],[109.307254,-0.022885],[109.307672,-0.023137],[109.308611,-0.023636]]}'),
(12, 'Jl. Husein Hamzah', 'Provinsi', 3804.78, '{\"type\":\"LineString\",\"coordinates\":[[109.308472,-0.023636],[109.308053,-0.023421],[109.307452,-0.023153],[109.306948,-0.022874],[109.306616,-0.022799],[109.305382,-0.023196],[109.303944,-0.023743],[109.303086,-0.024172],[109.302335,-0.024762],[109.30167,-0.025363],[109.301155,-0.025824],[109.300286,-0.026393],[109.299309,-0.026865],[109.298108,-0.02753],[109.297249,-0.028024],[109.296756,-0.028399],[109.295822,-0.029011],[109.2952,-0.029612],[109.294513,-0.030309],[109.294063,-0.030856],[109.293526,-0.031489],[109.292454,-0.032455],[109.291574,-0.033098],[109.290415,-0.034279],[109.289385,-0.035276],[109.289052,-0.035759],[109.288838,-0.036339],[109.288591,-0.0368],[109.288183,-0.037047],[109.287647,-0.03724],[109.287271,-0.037444],[109.28666,-0.038034],[109.286166,-0.038517],[109.285458,-0.039139],[109.284729,-0.03975],[109.284257,-0.040126],[109.283849,-0.040598],[109.28342,-0.040984],[109.282916,-0.04137],[109.282454,-0.041832],[109.281853,-0.042475]]}');

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

--
-- Table structure for table `parsil`
--

CREATE TABLE `parsil` (
  `id` int(11) NOT NULL,
  `id_parsil` varchar(50) DEFAULT NULL,
  `status_milik` enum('SHM','HGB','HGU','HP') DEFAULT NULL,
  `luas_m2` float DEFAULT NULL,
  `geojson` longtext DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `spbu`
--

CREATE TABLE `spbu` (
  `id` int(11) NOT NULL,
  `nama_spbu` varchar(100) NOT NULL,
  `no_wa` varchar(20) NOT NULL,
  `is_24jam` enum('Ya','Tidak') NOT NULL,
  `latitude` decimal(10,8) NOT NULL,
  `longitude` decimal(11,8) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `spbu`
--

INSERT INTO `spbu` (`id`, `nama_spbu`, `no_wa`, `is_24jam`, `latitude`, `longitude`, `created_at`) VALUES
(1, 'SPBU OSO MT. Haryono', '080101010101', 'Tidak', -0.04493773, 109.33673680, '2026-04-02 11:11:07'),
(2, 'SPBU Kota Baru Ujung', '080202020202', 'Tidak', -0.06266175, 109.30432498, '2026-04-02 11:14:27'),
(3, 'SPBU AMPERA', '080303030303', 'Tidak', -0.04937946, 109.29794669, '2026-04-02 11:16:57'),
(4, 'SPBU Danau Sentarum', '080404040404', 'Tidak', -0.04469096, 109.31046724, '2026-04-02 11:19:14'),
(5, 'SPBU Bundaran Kotabaru', '080505050505', 'Ya', -0.04791498, 109.31869626, '2026-04-02 11:20:33'),
(6, 'SPBU Wahidin', '080606060606', 'Tidak', -0.03839314, 109.31029022, '2026-04-02 11:24:19'),
(7, 'SPBU Pal Lima', '080707070707', 'Tidak', -0.02803445, 109.29765701, '2026-04-02 11:26:49'),
(8, 'SPBU Nipah Kuning', '080808080808', 'Tidak', -0.00727415, 109.29424524, '2026-04-02 11:29:52'),
(9, 'SPBU Jeruju', '080909090909', 'Tidak', -0.00617981, 109.31447983, '2026-04-02 11:33:08'),
(11, 'SPBU Pancasila', '081111111111', 'Tidak', -0.02816856, 109.32050407, '2026-04-02 11:36:02'),
(12, 'SPBU A.Dahlan', '081212121212', 'Tidak', -0.03441810, 109.33189273, '2026-04-02 11:37:45'),
(13, 'SPBU Cokroaminoto', '081313131313', 'Tidak', -0.02724588, 109.33311582, '2026-04-02 11:41:11'),
(14, 'SPBU Sungai Jawi', '081414141414', 'Tidak', -0.01791716, 109.33160841, '2026-04-02 11:43:07'),
(15, 'SPBU Tanjungpura', '081515151515', 'Tidak', -0.03151595, 109.34519649, '2026-04-02 11:44:30'),
(16, 'SPBU IMBON', '081616161616', 'Ya', -0.04696011, 109.35454667, '2026-04-02 11:55:43'),
(18, 'SPBU PARIS 1', '081717171717', 'Ya', -0.05546807, 109.36263621, '2026-04-02 11:58:45'),
(22, 'SPBU PARIS 2', '081818181818', 'Tidak', -0.06435155, 109.35620427, '2026-04-02 12:08:04'),
(28, 'SPBU SERDAM', '081919191919', 'Tidak', -0.09253617, 109.34666097, '2026-04-02 12:21:10'),
(30, 'SPBU TANRAY II', '082020202020', 'Tidak', -0.04901468, 109.36860681, '2026-04-02 12:26:51'),
(32, 'SPBU Panglima Aim', '082121212121', 'Tidak', -0.02916634, 109.36813474, '2026-04-02 12:29:43'),
(33, 'SPBU Tanjung Hilir', '082222222222', 'Tidak', -0.02597451, 109.36183155, '2026-04-02 12:30:42'),
(35, 'SPBU Khatulistiwa', '082323232323', 'Ya', -0.01144767, 109.33492899, '2026-04-02 12:42:02'),
(36, 'SPBU Siantan Hulu', '082424242424', 'Tidak', -0.01621127, 109.35815692, '2026-04-02 12:43:25'),
(37, 'SPBU 28 Oktober', '082525252525', 'Ya', -0.00522494, 109.36373055, '2026-04-02 12:46:09');

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

--
-- Table structure for table `tabel_ibadah`
--

CREATE TABLE `tabel_ibadah` (
  `id` int(11) NOT NULL,
  `nama` varchar(150) NOT NULL,
  `radius` int(11) NOT NULL COMMENT 'Radius dalam satuan meter',
  `latitude` double NOT NULL,
  `longitude` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `tabel_ibadah`
--

INSERT INTO `tabel_ibadah` (`id`, `nama`, `radius`, `latitude`, `longitude`) VALUES
(6, 'masjid hikmah', 500, -0.025877951695857, 109.32486534119);

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

--
-- Table structure for table `tabel_penduduk`
--

CREATE TABLE `tabel_penduduk` (
  `id` int(11) NOT NULL,
  `nama` varchar(150) NOT NULL,
  `latitude` double NOT NULL,
  `longitude` double NOT NULL,
  `status_warna` varchar(20) DEFAULT 'Merah',
  `status_bantuan` enum('Belum','Sudah') NOT NULL DEFAULT 'Belum'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `tabel_penduduk`
--

INSERT INTO `tabel_penduduk` (`id`, `nama`, `latitude`, `longitude`, `status_warna`, `status_bantuan`) VALUES
(11, 'Budi', -0.025534628976518, 109.32355642319, 'Hijau', 'Belum'),
(12, 'Santoso', -0.022144317075644, 109.31874990463, 'Merah', 'Belum');

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

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` int(11) NOT NULL,
  `username` varchar(50) NOT NULL,
  `password` varchar(255) NOT NULL,
  `nama` varchar(100) NOT NULL,
  `role` enum('admin_pemerintah','admin_ibadah') NOT NULL DEFAULT 'admin_ibadah',
  `id_rumah_ibadah` int(11) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `username`, `password`, `nama`, `role`, `id_rumah_ibadah`, `created_at`) VALUES
(1, 'admin', '$2y$10$nFJFuwzpHgTOgkMimoOaEOhdGvDg5LaO5aycHlKRKxRbeSYEL.lLS', 'Administrator', 'admin_pemerintah', NULL, '2026-05-02 08:42:17'),
(2, 'operator', '$2y$10$xFvFSy4mVkLznYgORN/vb.UDlrFrUlQ4wgXm08vRxN54of9LDGlEW', 'Operator', 'admin_ibadah', 6, '2026-05-02 08:42:17');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `jalan`
--
ALTER TABLE `jalan`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `parsil`
--
ALTER TABLE `parsil`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `spbu`
--
ALTER TABLE `spbu`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `tabel_ibadah`
--
ALTER TABLE `tabel_ibadah`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `tabel_penduduk`
--
ALTER TABLE `tabel_penduduk`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `username` (`username`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `jalan`
--
ALTER TABLE `jalan`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `parsil`
--
ALTER TABLE `parsil`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `spbu`
--
ALTER TABLE `spbu`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38;

--
-- AUTO_INCREMENT for table `tabel_ibadah`
--
ALTER TABLE `tabel_ibadah`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `tabel_penduduk`
--
ALTER TABLE `tabel_penduduk`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
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 */;
