wp_eerb_bookings
StaticStores eerb bookings data created by this plugin.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | INT UNSIGNED | NO |
| booking_ref | VARCHAR(20) | NO |
| game_id | INT UNSIGNED | NO |
| customer_id | INT UNSIGNED | NO |
| slot_start | DATETIME | NO |
| slot_end | DATETIME | NO |
| player_count | TINYINT UNSIGNED | NO |
| price_pence | INT UNSIGNED | NO |
| discount_pence | INT UNSIGNED | NO |
| total_pence | INT UNSIGNED | NO |
| promo_code_id | INT UNSIGNED | YES |
| status | ENUM('pending','confirmed','changed','cancelled') | NO |
| stripe_payment_id | VARCHAR(255) | YES |
| manage_token | VARCHAR(64) | NO |
| notes | TEXT | YES |
| created_at | DATETIME | NO |
| updated_at | DATETIME | NO |
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