<?php

namespace App\Models;

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

class VoucherCoaching extends Model
{
    use HasFactory;

    protected $fillable = ['code','released_by','released_at',
        'name', 'phone', 'email', 'submitted_at', 'scheduled_at', 'scheduled_by',
        'schedule_date'
    ];

    public function releasedBy(){
        return $this->belongsTo(User::class,"released_by");
    }

    public function scheduledBy(){
        return $this->belongsTo(User::class,"scheduled_by");
    }
}
