You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wx.sstbc.com/app/Models/ScheduleOverviewCourse.php

19 lines
393 B

<?php
namespace App\Models;
class ScheduleOverviewCourse extends SoftDeletesModel
{
protected $table = 'schedule_overview_courses';
public function system()
{
return $this->belongsTo(ScheduleOverviewSystem::class, 'system_id', 'id');
}
public function schedules()
{
return $this->hasMany(ScheduleOverviewSchedule::class, 'course_id', 'id');
}
}