wp_crmlytics_customers
StaticStores crmlytics customers data created by this plugin.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | BIGINT(20) UNSIGNED | YES |
| contact_id | BIGINT(20) UNSIGNED | NO |
| total_orders | INT(10) UNSIGNED | YES |
| total_spent | DECIMAL(10,2) | YES |
| avg_order_value | DECIMAL(10,2) | YES |
| first_order_date | DATETIME | YES |
| last_order_date | DATETIME | YES |
| health_score | INT(3) | YES |
| churn_risk | INT(3) | YES |
| rfm_score | VARCHAR(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