<?php

namespace App\Repositories;

use App\Models\JobModel;

class JobRepository extends BaseRepository
{
    public function __construct(JobModel $model)
    {
        parent::__construct($model);
    }

    public function findBySlug(string $slug): ?object
    {
        // Public-facing lookup — intentionally bypasses tenant scope since
        // job seekers browsing jobs are never "in" an agency's tenant.
        return $this->model->findBySlug($slug);
    }
}
