wp_reservations

Static

Stores reservations data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idbigint(20) unsignedNO
order_idbigint(20) unsignedNO
arrivalDATETIMENO
departureDATETIMENO
statusvarchar(10)NO
resourcebigint(20)NO
spaceint(10)NO
adultsint(10)NO
childrenint(10)NO
reservation_idbigint(20) unsignedNO
meta_keyvarchar(255)YES
meta_valuelongtextYES
session_keychar(32)NO
session_valuelongtextNO
session_expiryBIGINT UNSIGNEDNO
receipt_item_nameTEXTNO
receipt_item_typevarchar(200)NO
receipt_object_typevarchar(200)NO
receipt_object_idBIGINT UNSIGNEDNO
receipt_item_idBIGINT UNSIGNEDNO
meta_keyvarchar(255)YES
meta_valuelongtextYES

CREATE TABLE Statement

CREATE TABLE wp_reservations ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, order_id bigint(20) unsigned NOT NULL, arrival DATETIME NOT NULL, departure DATETIME NOT NULL, status varchar(10) NOT NULL, resource bigint(20) NOT NULL, space int(10) NOT NULL, adults int(10) NOT NULL, children int(10) NOT NULL, PRIMARY KEY (id) ) $collate; CREATE TABLE wp_reservationmeta ( meta_id bigint(20) unsigned NOT NULL auto_increment, reservation_id bigint(20) unsigned NOT NULL default '0', meta_key varchar(255) default NULL, meta_value longtext, PRIMARY KEY (meta_id), KEY reservation_id (reservation_id), KEY meta_key (meta_key($max_index_length)) ) $collate; CREATE TABLE wp_reservations_sessions ( session_id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, session_key char(32) NOT NULL, session_value longtext NOT NULL, session_expiry BIGINT UNSIGNED NOT NULL, PRIMARY KEY (session_id), UNIQUE KEY session_key (session_key) ) $collate; CREATE TABLE wp_receipt_items ( receipt_item_id BIGINT UNSIGNED NOT NULL auto_increment, receipt_item_name TEXT NOT NULL, receipt_item_type varchar(200) NOT NULL DEFAULT '', receipt_object_type varchar(200) NOT NULL DEFAULT '', receipt_object_id BIGINT UNSIGNED NOT NULL, PRIMARY KEY (receipt_item_id), KEY order_id (receipt_object_id) ) $collate; CREATE TABLE wp_receipt_itemmeta ( meta_id BIGINT UNSIGNED NOT NULL auto_increment, receipt_item_id BIGINT UNSIGNED NOT NULL, meta_key varchar(255) default NULL, meta_value longtext NULL, PRIMARY KEY (meta_id), KEY receipt_item_id (receipt_item_id), KEY meta_key (meta_key(32)) ) $collate;"; return $tables; } /** * Return a list of easyReservations tables. Used to make sure all ER tables are dropped when uninstalling the plugin * in a single site or multi site environment. * * @return array ER tables. */ public static function get_tables() { global $wpdb; $tables = array( "wp_reservations", "wp_reservation_meta", "wp_reservations_sessions", "wp_receipt_items", "wp_receipt_itemmeta", "wp_reservations_payment_tokenmeta", "wp_reservations_payment_tokens", );

Safe to delete?

If you have uninstalled easyReservations, 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_reservations`;

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

Other tables from easyReservations