-- MySQL dump 10.13  Distrib 8.0.46, for macos15 (arm64)
--
-- Host: localhost    Database: sig
-- ------------------------------------------------------
-- Server version	8.0.46

/*!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 */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!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 */;

--
-- Table structure for table `histori_bantuan`
--

DROP TABLE IF EXISTS `histori_bantuan`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `histori_bantuan` (
  `id` int NOT NULL AUTO_INCREMENT,
  `penduduk_id` int NOT NULL,
  `masjid_id` int DEFAULT NULL,
  `jenis_bantuan` varchar(150) NOT NULL,
  `tanggal_bantuan` date NOT NULL,
  `nominal` decimal(14,2) NOT NULL DEFAULT '0.00',
  `sumber_bantuan` varchar(150) NOT NULL DEFAULT 'Pemkot Pontianak / Dinas / Rumah Ibadah / Donatur',
  `keterangan` text,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `fk_histori_bantuan_penduduk` (`penduduk_id`),
  KEY `fk_histori_bantuan_masjid` (`masjid_id`),
  CONSTRAINT `fk_histori_bantuan_masjid` FOREIGN KEY (`masjid_id`) REFERENCES `masjid` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_histori_bantuan_penduduk` FOREIGN KEY (`penduduk_id`) REFERENCES `penduduk_kemiskinan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `histori_bantuan`
--

LOCK TABLES `histori_bantuan` WRITE;
/*!40000 ALTER TABLE `histori_bantuan` DISABLE KEYS */;
INSERT INTO `histori_bantuan` VALUES (1,1,1,'Sembako','2026-06-07',100000.00,'Pemkot Pontianak / Rumah Ibadah / Donatur','Bantuan sembako tahap pertama','2026-06-09 07:25:39','2026-06-09 07:25:39'),(2,1,1,'Sembako','2026-06-09',100000.00,'Pemkot Pontianak / Rumah Ibadah / Donatur','Bantuan sembako tahap kedua','2026-06-09 07:26:05','2026-06-09 07:26:05');
/*!40000 ALTER TABLE `histori_bantuan` ENABLE KEYS */;
UNLOCK TABLES;

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

DROP TABLE IF EXISTS `jalan`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `jalan` (
  `id` int NOT NULL AUTO_INCREMENT,
  `nama_jalan` varchar(150) NOT NULL,
  `status_jalan` enum('Jalan Nasional','Jalan Provinsi','Jalan Kabupaten') NOT NULL,
  `panjang_meter` double NOT NULL DEFAULT '0',
  `geojson` longtext NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

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

LOCK TABLES `jalan` WRITE;
/*!40000 ALTER TABLE `jalan` DISABLE KEYS */;
INSERT INTO `jalan` VALUES (3,'JALAN Pontianak','Jalan Nasional',50952.09,'{\"type\":\"LineString\",\"coordinates\":[[109.409494,-0.1436],[109.408743,-0.142956],[109.407606,-0.142312],[109.407885,-0.141712],[109.407949,-0.138407],[109.407799,-0.134952],[109.40752,-0.133707],[109.406576,-0.132059],[109.404817,-0.129441],[109.403014,-0.127552],[109.401598,-0.125278],[109.399924,-0.123131],[109.397435,-0.120857],[109.395032,-0.118539],[109.393058,-0.116264],[109.391513,-0.112873],[109.390483,-0.110813],[109.389067,-0.10768],[109.387608,-0.105234],[109.385848,-0.102616],[109.38396,-0.100985],[109.380612,-0.098109],[109.373875,-0.091843],[109.371343,-0.08931],[109.369712,-0.087208],[109.368467,-0.083602],[109.36718,-0.079182],[109.366579,-0.078323],[109.366665,-0.077422],[109.364734,-0.073215],[109.359326,-0.067121],[109.355507,-0.06283],[109.3507,-0.057165],[109.350014,-0.056391],[109.349735,-0.055747],[109.349048,-0.05534],[109.34907,-0.054803],[109.346323,-0.051455],[109.342074,-0.046691],[109.344606,-0.041797],[109.347868,-0.039308],[109.35173,-0.036904],[109.354219,-0.035531],[109.359198,-0.032354],[109.360914,-0.030123],[109.362545,-0.025315],[109.362888,-0.020766],[109.362888,-0.015358],[109.359541,-0.015529],[109.355936,-0.016216],[109.353104,-0.017418],[109.3501,-0.018448],[109.346838,-0.018362],[109.344435,-0.01819],[109.342031,-0.017418],[109.340401,-0.015959],[109.334264,-0.009867],[109.328728,-0.003944],[109.324865,-0.001111],[109.323106,0.000306],[109.322462,0.001336],[109.320059,0.00125],[109.316626,0.001894],[109.314222,0.003095],[109.312291,0.004083],[109.311476,0.005113],[109.300404,0.007559],[109.295211,0.010177],[109.288173,0.012924],[109.283366,0.014684],[109.278603,0.017002],[109.275041,0.019062],[109.273839,0.020006],[109.268389,0.021981],[109.265299,0.023182],[109.261136,0.024771],[109.257703,0.026402],[109.254484,0.027904],[109.253712,0.028805],[109.251094,0.03417],[109.250493,0.034814],[109.244742,0.03696],[109.240837,0.038419],[109.237189,0.040179],[109.234056,0.041767],[109.231181,0.044171],[109.228048,0.04636],[109.225602,0.047476],[109.224057,0.048163],[109.221354,0.050266],[109.211783,0.057476],[109.206719,0.061168],[109.204144,0.063142],[109.203415,0.063442],[109.198051,0.067348],[109.19539,0.069408],[109.193072,0.070911],[109.192429,0.071597],[109.190969,0.074044],[109.186463,0.078765],[109.182215,0.082886],[109.180155,0.085203],[109.178352,0.087779],[109.170284,0.098509],[109.168911,0.100483],[109.167624,0.101771],[109.166164,0.103359],[109.165864,0.104389],[109.165864,0.106235],[109.16522,0.107437],[109.164619,0.108467],[109.156079,0.125034],[109.156036,0.133103],[109.156036,0.147868],[109.157453,0.149928],[109.158611,0.150658],[109.159598,0.150958],[109.160371,0.152203],[109.160028,0.153534]]}','2026-06-09 06:33:08','2026-06-09 06:33:08'),(4,'JALAN Adisucipto','Jalan Provinsi',28365.68,'{\"type\":\"LineString\",\"coordinates\":[[109.369411,-0.251746],[109.370098,-0.249941],[109.371085,-0.24831],[109.371901,-0.247451],[109.37366,-0.245348],[109.375076,-0.243159],[109.384603,-0.228352],[109.385376,-0.227321],[109.385548,-0.22539],[109.386964,-0.221527],[109.4034,-0.192641],[109.405804,-0.188263],[109.410782,-0.179551],[109.412627,-0.175816],[109.414473,-0.171868],[109.417648,-0.161567],[109.417434,-0.1553],[109.417477,-0.152138],[109.413786,-0.150164],[109.412413,-0.149048],[109.411082,-0.146644],[109.410439,-0.145357],[109.410396,-0.142996],[109.410009,-0.134026],[109.41031,-0.129047],[109.40855,-0.116128],[109.40855,-0.113595],[109.409108,-0.11072],[109.409838,-0.108273],[109.410095,-0.10617],[109.409151,-0.10411],[109.407477,-0.102393],[109.404001,-0.099431],[109.402714,-0.099303],[109.401212,-0.099346],[109.397693,-0.097715],[109.396491,-0.096856],[109.395804,-0.09574],[109.395032,-0.094581],[109.394431,-0.093122],[109.39383,-0.092049],[109.392715,-0.091105],[109.392457,-0.090118],[109.390612,-0.08604],[109.389539,-0.084237],[109.388208,-0.082649],[109.386234,-0.080932],[109.37439,-0.069902],[109.367352,-0.062991],[109.366579,-0.061446],[109.366407,-0.060416],[109.364219,-0.057884],[109.362845,-0.055437],[109.360228,-0.052089],[109.358125,-0.050373],[109.354949,-0.047754],[109.354177,-0.046467],[109.353018,-0.044664],[109.352202,-0.043806],[109.350572,-0.04269],[109.349241,-0.041359],[109.348254,-0.0399]]}','2026-06-09 06:35:23','2026-06-09 06:35:23'),(5,'Jl Pontianal','Jalan Kabupaten',7463.65,'{\"type\":\"LineString\",\"coordinates\":[[109.342117,-0.046739],[109.338512,-0.042361],[109.334135,-0.037081],[109.330788,-0.032317],[109.326839,-0.02545],[109.325552,-0.023647],[109.326625,-0.019012],[109.329114,-0.018368],[109.330316,-0.018282],[109.332633,-0.017338],[109.336796,-0.020685],[109.337997,-0.021587],[109.342546,-0.026265],[109.344435,-0.02987],[109.346366,-0.034163],[109.34701,-0.037811],[109.347825,-0.039356]]}','2026-06-09 06:46:41','2026-06-09 06:46:41');
/*!40000 ALTER TABLE `jalan` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `laporan_masyarakat`
--

DROP TABLE IF EXISTS `laporan_masyarakat`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `laporan_masyarakat` (
  `id` int NOT NULL AUTO_INCREMENT,
  `penduduk_id` int DEFAULT NULL,
  `nama_pelapor` varchar(150) NOT NULL,
  `no_hp` varchar(30) NOT NULL,
  `kategori_laporan` enum('Data kemiskinan','Bantuan belum diterima','Kondisi kesehatan','Data tidak sesuai','Lainnya') NOT NULL DEFAULT 'Data kemiskinan',
  `deskripsi` text NOT NULL,
  `aktor_tujuan` enum('RT/RW','Kelurahan','Kecamatan','Dinas Sosial','Dinas Kesehatan','Wali Kota') NOT NULL DEFAULT 'Dinas Sosial',
  `status_laporan` enum('Masuk','Ditinjau','Diproses','Selesai','Dijadikan Data Masyarakat','Ditolak') NOT NULL DEFAULT 'Masuk',
  `data_nama_kepala_keluarga` varchar(150) DEFAULT NULL,
  `data_nik` varchar(20) DEFAULT NULL,
  `data_tanggal_lahir` date DEFAULT NULL,
  `data_pendidikan` enum('Tidak sekolah','SD','SMP','SMA/SMK','Diploma','S1','S2','S3','Tidak diketahui') NOT NULL DEFAULT 'Tidak diketahui',
  `data_riwayat_penyakit` text,
  `data_jumlah_kk` int NOT NULL DEFAULT '1',
  `data_alamat` text,
  `data_kecamatan` varchar(100) DEFAULT NULL,
  `data_kelurahan` varchar(100) DEFAULT NULL,
  `data_status_bantuan` enum('Belum menerima','Sudah menerima','Perlu verifikasi') NOT NULL DEFAULT 'Belum menerima',
  `latitude` decimal(12,9) NOT NULL,
  `longitude` decimal(12,9) NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `idx_laporan_penduduk_id` (`penduduk_id`),
  KEY `idx_laporan_data_nik` (`data_nik`),
  KEY `idx_laporan_data_nama` (`data_nama_kepala_keluarga`),
  CONSTRAINT `fk_laporan_penduduk` FOREIGN KEY (`penduduk_id`) REFERENCES `penduduk_kemiskinan` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `laporan_masyarakat`
--

LOCK TABLES `laporan_masyarakat` WRITE;
/*!40000 ALTER TABLE `laporan_masyarakat` DISABLE KEYS */;
INSERT INTO `laporan_masyarakat` VALUES (1,1,'DUMMY Rina Pelapor','081234567001','Data kemiskinan','Butuh bantuan','Dinas Sosial','Dijadikan Data Masyarakat','DUMMY Siti Aminah','6171010101010001','1978-04-12','SD','Diabetes',4,'Jl. Gajah Mada Gg. Mawar No. 12','Pontianak Selatan','Benua Melayu Darat','Belum menerima',-0.033941503,109.340894222,'2026-06-06 22:18:11','2026-06-06 22:34:46'),(2,1,'DUMMY Rina Pelapor','081234567001','Bantuan belum diterima','Sembako bulan ini belum di terima','Dinas Sosial','Selesai','DUMMY Siti Aminah','6171010101010001','1978-04-12','SD','Diabetes',4,'Jl. Gajah Mada Gg. Mawar No. 12','Pontianak Selatan','Benua Melayu Darat','Belum menerima',-0.033203467,109.340475798,'2026-06-06 22:40:20','2026-06-06 22:41:30'),(3,NULL,'DUMMY Andi Pelapor','081234567002','Kondisi kesehatan','Asma','Dinas Kesehatan','Masuk','DUMMY Budi Santoso','6171010202020002','1982-09-21','SMP','',1,'Jl. Ahmad Yani Gg. Kenanga No. 7','Pontianak Tenggara','Bansir Laut','Belum menerima',-0.058536749,109.350700455,'2026-06-06 22:49:11','2026-06-09 06:58:00'),(4,2,'DUMMY Wawan Pelapor','081234567004','Data kemiskinan','layak masuk sebagai masyarakat prasejahtera.','Dinas Sosial','Dijadikan Data Masyarakat','DUMMY Maimunah','6171010606060006','1975-03-22','SD','Lansia dan sakit sendi',3,'Jl. Kom Yos Sudarso Gg. Sejahtera No. 4','Pontianak Barat','Sungai Jawi Luar','Belum menerima',-0.017598041,109.331774712,'2026-06-06 22:51:47','2026-06-06 22:52:42'),(5,NULL,'DUMMY Sari Pelapor','081234567003','Data kemiskinan','Keluarga ini belum terdata dan membutuhkan bantuan kebutuhan pokok.','Dinas Sosial','Diproses','DUMMY Nurhayati','6171010505050005','1985-07-17','SD','Tidak ada',6,'Jl. Tanjungpura Gg. Anggrek No. 9','Pontianak Kota','Tengah','Belum menerima',-0.025534733,109.342546463,'2026-06-06 22:57:12','2026-06-07 15:22:43');
/*!40000 ALTER TABLE `laporan_masyarakat` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `masjid`
--

DROP TABLE IF EXISTS `masjid`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `masjid` (
  `id` int NOT NULL AUTO_INCREMENT,
  `jenis_rumah_ibadah` enum('Masjid','Gereja','Vihara','Kelenteng','Pura') NOT NULL DEFAULT 'Masjid',
  `nama_masjid` varchar(150) NOT NULL,
  `pic_masjid` varchar(150) NOT NULL,
  `alamat_masjid` text NOT NULL,
  `latitude` decimal(12,9) NOT NULL,
  `longitude` decimal(12,9) NOT NULL,
  `radius_meter` int NOT NULL DEFAULT '500',
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `masjid`
--

LOCK TABLES `masjid` WRITE;
/*!40000 ALTER TABLE `masjid` DISABLE KEYS */;
INSERT INTO `masjid` VALUES (1,'Masjid','DUMMY Masjid Al-Ikhlas','Pak Rahman','Jl. Gajah Mada, Pontianak',-0.034199201,109.341076612,700,'2026-06-06 22:31:24','2026-06-06 22:31:24'),(2,'Masjid','DUMMY Masjid Nur Fajar','Pak Yusuf','Jl. Imam Bonjol, Pontianak',-0.048442001,109.356252551,800,'2026-06-06 22:31:54','2026-06-06 22:31:54'),(3,'Gereja','DUMMY Gereja Kasih','Ibu Maria','Jl. Ahmad Yani, Pontianak',-0.059465140,109.353318214,600,'2026-06-06 22:32:35','2026-06-06 22:32:35'),(4,'Vihara','DUMMY Vihara Damai','Pak Hendra','Jl. Tanjungpura, Pontianak',-0.023626150,109.342106581,500,'2026-06-06 22:32:56','2026-06-06 22:33:14'),(5,'Kelenteng','Kelenteng Tri Darma Adipati Sia Ng Bio','Darma','Jl. H.Agus Salim No.104, Benua Melayu Darat, Kec. Pontianak Sel',-0.028300905,109.338428061,500,'2026-06-09 06:56:07','2026-06-09 06:56:07'),(6,'Pura','Pura Giripati Mulawarman','Warman','Jl. Adi Sucipto, Sungai Raya, Kec. Sungai Raya',-0.061771122,109.366432311,500,'2026-06-09 06:57:43','2026-06-09 06:57:43');
/*!40000 ALTER TABLE `masjid` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `parsil_tanah`
--

DROP TABLE IF EXISTS `parsil_tanah`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `parsil_tanah` (
  `id` int NOT NULL AUTO_INCREMENT,
  `nama_pemilik` varchar(150) NOT NULL,
  `status_kepemilikan` enum('SHM','HGB','HGU','HP') NOT NULL,
  `luas_meter` double NOT NULL DEFAULT '0',
  `geojson` longtext NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `parsil_tanah`
--

LOCK TABLES `parsil_tanah` WRITE;
/*!40000 ALTER TABLE `parsil_tanah` DISABLE KEYS */;
INSERT INTO `parsil_tanah` VALUES (2,'B','HGB',45886.23,'{\"type\":\"Polygon\",\"coordinates\":[[[109.348093,-0.043441],[109.349627,-0.044568],[109.34952,-0.044739],[109.350035,-0.045179],[109.349241,-0.046209],[109.347235,-0.044578],[109.348093,-0.043441]]]}','2026-06-09 06:36:47','2026-06-09 06:36:47'),(7,'Ayani','HGU',16708.46,'{\"type\":\"Polygon\",\"coordinates\":[[[109.345186,-0.050855],[109.345615,-0.051177],[109.345851,-0.051596],[109.344982,-0.052401],[109.344156,-0.051725],[109.345186,-0.050855]]]}','2026-06-09 06:39:33','2026-06-09 06:39:33'),(8,'Ayani','HGU',3753.41,'{\"type\":\"Polygon\",\"coordinates\":[[[109.344553,-0.050018],[109.345154,-0.050705],[109.344875,-0.05092],[109.344317,-0.050244],[109.344553,-0.050018]]]}','2026-06-09 06:39:50','2026-06-09 06:39:50'),(9,'Ayani','HGU',4836.21,'{\"type\":\"Polygon\",\"coordinates\":[[[109.346012,-0.051735],[109.346226,-0.051961],[109.34539,-0.052712],[109.345154,-0.05239],[109.346012,-0.051735]]]}','2026-06-09 06:40:18','2026-06-09 06:40:18'),(10,'Ayani','HGU',3761.97,'{\"type\":\"Polygon\",\"coordinates\":[[[109.344199,-0.05034],[109.344778,-0.051016],[109.344478,-0.05122],[109.343952,-0.050587],[109.344199,-0.05034]]]}','2026-06-09 06:40:32','2026-06-09 06:40:32'),(11,'Ayani','HGU',1759.01,'{\"type\":\"Polygon\",\"coordinates\":[[[109.344167,-0.05107],[109.344403,-0.051327],[109.344048,-0.051596],[109.343855,-0.05136],[109.344167,-0.05107]]]}','2026-06-09 06:40:47','2026-06-09 06:40:47'),(12,'Ayani','HGU',2265.46,'{\"type\":\"Polygon\",\"coordinates\":[[[109.343866,-0.050684],[109.344081,-0.050952],[109.343684,-0.051295],[109.343448,-0.05107],[109.343866,-0.050684]]]}','2026-06-09 06:41:00','2026-06-09 06:41:00'),(13,'D','HP',4256.4,'{\"type\":\"Polygon\",\"coordinates\":[[[109.347342,-0.051134],[109.347911,-0.051553],[109.347632,-0.05196],[109.347053,-0.051478],[109.347342,-0.051134]]]}','2026-06-09 06:42:20','2026-06-09 06:50:49'),(17,'HHH','HP',10239.35,'{\"type\":\"Polygon\",\"coordinates\":[[[109.348925,-0.048736],[109.349638,-0.049192],[109.349086,-0.050018],[109.348388,-0.049503],[109.348925,-0.048736]]]}','2026-06-09 06:44:43','2026-06-09 06:50:38'),(19,'AAAAAA','SHM',25333.04,'{\"type\":\"Polygon\",\"coordinates\":[[[109.344016,-0.043398],[109.348029,-0.046607],[109.347782,-0.046918],[109.343802,-0.043742],[109.344016,-0.043398]]]}','2026-06-09 06:47:57','2026-06-09 06:47:57'),(20,'ZZZZZ','HGB',17154.86,'{\"type\":\"Polygon\",\"coordinates\":[[[109.345808,-0.045458],[109.347707,-0.047036],[109.347321,-0.047454],[109.345433,-0.045866],[109.345808,-0.045458]]]}','2026-06-09 06:48:27','2026-06-09 06:48:46'),(21,'QQQQ','HP',12997.14,'{\"type\":\"Polygon\",\"coordinates\":[[[109.348351,-0.046349],[109.348737,-0.046574],[109.34731,-0.048473],[109.346956,-0.048195],[109.348351,-0.046349]]]}','2026-06-09 06:49:10','2026-06-09 06:49:10'),(22,'RRRR','SHM',26329.53,'{\"type\":\"Polygon\",\"coordinates\":[[[109.351344,-0.047593],[109.352074,-0.048119],[109.352975,-0.048656],[109.352546,-0.049106],[109.351408,-0.048237],[109.350003,-0.050255],[109.349585,-0.050019],[109.351344,-0.047593]]]}','2026-06-09 06:50:32','2026-06-09 06:50:32'),(23,'TTTTT','HP',48479.09,'{\"type\":\"Polygon\",\"coordinates\":[[[109.342546,-0.047486],[109.34422,-0.049375],[109.342697,-0.050555],[109.341602,-0.04798],[109.342546,-0.047486]]]}','2026-06-09 06:51:58','2026-06-09 06:51:58');
/*!40000 ALTER TABLE `parsil_tanah` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `penduduk_kemiskinan`
--

DROP TABLE IF EXISTS `penduduk_kemiskinan`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `penduduk_kemiskinan` (
  `id` int NOT NULL AUTO_INCREMENT,
  `nama_kepala_keluarga` varchar(150) NOT NULL,
  `nik` varchar(20) DEFAULT NULL,
  `tanggal_lahir` date DEFAULT NULL,
  `pendidikan` enum('Tidak sekolah','SD','SMP','SMA/SMK','Diploma','S1','S2','S3','Tidak diketahui') NOT NULL DEFAULT 'Tidak diketahui',
  `riwayat_penyakit` text,
  `jumlah_kk` int NOT NULL DEFAULT '1',
  `alamat` text NOT NULL,
  `kecamatan` varchar(100) DEFAULT NULL,
  `kelurahan` varchar(100) DEFAULT NULL,
  `status_bantuan` enum('Belum menerima','Sudah menerima','Perlu verifikasi') NOT NULL DEFAULT 'Belum menerima',
  `latitude` decimal(12,9) NOT NULL,
  `longitude` decimal(12,9) NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `idx_penduduk_nik` (`nik`),
  KEY `idx_penduduk_nama` (`nama_kepala_keluarga`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `penduduk_kemiskinan`
--

LOCK TABLES `penduduk_kemiskinan` WRITE;
/*!40000 ALTER TABLE `penduduk_kemiskinan` DISABLE KEYS */;
INSERT INTO `penduduk_kemiskinan` VALUES (1,'DUMMY Siti Aminah','6171010101010001','1978-04-12','SD','Diabetes',4,'Jl. Gajah Mada Gg. Mawar No. 12','Pontianak Selatan','Benua Melayu Darat','Sudah menerima',-0.032830444,109.337782975,'2026-06-06 22:34:46','2026-06-09 06:05:01'),(2,'DUMMY Maimunah','6171010606060006','1975-03-22','SD','Lansia dan sakit sendi',3,'Jl. Kom Yos Sudarso Gg. Sejahtera No. 4','Pontianak Barat','Sungai Jawi Luar','Belum menerima',-0.017598041,109.331774712,'2026-06-06 22:52:42','2026-06-06 22:52:42');
/*!40000 ALTER TABLE `penduduk_kemiskinan` ENABLE KEYS */;
UNLOCK TABLES;

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

DROP TABLE IF EXISTS `spbu`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `spbu` (
  `id` int NOT NULL AUTO_INCREMENT,
  `nama_spbu` varchar(150) NOT NULL,
  `no_telepon` varchar(30) NOT NULL,
  `buka_24_jam` tinyint(1) NOT NULL DEFAULT '0',
  `latitude` decimal(10,7) NOT NULL,
  `longitude` decimal(10,7) NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

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

LOCK TABLES `spbu` WRITE;
/*!40000 ALTER TABLE `spbu` DISABLE KEYS */;
INSERT INTO `spbu` VALUES (5,'SPBU Paris 2','08123456789',0,-0.0648854,109.3563652,'2026-06-09 06:09:33','2026-06-09 06:51:26'),(6,'SPBU Paris 1','021135',1,-0.0554674,109.3626523,'2026-06-09 06:10:26','2026-06-09 06:10:33'),(7,'SPBU Imam Bonjol','08123456789',1,-0.0463543,109.3542945,'2026-06-09 06:11:48','2026-06-09 06:13:07'),(8,'SPBU Tanjung Raya 2','08123456789',0,-0.0489240,109.3687356,'2026-06-09 06:13:00','2026-06-09 06:13:00'),(9,'SPBU Panglima Aim','08123456789',0,-0.0291771,109.3681294,'2026-06-09 06:13:59','2026-06-09 06:13:59'),(10,'SPBU OSO MT Haryono','08123456789',0,-0.0449221,109.3367153,'2026-06-09 06:14:36','2026-06-09 06:14:36'),(11,'SPBU Bundaran Kota BAru ','08123456789',1,-0.0478097,109.3187499,'2026-06-09 06:15:48','2026-06-09 06:15:48'),(12,'SPBU Kota Baru Ujung ','08123456789',0,-0.0623463,109.3044698,'2026-06-09 06:17:38','2026-06-09 06:17:38'),(13,'SPBU Wahidin','08123456789',0,-0.0388818,109.3107516,'2026-06-09 06:18:48','2026-06-09 06:18:48'),(14,'SPBU Husein Hamzah','08123456789',0,-0.0280991,109.2976248,'2026-06-09 06:19:53','2026-06-09 06:19:53'),(15,'SPBU Tanjungpura','08123456789',0,-0.0312108,109.3451428,'2026-06-09 06:20:53','2026-06-09 06:20:53'),(16,'SPBU KH Ahmad Dahlan','08123456789',0,-0.0345266,109.3318713,'2026-06-09 06:22:14','2026-06-09 06:22:14'),(17,'SPBU Hasanudin','08123456789',0,-0.0179067,109.3313885,'2026-06-09 06:23:10','2026-06-09 06:23:10'),(18,'SPBU Hos Cokroaminoto','08123456789',0,-0.0272142,109.3331909,'2026-06-09 06:23:49','2026-06-09 06:23:49'),(19,'SPBU Gusti Hamzah','08123456789',0,-0.0282396,109.3204129,'2026-06-09 06:24:45','2026-06-09 06:24:45'),(20,'SPBU Martadinata','08123456789',0,-0.0117108,109.3139809,'2026-06-09 06:25:22','2026-06-09 06:25:22'),(21,'SPBU Siantan 1','08123456789',0,-0.0162492,109.3580604,'2026-06-09 06:26:05','2026-06-09 06:26:05'),(22,'SPBU Siantan','0561886446',1,-0.0114167,109.3353796,'2026-06-09 06:27:15','2026-06-09 06:27:15');
/*!40000 ALTER TABLE `spbu` ENABLE KEYS */;
UNLOCK TABLES;

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

DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `users` (
  `id` int NOT NULL AUTO_INCREMENT,
  `nama` varchar(150) NOT NULL,
  `username` varchar(50) NOT NULL,
  `password` varchar(255) NOT NULL,
  `role` enum('admin','walikota','dinas') NOT NULL DEFAULT 'admin',
  `instansi` varchar(100) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

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

LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (1,'Administrator Sistem','admin','$2y$12$QrkopzCKam0f.9T0zBtesOsIacS.Ra.4BGkG0oO6RVlb8m1dAjHyG','admin','Admin Pengelola','2026-06-06 22:16:21'),(2,'Wali Kota Pontianak','walikota','$2y$12$QrkopzCKam0f.9T0zBtesOsIacS.Ra.4BGkG0oO6RVlb8m1dAjHyG','walikota','Wali Kota','2026-06-06 22:16:21'),(3,'Dinas Sosial Kota Pontianak','dinsos','$2y$12$QrkopzCKam0f.9T0zBtesOsIacS.Ra.4BGkG0oO6RVlb8m1dAjHyG','dinas','Dinas Sosial','2026-06-06 22:16:21'),(4,'Dinas Kesehatan Kota Pontianak','dinkes','$2y$12$QrkopzCKam0f.9T0zBtesOsIacS.Ra.4BGkG0oO6RVlb8m1dAjHyG','dinas','Dinas Kesehatan','2026-06-06 22:16:21');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!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 */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2026-06-09 14:53:59
