<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class OwnerNotification extends Model
{
    //
    protected  $fillable = [
        'hostel_id',
        'room_id',
        'title',
        'content',
        'created_at',
        'updated_at',
        'owner_id'
    ];

    protected $dates = [
        'created_at',
        'updated_at'
    ];

    public function room()
    {
        return $this->belongsTo(Room::class);
    }

    public function hostel()
    {
        return $this->belongsTo(Hostel::class);
    }
}
