wp_bookings

Static

Stores bookings data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idBIGINT UNSIGNEDNO
room_idBIGINT UNSIGNEDNO
purchase_plan_idINTNO
date_startdateNO
date_enddateNO
booking_datedateNO
no_roomsINTNO
adultINTNO
kidINTNO
total_chargeDECIMAL(10,2)NO
total_taxesDECIMAL(10,2)YES
user_idBIGINT UNSIGNEDYES
order_idBIGINT UNSIGNEDYES
first_namevarchar(100)YES
last_namevarchar(100)YES
emailvarchar(100)YES
phonevarchar(50)YES
statusvarchar(50)YES
created_atDATETIMEYES

CREATE TABLE Statement

CREATE TABLE IF NOT EXISTS wp_bookings ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `room_id` BIGINT UNSIGNED NOT NULL, `purchase_plan_id` INT NOT NULL, `date_start` date NOT NULL, `date_end` date NOT NULL, `booking_date` date NOT NULL, `no_rooms` INT NOT NULL DEFAULT 1, `adult` INT NOT NULL DEFAULT 1, `kid` INT NOT NULL DEFAULT 0, `total_charge` DECIMAL(10,2) NOT NULL DEFAULT 0, `total_taxes` DECIMAL(10,2) DEFAULT 0, `user_id` BIGINT UNSIGNED DEFAULT NULL, `order_id` BIGINT UNSIGNED DEFAULT NULL, `first_name` varchar(100) DEFAULT NULL, `last_name` varchar(100) DEFAULT NULL, `email` varchar(100) DEFAULT NULL, `phone` varchar(50) DEFAULT NULL, `status` varchar(50) DEFAULT 'pending', `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY idx_room_date (room_id, booking_date), KEY idx_order (order_id), KEY idx_user (user_id), KEY idx_status (status), KEY idx_dates (date_start, date_end) ) $charset_collate"; require_once (ABSPATH . 'wp-admin/includes/upgrade.php');

Safe to delete?

If you have uninstalled Saksh WP Hotel Booking Lite, this table is generally safe to remove. However, always back up your database first.

Note: Some plugins share tables or are dependencies of other plugins. Verify nothing else depends on this table before dropping it.

How to remove this table

DROP TABLE IF EXISTS `wp_bookings`;

Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.