wp_affiliate_earnings
StaticStores affiliate earnings data created by this plugin.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | int(11) | NO |
| user_id | int(11) | NO |
| order_id | int(11) | NO |
| customer_id | int(11) | NO |
| discount_rate | decimal(10,2) | NO |
| discount | decimal(10,2) | NO |
| discount_currency | varchar(255) | NO |
| commission_rate | decimal(10,2) | NO |
| commission | decimal(10,2) | NO |
| commission_currency | varchar(255) | NO |
| comment | text | NO |
| creation_date | datetime | NO |
CREATE TABLE Statement
CREATE TABLE IF NOT EXISTS `wp_affiliate_earnings` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL COMMENT 'Affiliate User Id', `order_id` int(11) NOT NULL COMMENT 'Customer Order ID', `customer_id` int(11) NOT NULL COMMENT 'Customer Id', `discount_rate` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'Discount Rate', `discount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'Discount Total', `discount_currency` varchar(255) NOT NULL COMMENT 'Currency of Discount total', `commission_rate` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'Commission Rate', `commission` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'Commission Total', `commission_currency` varchar(255) NOT NULL COMMENT 'Currency of Commission Total', `comment` text NOT NULL, `creation_date` datetime NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `order_id` (`order_id`), KEY `user_id` (`user_id`), KEY `customer_id` (`customer_id`) ) ENGINE
Safe to delete?
If you have uninstalled Simple Affiliate 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_affiliate_earnings`;
Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.
Other tables from Simple Affiliate for WooCommerce