-- https://www.phpmyadmin.net/
--
-- Waktu pembuatan: 01 Mar 2023 pada 14.12
-- Versi server: 10.4.24-MariaDB
-- Versi PHP: 7.4.29

START TRANSACTION;



--
-- Database: `laraveltprod`
--

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

--
-- Struktur dari tabel `bahan`
--

CREATE TABLE `bahan` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `nama` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data untuk tabel `bahan`
--

INSERT INTO `bahan` (`id`, `nama`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Kedelai', NULL, '2023-03-01 13:08:28', '2023-03-01 13:08:28'),
(2, 'Karet', NULL, '2023-03-01 13:08:28', '2023-03-01 13:08:28'),
(3, 'Kapas', NULL, '2023-03-01 13:08:29', '2023-03-01 13:08:29');

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

--
-- Struktur dari tabel `failed_jobs`
--

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

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

--
-- Struktur dari tabel `hasilpanen`
--

CREATE TABLE `hasilpanen` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `bahan_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `tgl_pelaporan` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `petani_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `waktu_panen` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `jml` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `kualitas` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Struktur dari tabel `kategori`
--

CREATE TABLE `kategori` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `nama` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `prefix` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `kode` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data untuk tabel `kategori`
--

INSERT INTO `kategori` (`id`, `nama`, `prefix`, `kode`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Kelompok Tani Desa Anggora', 'kelompoktani', NULL, NULL, '2023-03-01 13:08:28', '2023-03-01 13:08:28'),
(2, 'Kelompok Tani Desa Persia', 'kelompoktani', NULL, NULL, '2023-03-01 13:08:28', '2023-03-01 13:08:28');

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

--
-- Struktur dari tabel `migrations`
--

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

--
-- Dumping data untuk tabel `migrations`
--

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2014_10_12_200000_add_two_factor_columns_to_users_table', 1),
(4, '2019_08_19_000000_create_failed_jobs_table', 1),
(5, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(6, '2021_08_04_141828_create_sessions_table', 1),
(7, '2021_08_06_155146_create_settings_table', 1),
(8, '2021_11_12_212058_create_kategori_table', 1),
(9, '2022_01_27_073840_create_bahan_table', 1),
(10, '2022_01_27_073856_create_hasilpanen_table', 1),
(11, '2022_01_27_073911_create_pengolahanbahan_table', 1),
(12, '2022_01_27_073923_create_petani_table', 1),
(13, '2022_01_27_073935_create_produk_table', 1),
(14, '2022_01_27_074008_create_produkrugilaba_table', 1);

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

--
-- Struktur dari tabel `pengolahanbahan`
--

CREATE TABLE `pengolahanbahan` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `tgl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `hasilpanen_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `waktupengolahan` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `jml_pengolahan` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `hasil_pengolahan` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `produk_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `jml` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Struktur dari tabel `petani`
--

CREATE TABLE `petani` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `nama` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `kategori_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data untuk tabel `petani`
--

INSERT INTO `petani` (`id`, `nama`, `kategori_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Petani', '1', NULL, '2023-03-01 13:08:28', '2023-03-01 13:08:28'),
(2, 'Suwarno', '1', NULL, '2023-03-01 13:08:28', '2023-03-01 13:08:28'),
(3, 'Sri', '2', NULL, '2023-03-01 13:08:28', '2023-03-01 13:08:28');

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

--
-- Struktur dari tabel `produk`
--

CREATE TABLE `produk` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `nama` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `hargajual` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data untuk tabel `produk`
--

INSERT INTO `produk` (`id`, `nama`, `hargajual`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Tempe', '10000', NULL, '2023-03-01 13:08:29', '2023-03-01 13:08:29'),
(2, 'Bantal', '20000', NULL, '2023-03-01 13:08:29', '2023-03-01 13:08:29'),
(3, 'Sandal', '15000', NULL, '2023-03-01 13:08:29', '2023-03-01 13:08:29');

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

--
-- Struktur dari tabel `produkrugilaba`
--

CREATE TABLE `produkrugilaba` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `tgl` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `produk_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `jml_terjual` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Struktur dari tabel `sessions`
--

CREATE TABLE `sessions` (
  `id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `ip_address` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
  `user_agent` text COLLATE utf8_unicode_ci DEFAULT NULL,
  `payload` text COLLATE utf8_unicode_ci NOT NULL,
  `last_activity` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data untuk tabel `sessions`
--

INSERT INTO `sessions` (`id`, `user_id`, `ip_address`, `user_agent`, `payload`, `last_activity`) VALUES
('XhmaWUbVmIqRydiBb8dCCI4Vu3rahreqzTIBj2NS', NULL, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36', 'YTozOntzOjY6Il90b2tlbiI7czo0MDoiMlZMM290ekFVRzRkUG02UGVPbXVTMDgyTzYxSkFHOWNXZDkyUG9TVCI7czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6MjE6Imh0dHA6Ly8xMjcuMC4wLjE6ODAwMCI7fX0=', 1677676356);

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

--
-- Struktur dari tabel `settings`
--

CREATE TABLE `settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `app_nama` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `app_namapendek` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `paginationjml` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lembaga_nama` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lembaga_jalan` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lembaga_telp` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lembaga_kota` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lembaga_logo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sekolahttd` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data untuk tabel `settings`
--

INSERT INTO `settings` (`id`, `app_nama`, `app_namapendek`, `paginationjml`, `lembaga_nama`, `lembaga_jalan`, `lembaga_telp`, `lembaga_kota`, `lembaga_logo`, `sekolahttd`, `created_at`, `updated_at`) VALUES
(1, 'SI Pelaporan Pengolahan Produksi', 'SMM', '10', 'PT Pelaporan Pengolahan Produksi', 'Jl. Warnawarni No. 11, Kec. Kromengan, Kab. Malang', '0341-123121', 'Malang', 'assets/upload/logo.png', 'Nama Kepala Sekolah M.Pd', '2023-03-01 13:08:28', '2023-03-01 13:08:28');

--
-- Indexes for dumped tables
--

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

--
-- Indeks untuk tabel `failed_jobs`
--
ALTER TABLE `failed_jobs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);

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

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

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

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

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

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

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

--
-- Indeks untuk tabel `sessions`
--
ALTER TABLE `sessions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `sessions_user_id_index` (`user_id`),
  ADD KEY `sessions_last_activity_index` (`last_activity`);

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

--
-- AUTO_INCREMENT untuk tabel yang dibuang
--

--
-- AUTO_INCREMENT untuk tabel `bahan`
--
ALTER TABLE `bahan`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

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

--
-- AUTO_INCREMENT untuk tabel `hasilpanen`
--
ALTER TABLE `hasilpanen`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `kategori`
--
ALTER TABLE `kategori`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT untuk tabel `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT untuk tabel `pengolahanbahan`
--
ALTER TABLE `pengolahanbahan`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `petani`
--
ALTER TABLE `petani`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT untuk tabel `produk`
--
ALTER TABLE `produk`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT untuk tabel `produkrugilaba`
--
ALTER TABLE `produkrugilaba`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT untuk tabel `settings`
--
ALTER TABLE `settings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
COMMIT;

