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

START TRANSACTION;



--
-- Database: `bijonmarketing`
--

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

--
-- Table structure for table `agencies`
--

CREATE TABLE `agencies` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `city` enum('asia','uae','europe') NOT NULL,
  `agency_name` varchar(255) NOT NULL,
  `agency_number` varchar(255) NOT NULL,
  `agency_email` varchar(255) NOT NULL,
  `agency_address` varchar(255) NOT NULL,
  `logo` varchar(255) 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 `agencies`
--

INSERT INTO `agencies` (`id`, `user_id`, `city`, `agency_name`, `agency_number`, `agency_email`, `agency_address`, `logo`, `created_at`, `updated_at`) VALUES
(1, 2, 'asia', 'pakistaniagent', '03069345746', 'hy@gmail.com', 'sahiwal', '1772420941-wp15418976.jpg', '2026-03-01 22:09:01', '2026-03-01 22:09:01'),
(2, 3, 'asia', 'Nawab Property', '03028791790', 'nawabusmanali11@gmail.com', 'Street no 1 Upside js bank Sahiwal', '1772558977-logo.png', '2026-03-03 12:29:37', '2026-03-03 12:29:37');

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

--
-- Table structure for table `contacts`
--

CREATE TABLE `contacts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `property_id` bigint(20) UNSIGNED NOT NULL,
  `type` varchar(255) NOT NULL,
  `country_code` varchar(255) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `email` varchar(255) 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 `contacts`
--

INSERT INTO `contacts` (`id`, `property_id`, `type`, `country_code`, `number`, `email`, `created_at`, `updated_at`) VALUES
(7, 4, 'mobile', '+92', '3069445746', 'helo@gmail.com', '2026-03-03 11:17:01', '2026-03-03 11:17:01'),
(8, 4, 'landline', '+92', '75925922', 'helo@gmail.com', '2026-03-03 11:17:01', '2026-03-03 11:17:01'),
(9, 5, 'mobile', '+92', '03028791790', 'nawabusmanali11@gmail.com', '2026-03-03 12:37:05', '2026-03-03 12:37:05'),
(10, 6, 'mobile', '+92', '3069445746', 'ha@gmail.com', '2026-03-03 13:31:53', '2026-03-03 13:31:53'),
(11, 6, 'landline', '+92', '75925922', 'ha@gmail.com', '2026-03-03 13:31:53', '2026-03-03 13:31:53'),
(14, 7, 'mobile', '+92', '3069445746', NULL, '2026-03-04 13:33:40', '2026-03-04 13:33:40');

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

--
-- 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 `images`
--

CREATE TABLE `images` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `property_id` bigint(20) UNSIGNED NOT NULL,
  `image_path` varchar(255) 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 `images`
--

INSERT INTO `images` (`id`, `property_id`, `image_path`, `created_at`, `updated_at`) VALUES
(8, 4, '1772554620_69a7097cf05e3.png', '2026-03-03 11:17:00', '2026-03-03 11:17:00'),
(9, 5, '1772559425_69a71c41087b8.jpg', '2026-03-03 12:37:05', '2026-03-03 12:37:05'),
(10, 5, '1772559425_69a71c410aa01.png', '2026-03-03 12:37:05', '2026-03-03 12:37:05'),
(11, 5, '1772559425_69a71c410c22b.jpg', '2026-03-03 12:37:05', '2026-03-03 12:37:05'),
(12, 5, '1772559425_69a71c410ced2.jpg', '2026-03-03 12:37:05', '2026-03-03 12:37:05'),
(13, 5, '1772559425_69a71c410da92.jpg', '2026-03-03 12:37:05', '2026-03-03 12:37:05'),
(14, 6, '1772562713_69a729195a633.jpg', '2026-03-03 13:31:53', '2026-03-03 13:31:53'),
(15, 7, '1772642314_69a8600a8b1a0.jpg', '2026-03-04 11:38:34', '2026-03-04 11:38:34'),
(16, 7, '1772642314_69a8600a8c37f.jpg', '2026-03-04 11:38:34', '2026-03-04 11:38:34');

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

--
-- Table structure for table `jobs`
--

CREATE TABLE `jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `queue` varchar(255) NOT NULL,
  `payload` longtext NOT NULL,
  `attempts` tinyint(3) UNSIGNED NOT NULL,
  `reserved_at` int(10) UNSIGNED DEFAULT NULL,
  `available_at` int(10) UNSIGNED NOT NULL,
  `created_at` int(10) 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) NOT NULL,
  `name` varchar(255) NOT NULL,
  `total_jobs` int(11) NOT NULL,
  `pending_jobs` int(11) NOT NULL,
  `failed_jobs` int(11) NOT NULL,
  `failed_job_ids` longtext NOT NULL,
  `options` mediumtext DEFAULT NULL,
  `cancelled_at` int(11) DEFAULT NULL,
  `created_at` int(11) NOT NULL,
  `finished_at` int(11) DEFAULT NULL
) 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
(17, '0001_01_01_000000_create_users_table', 1),
(18, '0001_01_01_000001_create_cache_table', 1),
(19, '0001_01_01_000002_create_jobs_table', 1),
(20, '2026_02_26_173618_create_agencies_table', 1),
(21, '2026_02_28_203538_create_properties_table', 1),
(22, '2026_02_28_211002_create_images_table', 1),
(23, '2026_02_28_211158_create_videos_table', 1),
(24, '2026_02_28_211404_create_contacts_table', 1);

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

--
-- Table structure for table `properties`
--

CREATE TABLE `properties` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `purpose` varchar(255) NOT NULL,
  `category` varchar(255) NOT NULL,
  `type` varchar(255) NOT NULL,
  `city` varchar(255) NOT NULL,
  `location` varchar(255) NOT NULL,
  `area_size` decimal(10,2) DEFAULT NULL,
  `area_unit` varchar(255) DEFAULT NULL,
  `price` decimal(15,2) NOT NULL,
  `currency` varchar(255) NOT NULL DEFAULT 'PKR',
  `bedrooms` varchar(255) DEFAULT NULL,
  `bathrooms` varchar(255) DEFAULT NULL,
  `title` varchar(255) NOT NULL,
  `description` text 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 `properties`
--

INSERT INTO `properties` (`id`, `user_id`, `purpose`, `category`, `type`, `city`, `location`, `area_size`, `area_unit`, `price`, `currency`, `bedrooms`, `bathrooms`, `title`, `description`, `created_at`, `updated_at`) VALUES
(4, 2, 'rent', 'home', 'upper', 'Lahore', 'hellwadi', 16.00, 'sqft', 500000000.00, 'PKR', '3', '1', 'hello', 'jkgkagaK', '2026-03-03 11:17:00', '2026-03-03 11:17:00'),
(5, 3, 'sell', 'home', 'house', 'Islamabad', 'f11 main road islamabad', 1.50, 'marla', 1050000.00, 'PKR', 'studio', '1', 'Prime Location Commercial Shop for Sale', 'This prime commercial shop is located in a highly visible and busy market area, making it an excellent opportunity for business owners and investors. The shop offers strong foot traffic, easy accessibility, and a well-developed surrounding commercial environment.\r\n\r\nThe space is ideal for retail stores, boutiques, franchises, service centers, or other business ventures. With its strategic location and investment potential, this property ensures high rental returns and long-term value appreciation.\r\n\r\nDon’t miss this opportunity to own a commercial space in a rapidly growing business district.', '2026-03-03 12:37:05', '2026-03-03 12:37:05'),
(6, 3, 'rent', 'home', 'house', 'Multan', 'multan road', 16.00, 'sqft', 100000.00, 'PKR', '2', '4', 'soni dharti town', 'house is very nice', '2026-03-03 13:31:53', '2026-03-03 13:31:53'),
(7, 1, 'sell', 'home', 'residential', 'Rawalpindi', 'hello bro', 5.00, 'sqft', 646444.00, 'PKR', '2', '3', 'Prime Location Commercial Shop for Sale', 'return redirect()->back()\r\n        ->with(\'success\', \'Property Deleted Successfully\');\r\nreturn redirect()->back()\r\n        ->with(\'success\', \'Property Deleted Successfully\');', '2026-03-04 11:38:34', '2026-03-04 13:33:40');

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

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` varchar(255) NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `ip_address` varchar(45) DEFAULT NULL,
  `user_agent` text DEFAULT NULL,
  `payload` longtext NOT NULL,
  `last_activity` int(11) 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
('2B88cQDxsvCpMHfUbbYU9m1h2iBzNo8zDTx2tV3H', 1, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36', 'YTo0OntzOjY6Il90b2tlbiI7czo0MDoiTmdUT3pEaUl1QWNET2t2R3RjMmIyV2NiVXVxYjVsOGhhYjFGdzFqMyI7czo5OiJfcHJldmlvdXMiO2E6Mjp7czozOiJ1cmwiO3M6NDE6Imh0dHA6Ly8xMjcuMC4wLjE6ODAwMC9hZG1pbi9wcm9maWxlL2FkbWluIjtzOjU6InJvdXRlIjtzOjE4OiJhZG1pbi5wcm9maWxlQWRtaW4iO31zOjY6Il9mbGFzaCI7YToyOntzOjM6Im9sZCI7YTowOnt9czozOiJuZXciO2E6MDp7fX1zOjUwOiJsb2dpbl93ZWJfNTliYTM2YWRkYzJiMmY5NDAxNTgwZjAxNGM3ZjU4ZWE0ZTMwOTg5ZCI7aToxO30=', 1772649556),
('2XHNCTsI1ypG1sFvbSiddGz13MPSDX82ofmfe47X', NULL, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36', 'YTozOntzOjY6Il90b2tlbiI7czo0MDoiUGdXMTFnZ1NJMUpESE9XOWttSjRFakFKaW1iWmMwdkpkcVVMT01QSiI7czo5OiJfcHJldmlvdXMiO2E6Mjp7czozOiJ1cmwiO3M6MjE6Imh0dHA6Ly8xMjcuMC4wLjE6ODAwMCI7czo1OiJyb3V0ZSI7Tjt9czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319fQ==', 1772636233);

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

--
-- Table structure for table `videos`
--

CREATE TABLE `videos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `property_id` bigint(20) UNSIGNED NOT NULL,
  `video_url` varchar(255) NOT 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 `agencies`
--
ALTER TABLE `agencies`
  ADD PRIMARY KEY (`id`),
  ADD KEY `agencies_user_id_foreign` (`user_id`);

--
-- Indexes for table `contacts`
--
ALTER TABLE `contacts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `contacts_property_id_foreign` (`property_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 `images`
--
ALTER TABLE `images`
  ADD PRIMARY KEY (`id`),
  ADD KEY `images_property_id_foreign` (`property_id`);

--
-- 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 `properties`
--
ALTER TABLE `properties`
  ADD PRIMARY KEY (`id`),
  ADD KEY `properties_user_id_foreign` (`user_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 `videos`
--
ALTER TABLE `videos`
  ADD PRIMARY KEY (`id`),
  ADD KEY `videos_property_id_foreign` (`property_id`);

--
-- AUTO_INCREMENT for dumped tables
--

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

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

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

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

--
-- AUTO_INCREMENT for table `jobs`
--
ALTER TABLE `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=25;

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

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

--
-- Constraints for dumped tables
--

--
-- Constraints for table `agencies`
--
ALTER TABLE `agencies`
  ADD CONSTRAINT `agencies_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `contacts`
--
ALTER TABLE `contacts`
  ADD CONSTRAINT `contacts_property_id_foreign` FOREIGN KEY (`property_id`) REFERENCES `properties` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `images`
--
ALTER TABLE `images`
  ADD CONSTRAINT `images_property_id_foreign` FOREIGN KEY (`property_id`) REFERENCES `properties` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `properties`
--
ALTER TABLE `properties`
  ADD CONSTRAINT `properties_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `videos`
--
ALTER TABLE `videos`
  ADD CONSTRAINT `videos_property_id_foreign` FOREIGN KEY (`property_id`) REFERENCES `properties` (`id`) ON DELETE CASCADE;
COMMIT;

