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 full-screen 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 elearning admins
* id : int(11)
* username : varchar(50)
* password : varchar(255)
* is_super_admin : tinyint(1)
* created_at : timestamp
v elearning attendance
* id : int(11)
* student_reg : varchar(25)
* faculty_id : int(11)
* date : date
* status : varchar(25)
v elearning cohorts
* id : int(11)
* cohort_no : int(11)
* start_date : date
* end_date : date
v elearning courses
* id : int(11)
* title : varchar(255)
* content : longtext
* faculty_id : int(11)
* start_date : date
* end_date : date
v elearning exams
* exam_id : int(11)
* title : varchar(255)
* description : text
* faculty_id : int(11)
* course_id : int(11)
* teacher_id : int(11)
* start_time : datetime
* end_time : datetime
* duration_minutes : int(11)
* total_marks : int(11)
* status : enum('draft','scheduled','active','completed','published','deleted')
* created_at : timestamp
* updated_at : timestamp
* deleted_by : varchar(100)
v elearning exam_confirmations
* confirmation_id : int(11)
* attempt_id : int(11)
* teacher_id : int(11)
* status : enum('pending','confirmed','rejected')
* teacher_notes : text
* created_at : timestamp
* updated_at : timestamp
v elearning exam_questions
* question_id : int(11)
* exam_id : int(11)
* question_text : text
* question_type : enum('multiple_choice','true_false','matching','open')
* marks : int(11)
* order : int(11)
* image : varchar(255)
v elearning exam_results
* result_id : int(11)
* exam_id : int(11)
* student_id : int(11)
* score : decimal(10,2)
* submitted_at : datetime
* status : enum('pending','graded','published')
* created_at : timestamp
* updated_at : timestamp
v elearning exam_sessions
* session_id : int(11)
* attempt_id : int(11)
* start_time : datetime
* end_time : datetime
* status : enum('active','paused','ended')
* created_at : timestamp
* updated_at : timestamp
v elearning faculty
* id : int(11)
* title : varchar(100)
* description : text
* code : varchar(25)
* tuition_fees : decimal(10,2)
* duration : int(11)
* discount_percentage : decimal(5,2)
* created_at : timestamp
v elearning faculty_materials
* id : int(11)
* faculty_id : int(11)
* period : varchar(50)
* model : varchar(50)
* material_needs : text
* cost : decimal(10,2)
v elearning free_users
* id : int(11)
* anon_key : varchar(64)
* remaining_credits : int(11)
* created_at : timestamp
* updated_at : timestamp
v elearning marks_entries
* id : int(11)
* teacher_id : int(11)
* faculty_id : int(11)
* student_reg : varchar(100)
* course_id : varchar(100)
* ass_th : int(11)
* ass_pr : int(11)
* ex_th : int(11)
* ex_pr : int(11)
* updated_at : datetime
v elearning marks_summary
* id : int(11)
* teacher_id : int(11)
* faculty_id : int(11)
* student_reg : varchar(100)
* industrial : int(11)
* discipline : int(11)
* internship_date : date
* study_end_date : date
* percentage : decimal(5,2)
* place : int(11)
* updated_at : datetime
v elearning mark_delete_requests
* id : int(11)
* teacher_id : int(11)
* faculty_id : int(11)
* student_reg : varchar(100)
* scope : enum('student','all')
* status : enum('pending','approved','rejected')
* requested_at : timestamp
* reviewed_by : int(11)
* reviewed_at : datetime
v elearning media
* id : int(11)
* file_path : text
* type : varchar(10)
* page_id : int(11)
* uploaded_at : timestamp
* course_id : int(11)
v elearning one_time_usages
* id : int(11)
* user_plan_id : int(11)
* quiz_id : int(11)
* used_at : datetime
v elearning options
* id : int(11)
* question_id : int(11)
* option_text : varchar(255)
* is_correct : tinyint(1)
* image : varchar(255)
v elearning questions
* id : int(11)
* quiz_id : int(11)
* question_text : text
* image : varchar(255)
v elearning question_options
* option_id : int(11)
* question_id : int(11)
* option_text : text
* match_text : text
* is_correct : tinyint(1)
* order : int(11)
* image : varchar(255)
v elearning quizzes
* id : int(11)
* course_id : int(11)
* faculty_id : int(11)
* title : varchar(255)
* created_at : timestamp
* reattempt : tinyint(5)
* language : varchar(25)
* delete_request : varchar(25)
v elearning quiz_answers
* id : int(11)
* result_id : int(11)
* question_id : int(11)
* selected_option : int(11)
v elearning quiz_attempts
* id : int(11)
* user_id : int(11)
* email : varchar(255)
* anon_key : varchar(64)
* quiz_id : int(11)
* score : int(11)
* total : int(11)
* duration_sec : int(11)
* created_at : timestamp
v elearning quiz_results
* id : int(11)
* student_name : varchar(100)
* quiz_id : int(11)
* score : int(11)
* total : int(11)
* submitted_at : datetime
v elearning reference_numbers
* id : int(11)
* user_type : varchar(15)
* studentReg_or_teacherId : varchar(25)
* doc_type : enum('letter','towhom','report')
* reference_no : varchar(25)
* created_at : timestamp
v elearning report_courses
* id : int(11)
* course_id : varchar(100)
* teacher_id : int(11)
* faculty_id : int(11)
* name : varchar(255)
* category : varchar(50)
* max : int(11)
* created_at : datetime
v elearning report_notifications
* id : int(11)
* teacher_id : int(11)
* submission_id : int(11)
* admin_id : int(11)
* action : varchar(20)
* message : text
* read_at : datetime
* created_at : timestamp
v elearning report_submissions
* id : int(11)
* teacher_id : int(11)
* faculty_id : int(11)
* student_reg : varchar(255)
* report_type : enum('single','class')
* status : enum('pending','approved','rejected')
* submitted_at : timestamp
* approved_by : int(11)
* approval_date : datetime
* rejection_comment : text
v elearning sponsors
* id : int(11)
* name : varchar(100)
* description : text
* discount_percentage : decimal(5,2)
* created_at : timestamp
v elearning students
* id : int(11)
* profile_photo : text
* name : varchar(100)
* dob : date
* id_number : varchar(50)
* gender : varchar(10)
* reg_number : varchar(25)
* father_name : varchar(100)
* mother_name : varchar(100)
* sponsor_id : int(11)
* student_phone : varchar(20)
* email : varchar(100)
* password : varchar(255)
* parent_phone : varchar(20)
* parent_email : varchar(100)
* referee1_phone : varchar(15)
* referee2_phone : varchar(15)
* education_level : varchar(100)
* course : varchar(100)
* cohort : int(11)
* shift : varchar(2)
* country : varchar(100)
* province : varchar(100)
* district : varchar(100)
* sector : varchar(100)
* cell : varchar(100)
* village : varchar(100)
* status : varchar(50)
* created_at : timestamp
* updated_at : timestamp
* date_filled : date
* marital_status : enum('Single','Married','Divorced','Widowed')
* id_card_pdf : varchar(255)
* spouse_name : varchar(100)
* num_children : int(11)
* age_children : longtext
* looking_after_children : varchar(100)
* living_with : longtext
* living_with_other : varchar(255)
* guardian_name : varchar(100)
* family_responsibilities : longtext
* family_responsibilities_other : text
* home_languages : varchar(255)
* english_reading : int(11)
* french_reading : int(11)
* kinyarwanda_reading : int(11)
* swahili_reading : int(11)
* internet_skill : varchar(50)
* word_skill : varchar(50)
* excel_skill : varchar(50)
* powerpoint_skill : varchar(50)
* personal_description : text
v elearning student_answers
* answer_id : int(11)
* attempt_id : int(11)
* question_id : int(11)
* answer_text : text
* marks_awarded : decimal(10,2)
* selected_option_id : int(11)
* marks_obtained : int(11)
* is_marked : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v elearning student_exam_attempts
* attempt_id : int(11)
* student_id : int(11)
* exam_id : int(11)
* start_time : datetime
* end_time : datetime
* status : enum('in_progress','submitted','graded')
* total_marks_obtained : decimal(10,2)
* last_activity : datetime
* created_at : timestamp
* updated_at : timestamp
v elearning student_faculty
* id : int(11)
* student_id : int(11)
* faculty_id : int(11)
* status : enum('enrolled','completed','dropped')
* enrolled_at : timestamp
v elearning student_files
* id : int(11)
* student_id : varchar(50)
* file_path : varchar(255)
* file_type : varchar(255)
* description : text
* uploaded_by : varchar(50)
* uploaded_at : datetime
v elearning student_payment
* id : int(11)
* stud_id : varchar(255)
* registration : int(25)
* Fees_payable : int(25)
* Fees_payed : int(25)
* Fees_remain : int(25)
* fees_status : varchar(25)
v elearning student_photos
* id : int(11)
* student_id : int(11)
* photo_path : varchar(255)
* upload_date : date
* uploaded_at : timestamp
v elearning teachers
* id : int(11)
* faculty_id : int(11)
* name : varchar(100)
* email : varchar(100)
* password : varchar(255)
* created_at : timestamp
v elearning user_plans
* id : int(11)
* user_id : int(11)
* email : varchar(255)
* phone : varchar(64)
* anon_key : varchar(255)
* plan_code : varchar(32)
* starts_at : datetime
* ends_at : datetime
* status : enum('pending','active','used','expired','cancelled')
* transaction_id : varchar(128)
* payment_status : varchar(64)
* reserved_quiz_id : int(11)
* created_at : datetime
Create relationship
FOREIGN KEY
on delete
on update
Delete relationship