wp_eerb_bookings

Static

Stores eerb bookings data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idINT UNSIGNEDNO
booking_refVARCHAR(20)NO
game_idINT UNSIGNEDNO
customer_idINT UNSIGNEDNO
slot_startDATETIMENO
slot_endDATETIMENO
player_countTINYINT UNSIGNEDNO
price_penceINT UNSIGNEDNO
discount_penceINT UNSIGNEDNO
total_penceINT UNSIGNEDNO
promo_code_idINT UNSIGNEDYES
statusENUM('pending','confirmed','changed','cancelled')NO
stripe_payment_idVARCHAR(255)YES
manage_tokenVARCHAR(64)NO
notesTEXTYES
created_atDATETIMENO
updated_atDATETIMENO

CREATE TABLE Statement

CREATE TABLE IF NOT EXISTS wp_eerb_bookings ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, booking_ref VARCHAR(20) NOT NULL COMMENT 'Human-readable reference e.g. ERB-2024-00042', game_id INT UNSIGNED NOT NULL, customer_id INT UNSIGNED NOT NULL, slot_start DATETIME NOT NULL, slot_end DATETIME NOT NULL, player_count TINYINT UNSIGNED NOT NULL, price_pence INT UNSIGNED NOT NULL, discount_pence INT UNSIGNED NOT NULL DEFAULT 0, total_pence INT UNSIGNED NOT NULL, promo_code_id INT UNSIGNED, status ENUM('pending','confirmed','changed','cancelled') NOT NULL DEFAULT 'pending', stripe_payment_id VARCHAR(255), manage_token VARCHAR(64) NOT NULL COMMENT 'Unique token for the manage-booking link in email', notes TEXT, created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (id), UNIQUE KEY booking_ref (booking_ref), UNIQUE KEY manage_token (manage_token), KEY game_id (game_id), KEY customer_id (customer_id), KEY slot_start (slot_start), KEY status (status) ) $charset;" );

Safe to delete?

If you have uninstalled Ettrick Escape Room Booking, 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_eerb_bookings`;

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

Other tables from Ettrick Escape Room Booking