-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: mysql:3306
-- Generation Time: Aug 14, 2023 at 03:33 PM
-- Server version: 5.7.43
-- PHP Version: 8.2.8

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!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 */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `portofolio`
--

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

--
-- Table structure for table `category`
--

CREATE TABLE `category` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT '10',
  `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 `category`
--

INSERT INTO `category` (`id`, `name`, `status`, `created_at`, `updated_at`) VALUES
(1, 'Web', 10, '2023-08-14 15:32:38', '2023-08-14 15:32:38'),
(2, 'Aplikasi', 10, '2023-08-14 15:32:38', '2023-08-14 15:32:38');

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

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

CREATE TABLE `failed_jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `exception` longtext COLLATE utf8mb4_unicode_ci 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) COLLATE utf8mb4_unicode_ci 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
(8, '2014_10_12_000000_create_users_table', 1),
(9, '2014_10_12_100000_create_password_reset_tokens_table', 1),
(10, '2019_08_19_000000_create_failed_jobs_table', 1),
(11, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(12, '2023_08_07_123751_create_category_table', 1),
(13, '2023_08_07_123753_create_portofolio_table', 1),
(14, '2023_08_07_123823_create_upload_table', 1);

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

--
-- Table structure for table `password_reset_tokens`
--

CREATE TABLE `password_reset_tokens` (
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `personal_access_tokens`
--

CREATE TABLE `personal_access_tokens` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tokenable_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
  `abilities` text COLLATE utf8mb4_unicode_ci,
  `last_used_at` timestamp NULL DEFAULT NULL,
  `expires_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `portofolio`
--

CREATE TABLE `portofolio` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `id_category` bigint(20) UNSIGNED DEFAULT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `flag` json NOT NULL,
  `url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT '10',
  `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 `portofolio`
--

INSERT INTO `portofolio` (`id`, `id_category`, `title`, `description`, `flag`, `url`, `status`, `created_at`, `updated_at`) VALUES
(1, 2, 'Kostzy', 'Aplikasi sewa kost - kosan dan mengelola kost dengan mudah.', '[\"React Native\", \"Kitten UI\", \"Android\", \"API\", \"Codeigniter 3\", \"Pengembang 2 Orang\", \"4 Bulan\", \"Pertengahan Tahun 2021\"]', 'https://play.google.com/store/apps/details?id=com.koszy', 10, '2023-08-14 15:32:38', '2023-08-14 15:32:38'),
(2, 1, 'Epoin', 'Website transaksi penjualan dan pembelian voucher E-money serta pembelian voucher game', '[\"Yii2\", \"Bootstrap\", \"API\", \"Pengembang Saya Sendiri\", \"7 Bulan\", \"Tahun 2022 Akhir - Awal Tahun 2023\"]', 'https://epoin.com/', 10, '2023-08-14 15:32:38', '2023-08-14 15:32:38'),
(3, 2, 'Notepad', 'Catatan untuk agenda dan bisa digunakan untuk mencatat harian', '[\"React Native\", \"Kitten UI\", \"Android\", \"Internal Storage\", \"Pengembang Saya Sendiri\", \"2 Minggu\", \"Pertengahan Tahun 2021\"]', 'https://play.google.com/store/apps/details?id=com.notepad.ars', 10, '2023-08-14 15:32:38', '2023-08-14 15:32:38'),
(4, 1, 'Pintukeluar', 'Web profile pintukeluar.', '[\"Codeigniter 4\", \"Bootstrap\", \"Pengembang Saya Sendiri\", \"1 Bulan\", \"Februari 2023\"]', 'https://pintukeluar.id/', 10, '2023-08-14 15:32:38', '2023-08-14 15:32:38'),
(5, 1, 'Juwita Fish Farm', 'Website ini untuk menjual ikan koi dalam rangka menyelesaikan tugas akhir.', '[\"HTML\", \"PHP\", \"CSS\", \"JQuery\", \"Bootstrap\", \"1 Bulan\", \"Pengambang Saya Sendiri\", \"Awal Tahun 2022\"]', 'https://toko-koi.pixarts.my.id/', 10, '2023-08-14 15:32:38', '2023-08-14 15:32:38'),
(6, 1, 'Identifikasi Penyakit Ikan Koi', 'Website ini untuk mengidentifikasi penyakit ikan koi dalam rangka menyelesaikan tugas akhir.', '[\"Codeigniter 4\", \"CSS\", \"JQuery\", \"Bootstrap\", \"Pengembang Saya Sendiri\", \"1 Bulan\", \"Juni 2022\"]', 'https://ikan-koi.pixarts.my.id/', 10, '2023-08-14 15:32:38', '2023-08-14 15:32:38'),
(7, 1, 'Absen Siswa', 'Website ini untuk menambah kelas, mengatur jadwal matapelajaran dan guru mata pelajar, mengabsen siswa, dan rekap absen dalam rangka menyelesaikan tugas akhir.', '[\"Laravel 10\", \"CSS\", \"JQuery\", \"Bootstrap\", \"Pengembang Saya Sendiri\", \"5 Hari\", \"Juli 2023\"]', 'https://ikan-koi.pixarts.my.id/', 10, '2023-08-14 15:32:38', '2023-08-14 15:32:38'),
(8, 1, 'ShowUs', 'Marketplace media periklanan', '[\"Website\", \"Codeigniter 3\", \"Bootstrap\", \"Pengembang 3 Orang\", \"Tahun 2020 - Tahun 2021\"]', 'https://showus.biz/', 10, '2023-08-14 15:32:38', '2023-08-14 15:32:38'),
(9, 2, 'Opeo', 'OPEO aplikasi yang menyediakan layanan pre-order dan antar makanan/minuman.', '[\"React Native\", \"Android\", \"Kitten UI\", \"API\", \"Codeigniter 3\", \"Pengembang 3 Orang\", \"Tahun 2020 - Tahun 2021\"]', 'https://play.google.com/store/apps/details?id=id.opeo', 10, '2023-08-14 15:32:38', '2023-08-14 15:32:38');

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

--
-- Table structure for table `upload`
--

CREATE TABLE `upload` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `id_portofolio` bigint(20) UNSIGNED DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `filename` varchar(255) COLLATE utf8mb4_unicode_ci 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 `upload`
--

INSERT INTO `upload` (`id`, `id_portofolio`, `name`, `filename`, `created_at`, `updated_at`) VALUES
(1, 1, 'kostzy', 'Lyv1GfCOUbN1O8cYE384lcuk5a0BtLwGIjArIfnkQAMuyxlmaj.png', '2023-08-14 15:32:38', '2023-08-14 15:32:38'),
(2, 2, 'epoin', 'sIO4WUhzJJunNRUU5iJhUISkkIgyA6Z7IHcUuuDhStuOidl2aj.png', '2023-08-14 15:32:38', '2023-08-14 15:32:38'),
(3, 3, 'notepad', 'rJzxWG2drH8M5OFMf02C5tbgJYxSeRcHosU972Tp2YJLeH0Nnd.png', '2023-08-14 15:32:38', '2023-08-14 15:32:38'),
(4, 4, 'pintukeluar', 'Kf0F3p1I99jXFmKvm4vvzNrRgA2cvHXiJootwdUGoS99OXe5Gr.png', '2023-08-14 15:32:38', '2023-08-14 15:32:38'),
(5, 5, 'juwita-fish-farm', 'QQjcCe9wKJnTDWx3s7yZ3kppo9jAakqXPi536UpmUrtywhXjbU.png', '2023-08-14 15:32:38', '2023-08-14 15:32:38'),
(6, 6, 'identifikasi-penyakit-ikan-koi', 'WDXTmRXBNoUzg3TvkiyUufX6z3uhtYSRTPs67k3xKrFS75idWB.png', '2023-08-14 15:32:38', '2023-08-14 15:32:38'),
(7, 7, 'absen-siswa', 'tJz9JFMLR3smAEWRhGhzUreDeuS85facXXk4he3dT4P4JKnr6M.png', '2023-08-14 15:32:38', '2023-08-14 15:32:38'),
(8, 8, 'showus', '47cw7qJk1XX7wlbwN96ssL15VJwzHtc8QpDHsasvmI6vwlKhAK.png', '2023-08-14 15:32:38', '2023-08-14 15:32:38'),
(9, 9, 'opeo', 'EHyAUeo2wYaNcbTXzVhCmnlujiLzob3XBXyuDZrJoACDceqZzN.png', '2023-08-14 15:32:38', '2023-08-14 15:32:38');

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

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

CREATE TABLE `users` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Indexes for dumped tables
--

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

--
-- 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 `password_reset_tokens`
--
ALTER TABLE `password_reset_tokens`
  ADD PRIMARY KEY (`email`);

--
-- Indexes for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
  ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`);

--
-- Indexes for table `portofolio`
--
ALTER TABLE `portofolio`
  ADD PRIMARY KEY (`id`),
  ADD KEY `portofolio_id_category_index` (`id_category`);

--
-- Indexes for table `upload`
--
ALTER TABLE `upload`
  ADD PRIMARY KEY (`id`),
  ADD KEY `upload_id_portofolio_index` (`id_portofolio`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `users_email_unique` (`email`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `category`
--
ALTER TABLE `category`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- 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=15;

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

--
-- AUTO_INCREMENT for table `portofolio`
--
ALTER TABLE `portofolio`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `upload`
--
ALTER TABLE `upload`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

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

--
-- Constraints for dumped tables
--

--
-- Constraints for table `portofolio`
--
ALTER TABLE `portofolio`
  ADD CONSTRAINT `portofolio_id_category_foreign` FOREIGN KEY (`id_category`) REFERENCES `category` (`id`);
COMMIT;

/*!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 */;
