text: -- phpMyAdmin SQL Dump
  -- version 5.0.4
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Sep 02, 2021 at 06:32 AM
  -- Server version: 10.4.17-MariaDB
  -- PHP Version: 8.0.2
  
  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: `hotelbooking`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `amenities`
  --
  
  CREATE TABLE `amenities` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `status` int(11) NOT 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 `bookings`
  --
  
  CREATE TABLE `bookings` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `guest_id` bigint(20) UNSIGNED DEFAULT NULL,
    `booking_no` int(11) NOT NULL,
    `booking_date` date NOT NULL,
    `checkin_date` date NOT NULL,
    `checkout_date` date NOT NULL,
    `booking_type` int(11) NOT NULL DEFAULT 1,
    `booking_status` int(11) NOT 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 `booking_details`
  --
  
  CREATE TABLE `booking_details` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `booking_id` bigint(20) UNSIGNED DEFAULT NULL,
    `room_type_id` int(11) NOT NULL,
    `no_of_rooms_booked` int(11) NOT NULL,
    `total_guest` int(11) NOT NULL,
    `adult` int(11) NOT NULL,
    `children` int(11) NOT 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 `coupons`
  --
  
  CREATE TABLE `coupons` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `offer_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `room_type_id` bigint(20) UNSIGNED DEFAULT NULL,
    `coupon_code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `coupon_limit` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `coupon_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `coupon_price` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `start_datetime` datetime NOT NULL,
    `end_datetime` datetime NOT NULL,
    `status` tinyint(4) NOT NULL DEFAULT 0,
    `visibility_status` tinyint(4) NOT NULL DEFAULT 0,
    `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 `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 `floors`
  --
  
  CREATE TABLE `floors` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `floor_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `floor_code` int(11) DEFAULT NULL,
    `floor_description` 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 `floors`
  --
  
  INSERT INTO `floors` (`id`, `floor_name`, `floor_code`, `floor_description`, `created_at`, `updated_at`) VALUES
  (1, 'First', 1, 'This is  the first floor', '2021-05-30 02:56:30', '2021-06-04 05:06:04'),
  (2, 'Second', 2, 'This is  the second floor', '2021-05-30 03:00:04', '2021-06-04 05:07:24');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `guests`
  --
  
  CREATE TABLE `guests` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `f_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `l_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `mobile_no` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `status` int(11) 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 `guests`
  --
  
  INSERT INTO `guests` (`id`, `f_name`, `l_name`, `email`, `mobile_no`, `status`, `created_at`, `updated_at`) VALUES
  (1, 'x', 'y', 'x@y', '1', 0, '2021-06-04 08:09:00', '2021-06-05 00:37:43'),
  (2, 'yogesh', 'saini', 'jsfjaja@w', '99999', 0, '2021-06-04 08:10:07', '2021-06-04 11:34:30'),
  (3, 'yogesh', 'saini', 'y@b', '999993', 0, '2021-06-04 08:11:10', '2021-06-04 11:38:44'),
  (7, 'x', 'y', 'x@z', '1', 0, '2021-06-05 00:40:32', '2021-06-05 00:40:32');
  
  -- --------------------------------------------------------
  
  --
  -- 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
  (19, '2014_10_12_000000_create_users_table', 1),
  (20, '2014_10_12_100000_create_password_resets_table', 1),
  (21, '2019_08_19_000000_create_failed_jobs_table', 1),
  (22, '2021_05_09_171737_create_guests_table', 1),
  (23, '2021_05_09_171738_create_bookings_table', 1),
  (24, '2021_05_09_171739_create_room_types_table', 1),
  (25, '2021_05_09_171740_create_floors_table', 1),
  (26, '2021_05_09_172025_create_rooms_table', 1),
  (27, '2021_05_09_172311_create_staff_table', 1),
  (28, '2021_05_09_172624_create_payments_table', 2),
  (29, '2021_05_12_122809_create_booking_details_table', 2),
  (30, '2021_05_18_060447_create_coupons_table', 3),
  (31, '2021_05_21_092129_create_paid_services_table', 3),
  (32, '2021_05_21_092248_create_amenities_table', 3),
  (33, '2021_05_21_092301_create_taxes_table', 3);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `paid_services`
  --
  
  CREATE TABLE `paid_services` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `service_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `price` int(11) NOT NULL,
    `status` int(11) NOT 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 `password_resets`
  --
  
  CREATE TABLE `password_resets` (
    `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 `payments`
  --
  
  CREATE TABLE `payments` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `booking_id` bigint(20) UNSIGNED NOT NULL,
    `payment_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `payment_mode` int(11) DEFAULT NULL,
    `paid_amount` int(11) DEFAULT NULL,
    `payment_status` int(11) 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 `rooms`
  --
  
  CREATE TABLE `rooms` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `room_no` int(11) NOT NULL,
    `booking_id` bigint(20) UNSIGNED DEFAULT NULL,
    `room_type_id` bigint(20) UNSIGNED DEFAULT NULL,
    `floor_id` bigint(20) UNSIGNED DEFAULT NULL,
    `status` int(11) NOT 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 `room_types`
  --
  
  CREATE TABLE `room_types` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `room_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `short_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `price` int(11) NOT NULL,
    `image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `total_rooms` int(11) NOT NULL,
    `status` int(11) 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 `room_types`
  --
  
  INSERT INTO `room_types` (`id`, `room_type`, `short_code`, `description`, `price`, `image`, `total_rooms`, `status`, `created_at`, `updated_at`) VALUES
  (1, 'standard', 'STE', 'Hot water, single bed', 501, 'http://127.0.0.1:8000/roomtypes/1621071020.jpg', 5, 1, NULL, '2021-05-30 01:26:16'),
  (3, 'deluxe', 'DEL', 'Hot water, double bed', 800, 'http://127.0.0.1:8000/roomtypes/1621013172.jpg', 7, 0, '2021-05-14 11:56:12', '2021-05-18 12:02:47');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `staff`
  --
  
  CREATE TABLE `staff` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `f_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `l_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `user_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `mobile_no` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `gender` int(11) NOT NULL,
    `address` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `status` int(11) 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 `staff`
  --
  
  INSERT INTO `staff` (`id`, `f_name`, `l_name`, `user_name`, `password`, `email`, `mobile_no`, `gender`, `address`, `image`, `status`, `created_at`, `updated_at`) VALUES
  (1, 'yogesh', 'saini', 'yogesh', 'yogesh', 'y@s', '99999', 0, 'Jeen mohallah kurawar mandi', 'http://127.0.0.1:8000/staffs/1622382210.jpg', 0, '2021-05-30 08:13:30', '2021-05-30 09:06:51');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `taxes`
  --
  
  CREATE TABLE `taxes` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `tax_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `tax_type` int(11) NOT NULL,
    `rate` int(11) NOT NULL,
    `status` int(11) NOT 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 `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,
    `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT 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;
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `amenities`
  --
  ALTER TABLE `amenities`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `bookings`
  --
  ALTER TABLE `bookings`
    ADD PRIMARY KEY (`id`),
    ADD KEY `bookings_guest_id_foreign` (`guest_id`);
  
  --
  -- Indexes for table `booking_details`
  --
  ALTER TABLE `booking_details`
    ADD PRIMARY KEY (`id`),
    ADD KEY `booking_details_booking_id_foreign` (`booking_id`);
  
  --
  -- Indexes for table `coupons`
  --
  ALTER TABLE `coupons`
    ADD PRIMARY KEY (`id`),
    ADD KEY `coupons_room_type_id_foreign` (`room_type_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 `floors`
  --
  ALTER TABLE `floors`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `guests`
  --
  ALTER TABLE `guests`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `guests_email_unique` (`email`);
  
  --
  -- Indexes for table `migrations`
  --
  ALTER TABLE `migrations`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `paid_services`
  --
  ALTER TABLE `paid_services`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `password_resets`
  --
  ALTER TABLE `password_resets`
    ADD KEY `password_resets_email_index` (`email`);
  
  --
  -- Indexes for table `payments`
  --
  ALTER TABLE `payments`
    ADD PRIMARY KEY (`id`),
    ADD KEY `payments_booking_id_foreign` (`booking_id`);
  
  --
  -- Indexes for table `rooms`
  --
  ALTER TABLE `rooms`
    ADD PRIMARY KEY (`id`),
    ADD KEY `rooms_booking_id_foreign` (`booking_id`),
    ADD KEY `rooms_room_type_id_foreign` (`room_type_id`),
    ADD KEY `rooms_floor_id_foreign` (`floor_id`);
  
  --
  -- Indexes for table `room_types`
  --
  ALTER TABLE `room_types`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `staff`
  --
  ALTER TABLE `staff`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `staff_email_unique` (`email`);
  
  --
  -- Indexes for table `taxes`
  --
  ALTER TABLE `taxes`
    ADD PRIMARY KEY (`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 `amenities`
  --
  ALTER TABLE `amenities`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `bookings`
  --
  ALTER TABLE `bookings`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `booking_details`
  --
  ALTER TABLE `booking_details`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `coupons`
  --
  ALTER TABLE `coupons`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `failed_jobs`
  --
  ALTER TABLE `failed_jobs`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `floors`
  --
  ALTER TABLE `floors`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  
  --
  -- AUTO_INCREMENT for table `guests`
  --
  ALTER TABLE `guests`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
  
  --
  -- AUTO_INCREMENT for table `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34;
  
  --
  -- AUTO_INCREMENT for table `paid_services`
  --
  ALTER TABLE `paid_services`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `payments`
  --
  ALTER TABLE `payments`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `rooms`
  --
  ALTER TABLE `rooms`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `room_types`
  --
  ALTER TABLE `room_types`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
  
  --
  -- AUTO_INCREMENT for table `staff`
  --
  ALTER TABLE `staff`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  
  --
  -- AUTO_INCREMENT for table `taxes`
  --
  ALTER TABLE `taxes`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `bookings`
  --
  ALTER TABLE `bookings`
    ADD CONSTRAINT `bookings_guest_id_foreign` FOREIGN KEY (`guest_id`) REFERENCES `guests` (`id`) ON DELETE CASCADE;
  
  --
  -- Constraints for table `booking_details`
  --
  ALTER TABLE `booking_details`
    ADD CONSTRAINT `booking_details_booking_id_foreign` FOREIGN KEY (`booking_id`) REFERENCES `bookings` (`id`) ON DELETE CASCADE;
  
  --
  -- Constraints for table `coupons`
  --
  ALTER TABLE `coupons`
    ADD CONSTRAINT `coupons_room_type_id_foreign` FOREIGN KEY (`room_type_id`) REFERENCES `room_types` (`id`) ON DELETE CASCADE;
  
  --
  -- Constraints for table `payments`
  --
  ALTER TABLE `payments`
    ADD CONSTRAINT `payments_booking_id_foreign` FOREIGN KEY (`booking_id`) REFERENCES `bookings` (`id`) ON DELETE CASCADE;
  
  --
  -- Constraints for table `rooms`
  --
  ALTER TABLE `rooms`
    ADD CONSTRAINT `rooms_booking_id_foreign` FOREIGN KEY (`booking_id`) REFERENCES `bookings` (`id`) ON DELETE SET NULL,
    ADD CONSTRAINT `rooms_floor_id_foreign` FOREIGN KEY (`floor_id`) REFERENCES `floors` (`id`) ON DELETE SET NULL,
    ADD CONSTRAINT `rooms_room_type_id_foreign` FOREIGN KEY (`room_type_id`) REFERENCES `room_types` (`id`) ON DELETE SET NULL;
  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 */;
  