wp_crmlytics_customer_products
StaticStores product records and related data.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | BIGINT(20) UNSIGNED | YES |
| contact_id | BIGINT(20) UNSIGNED | NO |
| product_id | BIGINT(20) UNSIGNED | NO |
| product_name | VARCHAR(255) | YES |
| quantity_purchased | INT(10) | YES |
| total_spent | DECIMAL(10,2) | YES |
| first_purchased | DATETIME | YES |
| last_purchased | DATETIME | YES |
| order_count | INT(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