<?php

namespace App\Models\Training;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class ScheduleTopics extends Model
{
	use SoftDeletes;
    protected $table='schedule_topics';
    protected $primaryKey = 'id';
    protected $fillable = ['schedule_id','topic_id','topic_schedule_date'];
    
    function schedule()
    {
        return $this->belongsTo('\App\Models\Training\Schedule','schedule_id','id');
    }
    function topic()
    {
        return $this->belongsTo('\App\Models\Settings\Topic','topic_id','id');
    }
}
