wp_tutor_coupon_usages
StaticStores tutor coupon usages data created by this plugin.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | BIGINT(20) UNSIGNED | NO |
| coupon_code | VARCHAR(50) | NO |
| user_id | BIGINT(20) UNSIGNED | NO |
| order_id | BIGINT(20) UNSIGNED | YES |
| status | VARCHAR(20) | NO |
| expires_at_gmt | DATETIME | YES |
| created_at_gmt | DATETIME | NO |
CREATE TABLE Statement
CREATE TABLE wp_tutor_coupon_usages ( id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, coupon_code VARCHAR(50) NOT NULL, user_id BIGINT(20) UNSIGNED NOT NULL, order_id BIGINT(20) UNSIGNED DEFAULT NULL, status VARCHAR(20) NOT NULL DEFAULT '{$status_consumed}', expires_at_gmt DATETIME DEFAULT NULL, created_at_gmt DATETIME NOT NULL, PRIMARY KEY (id), UNIQUE KEY coupon_order (coupon_code, order_id), KEY coupon_code (coupon_code), KEY user_id (user_id), KEY order_id (order_id), KEY status (status){$constraints} ) {$charset_collate};"; } /** * Manage tutor roles & permission * * @return void */ public static function manage_tutor_roles_and_permissions() { /** * Add role for instructor */ $instructor_role = tutor()->instructor_role; remove_role( $instructor_role );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_coupon_usages`;
Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.
Other tables from Tutor LMS – eLearning and online course solution