wp_ezhance_promotions

Static

Stores ezhance promotions data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idbigint(20) unsignedNO
titlevarchar(255)NO
statusvarchar(20)NO
priorityint(11)NO
conditionslongtextNO
targetslongtextNO
displaylongtextNO
end_datedatetimeYES
max_usage_countint(11)NO
used_countint(11)NO
currencyvarchar(10)YES
total_revenuedecimal(19,4)NO
updated_atdatetimeYES
created_bybigint(20) unsignedNO
updated_bybigint(20) unsignedNO
promotion_idbigint(20) unsignedNO
order_idbigint(20) unsignedNO
product_idbigint(20) unsignedYES
customer_idbigint(20) unsignedYES
promo_detailslongtextYES
discount_amountdecimal(19,4)NO
currencyvarchar(10)YES
discount_amount_base_currencydecimal(19,4)YES
created_atdatetimeYES

CREATE TABLE Statement

CREATE TABLE IF NOT EXISTS wp_ezhance_promotions ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, title varchar(255) NOT NULL, status varchar(20) NOT NULL DEFAULT 'draft', priority int(11) NOT NULL DEFAULT 10, /* The JSON Payloads (Mirrors the React UI State perfectly) */ action longtext NOT NULL, conditions longtext NOT NULL, targets longtext NOT NULL, display longtext NOT NULL, /* Filtering & Scheduling Columns */ start_date datetime DEFAULT NULL, end_date datetime DEFAULT NULL, max_usage_count int(11) NOT NULL DEFAULT 0, used_count int(11) NOT NULL DEFAULT 0, /* Additional Attributes */ language varchar(20) DEFAULT NULL, currency varchar(10) DEFAULT NULL, total_revenue decimal(19,4) NOT NULL DEFAULT 0.0000, /* Timestamps */ created_at datetime DEFAULT CURRENT_TIMESTAMP, updated_at datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, created_by bigint(20) unsigned NOT NULL DEFAULT 0, updated_by bigint(20) unsigned NOT NULL DEFAULT 0, /* JSON metadata column — safety score and future multi-purpose data */ score_data longtext NULL DEFAULT NULL, /* Indexes for blazing-fast cart retrieval */ PRIMARY KEY (id), KEY status_priority (status, priority), KEY active_dates (start_date, end_date) ) $charset_collate;", // Analytics table to track promotion usage. "CREATE TABLE IF NOT EXISTS wp_ezhance_promotion_analytics ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, promotion_id bigint(20) unsigned NOT NULL, order_id bigint(20) unsigned NOT NULL, product_id bigint(20) unsigned DEFAULT 0, customer_id bigint(20) unsigned DEFAULT 0, promo_details longtext DEFAULT NULL, discount_amount decimal(19,4) NOT NULL DEFAULT 0.0000, currency varchar(10) DEFAULT NULL, discount_amount_base_currency decimal(19,4) DEFAULT NULL, created_at datetime DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY promotion_id (promotion_id), KEY order_id (order_id), KEY product_id (product_id), KEY customer_id (customer_id), KEY currency (currency) ) $charset_collate;", );

Safe to delete?

If you have uninstalled Ezhance – Product Discounts, Bulk Pricing and Safety Score for WooCommerce, 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_ezhance_promotions`;

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

Other tables from Ezhance – Product Discounts, Bulk Pricing and Safety Score for WooCommerce