<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Room extends Model { use SoftDeletes; protected $fillable = ['name', 'department_id', 'room_type', 'capacity', 'floor', 'status']; public function department() { return $this->belongsTo(Department::class); } public function bookings() { return $this->hasMany(Booking::class); } }
