-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 04 Jun 2026 pada 04.59
-- Versi server: 10.4.32-MariaDB
-- Versi PHP: 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`
--

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

--
-- Struktur dari tabel `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 untuk tabel `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]]]}}');

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

--
-- Struktur dari tabel `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 untuk tabel `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]]}}');

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

--
-- Struktur dari tabel `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 untuk tabel `rumah_ibadah`
--

INSERT INTO `rumah_ibadah` (`id`, `nama_ibadah`, `jenis`, `radius_m`, `lat`, `lng`) VALUES
(1, 'Babul Maghfirah', 'Masjid', 500, -0.05512207163471261, 109.35242215378504);

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

--
-- Struktur dari tabel `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 untuk tabel `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.04965587084748121, 109.35713631716),
(11, 'Mas Us', 0.00, 3, '14, 9, 3', 'Pensiun', 'Ya', 400000.00, 'Tidak', 0.00, '', -0.05299500680178904, 109.35927377651974),
(12, 'Robi', 0.00, 1, '13', 'Meninggal', 'Tidak', 0.00, 'Tidak', 0.00, '', -0.051968992262292006, 109.35091436068554),
(13, 'Mas Rian', 0.00, 2, '4, 3', 'Meninggal', 'Tidak', 0.00, 'Ya', 200000.00, '', -0.04951572385615543, 109.3541283718652);

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

--
-- Struktur dari tabel `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 untuk tabel `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);

--
-- Indexes for dumped tables
--

--
-- Indeks untuk tabel `area_polygon`
--
ALTER TABLE `area_polygon`
  ADD PRIMARY KEY (`id`);

--
-- Indeks untuk tabel `jalan_polyline`
--
ALTER TABLE `jalan_polyline`
  ADD PRIMARY KEY (`id`);

--
-- Indeks untuk tabel `rumah_ibadah`
--
ALTER TABLE `rumah_ibadah`
  ADD PRIMARY KEY (`id`);

--
-- Indeks untuk tabel `rumah_prasejahtera`
--
ALTER TABLE `rumah_prasejahtera`
  ADD PRIMARY KEY (`id`);

--
-- Indeks untuk tabel `spbu_point`
--
ALTER TABLE `spbu_point`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT untuk tabel yang dibuang
--

--
-- AUTO_INCREMENT untuk tabel `area_polygon`
--
ALTER TABLE `area_polygon`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

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

--
-- AUTO_INCREMENT untuk tabel `rumah_ibadah`
--
ALTER TABLE `rumah_ibadah`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT untuk tabel `rumah_prasejahtera`
--
ALTER TABLE `rumah_prasejahtera`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT untuk tabel `spbu_point`
--
ALTER TABLE `spbu_point`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
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 */;
