<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ClassRoom extends Model
{
  use HasFactory;

  protected $fillable = [
    'classRoomId',
    'classRoomTitle',
    'location',
    'capacity',
  ];

  public function schedules()
  {
    return $this->belongsToMany('App\Models\Schedule', 'class_room_activities');
  }
}
