{"table_name":"crmlytics_customer_products","full_table_name":"wp_crmlytics_customer_products","description":"Stores product records and related data.","detection_method":"static","confidence":"medium","create_sql":"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);","columns":[{"name":"id","type":"BIGINT(20) UNSIGNED","nullable":true,"primary_key":true},{"name":"contact_id","type":"BIGINT(20) UNSIGNED","nullable":false,"primary_key":false},{"name":"product_id","type":"BIGINT(20) UNSIGNED","nullable":false,"primary_key":false},{"name":"product_name","type":"VARCHAR(255)","nullable":true,"primary_key":false},{"name":"quantity_purchased","type":"INT(10)","nullable":true,"primary_key":false},{"name":"total_spent","type":"DECIMAL(10,2)","nullable":true,"primary_key":false},{"name":"first_purchased","type":"DATETIME","nullable":true,"primary_key":false},{"name":"last_purchased","type":"DATETIME","nullable":true,"primary_key":false},{"name":"order_count","type":"INT(10)","nullable":true,"primary_key":false}],"plugin":{"slug":"crmlytics","name":"CRMlytics – WooCommerce CRM & Customer Analytics","active_installs":0,"version":"1.0.2","wp_org_url":"https://wordpress.org/plugins/crmlytics/"}}