-- phpMyAdmin SQL Dump -- version 5.2.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Apr 08, 2025 at 03:00 PM -- Server version: 8.0.30 -- PHP Version: 8.2.27 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: `project_jahit` -- -- -------------------------------------------------------- -- -- Table structure for table `bookings` -- CREATE TABLE `bookings` ( `id` bigint UNSIGNED NOT NULL, `customer_id` bigint UNSIGNED NOT NULL, `tailor_id` bigint UNSIGNED NOT NULL, `appointment_date` date NOT NULL, `appointment_time` time NOT NULL, `service_type` enum('Perbaikan','Jahit Baru') COLLATE utf8mb4_unicode_ci NOT NULL, `category` enum('Atasan','Bawahan','Terusan') COLLATE utf8mb4_unicode_ci NOT NULL, `design_photo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `notes` text COLLATE utf8mb4_unicode_ci, `status` enum('reservasi','diproses','selesai','dibatalkan') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'reservasi', `total_price` decimal(10,2) DEFAULT NULL, `payment_status` enum('unpaid','paid') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'unpaid', `measurements` json DEFAULT NULL, `repair_details` json DEFAULT NULL, `repair_photo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `repair_notes` text COLLATE utf8mb4_unicode_ci, `completion_photo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `completion_notes` text COLLATE utf8mb4_unicode_ci, `accepted_at` timestamp NULL DEFAULT NULL, `rejected_at` timestamp NULL DEFAULT NULL, `completed_at` timestamp NULL DEFAULT NULL, `pickup_date` date DEFAULT NULL, `rejection_reason` text COLLATE utf8mb4_unicode_ci, `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 `bookings` -- INSERT INTO `bookings` (`id`, `customer_id`, `tailor_id`, `appointment_date`, `appointment_time`, `service_type`, `category`, `design_photo`, `notes`, `status`, `total_price`, `payment_status`, `measurements`, `repair_details`, `repair_photo`, `repair_notes`, `completion_photo`, `completion_notes`, `accepted_at`, `rejected_at`, `completed_at`, `pickup_date`, `rejection_reason`, `created_at`, `updated_at`) VALUES (1, 8, 10, '2025-04-10', '09:00:00', 'Perbaikan', 'Terusan', 'design_photos/piUIpUWjYJulxlbvR7wFuIqNxwK4eryenNJNMw5j.png', 'Catatan tambahan', 'reservasi', NULL, 'unpaid', NULL, NULL, NULL, NULL, NULL, NULL, '2025-04-07 00:15:18', NULL, NULL, NULL, NULL, '2025-04-07 03:40:15', '2025-04-07 00:15:18'), (2, 8, 10, '2025-04-10', '09:00:00', 'Perbaikan', 'Terusan', 'design_photos/1UsgLBgQPeugWpnHJfJ2Lhog8qXvv487wvN2SJ7n.png', 'Catatan tambahan', 'diproses', NULL, 'unpaid', NULL, NULL, NULL, NULL, NULL, NULL, '2025-04-07 00:22:27', NULL, NULL, NULL, NULL, '2025-04-07 07:22:13', '2025-04-07 00:22:27'), (3, 8, 10, '2025-04-10', '09:00:00', 'Perbaikan', 'Terusan', 'design_photos/B6RsnNEVYsqSfIeub9lGhnwhKttGwPdXQGYu42Eu.jpg', 'Catatan tambahan', 'selesai', NULL, 'paid', NULL, NULL, NULL, NULL, 'completion_photos/completion_1744012234_3.png', 'Jahitan sudah selesai sesuai permintaan', '2025-04-07 00:34:38', NULL, '2025-04-07 00:50:34', '2025-04-20', NULL, '2025-04-07 07:23:01', '2025-04-07 01:28:23'), (4, 8, 10, '2025-04-15', '09:00:00', 'Perbaikan', 'Terusan', 'design_photos/4j1gVHz7Z2Cn5FDcyrORiQAKTH59IUq77xsT7SO6.png', 'CACANG', 'reservasi', NULL, 'unpaid', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-04-08 14:39:03', '2025-04-08 14:39:03'), (5, 8, 10, '2025-04-15', '09:00:00', 'Perbaikan', 'Terusan', 'design_photos/u6T2cklg77Y72T4u0Xr4SPeqxXItI3vFDOAnYVDv.png', 'CACANG CICING', 'reservasi', NULL, 'unpaid', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-04-08 14:42:24', '2025-04-08 14:42:24'); -- -------------------------------------------------------- -- -- Table structure for table `cache` -- CREATE TABLE `cache` ( `key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `value` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL, `expiration` int NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `cache_locks` -- CREATE TABLE `cache_locks` ( `key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `owner` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `expiration` int NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `customer_specialization` -- CREATE TABLE `customer_specialization` ( `id` bigint UNSIGNED NOT NULL, `user_id` bigint UNSIGNED NOT NULL, `tailor_specialization_id` bigint UNSIGNED 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 `customer_specialization` -- INSERT INTO `customer_specialization` (`id`, `user_id`, `tailor_specialization_id`, `created_at`, `updated_at`) VALUES (1, 1, 1, NULL, NULL), (2, 1, 5, NULL, NULL), (3, 1, 8, NULL, NULL), (4, 2, 1, NULL, NULL), (5, 2, 2, NULL, NULL), (6, 2, 3, NULL, NULL), (7, 3, 1, NULL, NULL), (8, 3, 2, NULL, NULL), (9, 3, 3, NULL, NULL), (10, 4, 1, NULL, NULL), (11, 4, 2, NULL, NULL), (12, 4, 3, NULL, NULL), (13, 5, 1, NULL, NULL), (14, 5, 2, NULL, NULL), (15, 5, 3, NULL, NULL), (16, 6, 1, NULL, NULL), (17, 6, 2, NULL, NULL), (18, 6, 7, NULL, NULL), (19, 6, 10, NULL, NULL), (20, 8, 1, NULL, NULL), (21, 8, 2, NULL, NULL), (22, 8, 3, NULL, NULL), (23, 9, 1, NULL, NULL), (24, 9, 2, NULL, NULL), (25, 9, 8, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint 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 `jobs` -- CREATE TABLE `jobs` ( `id` bigint UNSIGNED NOT NULL, `queue` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `attempts` tinyint UNSIGNED NOT NULL, `reserved_at` int UNSIGNED DEFAULT NULL, `available_at` int UNSIGNED NOT NULL, `created_at` int UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `job_batches` -- CREATE TABLE `job_batches` ( `id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `total_jobs` int NOT NULL, `pending_jobs` int NOT NULL, `failed_jobs` int NOT NULL, `failed_job_ids` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `options` mediumtext COLLATE utf8mb4_unicode_ci, `cancelled_at` int DEFAULT NULL, `created_at` int NOT NULL, `finished_at` int DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '0001_01_01_000001_create_cache_table', 1), (2, '0001_01_01_000002_create_jobs_table', 1), (3, '2014_10_12_000000_create_users_table', 1), (4, '2024_03_23_000000_create_tailor_services_table', 1), (5, '2024_03_23_create_bookings_table', 1), (6, '2024_03_23_create_tailor_ratings_table', 1), (7, '2024_03_23_create_tailor_specializations_table', 1), (8, '2025_03_23_110103_create_sessions_table', 1), (9, '2025_03_23_112534_create_personal_access_tokens_table', 1), (10, '2025_03_25_052708_add_measurements_to_bookings_table', 1), (11, '2025_03_25_053140_add_measurements_to_bookings_table', 1), (12, '2025_03_25_061103_create_customer_specialization_table', 1), (13, '2025_03_25_061144_add_coordinates_to_users_table', 1), (14, '2025_04_06_171929_add_category_to_tailor_specializations', 1), (15, '2025_04_06_172929_add_photo_to_tailor_specializations', 2), (16, '2025_04_06_185502_add_photo_to_tailor_specializations_table', 2), (17, '2024_03_27_create_tailor_galleries_table', 3), (18, '2025_04_07_082729_add_pickup_date_to_bookings_table', 4), (19, '2025_04_07_082735_add_pickup_date_to_bookings_table', 4); -- -------------------------------------------------------- -- -- Table structure for table `personal_access_tokens` -- CREATE TABLE `personal_access_tokens` ( `id` bigint UNSIGNED NOT NULL, `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `tokenable_id` bigint 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; -- -- Dumping data for table `personal_access_tokens` -- INSERT INTO `personal_access_tokens` (`id`, `tokenable_type`, `tokenable_id`, `name`, `token`, `abilities`, `last_used_at`, `expires_at`, `created_at`, `updated_at`) VALUES (1, 'App\\Models\\User', 1, 'auth_token', '71cf9a5c892186dffcd9d2d6229bd4185b2b414d0186f15acfa97e86da96229a', '[\"pelanggan\"]', NULL, NULL, '2025-04-06 10:27:36', '2025-04-06 10:27:36'), (2, 'App\\Models\\User', 2, 'auth_token', 'd452a40a6ffd2a0b1eca2c4a18a3c6d6e4225b571601ad2b6292d2b00870b3f0', '[\"pelanggan\"]', '2025-04-06 10:37:49', NULL, '2025-04-06 10:37:14', '2025-04-06 10:37:49'), (3, 'App\\Models\\User', 3, 'auth_token', '884196424ffbd114387522bf0f598f7292a3775a24709ac0268deac827a2c7b1', '[\"pelanggan\"]', NULL, NULL, '2025-04-06 10:57:31', '2025-04-06 10:57:31'), (4, 'App\\Models\\User', 4, 'auth_token', '0074d4b7a7492285196fedb7093022aa9a4634642af7915a0434a22bc19d9fde', '[\"pelanggan\"]', NULL, NULL, '2025-04-06 11:18:36', '2025-04-06 11:18:36'), (5, 'App\\Models\\User', 3, 'auth_token', '79808553a129ea466df16e8e3c3ab263fbf292ad0521ca9fccfa535cf6ba1637', '[\"pelanggan\"]', NULL, NULL, '2025-04-06 11:20:53', '2025-04-06 11:20:53'), (6, 'App\\Models\\User', 4, 'auth_token', '4467414437aba2bd8c6c315475e0ef57e2472518d1fbbef9f640040e39ce320e', '[\"pelanggan\"]', '2025-04-06 11:33:45', NULL, '2025-04-06 11:21:40', '2025-04-06 11:33:45'), (7, 'App\\Models\\User', 4, 'auth_token', 'e1e8173b5d871b4cf5a967ceb880bc78dac89ecbf7679ea054504ac442c887e8', '[\"pelanggan\"]', NULL, NULL, '2025-04-06 11:22:32', '2025-04-06 11:22:32'), (8, 'App\\Models\\User', 5, 'auth_token', '89ce9e8f5b6571474e7eb6dd532332c3d0117a0fd5f714ab6babcd7bfa8479f0', '[\"pelanggan\"]', NULL, NULL, '2025-04-06 11:37:24', '2025-04-06 11:37:24'), (9, 'App\\Models\\User', 4, 'auth_token', '26da3dfb384242098aef13292a85d82fb73173ffe5eea15aded842ffb9e7a827', '[\"pelanggan\"]', NULL, NULL, '2025-04-06 11:38:30', '2025-04-06 11:38:30'), (10, 'App\\Models\\User', 6, 'auth_token', 'eaf599a431564f9f94e5af7a87786d79ac6d1f2145ad1a62f2fa6edd67328b57', '[\"pelanggan\"]', NULL, NULL, '2025-04-06 11:49:30', '2025-04-06 11:49:30'), (11, 'App\\Models\\User', 7, 'auth_token', 'cf7b87929aa41b6110c50ca7053952abe30f88b242d79390c3a8519cb25aa9e4', '[\"admin\"]', '2025-04-06 12:02:36', NULL, '2025-04-06 12:00:37', '2025-04-06 12:02:36'), (12, 'App\\Models\\User', 7, 'auth_token', '81a5029d9f316faa583eb9bab4bb5cb0170e8094bbf5402d0b15b61dd1773e1c', '[\"admin\"]', '2025-04-06 12:12:26', NULL, '2025-04-06 12:05:20', '2025-04-06 12:12:26'), (13, 'App\\Models\\User', 7, 'auth_token', 'b807faf25db5bd36b6d0d5079ff0b3ad5ad1062396a630ef6701caf4d54acbbb', '[\"admin\"]', NULL, NULL, '2025-04-06 12:20:07', '2025-04-06 12:20:07'), (14, 'App\\Models\\User', 8, 'auth_token', 'da868737d481632b3fba2dffd5decd6c01f247ef185a9e107dae06f9d1b662a7', '[\"pelanggan\"]', NULL, NULL, '2025-04-06 12:20:53', '2025-04-06 12:20:53'), (15, 'App\\Models\\User', 9, 'auth_token', '679888d9ebaec82a031e166183b1d9ba0361ed8e883445249fc84f2d1dca4e8d', '[\"pelanggan\"]', NULL, NULL, '2025-04-06 12:30:21', '2025-04-06 12:30:21'), (16, 'App\\Models\\User', 8, 'auth_token', '42d0c0d064a837cbd7c38cf6fb4c6bb008434585384b58b98b741b0b322f43d7', '[\"pelanggan\"]', '2025-04-06 12:44:13', NULL, '2025-04-06 12:40:49', '2025-04-06 12:44:13'), (17, 'App\\Models\\User', 10, 'auth_token', '9deafb91e4b039c59088de8e5898a28d227050a57b2a18a97b918ccaa7f5613c', '[\"penjahit\"]', NULL, NULL, '2025-04-06 12:42:38', '2025-04-06 12:42:38'), (18, 'App\\Models\\User', 9, 'auth_token', '855b20f72ae435d0adc6cdd5b538d994ae9f2922f1e0d020465c159bbcdd5343', '[\"pelanggan\"]', NULL, NULL, '2025-04-06 12:48:35', '2025-04-06 12:48:35'), (19, 'App\\Models\\User', 8, 'auth_token', 'ec422e87fa36776072c61dd7cdb7546fa07659307f9ba1b860bc1063fa13c13e', '[\"pelanggan\"]', NULL, NULL, '2025-04-06 12:52:50', '2025-04-06 12:52:50'), (20, 'App\\Models\\User', 8, 'auth_token', '752b0ff10388906d1816a6b472a9a874dee3e2f25c6a168a14d89e2f7c58c61b', '[\"pelanggan\"]', '2025-04-06 13:08:02', NULL, '2025-04-06 12:55:11', '2025-04-06 13:08:02'), (21, 'App\\Models\\User', 10, 'auth_token', 'debd5082f8fc667a4e1f268daec9aaadac6e0c69b9165101daba2b87f1ae86ed', '[\"penjahit\"]', '2025-04-06 13:25:49', NULL, '2025-04-06 13:05:10', '2025-04-06 13:25:49'), (22, 'App\\Models\\User', 8, 'auth_token', '61dc200a43c1c5cdfcf36d5d54478b12f8f072f327e43c8532b7b9e5438ed6fc', '[\"pelanggan\"]', '2025-04-06 13:46:27', NULL, '2025-04-06 13:33:21', '2025-04-06 13:46:27'), (23, 'App\\Models\\User', 8, 'auth_token', 'b95f64ec9295b34c35f4ad64c27ff974d9a705f763adbd0b790a88544e3e1bcb', '[\"pelanggan\"]', '2025-04-06 13:39:37', NULL, '2025-04-06 13:39:36', '2025-04-06 13:39:37'), (24, 'App\\Models\\User', 8, 'auth_token', '9618a4d4fba634a301b800368728490924aa1b2d525cfe80acf931ce328f44c8', '[\"pelanggan\"]', '2025-04-06 13:45:23', NULL, '2025-04-06 13:45:22', '2025-04-06 13:45:23'), (25, 'App\\Models\\User', 8, 'auth_token', '26f382e74ab72c84c69b138e6e0c5cd42c1edcb008f3d805ddb5a833d4b52ab6', '[\"pelanggan\"]', '2025-04-06 13:58:10', NULL, '2025-04-06 13:53:59', '2025-04-06 13:58:10'), (26, 'App\\Models\\User', 8, 'auth_token', 'f99bc0835f573697c90f6ddad62fe671101e7da82079e488edbc66f2e554c5f3', '[\"pelanggan\"]', '2025-04-07 00:57:37', NULL, '2025-04-06 20:28:35', '2025-04-07 00:57:37'), (27, 'App\\Models\\User', 10, 'auth_token', '5a1e733447f8f6de6af4bac6c9687aeadb850c86eb6b44bb7235c713b16081eb', '[\"penjahit\"]', '2025-04-07 19:23:40', NULL, '2025-04-07 00:14:44', '2025-04-07 19:23:40'), (28, 'App\\Models\\User', 8, 'auth_token', '185fd9d68eb7ba5515001e8f9860bebce271b25b933eff42d3b35b394322c304', '[\"pelanggan\"]', '2025-04-07 01:59:14', NULL, '2025-04-07 01:06:01', '2025-04-07 01:59:14'), (29, 'App\\Models\\User', 8, 'auth_token', '234fb8594d37bba0072bb0bd32dacd8f7d5fc7691f9f54566d457c8f7e27612f', '[\"pelanggan\"]', NULL, NULL, '2025-04-07 19:20:32', '2025-04-07 19:20:32'), (30, 'App\\Models\\User', 4, 'auth_token', '9c7c4eb4bf4e602f60e2371cf52fdf74de6bbb2d1aed504100bb0a627616f80f', '[\"pelanggan\"]', NULL, NULL, '2025-04-07 19:21:14', '2025-04-07 19:21:14'), (31, 'App\\Models\\User', 8, 'auth_token', 'cd83b83dd5134bb3273fe7029f29007d3f3a55540d4e5326d30cbd36b852a507', '[\"pelanggan\"]', '2025-04-08 07:42:24', NULL, '2025-04-08 07:33:26', '2025-04-08 07:42:24'); -- -------------------------------------------------------- -- -- Table structure for table `sessions` -- CREATE TABLE `sessions` ( `id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `user_id` bigint UNSIGNED DEFAULT NULL, `ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `user_agent` text COLLATE utf8mb4_unicode_ci, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `last_activity` int NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `sessions` -- INSERT INTO `sessions` (`id`, `user_id`, `ip_address`, `user_agent`, `payload`, `last_activity`) VALUES ('8dQeTEhusbDlDxWiblo4is10sjjHzAJRFKgmQAlu', 7, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36', 'YTo0OntzOjY6Il90b2tlbiI7czo0MDoiSHRnaEhCVnJGSVVZeHpaZWczNVdKUDh1cmlORTE0ZTFFRjJsZzU0NyI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6Mzc6Imh0dHA6Ly8xMjcuMC4wLjE6ODA4OC9hZG1pbi9kYXNoYm9hcmQiO31zOjY6Il9mbGFzaCI7YToyOntzOjM6Im9sZCI7YTowOnt9czozOiJuZXciO2E6MDp7fX1zOjUwOiJsb2dpbl93ZWJfNTliYTM2YWRkYzJiMmY5NDAxNTgwZjAxNGM3ZjU4ZWE0ZTMwOTg5ZCI7aTo3O30=', 1744124205); -- -------------------------------------------------------- -- -- Table structure for table `tailor_galleries` -- CREATE TABLE `tailor_galleries` ( `id` bigint UNSIGNED NOT NULL, `user_id` bigint UNSIGNED NOT NULL, `photo` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `description` text COLLATE utf8mb4_unicode_ci, `category` varchar(255) 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; -- -- Dumping data for table `tailor_galleries` -- INSERT INTO `tailor_galleries` (`id`, `user_id`, `photo`, `title`, `description`, `category`, `created_at`, `updated_at`) VALUES (1, 10, '/storage/gallery_photos/gallery_1743970859_10.jpeg', 'GAUN PENGANTIN', 'Gaun pengantin', 'Gaun Pengantin', '2025-04-06 13:20:59', '2025-04-06 13:20:59'); -- -------------------------------------------------------- -- -- Table structure for table `tailor_ratings` -- CREATE TABLE `tailor_ratings` ( `id` bigint UNSIGNED NOT NULL, `booking_id` bigint UNSIGNED NOT NULL, `customer_id` bigint UNSIGNED NOT NULL, `tailor_id` bigint UNSIGNED NOT NULL, `rating` decimal(2,1) NOT NULL, `review` text COLLATE utf8mb4_unicode_ci, `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 `tailor_ratings` -- INSERT INTO `tailor_ratings` (`id`, `booking_id`, `customer_id`, `tailor_id`, `rating`, `review`, `created_at`, `updated_at`) VALUES (1, 3, 8, 10, '5.0', 'Pelayanan sangat memuaskan, jahitan rapi dan sesuai pesanan!', '2025-04-07 01:37:12', '2025-04-07 01:37:12'); -- -------------------------------------------------------- -- -- Table structure for table `tailor_services` -- CREATE TABLE `tailor_services` ( `id` bigint UNSIGNED NOT NULL, `user_id` bigint UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `description` text COLLATE utf8mb4_unicode_ci NOT NULL, `price` decimal(10,2) NOT NULL, `category` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `estimated_days` int NOT NULL DEFAULT '1', `is_available` tinyint(1) NOT NULL DEFAULT '1', `service_photo` varchar(255) 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; -- -------------------------------------------------------- -- -- Table structure for table `tailor_specializations` -- CREATE TABLE `tailor_specializations` ( `id` bigint UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `category` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Uncategorized', `icon` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `photo` varchar(255) 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; -- -- Dumping data for table `tailor_specializations` -- INSERT INTO `tailor_specializations` (`id`, `name`, `category`, `icon`, `photo`, `created_at`, `updated_at`) VALUES (1, 'Casual', 'Gaya Busana', NULL, '/storage/specialization_photos/specialization_1743966404_1.jpeg', NULL, '2025-04-06 12:06:44'), (2, 'Formal', 'Gaya Busana', NULL, '/storage/specialization_photos/specialization_1743966521_2.jpeg', NULL, '2025-04-06 12:08:41'), (3, 'Tradisional', 'Gaya Busana', NULL, '/storage/specialization_photos/specialization_1743966572_3.jpeg', NULL, '2025-04-06 12:09:32'), (4, 'Modern', 'Gaya Busana', NULL, '/storage/specialization_photos/specialization_1743966613_4.jpeg', NULL, '2025-04-06 12:10:14'), (5, 'Jahit Baru', 'Jenis Layanan', NULL, '/storage/specialization_photos/specialization_1743966706_5.jpeg', NULL, '2025-04-06 12:11:46'), (6, 'Perbaikan', 'Jenis Layanan', NULL, '/storage/specialization_photos/specialization_1743966713_6.jpeg', NULL, '2025-04-06 12:11:53'), (7, 'Design/Custom', 'Jenis Layanan', NULL, '/storage/specialization_photos/specialization_1743966719_7.jpeg', NULL, '2025-04-06 12:11:59'), (8, 'Border', 'Hiasan Busana', NULL, '/storage/specialization_photos/specialization_1743966737_8.jpeg', NULL, '2025-04-06 12:12:17'), (9, 'Payet', 'Hiasan Busana', NULL, '/storage/specialization_photos/specialization_1743966742_9.jpeg', NULL, '2025-04-06 12:12:22'), (10, 'Sulam', 'Hiasan Busana', NULL, '/storage/specialization_photos/specialization_1743966746_10.jpeg', NULL, '2025-04-06 12:12:26'); -- -------------------------------------------------------- -- -- Table structure for table `tailor_specialization_user` -- CREATE TABLE `tailor_specialization_user` ( `user_id` bigint UNSIGNED NOT NULL, `tailor_specialization_id` bigint UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `tailor_specialization_user` -- INSERT INTO `tailor_specialization_user` (`user_id`, `tailor_specialization_id`) VALUES (10, 1), (10, 2), (10, 5); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `role` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `phone_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `address` text COLLATE utf8mb4_unicode_ci, `latitude` decimal(10,7) DEFAULT NULL, `longitude` decimal(10,7) DEFAULT NULL, `shop_description` text COLLATE utf8mb4_unicode_ci, `profile_photo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `email_verified_at` timestamp NULL DEFAULT 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; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `email`, `password`, `role`, `phone_number`, `address`, `latitude`, `longitude`, `shop_description`, `profile_photo`, `email_verified_at`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'Nama Pelanggan', 'alif@gmail.com', '$2y$12$liUj6wPrHcAgq/kyKtSkeO4VNadzQT.Z3ltZ2SFN4b/RZAC6IZ2..', 'pelanggan', '081234567890', 'Alamat lengkap', NULL, NULL, NULL, NULL, NULL, NULL, '2025-04-06 10:27:36', '2025-04-06 10:27:36'), (2, 'Pelanggan Test', 'pelanggan.test@example.com', '$2y$12$atuG.fzjXDq83bdAMTSlMOoJBVBAC1XGOM12aNt1oozfTQRVccgEq', 'pelanggan', '081234567890', 'Jl. Contoh No. 123, Jakarta', '-6.1754000', '106.8272000', NULL, NULL, NULL, NULL, '2025-04-06 10:37:14', '2025-04-06 10:37:14'), (3, 'Pelanggan Test', 'pelanggan.testt@example.com', '$2y$12$vqBB1ZezZp.llCTECrDwEOquttfd8VVc3y4BMMx1Mpu1r5cA28B6u', 'pelanggan', '081234567890', 'Jl. Contoh No. 123, Jakarta', '-6.1754000', '106.8272000', NULL, NULL, NULL, NULL, '2025-04-06 10:57:31', '2025-04-06 10:57:31'), (4, 'kumar', 'kumar@gmail.com', '$2y$12$D4F2uiai2nxlfRuOHycU5OlBgza.4cTGC8fGS0ZyJnrCI34tmqKyu', 'pelanggan', '09987654321', 'AAA', '-6.1754000', '106.8272000', NULL, '/storage/profile_photos/1743964425_4.png', NULL, NULL, '2025-04-06 11:18:36', '2025-04-06 11:33:46'), (5, 'Pelanggan Test', 'pelanggan.tesssat@example.com', '$2y$12$wxadtyXf7PsmfOmRXses3eLn0KXB0/QrmeoAI9Wifbr1eJpARVa1m', 'pelanggan', '081234567890', 'Jl. Contoh No. 123, Jakarta', '-6.1754000', '106.8272000', NULL, NULL, NULL, NULL, '2025-04-06 11:37:24', '2025-04-06 11:37:24'), (6, 'kuring', 'kuring@gmail.com', '$2y$12$0wyKtAT6OZIho6UPB0WlSeAFvnN6YoeRuSkmoOixeZz5a2MP3wG7e', 'pelanggan', '12345678', 'asdfg', '-6.1754000', '106.8272000', NULL, NULL, NULL, NULL, '2025-04-06 11:49:30', '2025-04-06 11:49:30'), (7, 'Admin Jahit', 'admin@jahit.com', '$2y$12$tj2jOcn39wbyYWdE44Vkhe1Ln4.u7Xfb1QdYQ.0oItc1fO/KfIGqW', 'admin', '081234567890', 'Jl. Admin No. 1', NULL, NULL, NULL, NULL, NULL, NULL, '2025-04-06 11:57:44', '2025-04-06 11:57:44'), (8, 'ALIFA SULAEMAN', 'emailKAKAKA@example.com', '$2y$12$uQ9WXGRdC4uMAzRBDKQlZuE7Z1qU9XUu2iYejdSSFC7QpyQ9ONK9S', 'pelanggan', '081234567890', 'Jalan Baru No. 123, Kota Baru', '-6.2088000', '106.8456000', NULL, NULL, NULL, NULL, '2025-04-06 12:20:53', '2025-04-07 01:59:14'), (9, 'iiii', 'iii@gmail.com', '$2y$12$Vuc39mqi.26jwCD5ZJJ4QOb2IGpzo8U778/mND6UyAjQj3JWElZqq', 'pelanggan', '12345', '23456', '-6.1754000', '106.8272000', NULL, NULL, NULL, NULL, '2025-04-06 12:30:21', '2025-04-06 12:30:21'), (10, 'Nama Penjahit', 'penjahit@example.com', '$2y$12$cB1R6Qx8BVMfpclqKSPsx.mwVNeWfGp2o7boyZHxi7Qr.AAN26Dhu', 'penjahit', '081234567890', 'Jl. Contoh No. 123, Kota', NULL, NULL, 'Menerima jahitan untuk berbagai model pakaian dengan pengalaman lebih dari 5 tahun.', '/storage/profile_photos/1743970075_10.jpeg', NULL, NULL, '2025-04-06 12:42:38', '2025-04-06 13:07:56'); -- -- Indexes for dumped tables -- -- -- Indexes for table `bookings` -- ALTER TABLE `bookings` ADD PRIMARY KEY (`id`), ADD KEY `bookings_customer_id_foreign` (`customer_id`), ADD KEY `bookings_tailor_id_foreign` (`tailor_id`); -- -- Indexes for table `cache` -- ALTER TABLE `cache` ADD PRIMARY KEY (`key`); -- -- Indexes for table `cache_locks` -- ALTER TABLE `cache_locks` ADD PRIMARY KEY (`key`); -- -- Indexes for table `customer_specialization` -- ALTER TABLE `customer_specialization` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `customer_specialization_user_id_tailor_specialization_id_unique` (`user_id`,`tailor_specialization_id`), ADD KEY `customer_specialization_tailor_specialization_id_foreign` (`tailor_specialization_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 `jobs` -- ALTER TABLE `jobs` ADD PRIMARY KEY (`id`), ADD KEY `jobs_queue_index` (`queue`); -- -- Indexes for table `job_batches` -- ALTER TABLE `job_batches` ADD PRIMARY KEY (`id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- 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 `sessions` -- ALTER TABLE `sessions` ADD PRIMARY KEY (`id`), ADD KEY `sessions_user_id_index` (`user_id`), ADD KEY `sessions_last_activity_index` (`last_activity`); -- -- Indexes for table `tailor_galleries` -- ALTER TABLE `tailor_galleries` ADD PRIMARY KEY (`id`), ADD KEY `tailor_galleries_user_id_foreign` (`user_id`); -- -- Indexes for table `tailor_ratings` -- ALTER TABLE `tailor_ratings` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `tailor_ratings_booking_id_customer_id_unique` (`booking_id`,`customer_id`), ADD KEY `tailor_ratings_customer_id_foreign` (`customer_id`), ADD KEY `tailor_ratings_tailor_id_foreign` (`tailor_id`); -- -- Indexes for table `tailor_services` -- ALTER TABLE `tailor_services` ADD PRIMARY KEY (`id`), ADD KEY `tailor_services_user_id_foreign` (`user_id`); -- -- Indexes for table `tailor_specializations` -- ALTER TABLE `tailor_specializations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tailor_specialization_user` -- ALTER TABLE `tailor_specialization_user` ADD PRIMARY KEY (`user_id`,`tailor_specialization_id`), ADD KEY `tailor_specialization_user_tailor_specialization_id_foreign` (`tailor_specialization_id`); -- -- 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 `bookings` -- ALTER TABLE `bookings` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `customer_specialization` -- ALTER TABLE `customer_specialization` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `jobs` -- ALTER TABLE `jobs` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; -- -- AUTO_INCREMENT for table `personal_access_tokens` -- ALTER TABLE `personal_access_tokens` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32; -- -- AUTO_INCREMENT for table `tailor_galleries` -- ALTER TABLE `tailor_galleries` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `tailor_ratings` -- ALTER TABLE `tailor_ratings` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `tailor_services` -- ALTER TABLE `tailor_services` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `tailor_specializations` -- ALTER TABLE `tailor_specializations` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- Constraints for dumped tables -- -- -- Constraints for table `bookings` -- ALTER TABLE `bookings` ADD CONSTRAINT `bookings_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `users` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `bookings_tailor_id_foreign` FOREIGN KEY (`tailor_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `customer_specialization` -- ALTER TABLE `customer_specialization` ADD CONSTRAINT `customer_specialization_tailor_specialization_id_foreign` FOREIGN KEY (`tailor_specialization_id`) REFERENCES `tailor_specializations` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `customer_specialization_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `tailor_galleries` -- ALTER TABLE `tailor_galleries` ADD CONSTRAINT `tailor_galleries_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `tailor_ratings` -- ALTER TABLE `tailor_ratings` ADD CONSTRAINT `tailor_ratings_booking_id_foreign` FOREIGN KEY (`booking_id`) REFERENCES `bookings` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `tailor_ratings_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `users` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `tailor_ratings_tailor_id_foreign` FOREIGN KEY (`tailor_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `tailor_services` -- ALTER TABLE `tailor_services` ADD CONSTRAINT `tailor_services_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `tailor_specialization_user` -- ALTER TABLE `tailor_specialization_user` ADD CONSTRAINT `tailor_specialization_user_tailor_specialization_id_foreign` FOREIGN KEY (`tailor_specialization_id`) REFERENCES `tailor_specializations` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `tailor_specialization_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; 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 */;