{"table_name":"eerb_bookings","full_table_name":"wp_eerb_bookings","description":"Stores eerb bookings data created by this plugin.","detection_method":"static","confidence":"medium","create_sql":"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;\" );","columns":[{"name":"id","type":"INT UNSIGNED","nullable":false,"primary_key":true},{"name":"booking_ref","type":"VARCHAR(20)","nullable":false,"primary_key":false},{"name":"game_id","type":"INT UNSIGNED","nullable":false,"primary_key":false},{"name":"customer_id","type":"INT UNSIGNED","nullable":false,"primary_key":false},{"name":"slot_start","type":"DATETIME","nullable":false,"primary_key":false},{"name":"slot_end","type":"DATETIME","nullable":false,"primary_key":false},{"name":"player_count","type":"TINYINT UNSIGNED","nullable":false,"primary_key":false},{"name":"price_pence","type":"INT UNSIGNED","nullable":false,"primary_key":false},{"name":"discount_pence","type":"INT UNSIGNED","nullable":false,"primary_key":false},{"name":"total_pence","type":"INT UNSIGNED","nullable":false,"primary_key":false},{"name":"promo_code_id","type":"INT UNSIGNED","nullable":true,"primary_key":false},{"name":"status","type":"ENUM('pending','confirmed','changed','cancelled')","nullable":false,"primary_key":false},{"name":"stripe_payment_id","type":"VARCHAR(255)","nullable":true,"primary_key":false},{"name":"manage_token","type":"VARCHAR(64)","nullable":false,"primary_key":false},{"name":"notes","type":"TEXT","nullable":true,"primary_key":false},{"name":"created_at","type":"DATETIME","nullable":false,"primary_key":false},{"name":"updated_at","type":"DATETIME","nullable":false,"primary_key":false}],"plugin":{"slug":"ettrick-escape-room-booking","name":"Ettrick Escape Room Booking","active_installs":0,"version":"1.3.1","wp_org_url":"https://wordpress.org/plugins/ettrick-escape-room-booking/"}}