wp_cintel_customer_clv

Static

Stores cintel customer clv data created by this plugin.

Column Definitions

ColumnTypeNullable
customer_idBIGINT UNSIGNEDNO
emailVARCHAR(255)YES
first_order_dateDATEYES
last_order_dateDATEYES
total_ordersINT UNSIGNEDYES
total_spentDECIMAL(15,4)YES
avg_order_valueDECIMAL(15,4)YES
avg_days_between_ordersDECIMAL(10,2)YES
predicted_clvDECIMAL(15,4)YES
recency_scoreTINYINT UNSIGNEDYES
frequency_scoreTINYINT UNSIGNEDYES
monetary_scoreTINYINT UNSIGNEDYES
rfm_segmentVARCHAR(50)YES
churn_riskVARCHAR(10)YES
days_since_last_orderINT UNSIGNEDYES
expected_next_order_dateDATEYES
acquisition_sourceVARCHAR(255)YES
last_calculatedDATETIMEYES
month_numberINT UNSIGNEDNO
active_customersINT UNSIGNEDYES
total_revenueDECIMAL(15,4)YES
retained_pctDECIMAL(8,4)YES

CREATE TABLE Statement

CREATE TABLE wp_cintel_customer_clv ( customer_id BIGINT UNSIGNED NOT NULL, email VARCHAR(255) DEFAULT '', first_order_date DATE DEFAULT NULL, last_order_date DATE DEFAULT NULL, total_orders INT UNSIGNED DEFAULT 0, total_spent DECIMAL(15,4) DEFAULT 0, avg_order_value DECIMAL(15,4) DEFAULT 0, avg_days_between_orders DECIMAL(10,2) DEFAULT 0, predicted_clv DECIMAL(15,4) DEFAULT 0, recency_score TINYINT UNSIGNED DEFAULT 0, frequency_score TINYINT UNSIGNED DEFAULT 0, monetary_score TINYINT UNSIGNED DEFAULT 0, rfm_segment VARCHAR(50) DEFAULT '', churn_risk VARCHAR(10) DEFAULT 'low', days_since_last_order INT UNSIGNED DEFAULT 0, expected_next_order_date DATE DEFAULT NULL, acquisition_source VARCHAR(255) DEFAULT '', last_calculated DATETIME DEFAULT NULL, PRIMARY KEY (customer_id), KEY idx_segment (rfm_segment), KEY idx_churn (churn_risk), KEY idx_clv (predicted_clv) ) $charset_collate; CREATE TABLE wp_cintel_customer_cohorts ( cohort_month VARCHAR(7) NOT NULL, month_number INT UNSIGNED NOT NULL, active_customers INT UNSIGNED DEFAULT 0, total_revenue DECIMAL(15,4) DEFAULT 0, retained_pct DECIMAL(8,4) DEFAULT 0, PRIMARY KEY (cohort_month, month_number) ) $charset_collate;"; require_once ABSPATH . 'wp-admin/includes/upgrade.php'; dbDelta( $sql );

Safe to delete?

If you have uninstalled Customer Intelligence 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_cintel_customer_clv`;

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

Other tables from Customer Intelligence for WooCommerce