<?php

namespace App\Models;

use App\SmStaff;

/**
 * University-facing staff alias for lecturers.
 *
 * The legacy system stores lecturers in sm_staffs with the teacher role.
 * Keeping this alias avoids risky table renames while giving new code a
 * university-native model name.
 */
class Lecturer extends SmStaff
{
    public const LEGACY_TEACHER_ROLE_ID = 4;

    public function scopeLecturers($query)
    {
        return $query->where('role_id', self::LEGACY_TEACHER_ROLE_ID);
    }
}
