{"table_name":"tutor_coupon_usages","full_table_name":"wp_tutor_coupon_usages","description":"Stores tutor coupon usages data created by this plugin.","detection_method":"static","confidence":"medium","create_sql":"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 );","columns":[{"name":"id","type":"BIGINT(20) UNSIGNED","nullable":false,"primary_key":true},{"name":"coupon_code","type":"VARCHAR(50)","nullable":false,"primary_key":false},{"name":"user_id","type":"BIGINT(20) UNSIGNED","nullable":false,"primary_key":false},{"name":"order_id","type":"BIGINT(20) UNSIGNED","nullable":true,"primary_key":false},{"name":"status","type":"VARCHAR(20)","nullable":false,"primary_key":false},{"name":"expires_at_gmt","type":"DATETIME","nullable":true,"primary_key":false},{"name":"created_at_gmt","type":"DATETIME","nullable":false,"primary_key":false}],"plugin":{"slug":"tutor","name":"Tutor LMS – eLearning and online course solution","active_installs":100000,"version":"4.2.0","wp_org_url":"https://wordpress.org/plugins/tutor/"}}