-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `webgis_pertanian`
--

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

--
-- Table structure for table `failed_jobs`
--

CREATE TABLE `failed_jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `uuid` varchar(255) NOT NULL,
  `connection` text NOT NULL,
  `queue` text NOT NULL,
  `payload` longtext NOT NULL,
  `exception` longtext NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `migrations`
--

CREATE TABLE `migrations` (
  `id` int(10) UNSIGNED NOT NULL,
  `migration` varchar(255) NOT NULL,
  `batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `migrations`
--

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_reset_tokens_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1),
(4, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(5, '2026_07_25_223705_create_produksis_table', 1),
(6, '2026_07_26_025228_add_tanggal_to_produksis_table', 2);

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

--
-- Table structure for table `produksis`
--

CREATE TABLE `produksis` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `tanggal` date DEFAULT NULL,
  `desa` varchar(255) NOT NULL,
  `luas_panen` double(8,2) NOT NULL,
  `luas_puso` double(8,2) DEFAULT NULL,
  `produksi` double(8,2) NOT NULL,
  `produktivitas` double(8,2) NOT NULL,
  `jumlah_petani` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `produksis`
--

INSERT INTO `produksis` (`id`, `tanggal`, `desa`, `luas_panen`, `luas_puso`, `produksi`, `produktivitas`, `jumlah_petani`, `created_at`, `updated_at`) VALUES
(2, '2026-07-26', 'ASANA', 5.00, 0.00, 6.00, 1.20, 4, '2026-07-25 16:43:59', '2026-07-25 19:00:02'),
(3, '2025-06-10', 'BENTENG', 6.00, 2.00, 5.00, 0.83, 3, '2026-07-25 19:03:19', '2026-07-25 19:03:19'),
(4, '2026-07-26', 'BATU PUTIH', 3.00, 0.00, 2.00, 0.67, 1, '2026-07-25 20:37:48', '2026-07-25 20:37:48'),
(5, '2024-06-04', 'BONEPUTE', 6.00, 2.00, 5.00, 0.83, 2, '2026-07-25 20:38:34', '2026-07-25 20:38:34'),
(6, '2023-05-08', 'BURAU', 7.00, 1.00, 8.00, 1.14, 3, '2026-07-25 20:40:19', '2026-07-25 20:40:19'),
(7, '2022-07-07', 'BURAU PANTAI', 7.00, 0.00, 9.00, 1.29, 3, '2026-07-25 20:41:08', '2026-07-25 20:41:08'),
(8, '2021-04-14', 'CENDANA', 9.00, 3.00, 8.00, 0.89, 4, '2026-07-25 20:44:06', '2026-07-25 20:44:06'),
(9, '2020-10-20', 'JALAJJA', 4.00, 0.00, 4.00, 1.00, 2, '2026-07-25 20:45:36', '2026-07-25 20:45:36'),
(10, '2020-09-14', 'KALATIRI', 6.00, 2.00, 8.00, 1.33, 2, '2026-07-25 20:47:50', '2026-07-25 20:47:50');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `produksis`
--
ALTER TABLE `produksis`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
COMMIT;

