<?php

namespace App\Models\Training;

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

class Participant extends Model
{
	use SoftDeletes;
    protected $table='participant';
    protected $primaryKey = 'id';
    protected $fillable = ['schedule_id','user_id','role_id','mail_send_flag','created_by','updated_by'];
    
    function schedule()
    {
        return $this->belongsTo('\App\Models\Training\Schedule','schedule_id','id');
    }
    function users()
    {
        return $this->belongsTo('\App\Models\User','user_id','id');
    }
    function role()
    {
        return $this->belongsTo('\App\Models\Settings\Roles','role_id','id');
    }
}
