wp_erm_orders

Static

Stores order records and related transaction data.

Column Definitions

ColumnTypeNullable
🔑idINTYES
branch_idINTYES
customer_idINTYES
table_idINTYES
customer_nameVARCHAR(255)NO
phoneVARCHAR(20)NO
addressTEXTYES
total_priceDECIMAL(10,2)NO
discount_idINTYES
tax_amountDECIMAL(10,2)YES
statusENUM('pending', 'completed', 'cancelled')NO
order_typeENUM('dine-in', 'takeaway', 'delivery')NO
created_atDATETIMEYES
updated_atTIMESTAMPYES

CREATE TABLE Statement

CREATE TABLE IF NOT EXISTS `wp_erm_orders` ( id INT PRIMARY KEY AUTO_INCREMENT, branch_id INT DEFAULT NULL, customer_id INT DEFAULT NULL, table_id INT DEFAULT NULL, customer_name VARCHAR(255) NOT NULL, phone VARCHAR(20) NOT NULL, address TEXT DEFAULT NULL, total_price DECIMAL(10,2) NOT NULL, discount_id INT DEFAULT NULL, tax_amount DECIMAL(10,2) DEFAULT 0.00, status ENUM('pending', 'completed', 'cancelled') NOT NULL DEFAULT 'pending', order_type ENUM('dine-in', 'takeaway', 'delivery') NOT NULL, created_at DATETIME DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) $charset_collate;"; dbDelta($sql);

Safe to delete?

If you have uninstalled Easy Restaurant Manager, 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_erm_orders`;

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

Other tables from Easy Restaurant Manager