<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Auth;

class UserStatusForNextCycle extends Model
{
    use HasFactory;
    protected $fillable = ['user_id','status','school_id'];

    public function scopeOwner() {
        return $this->where('school_id', Auth::user()->school_id);
    }
}
