<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Foundation\Auth\User as Authenticatable;

class WithdrawTiming extends Model
{
      use Notifiable , SoftDeletes;

 # define table
  protected $table ='withdraw_timings';
  
  # define fillable fields
  protected $fillable = [
  	                   'day_id',
  	                   'start_time',
  	                   'end_time',
  	                   'minimum_withdraw',
  	                   'status',
                       
  ];

     /**
   * The attributes that should be cast.
   *
   * @var array
   */
  protected $casts = [
      'status'  => 'boolean',
  ];
   public function Day()
    {
        return $this->hasOne(new Day(), 'id', 'day_id');
    }
}