wp_tutor_earnings

Static

Stores tutor earnings data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑earning_idbigint(20)NO
user_idbigint(20)YES
course_idbigint(20)YES
order_idbigint(20)YES
order_statusvarchar(50)YES
course_price_totaldecimal(16,2)YES
course_price_grand_totaldecimal(16,2)YES
instructor_amountdecimal(16,2)YES
instructor_ratedecimal(16,2)YES
admin_amountdecimal(16,2)YES
admin_ratedecimal(16,2)YES
commission_typevarchar(20)YES
deduct_fees_amountdecimal(16,2)YES
deduct_fees_namevarchar(250)YES
deduct_fees_typevarchar(20)YES
process_byvarchar(20)YES
created_atdatetimeYES
user_idbigint(20)YES
amountdecimal(16,2)YES
method_datatextYES
statusvarchar(50)YES
updated_atdatetimeYES
created_atdatetimeYES

CREATE TABLE Statement

CREATE TABLE IF NOT EXISTS wp_tutor_earnings ( earning_id bigint(20) NOT NULL AUTO_INCREMENT, user_id bigint(20) DEFAULT NULL, course_id bigint(20) DEFAULT NULL, order_id bigint(20) DEFAULT NULL, order_status varchar(50) DEFAULT NULL, course_price_total decimal(16,2) DEFAULT NULL, course_price_grand_total decimal(16,2) DEFAULT NULL, instructor_amount decimal(16,2) DEFAULT NULL, instructor_rate decimal(16,2) DEFAULT NULL, admin_amount decimal(16,2) DEFAULT NULL, admin_rate decimal(16,2) DEFAULT NULL, commission_type varchar(20) DEFAULT NULL, deduct_fees_amount decimal(16,2) DEFAULT NULL, deduct_fees_name varchar(250) DEFAULT NULL, deduct_fees_type varchar(20) DEFAULT NULL, process_by varchar(20) DEFAULT NULL, created_at datetime DEFAULT NULL, PRIMARY KEY (earning_id) ) $charset_collate;"; $withdraw_table = "CREATE TABLE IF NOT EXISTS wp_tutor_withdraws ( withdraw_id bigint(20) NOT NULL AUTO_INCREMENT, user_id bigint(20) DEFAULT NULL, amount decimal(16,2) DEFAULT NULL, method_data text DEFAULT NULL, status varchar(50) DEFAULT NULL, updated_at datetime DEFAULT NULL, created_at datetime DEFAULT NULL, PRIMARY KEY (withdraw_id) ) $charset_collate;"; require_once ABSPATH . 'wp-admin/includes/upgrade.php'; dbDelta( $earning_table );

Safe to delete?

If you have uninstalled Tutor LMS – eLearning and online course solution, 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_tutor_earnings`;

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

Other tables from Tutor LMS – eLearning and online course solution