P/03

Mozaik OBS

Database course project · Student information system

A full student information system on MySQL for a fictional university, with student, lecturer and admin roles. Most business rules live in the database as triggers and stored procedures.

Year
2026
Status
Completed
24
tables
22
triggers (3 rules + 19 audit)
4 + 4
views and functions
2,300+
grade records in demo data

A student information system for a fictional university named after Zeugma, the ancient city in Gaziantep. The goal was to put business rules in the database, not in application code.

What’s inside

  • Students: course registration, timetable, grades, transcript, attendance, fees and document requests
  • Lecturers: grade entry, attendance, announcements, exam planning, statistics and advisor approvals
  • Admins: student and staff management, term settings, a read-only SQL console
  • Ctrl + K command palette: search pages, students, lecturers and courses

Course registration checks prerequisites, the ECTS limit, time clashes, the year limit, already-passed courses and capacity.

The database side

  • Triggers: averages and letter grades are recalculated when a midterm or final changes; a full section blocks registration with SIGNAL SQLSTATE '45000'; 19 triggers write every change to an audit log.
  • Stored procedure: sp_transkript builds the term-by-term transcript.
  • Recursive query: the curriculum map finds a course’s whole prerequisite chain with WITH RECURSIVE.
WITH RECURSIVE geri AS (
  SELECT on_kosul_id AS id, 1 AS derinlik
  FROM on_kosullar WHERE ders_id = :ders_id
  UNION ALL
  SELECT ok.on_kosul_id, g.derinlik + 1
  FROM on_kosullar ok JOIN geri g ON ok.ders_id = g.id
)
SELECT * FROM geri;

Four features other systems don’t have

  1. Term recap: Spotify Wrapped-style cards; the last one is a personal mosaic where each course is a tile in its grade colour.
  2. Curriculum metro map: courses are stations, prerequisites are lines.
  3. Time machine: jump to any day of the term and the timetable, grades and attendance are recalculated for that day. The database itself never changes.
  4. Absence forecast: “At this rate you’ll pass the limit in week 9.”

For the presentation there is also a live database screen showing table row counts and the trigger-filled audit log in real time.

Esc
↑↓ selectEnter open