Drop files here

SQL upload ( 0 ) x -

Page-related settings Click on the bar to scroll to top of page
Press Ctrl+Enter to execute query Press Enter to execute query
ascending
descending
Order:
Debug SQL
Count
Execution order
Time taken
Order by:
Group queries
Ungroup queries
Collapse Expand Show trace Hide trace Count : Time taken :
Bookmarks
Refresh
Add
No bookmarks
Add bookmark
Options
Set default





Collapse Expand Requery Edit Explain Profiling Bookmark Query failed Database : Queried time :
Untitled *
v Show/Hide tables list View in fullscreen Add tables from other databases New page Open page Save page Save page as Delete pages Create table Create relationship Choose column to display Reload Help Angular links / Direct links Snap to grid v Small/Big All Toggle small/big Toggle relationship lines Export schema > Move Menu > Pin text
Number of tables: 0
v cbt_platform audit_logs
* log_id : bigint(20) unsigned
* user_id : int(10) unsigned
* action : varchar(100)
* details : text
* ip_address : varchar(45)
* user_agent : varchar(255)
* created_at : timestamp
v cbt_platform categories
* category_id : tinyint(3) unsigned
* category_name : varchar(20)
* created_at : timestamp
v cbt_platform classes
* class_id : int(10) unsigned
* category_id : tinyint(3) unsigned
* level_id : tinyint(3) unsigned
* arm_id : tinyint(3) unsigned
* created_at : timestamp
v cbt_platform class_arms
* arm_id : tinyint(3) unsigned
* arm_name : varchar(5)
* created_at : timestamp
v cbt_platform class_levels
* level_id : tinyint(3) unsigned
* category_id : tinyint(3) unsigned
* level_name : varchar(10)
* created_at : timestamp
v cbt_platform exam_attempts
* attempt_id : int(10) unsigned
* parameter_id : int(10) unsigned
* student_id : int(10) unsigned
* attempt_number : tinyint(3) unsigned
* question_order : longtext
* status : enum('in_progress','submitted','auto_submitted','suspended')
* started_at : datetime
* last_activity_at : datetime
* submitted_at : datetime
* time_remaining_seconds : int(10) unsigned
* current_question_index : int(10) unsigned
* ip_address : varchar(45)
* device_info : varchar(255)
v cbt_platform exam_parameters
* parameter_id : int(10) unsigned
* school_id : int(10) unsigned
* session_id : int(10) unsigned
* term_id : tinyint(3) unsigned
* exam_type_id : tinyint(3) unsigned
* class_id : int(10) unsigned
* subject_id : int(10) unsigned
* teacher_id : int(10) unsigned
* question_mode : enum('own','class')
* is_class_bank : tinyint(1)
* duration_seconds : int(10) unsigned
* total_questions : int(10) unsigned
* pass_mark : decimal(5,2)
* max_score : decimal(6,2)
* randomize_questions : tinyint(1)
* randomize_options : tinyint(1)
* questions_locked : tinyint(1)
* answers_locked : tinyint(1)
* rewrite_allowed : tinyint(1)
* max_attempts : tinyint(3) unsigned
* result_visible : tinyint(1)
* status : enum('draft','active','suspended','closed')
* created_at : timestamp
* updated_at : timestamp
v cbt_platform exam_parameter_question_shares
* id : int(10) unsigned
* source_parameter_id : int(10) unsigned
* target_parameter_id : int(10) unsigned
* question_count : int(10) unsigned
* created_at : timestamp
v cbt_platform exam_parameter_shared_arms
* id : int(10) unsigned
* parameter_id : int(10) unsigned
* class_id : int(10) unsigned
* added_at : timestamp
v cbt_platform exam_types
* exam_type_id : tinyint(3) unsigned
* type_name : varchar(30)
* created_at : timestamp
v cbt_platform exam_violations
* violation_id : bigint(20) unsigned
* attempt_id : int(10) unsigned
* violation_type : enum('tab_switch','fullscreen_exit')
* occurred_at : timestamp
v cbt_platform login_attempts
* attempt_id : bigint(20) unsigned
* username : varchar(50)
* ip_address : varchar(45)
* success : tinyint(1)
* attempted_at : timestamp
v cbt_platform notifications
* notification_id : int(10) unsigned
* user_id : int(10) unsigned
* title : varchar(150)
* message : text
* type : varchar(30)
* is_read : tinyint(1)
* created_at : timestamp
v cbt_platform parameter_students
* id : int(10) unsigned
* parameter_id : int(10) unsigned
* student_id : int(10) unsigned
* assigned_by : int(10) unsigned
* assigned_at : timestamp
v cbt_platform parameter_student_rewrites
* id : int(10) unsigned
* parameter_id : int(10) unsigned
* student_id : int(10) unsigned
* granted_by : int(10) unsigned
* granted_at : timestamp
v cbt_platform passages
* passage_id : int(10) unsigned
* parameter_id : int(10) unsigned
* title : varchar(150)
* body : text
* image_path : varchar(255)
* created_at : timestamp
v cbt_platform password_resets
* reset_id : int(10) unsigned
* user_id : int(10) unsigned
* token_hash : varchar(255)
* expires_at : datetime
* used : tinyint(1)
* created_at : timestamp
v cbt_platform questions
* question_id : int(10) unsigned
* parameter_id : int(10) unsigned
* passage_id : int(10) unsigned
* question_text : text
* question_image : varchar(255)
* option_count : tinyint(3) unsigned
* difficulty : enum('easy','medium','hard')
* topic : varchar(100)
* version : int(10) unsigned
* is_active : tinyint(1)
* sort_order : int(10) unsigned
* created_at : timestamp
* updated_at : timestamp
v cbt_platform question_options
* option_id : int(10) unsigned
* question_id : int(10) unsigned
* option_label : char(1)
* option_text : text
* option_image : varchar(255)
* is_correct : tinyint(1)
* sort_order : tinyint(3) unsigned
* created_at : timestamp
v cbt_platform question_solutions
* solution_id : int(10) unsigned
* question_id : int(10) unsigned
* explanation : text
* image_path : varchar(255)
* video_url : varchar(255)
* reference_url : varchar(255)
* created_at : timestamp
v cbt_platform results
* result_id : int(10) unsigned
* attempt_id : int(10) unsigned
* parameter_id : int(10) unsigned
* student_id : int(10) unsigned
* total_questions : int(10) unsigned
* correct_count : int(10) unsigned
* wrong_count : int(10) unsigned
* skipped_count : int(10) unsigned
* score : decimal(6,2)
* percentage : decimal(5,2)
* grade : varchar(5)
* remark : varchar(50)
* passed : tinyint(1)
* time_used_seconds : int(10) unsigned
* class_rank : int(10) unsigned
* created_at : timestamp
v cbt_platform roles
* role_id : tinyint(3) unsigned
* role_name : varchar(30)
* description : varchar(150)
* created_at : timestamp
v cbt_platform sessions_academic
* session_id : int(10) unsigned
* session_name : varchar(20)
* is_current : tinyint(1)
* created_at : timestamp
v cbt_platform settings
* setting_key : varchar(60)
* setting_value : text
* created_at : timestamp
v cbt_platform student_answers
* answer_id : int(10) unsigned
* attempt_id : int(10) unsigned
* question_id : int(10) unsigned
* selected_option_id : int(10) unsigned
* option_order : longtext
* status : enum('answered','skipped','marked_review')
* is_correct : tinyint(1)
* answered_at : datetime
v cbt_platform subjects
* subject_id : int(10) unsigned
* subject_name : varchar(100)
* subject_code : varchar(20)
* status : enum('active','inactive')
* created_at : timestamp
v cbt_platform teacher_subjects
* id : int(10) unsigned
* teacher_id : int(10) unsigned
* subject_id : int(10) unsigned
* class_id : int(10) unsigned
* created_at : timestamp
v cbt_platform terms
* term_id : tinyint(3) unsigned
* term_name : varchar(20)
* created_at : timestamp
v cbt_platform users
* user_id : int(10) unsigned
* school_id : int(10) unsigned
* section : varchar(50)
* role_id : tinyint(3) unsigned
* surname : varchar(60)
* first_name : varchar(60)
* middle_name : varchar(60)
* gender : enum('male','female')
* admission_number : varchar(30)
* staff_id : varchar(30)
* username : varchar(50)
* password_hash : varchar(255)
* must_change_password : tinyint(1)
* phone : varchar(20)
* email : varchar(120)
* class_id : int(10) unsigned
* session_id : int(10) unsigned
* photo_path : varchar(255)
* status : enum('active','inactive','suspended','graduated','deleted')
* last_login_at : datetime
* last_login_ip : varchar(45)
* created_at : timestamp
* updated_at : timestamp
Create relationship
FOREIGN KEY
on delete
on update
Delete relationship