wp_crmlytics_customers

Static

Stores crmlytics customers data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idBIGINT(20) UNSIGNEDYES
contact_idBIGINT(20) UNSIGNEDNO
total_ordersINT(10) UNSIGNEDYES
total_spentDECIMAL(10,2)YES
avg_order_valueDECIMAL(10,2)YES
first_order_dateDATETIMEYES
last_order_dateDATETIMEYES
health_scoreINT(3)YES
churn_riskINT(3)YES
rfm_scoreVARCHAR(3)YES

CREATE TABLE Statement

CREATE TABLE wp_crmlytics_customers ( id BIGINT(20) UNSIGNED AUTO_INCREMENT PRIMARY KEY, contact_id BIGINT(20) UNSIGNED NOT NULL, total_orders INT(10) UNSIGNED DEFAULT 0, total_spent DECIMAL(10,2) DEFAULT 0.00, avg_order_value DECIMAL(10,2) DEFAULT 0.00, first_order_date DATETIME, last_order_date DATETIME, health_score INT(3) DEFAULT 0, churn_risk INT(3) DEFAULT 0, rfm_score VARCHAR(3) DEFAULT '000', UNIQUE KEY contact_customer (contact_id), INDEX idx_total_spent (total_spent), INDEX idx_last_order (last_order_date), INDEX idx_health_score (health_score), INDEX idx_rfm_score (rfm_score) ) $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_customers`;

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

Other tables from CRMlytics – WooCommerce CRM & Customer Analytics