CREATE DATABASE IF NOT EXISTS db_spbu
  CHARACTER SET utf8mb4
  COLLATE utf8mb4_unicode_ci;

USE db_spbu;

CREATE TABLE IF NOT EXISTS spbu (
  id INT(11) NOT NULL AUTO_INCREMENT,
  nama_spbu VARCHAR(100) NOT NULL,
  no_wa VARCHAR(20) NOT NULL,
  status ENUM('yes','no') NOT NULL DEFAULT 'no',
  latitude DOUBLE NOT NULL,
  longitude DOUBLE NOT NULL,
  PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

INSERT INTO spbu (nama_spbu, no_wa, status, latitude, longitude) VALUES
('SPBU Gajah Mada', '08115700101', 'yes', -0.0227, 109.3294),
('SPBU Ahmad Yani', '08115700102', 'no', -0.0350, 109.3350),
('SPBU Tanjungpura', '08115700103', 'yes', -0.0180, 109.3410);
