{"slug":"simple-affiliate-for-woocommerce","name":"Simple Affiliate for WooCommerce","description":"Simple Affiliate for WooCommerce","author":"olegisk","active_installs":0,"version":"1.0.2","wp_org_url":"https://wordpress.org/plugins/simple-affiliate-for-woocommerce/","is_closed":false,"cleanup":{"has_uninstall_hook":false,"drops_tables_on_uninstall":false,"deletes_options_on_uninstall":false},"tables":[{"table_name":"affiliate_earnings","full_table_name":"wp_affiliate_earnings","description":"Stores affiliate earnings data created by this plugin.","detection_method":"static","confidence":"medium","columns":[{"name":"id","type":"int(11)","nullable":false,"primary_key":true},{"name":"user_id","type":"int(11)","nullable":false,"primary_key":false},{"name":"order_id","type":"int(11)","nullable":false,"primary_key":false},{"name":"customer_id","type":"int(11)","nullable":false,"primary_key":false},{"name":"discount_rate","type":"decimal(10,2)","nullable":false,"primary_key":false},{"name":"discount","type":"decimal(10,2)","nullable":false,"primary_key":false},{"name":"discount_currency","type":"varchar(255)","nullable":false,"primary_key":false},{"name":"commission_rate","type":"decimal(10,2)","nullable":false,"primary_key":false},{"name":"commission","type":"decimal(10,2)","nullable":false,"primary_key":false},{"name":"commission_currency","type":"varchar(255)","nullable":false,"primary_key":false},{"name":"comment","type":"text","nullable":false,"primary_key":false},{"name":"creation_date","type":"datetime","nullable":false,"primary_key":false}],"create_sql":"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"},{"table_name":"affiliate_spending","full_table_name":"wp_affiliate_spending","description":"Stores affiliate spending data created by this plugin.","detection_method":"static","confidence":"medium","columns":[{"name":"id","type":"int(11)","nullable":false,"primary_key":true},{"name":"user_id","type":"int(11)","nullable":false,"primary_key":false},{"name":"order_id","type":"int(11)","nullable":false,"primary_key":false},{"name":"total_spent","type":"decimal(10,2)","nullable":false,"primary_key":false},{"name":"currency","type":"varchar(255)","nullable":false,"primary_key":false},{"name":"comment","type":"text","nullable":false,"primary_key":false},{"name":"creation_date","type":"datetime","nullable":false,"primary_key":false}],"create_sql":"CREATE TABLE IF NOT EXISTS `wp_affiliate_spending` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL COMMENT 'Affiliate User Id', `order_id` int(11) NOT NULL COMMENT 'Order ID', `total_spent` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'Spent Total', `currency` varchar(255) NOT NULL COMMENT 'Currency of amount', `comment` text NOT NULL, `creation_date` datetime NOT NULL COMMENT 'Creation Date', PRIMARY KEY (`id`), UNIQUE KEY `order_id` (`order_id`), KEY `user_id` (`user_id`) ) ENGINE"}],"table_count":2}