wp_crmlytics_customer_products

Static

Stores product records and related data.

Column Definitions

ColumnTypeNullable
🔑idBIGINT(20) UNSIGNEDYES
contact_idBIGINT(20) UNSIGNEDNO
product_idBIGINT(20) UNSIGNEDNO
product_nameVARCHAR(255)YES
quantity_purchasedINT(10)YES
total_spentDECIMAL(10,2)YES
first_purchasedDATETIMEYES
last_purchasedDATETIMEYES
order_countINT(10)YES

CREATE TABLE Statement

CREATE TABLE wp_crmlytics_customer_products ( id BIGINT(20) UNSIGNED AUTO_INCREMENT PRIMARY KEY, contact_id BIGINT(20) UNSIGNED NOT NULL, product_id BIGINT(20) UNSIGNED NOT NULL, product_name VARCHAR(255), quantity_purchased INT(10) DEFAULT 0, total_spent DECIMAL(10,2) DEFAULT 0.00, first_purchased DATETIME, last_purchased DATETIME, order_count INT(10) DEFAULT 0, UNIQUE KEY contact_product (contact_id, product_id), INDEX idx_contact_id (contact_id), INDEX idx_product_id (product_id) ) $charset_collate;"; dbDelta($sql);

Safe to delete?

If you have uninstalled CRMlytics – WooCommerce CRM & Customer Analytics, 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_crmlytics_customer_products`;

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

Other tables from CRMlytics – WooCommerce CRM & Customer Analytics