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

START TRANSACTION;



--
-- Database: `global_dezigns`
--

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

--
-- Table structure for table `email_inquiries`
--

CREATE TABLE `email_inquiries` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `email` varchar(255) NOT NULL,
  `note` text DEFAULT NULL,
  `status` enum('new','in_progress','closed') NOT NULL DEFAULT 'new',
  `added_by_id` bigint(20) 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 `email_inquiries`
--

INSERT INTO `email_inquiries` (`id`, `email`, `note`, `status`, `added_by_id`, `created_at`, `updated_at`) VALUES
(2, 'aman@gmail.com', 'Hellow', 'in_progress', 1, '2025-12-23 01:22:31', '2025-12-23 01:22:48');

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

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

CREATE TABLE `general_settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `sitename` varchar(150) DEFAULT NULL,
  `logo` varchar(150) DEFAULT NULL,
  `favicon` varchar(150) 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 `general_settings`
--

INSERT INTO `general_settings` (`id`, `sitename`, `logo`, `favicon`, `created_at`, `updated_at`) VALUES
(1, 'Global Dezigns', 'assets/img/logo.png', 'assets/img/favicon/favicon.png', '2025-12-22 02:19:31', '2025-12-22 02:19:31');

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

--
-- 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, '2025_12_22_071001_create_general_settings_table', 1),
(6, '2025_12_23_044016_create_email_inquiries_table', 2),
(7, '2025_12_23_044331_create_phone_inquiries_table', 2);

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

--
-- Table structure for table `phone_inquiries`
--

CREATE TABLE `phone_inquiries` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `phone` varchar(255) NOT NULL,
  `note` text DEFAULT NULL,
  `status` enum('new','in_progress','closed') NOT NULL DEFAULT 'new',
  `added_by_id` bigint(20) 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 `phone_inquiries`
--

INSERT INTO `phone_inquiries` (`id`, `phone`, `note`, `status`, `added_by_id`, `created_at`, `updated_at`) VALUES
(2, '03482736373', 'demmy', 'new', 1, '2025-12-23 01:23:22', '2025-12-23 01:23:22');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `email_inquiries`
--
ALTER TABLE `email_inquiries`
  ADD PRIMARY KEY (`id`),
  ADD KEY `email_inquiries_added_by_id_foreign` (`added_by_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 `general_settings`
--
ALTER TABLE `general_settings`
  ADD PRIMARY KEY (`id`);

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

--
-- Indexes for table `phone_inquiries`
--
ALTER TABLE `phone_inquiries`
  ADD PRIMARY KEY (`id`),
  ADD KEY `phone_inquiries_added_by_id_foreign` (`added_by_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `email_inquiries`
--
ALTER TABLE `email_inquiries`
  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 `general_settings`
--
ALTER TABLE `general_settings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

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

--
-- Constraints for dumped tables
--

--
-- Constraints for table `email_inquiries`
--
ALTER TABLE `email_inquiries`
  ADD CONSTRAINT `email_inquiries_added_by_id_foreign` FOREIGN KEY (`added_by_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `phone_inquiries`
--
ALTER TABLE `phone_inquiries`
  ADD CONSTRAINT `phone_inquiries_added_by_id_foreign` FOREIGN KEY (`added_by_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
COMMIT;

