wp_crlms_sessions
StaticStores session data for tracking user or visitor state.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑session_id | bigint(20) unsigned | NO |
| session_key | char(32) | NO |
| session_value | longtext | NO |
| session_expiry | bigint(20) unsigned | NO |
| course_id | INT(11) | NO |
| chapter_id | INT(11) | NO |
| order_number | INT(11) | YES |
| chapter_id | INT(11) | NO |
| content_id | INT(11) | NO |
| content_type | VARCHAR(225) | NO |
| order_number | INT(11) | YES |
| course_id | INT(11) | NO |
| certificate_id | INT(11) | NO |
| user_id | bigint(20) | NO |
| course_id | bigint(20) | NO |
| membership_id | bigint(20) | YES |
| order_id | bigint(20) unsigned | NO |
| status | varchar(45) | NO |
| progress | varchar(45) | NO |
| start_date | datetime | NO |
| end_date | datetime | NO |
| membership_id | bigint(20) | YES |
| course_id | bigint(20) | YES |
| order_id | bigint(20) unsigned | NO |
| status | varchar(45) | NO |
| start_date | datetime | NO |
| end_date | datetime | NO |
| enrollment_id | bigint(20) | NO |
| content_id | bigint(20) | NO |
| content_type | varchar(45) | NO |
| status | varchar(45) | NO |
| start_date | datetime | NO |
| user_id | bigint(20) | NO |
| lesson_id | bigint(20) | NO |
| course_id | bigint(20) | NO |
| watched_duration | decimal(10,2) | NO |
| total_duration | decimal(10,2) | NO |
| watch_percentage | decimal(5,2) | NO |
| last_position | decimal(10,2) | NO |
| is_completed | tinyint(1) | NO |
| completed_date | datetime | YES |
| last_updated | datetime | NO |
| created_date | datetime | NO |
| quiz_id | INT(11) | NO |
| question_id | INT(11) | NO |
| order_number | INT(11) | YES |
| course_id | bigint(20) | NO |
| quiz_id | bigint(20) | NO |
| student_id | bigint(20) unsigned | NO |
| total | bigint(20) unsigned | NO |
| status | varchar(45) | NO |
| start_date | datetime | NO |
| end_date | datetime | NO |
| student_id | bigint(20) unsigned | NO |
| quiz_id | bigint(20) | NO |
| question_id | bigint(20) | NO |
| quiz_attempt_id | bigint(20) | NO |
| given_answer | longtext | NO |
| question_marks | float | YES |
| achive_mark | float | YES |
| minus_mark | float | YES |
| is_correct | boolean | YES |
| is_manually_reviewed | boolean | YES |
| question_id | bigint(20) | NO |
| answer | longtext | NO |
| order_number | INT(11) | YES |
| is_correct | boolean | NO |
| answer_id | bigint(20) | NO |
| meta_key | char(32) | NO |
| meta_value | longtext | NO |
| order_item_name | text | NO |
| order_item_type | varchar(200) | NO |
| order_id | bigint(20) unsigned | NO |
| order_item_id | bigint(20) unsigned | NO |
| meta_key | varchar(255) | YES |
| meta_value | longtext | YES |
| student_id | BIGINT(20) | NO |
| course_id | BIGINT(20) | NO |
| VARCHAR(255) | NO | |
| subject | TEXT | NO |
| message | LONGTEXT | NO |
| status | VARCHAR(50) | YES |
| created_at | DATETIME | NO |
| name | VARCHAR(255) | NO |
| trigger_event | VARCHAR(100) | NO |
| webhook_url | TEXT | NO |
| http_method | VARCHAR(10) | NO |
| data_type | VARCHAR(20) | NO |
| data_mapping | LONGTEXT | YES |
| status | VARCHAR(20) | NO |
| created_at | DATETIME | NO |
| updated_at | DATETIME | NO |
CREATE TABLE Statement
CREATE TABLE wp_crlms_sessions ( session_id bigint(20) unsigned NOT NULL AUTO_INCREMENT, session_key char(32) NOT NULL, session_value longtext NOT NULL, session_expiry bigint(20) unsigned NOT NULL, PRIMARY KEY (session_id), UNIQUE KEY session_key (session_key) ) $charset_collate; CREATE TABLE wp_crlms_chapter_relationship ( id bigint(20) unsigned NOT NULL auto_increment, course_id INT(11) NOT NULL, chapter_id INT(11) NOT NULL, order_number INT(11) DEFAULT 0, PRIMARY KEY (id), UNIQUE KEY unique_course_chapter (course_id, chapter_id), KEY chapter_id (chapter_id), KEY course_id (course_id) ) $charset_collate; CREATE TABLE wp_crlms_content_relationship ( id bigint(20) unsigned NOT NULL auto_increment, chapter_id INT(11) NOT NULL, content_id INT(11) NOT NULL, content_type VARCHAR(225) NOT NULL, order_number INT(11) DEFAULT 0, PRIMARY KEY (id), UNIQUE KEY unique_chapter_content (chapter_id, content_id, content_type), KEY chapter_id (chapter_id), KEY content_id (content_id) ) $charset_collate; CREATE TABLE wp_crlms_certificate_relationship ( id bigint(20) unsigned NOT NULL auto_increment, course_id INT(11) NOT NULL, certificate_id INT(11) NOT NULL, PRIMARY KEY (id), UNIQUE KEY unique_course_certificate (course_id, certificate_id), KEY course_id (course_id), KEY certificate_id (certificate_id) ) $charset_collate; CREATE TABLE wp_crlms_user_enrollment ( id bigint(20) unsigned NOT NULL auto_increment, user_id bigint(20) NOT NULL, course_id bigint(20) NOT NULL, membership_id bigint(20) default NULL, order_id bigint(20) unsigned NOT NULL DEFAULT 0, status varchar(45) NOT NULL DEFAULT '', progress varchar(45) NOT NULL DEFAULT '', start_date datetime NOT NULL default '0000-00-00 00:00:00', end_date datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (id), KEY user_id (user_id), KEY course_id (course_id), KEY order_id (order_id) ) $charset_collate; CREATE TABLE wp_crlms_earning ( id bigint(20) unsigned NOT NULL auto_increment, membership_id bigint(20) default NULL, course_id bigint(20) default NULL, order_id bigint(20) unsigned NOT NULL DEFAULT 0, status varchar(45) NOT NULL DEFAULT '', start_date datetime NOT NULL default '0000-00-00 00:00:00', end_date datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (id), KEY order_id (order_id) ) $charset_collate; CREATE TABLE wp_crlms_user_progress ( id bigint(20) unsigned NOT NULL auto_increment, enrollment_id bigint(20) NOT NULL, content_id bigint(20) NOT NULL, content_type varchar(45) NOT NULL DEFAULT '', status varchar(45) NOT NULL DEFAULT '', start_date datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (id), KEY enrollment_id (enrollment_id), KEY course_id (content_id) ) $charset_collate; CREATE TABLE wp_crlms_video_progress ( id bigint(20) unsigned NOT NULL auto_increment, user_id bigint(20) NOT NULL, lesson_id bigint(20) NOT NULL, course_id bigint(20) NOT NULL, watched_duration decimal(10,2) NOT NULL DEFAULT 0, total_duration decimal(10,2) NOT NULL DEFAULT 0, watch_percentage decimal(5,2) NOT NULL DEFAULT 0, last_position decimal(10,2) NOT NULL DEFAULT 0, is_completed tinyint(1) NOT NULL DEFAULT 0, completed_date datetime NULL, last_updated datetime NOT NULL default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, created_date datetime NOT NULL default CURRENT_TIMESTAMP, PRIMARY KEY (id), UNIQUE KEY user_lesson (user_id, lesson_id), KEY user_id (user_id), KEY lesson_id (lesson_id), KEY course_id (course_id) ) $charset_collate; CREATE TABLE wp_crlms_quiz_questions_relationship ( id bigint(20) unsigned NOT NULL auto_increment, quiz_id INT(11) NOT NULL, question_id INT(11) NOT NULL, order_number INT(11) DEFAULT 0, PRIMARY KEY (id), UNIQUE KEY id (id), KEY quiz_id (quiz_id), KEY question_id (question_id) ) $charset_collate; CREATE TABLE wp_crlms_quiz_attempts ( id bigint(20) unsigned NOT NULL auto_increment, course_id bigint(20) NOT NULL, quiz_id bigint(20) NOT NULL, student_id bigint(20) unsigned NOT NULL DEFAULT 0, total bigint(20) unsigned NOT NULL DEFAULT 0, status varchar(45) NOT NULL DEFAULT '', start_date datetime NOT NULL default '0000-00-00 00:00:00', end_date datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (id), KEY course_id (course_id), KEY quiz_id (quiz_id), KEY student_id (student_id) ) $charset_collate; CREATE TABLE wp_crlms_quiz_attempts_answers ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, student_id bigint(20) unsigned NOT NULL DEFAULT 0, quiz_id bigint(20) NOT NULL, question_id bigint(20) NOT NULL, quiz_attempt_id bigint(20) NOT NULL, given_answer longtext NOT NULL, question_marks float DEFAULT 0, achive_mark float DEFAULT 0, minus_mark float DEFAULT 0, is_correct boolean NULL DEFAULT 0, is_manually_reviewed boolean NULL DEFAULT 0, PRIMARY KEY (id), KEY quiz_attempt_id (quiz_attempt_id), KEY quiz_id (quiz_id), KEY student_id (student_id) ) $charset_collate; CREATE TABLE wp_crlms_question_answers ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, question_id bigint(20) NOT NULL, answer longtext NOT NULL, order_number INT(11) DEFAULT 0, is_correct boolean NOT NULL DEFAULT 0, PRIMARY KEY (id), UNIQUE KEY id (id) ) $charset_collate; CREATE TABLE wp_crlms_question_answermeta ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, answer_id bigint(20) NOT NULL, meta_key char(32) NOT NULL, meta_value longtext NOT NULL, PRIMARY KEY (id), UNIQUE KEY id (id) ) $charset_collate; CREATE TABLE wp_crlms_order_items ( order_item_id bigint(20) unsigned NOT NULL AUTO_INCREMENT, order_item_name text NOT NULL, order_item_type varchar(200) NOT NULL DEFAULT '', order_id bigint(20) unsigned NOT NULL, PRIMARY KEY (order_item_id), KEY order_id (order_id) ) $charset_collate; CREATE TABLE wp_crlms_order_itemmeta ( meta_id bigint(20) unsigned NOT NULL auto_increment, order_item_id bigint(20) unsigned NOT NULL, meta_key varchar(255) default NULL, meta_value longtext NULL, PRIMARY KEY (meta_id), KEY order_item_id (order_item_id), KEY meta_key (meta_key(32)) ) $charset_collate; CREATE TABLE wp_crlms_notifications ( id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, student_id BIGINT(20) NOT NULL, course_id BIGINT(20) NOT NULL, email VARCHAR(255) NOT NULL, subject TEXT NOT NULL, message LONGTEXT NOT NULL, status VARCHAR(50) DEFAULT 'sent', created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY student_id (student_id), KEY course_id (course_id) ) $charset_collate; CREATE TABLE wp_crlms_webhooks ( id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, trigger_event VARCHAR(100) NOT NULL, webhook_url TEXT NOT NULL, http_method VARCHAR(10) NOT NULL DEFAULT 'POST', data_type VARCHAR(20) NOT NULL DEFAULT 'json', data_mapping LONGTEXT, status VARCHAR(20) NOT NULL DEFAULT 'active', created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY trigger_event (trigger_event), KEY status (status) ) $charset_collate; "; return $tables; } /** * Create roles and capabilities. */ public static function create_roles() { $admin = get_role( 'administrator' );Safe to delete?
If you have uninstalled Creator LMS – WordPress LMS Plugin for Coaches & Course Creators, 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_crlms_sessions`;
Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.
Other tables from Creator LMS – WordPress LMS Plugin for Coaches & Course Creators