School DB Lab
Live from information_schema

Table Explorer

Every fact on this page — columns, types, keys, defaults, indexes — is read straight from MySQL's own catalogue. Click any table to see its full structure.

اس صفحے پر موجود ہر معلومات — کالمز (Columns)، ڈیٹا ٹائپس (Types)، کیز (Keys)، ڈیفالٹ ویلیوز (Defaults)، اور انڈیکسز (Indexes) — براہِ راست MySQL کے اپنے سسٹم کیٹلاگ سے لائیو پڑھی جا رہی ہے۔ کسی بھی ٹیبل پر کلک کر کے اس کی مکمل ساخت (Structure) دیکھی جا سکتی ہے۔

attendance

Daily attendance, one row per student per class per date.

PK attendance_id 2 FK 70 rows

classes

A class/section for one academic year, e.g. "Grade 5 - A - 2025-2026".

PK class_id 4 rows

class_subject_teachers

Assignment table answering: which teacher teaches which subject to which class.

PK assignment_id 3 FK 24 rows

exams

One row per exam sitting for a given class.

PK exam_id 1 FK 2 rows

exam_results

A student's marks for one subject in one exam.

PK result_id 3 FK 30 rows

fee_invoices

One invoice per student per billing month.

PK invoice_id 1 FK 40 rows

fee_payments

Payments received against an invoice — one invoice may have several partial payments.

PK payment_id 1 FK 20 rows

lab_admins

PK admin_id 1 rows

lab_invitations

PK invite_id 0 rows

lab_login_attempts

PK attempt_id 10 rows

lab_record_ownership

PK ownership_id 1 FK 0 rows

lab_settings

PK setting_key 1 rows

lab_students

PK student_id 0 rows

lab_task_progress

PK progress_id 1 FK 0 rows

lab_teachers

PK teacher_id 2 rows

parents

Parents/guardians. Never linked to students directly — always through student_parents.

PK parent_id 12 rows

students

The root entity. Most other tables ultimately point back to a student.

PK student_id 20 rows

student_enrollments

Connects students to the classes they are enrolled in (One-to-Many on both sides).

PK enrollment_id 2 FK 18 rows

student_parents

Junction table resolving the Many-to-Many relationship between students and parents.

PK student_parent_id 2 FK 30 rows

subjects

Catalogue of subjects taught across the school.

PK subject_id 6 rows

teachers

School teaching staff.

PK teacher_id 5 rows