-- SQL Dump for database: webgis_app
-- Generated on 2026-06-11T07:00:03.800Z

CREATE DATABASE IF NOT EXISTS `webgis_app`;
USE `webgis_app`;

DROP TABLE IF EXISTS `lands`;
CREATE TABLE `lands` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `ownership_status` varchar(100) NOT NULL,
  `area_sq_meters` float NOT NULL,
  `coordinates` json NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

-- Dumping data for table `lands`
INSERT INTO `lands` (`id`, `name`, `ownership_status`, `area_sq_meters`, `coordinates`) VALUES
(1, 'SD SMP SMK Imanuel', 'Sertifikat Hak Milik (SHM)', 6460.43, '[[-0.049175614041593416,109.34033632278442],[-0.04886984232581531,109.34120535850526],[-0.04939555509944433,109.34138238430025],[-0.04939555509944433,109.34138238430025],[-0.04973351330886477,109.34057235717775]]');

DROP TABLE IF EXISTS `roads`;
CREATE TABLE `roads` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `road_type` varchar(100) NOT NULL,
  `distance_meters` float NOT NULL,
  `coordinates` json NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

-- Dumping data for table `roads`
INSERT INTO `roads` (`id`, `name`, `road_type`, `distance_meters`, `coordinates`) VALUES
(1, 'jalan ayani', 'Jalan nasional', 1396.78, '[[-0.045254225794036186,109.3409049510956],[-0.04007219941561562,109.3364953994751],[-0.035566089253396424,109.33291196823122]]'),
(2, 'jalan sutoyo', 'Jalan provinsi', 722.47, '[[-0.04747509413108566,109.3423640727997],[-0.049020045975848886,109.33863043785097],[-0.04983543721295793,109.3363130092621]]'),
(3, 'jalan veteran', 'Jalan kabupaten', 629.38, '[[-0.046230549564303815,109.3423640727997],[-0.041853185746272566,109.34466004371644],[-0.041445490083730975,109.34525012969972]]');

