-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 12, 2026 at 06:45 AM
-- 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 `area_polygon`
--

DROP TABLE IF EXISTS `area_polygon`;
CREATE TABLE `area_polygon` (
  `id` int(11) NOT NULL,
  `nama_kavling` varchar(255) NOT NULL,
  `status_kepemilikan` enum('SHM','HGB','HGU','HP') NOT NULL,
  `luas_m2` double NOT NULL,
  `geojson` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`geojson`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `area_polygon`
--

INSERT INTO `area_polygon` (`id`, `nama_kavling`, `status_kepemilikan`, `luas_m2`, `geojson`) VALUES
(1, 'UNTAN', 'HGU', 645440.2526783603, '{\"type\":\"Feature\",\"properties\":[],\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[109.34437,-0.056156],[109.349027,-0.060472],[109.348319,-0.061459],[109.348984,-0.06191],[109.344842,-0.066698],[109.33965,-0.061631],[109.34437,-0.056156]]]}}'),
(2, 'GOR', 'SHM', 300054.89700116677, '{\"type\":\"Feature\",\"properties\":[],\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[109.338834,-0.043128],[109.33347,-0.047336],[109.33392,-0.047808],[109.336088,-0.049461],[109.338191,-0.048645],[109.338791,-0.047915],[109.339607,-0.047271],[109.340594,-0.046756],[109.341002,-0.045639],[109.338834,-0.043128]]]}}'),
(3, 'Kandang Sapi', 'HGB', 271464.83052722487, '{\"type\":\"Feature\",\"properties\":[],\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[109.349241,-0.075575],[109.355421,-0.07901],[109.352245,-0.084334],[109.349241,-0.075575]]]}}'),
(4, 'Kandang Kambing', 'HP', 1900915.6668704539, '{\"type\":\"Feature\",\"properties\":[],\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[109.35894,-0.086347],[109.362888,-0.089831],[109.363575,-0.098363],[109.355164,-0.098535],[109.34864,-0.097216],[109.348555,-0.093437],[109.348469,-0.088749],[109.35894,-0.086347]]]}}'),
(6, 'Supadio', 'HGB', 4835694.910480378, '{\"type\":\"Feature\",\"properties\":[],\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[109.394903,-0.131255],[109.397306,-0.13031],[109.407606,-0.14156],[109.411211,-0.148774],[109.412842,-0.159165],[109.412928,-0.166465],[109.406576,-0.167839],[109.397564,-0.150234],[109.39353,-0.136837],[109.39353,-0.132286],[109.394903,-0.131255]]]}}'),
(8, 'sawah ambalingham', 'HGB', 3003451.8979363795, '{\"type\":\"Feature\",\"properties\":[],\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[109.447861,-0.129944],[109.447174,-0.143856],[109.463654,-0.14495],[109.4664,-0.137049],[109.463654,-0.13121],[109.447861,-0.129944]]]}}');

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

--
-- Table structure for table `jalan_polyline`
--

DROP TABLE IF EXISTS `jalan_polyline`;
CREATE TABLE `jalan_polyline` (
  `id` int(11) NOT NULL,
  `nama_jalan` varchar(255) NOT NULL,
  `status` varchar(50) NOT NULL,
  `panjang_m` double NOT NULL,
  `geojson` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`geojson`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `jalan_polyline`
--

INSERT INTO `jalan_polyline` (`id`, `nama_jalan`, `status`, `panjang_m`, `geojson`) VALUES
(2, 'Nurul Huda', 'Provinsi', 1908.0012004663859, '{\"type\":\"Feature\",\"properties\":[],\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[109.369755,-0.08765],[109.372244,-0.086405],[109.37336,-0.083142],[109.377007,-0.082283],[109.379625,-0.080437],[109.382071,-0.077302]]}}'),
(3, 'Ayonima', 'Nasional', 2162.2699407685564, '{\"type\":\"Feature\",\"properties\":[],\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[109.367437,-0.078552],[109.369626,-0.077865],[109.3716,-0.072326],[109.374304,-0.07048],[109.377394,-0.066916],[109.379625,-0.064511]]}}'),
(4, 'A. Yani', 'Kabupaten', 1912.1962029014906, '{\"type\":\"Feature\",\"properties\":[],\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[109.372072,-0.090584],[109.378166,-0.095994],[109.381943,-0.099687],[109.384689,-0.102263]]}}'),
(5, 'Jalan Kocak', 'Provinsi', 5170.208020341104, '{\"type\":\"Feature\",\"properties\":[],\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[109.306412,-0.076944],[109.310875,-0.08429],[109.321346,-0.08536],[109.326668,-0.081711],[109.331989,-0.072612],[109.323406,-0.066771]]}}'),
(9, 'Jalan Sungai Adong', 'Nasional', 1029.3321270895008, '{\"type\":\"Feature\",\"properties\":[],\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[109.433098,-0.171863],[109.433656,-0.171683],[109.433956,-0.17182],[109.434128,-0.171605],[109.436488,-0.174053],[109.437346,-0.175126],[109.440179,-0.176801]]}}'),
(10, 'jalan pak amba', 'Nasional', 8142.259444940618, '{\"type\":\"Feature\",\"properties\":[],\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[109.412155,-0.069444],[109.464684,-0.071505],[109.466057,-0.092116]]}}'),
(11, 'jalan ambalingham', 'Kabupaten', 4602.705131192875, '{\"type\":\"Feature\",\"properties\":[],\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[109.442368,-0.117294],[109.448204,-0.121416],[109.448376,-0.119871],[109.452496,-0.121073],[109.456615,-0.121932],[109.461422,-0.12468],[109.463825,-0.126054],[109.469147,-0.129145],[109.472923,-0.130004],[109.477901,-0.133096]]}}'),
(12, 'jalan limbung', 'Kabupaten', 4271.637856664525, '{\"type\":\"Feature\",\"properties\":[],\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[109.389496,-0.109413],[109.391899,-0.114222],[109.395161,-0.118859],[109.398766,-0.122123],[109.401855,-0.126073],[109.405975,-0.131397],[109.408035,-0.135863],[109.408207,-0.141703]]}}');

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

--
-- Table structure for table `rumah_ibadah`
--

DROP TABLE IF EXISTS `rumah_ibadah`;
CREATE TABLE `rumah_ibadah` (
  `id` int(11) NOT NULL,
  `nama_ibadah` varchar(255) NOT NULL,
  `jenis` enum('Masjid','Gereja','Vihara','Pura','Klenteng') NOT NULL,
  `radius_m` int(11) NOT NULL DEFAULT 500,
  `lat` double NOT NULL,
  `lng` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `rumah_ibadah`
--

INSERT INTO `rumah_ibadah` (`id`, `nama_ibadah`, `jenis`, `radius_m`, `lat`, `lng`) VALUES
(1, 'Babul Maghfirah', 'Masjid', 600, -0.05480292153321615, 109.35301758952382),
(4, 'Masjid Raya Mujahiddin', 'Masjid', 500, -0.041434028832777574, 109.33632432523154),
(5, 'Masjid Raya Mujahidin', 'Masjid', 800, -0.0185, 109.342),
(6, 'Masjid Al-Falah Siantan', 'Masjid', 600, -0.042, 109.328),
(7, 'Masjid Nurul Iman Bansir', 'Masjid', 500, -0.072, 109.358),
(8, 'Masjid Al-Hidayah Akcaya', 'Masjid', 500, -0.058, 109.315),
(9, 'Gereja Katedral St. Yoseph', 'Gereja', 700, -0.022, 109.335),
(10, 'Gereja GPIB Pontianak', 'Gereja', 500, -0.031, 109.328),
(11, 'Vihara Bodhisattva Karaniya', 'Vihara', 600, -0.028, 109.331),
(12, 'Pura Amertha Sari', 'Pura', 500, -0.035, 109.345),
(13, 'Klenteng Toa Pekong', 'Klenteng', 500, -0.026, 109.338),
(14, 'Masjid Jami Pontianak', 'Masjid', 700, -0.029, 109.334);

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

--
-- Table structure for table `rumah_prasejahtera`
--

DROP TABLE IF EXISTS `rumah_prasejahtera`;
CREATE TABLE `rumah_prasejahtera` (
  `id` int(11) NOT NULL,
  `nama_kepala_keluarga` varchar(255) NOT NULL,
  `penghasilan` decimal(15,2) DEFAULT 0.00,
  `jumlah_anak` int(11) DEFAULT 0,
  `umur_anak` varchar(255) DEFAULT NULL,
  `status_ortu` enum('Bekerja','Pensiun','Meninggal') DEFAULT 'Bekerja',
  `ada_pensiun` enum('Ya','Tidak') DEFAULT 'Tidak',
  `nominal_pensiun` decimal(15,2) DEFAULT 0.00,
  `ada_terusan` enum('Ya','Tidak') DEFAULT 'Tidak',
  `nominal_terusan` decimal(15,2) DEFAULT 0.00,
  `keterangan` text DEFAULT NULL,
  `lat` double NOT NULL,
  `lng` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `rumah_prasejahtera`
--

INSERT INTO `rumah_prasejahtera` (`id`, `nama_kepala_keluarga`, `penghasilan`, `jumlah_anak`, `umur_anak`, `status_ortu`, `ada_pensiun`, `nominal_pensiun`, `ada_terusan`, `nominal_terusan`, `keterangan`, `lat`, `lng`) VALUES
(10, 'Pak Ambalingham', 2000000.00, 2, '12, 7', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'rokok 2 slop sehari', -0.04952435403005827, 109.3574379859713),
(12, 'Robi', 0.00, 1, '13', 'Meninggal', 'Tidak', 0.00, 'Tidak', 0.00, '', -0.05197047474609275, 109.35194457542805),
(13, 'Mas Rusdi', 0.00, 2, '4, 3', 'Meninggal', 'Tidak', 0.00, 'Ya', 200000.00, '', -0.04928832854879829, 109.3546487495755),
(14, 'Mas Us', 0.00, 3, '14, 9, 3', 'Pensiun', 'Ya', 400000.00, 'Tidak', 0.00, '', -0.05883415577738937, 109.3555884504947),
(15, 'Herman Santoso', 2000000.00, 2, '21, 10', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'rokok 8 slop sehari', -0.04387894972428997, 109.33540877797459),
(16, 'Ahmad Fauzi', 850000.00, 3, '12, 8, 5', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Buruh harian lepas', -0.061, 109.352),
(17, 'Siti Rahayu', 750000.00, 2, '10, 6', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Penjual kaki lima', -0.0625, 109.3535),
(18, 'Muhamad Yusuf', 600000.00, 4, '14, 11, 8, 3', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Tukang becak', -0.0638, 109.351),
(19, 'Fatimah Zahra', 0.00, 3, '13, 9, 4', 'Meninggal', 'Tidak', 0.00, 'Ya', 500000.00, 'Suami meninggal 2022', -0.0652, 109.3548),
(20, 'Budi Santoso', 700000.00, 2, '7, 3', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Sopir angkot', -0.0618, 109.3562),
(21, 'Nurul Hidayah', 500000.00, 3, '11, 7, 2', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Pembantu rumah tangga', -0.0643, 109.353),
(22, 'Ridwan Kamil', 800000.00, 1, '9', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Pedagang asongan', -0.0605, 109.3545),
(23, 'Sumiati', 0.00, 2, '15, 12', 'Meninggal', 'Tidak', 0.00, 'Tidak', 0.00, 'Janda, tidak ada penghasilan', -0.066, 109.3515),
(24, 'Hendra Wijaya', 650000.00, 3, '10, 6, 2', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Nelayan', -0.0628, 109.3575),
(25, 'Dewi Lestari', 550000.00, 4, '13, 10, 7, 1', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Penjual sayur pasar', -0.0648, 109.349),
(26, 'Supardi', 700000.00, 2, '8, 5', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Tukang cuci', -0.057, 109.318),
(27, 'Mariam Ulfa', 600000.00, 3, '12, 9, 4', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Buruh pabrik', -0.0585, 109.3195),
(28, 'Darto Wibowo', 0.00, 2, '14, 10', 'Pensiun', 'Ya', 900000.00, 'Tidak', 0.00, 'Pensiunan TNI', -0.0558, 109.321),
(29, 'Yanti Kusuma', 450000.00, 5, '15,12,9,6,2', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Pengamen jalanan', -0.0595, 109.3165),
(30, 'Irwan Setiawan', 750000.00, 1, '11', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Tukang ojek', -0.0562, 109.3235),
(31, 'Rosmawati', 0.00, 3, '16, 13, 8', 'Meninggal', 'Tidak', 0.00, 'Ya', 600000.00, 'Suami meninggal kecelakaan', -0.0578, 109.3148),
(32, 'Gunawan Pratama', 800000.00, 2, '10, 7', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Kuli bangunan', -0.0548, 109.322),
(33, 'Sari Dewi', 500000.00, 4, '14,11,7,3', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Penjual gorengan', -0.059, 109.3175),
(34, 'Bambang Susilo', 0.00, 2, '13, 9', 'Pensiun', 'Ya', 800000.00, 'Tidak', 0.00, 'Pensiunan PNS', -0.0542, 109.3198),
(35, 'Halimah', 550000.00, 3, '11, 8, 4', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Pengupas udang', -0.0605, 109.3185),
(36, 'Rahmat Hidayat', 700000.00, 2, '9, 5', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Tukang parkir', -0.042, 109.328),
(37, 'Endang Supriyati', 600000.00, 3, '13, 9, 5', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Pedagang kecil', -0.0435, 109.3265),
(38, 'Wahyu Nugroho', 850000.00, 1, '7', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Supir truk', -0.0408, 109.3295),
(39, 'Maryati', 0.00, 4, '15,12,8,4', 'Meninggal', 'Tidak', 0.00, 'Tidak', 0.00, 'Single parent', -0.0448, 109.3248),
(40, 'Sudirman', 650000.00, 2, '10, 6', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Penjual ikan', -0.0415, 109.3312),
(41, 'Arifin Ilham', 500000.00, 4, '14,10,7,3', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Pemulung', -0.0295, 109.3355),
(42, 'Nursyam', 600000.00, 3, '12, 8, 4', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Buruh angkut pasar', -0.0308, 109.3342),
(43, 'Zaenab', 0.00, 2, '13, 9', 'Pensiun', 'Ya', 750000.00, 'Tidak', 0.00, 'Janda pensiunan', -0.0282, 109.3368),
(44, 'Ruslan Effendi', 700000.00, 3, '11, 7, 3', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Tukang becak motor', -0.0318, 109.3328),
(45, 'Aminah Sari', 450000.00, 5, '16,13,10,6,2', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Penjual jamu keliling', -0.0272, 109.338),
(46, 'Fathurrahman', 800000.00, 2, '9, 5', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Montir bengkel', -0.0302, 109.3315),
(47, 'Wulandari', 550000.00, 3, '12, 8, 2', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Tukang jahit rumahan', -0.0325, 109.3362),
(48, 'Syarifuddin', 700000.00, 1, '14', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Nelayan sungai', -0.0265, 109.3395),
(49, 'Hasanah', 500000.00, 4, '15,11,7,3', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Penjual kue basah', -0.0195, 109.358),
(50, 'Amir Hamzah', 650000.00, 2, '10, 6', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Tukang kayu', -0.021, 109.3562),
(51, 'Sulastri', 0.00, 3, '14, 10, 6', 'Meninggal', 'Tidak', 0.00, 'Ya', 400000.00, 'Suami meninggal sakit', -0.0182, 109.3598),
(52, 'Khairul Anwar', 750000.00, 2, '8, 4', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Pedagang buah', -0.0225, 109.3545),
(53, 'Fatmawati', 600000.00, 3, '13, 9, 5', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Penjual nasi uduk', -0.0198, 109.3615),
(54, 'Sabri', 700000.00, 2, '11, 7', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Buruh harian', -0.0085, 109.338),
(55, 'Rohani', 550000.00, 3, '12, 8, 3', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Pembantu rumah tangga', -0.0098, 109.3395),
(56, 'Darwis', 800000.00, 1, '10', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Sopir angkot', -0.0072, 109.3412),
(57, 'Nuraini', 500000.00, 4, '14,10,6,2', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Penjual ikan asin', -0.0112, 109.3358),
(58, 'Mahmud Basri', 0.00, 2, '15, 12', 'Pensiun', 'Ya', 850000.00, 'Tidak', 0.00, 'Pensiunan Polri', -0.0062, 109.3428),
(59, 'Saodah', 600000.00, 3, '13, 9, 4', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Pengumpul barang bekas', -0.032, 109.308),
(60, 'Burhan', 700000.00, 2, '10, 6', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Tukang bangunan', -0.0338, 109.3062),
(61, 'Nurhayati', 450000.00, 5, '16,13,9,5,1', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Penjual sayur keliling', -0.0305, 109.3098),
(62, 'Suriani', 0.00, 3, '14, 10, 7', 'Meninggal', 'Tidak', 0.00, 'Ya', 350000.00, 'Janda 3 anak', -0.0352, 109.3045),
(63, 'Firdaus', 800000.00, 1, '8', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Kuli pelabuhan', -0.0288, 109.3115),
(64, 'Masitah', 550000.00, 2, '11, 6', 'Bekerja', 'Tidak', 0.00, 'Tidak', 0.00, 'Tukang cuci baju', -0.0368, 109.3028);

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

--
-- Table structure for table `spbu_point`
--

DROP TABLE IF EXISTS `spbu_point`;
CREATE TABLE `spbu_point` (
  `id` int(11) NOT NULL,
  `lat` decimal(10,8) NOT NULL,
  `lng` decimal(11,8) NOT NULL,
  `nama_spbu` varchar(255) NOT NULL,
  `no_wa` varchar(20) NOT NULL,
  `buka_24jam` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `spbu_point`
--

INSERT INTO `spbu_point` (`id`, `lat`, `lng`, `nama_spbu`, `no_wa`, `buka_24jam`) VALUES
(12, -0.06282711, 109.38606262, 'cjshbabcs', '123141', 1),
(13, -0.09475873, 109.35653687, 'njnsajcnja', '121414', 0),
(14, -0.06488930, 109.34486389, 'hchchc', '124141251356', 1),
(15, -0.08034710, 109.35293198, 'anjal gerot', '87364', 0),
(16, -0.04754935, 109.33731079, 'AYAM', '63542', 1),
(17, -0.17363396, 109.43607241, 'RUMAH AKU', '082150711624', 1),
(18, -0.11209001, 109.36203003, 'rumah pak amba', '082849696767', 1);

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

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

DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
  `id` int(11) NOT NULL,
  `nama` varchar(100) NOT NULL,
  `username` varchar(50) NOT NULL,
  `password` varchar(255) NOT NULL,
  `role` enum('admin','operator') NOT NULL DEFAULT 'operator',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

INSERT INTO `users` (`id`, `nama`, `username`, `password`, `role`, `created_at`) VALUES
(3, 'Administrator', 'admin', '$2y$10$A.PGTJ3iQJc8hK0maehBtO7a8xWZ5SqoqJnC4wMoSqlhH6PDmjAC.', 'admin', '2026-06-10 05:28:11'),
(5, 'Pak Budi', 'operator', '$2y$10$d37JkJWWY1oYnxZHPqo.6O.q/AdoaW3K8oetf0kLj44o.OxOtJQQu', 'operator', '2026-06-10 08:25:55');

--
-- Indexes for dumped tables
--

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

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

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

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

--
-- Indexes for table `spbu_point`
--
ALTER TABLE `spbu_point`
  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 `area_polygon`
--
ALTER TABLE `area_polygon`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

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

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

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

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

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