<?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;
use App\Models\Day;

class ColourMatakaGame extends Model
{
    use Notifiable, SoftDeletes;

    # define table
    protected $table = 'colour_mataka_games';

    # define fillable fields
    protected $fillable = [
        'name',
        'status',

    ];

    /**
     * The attributes that should be cast.
     *
     * @var array
     */
    protected $casts = [
        'status'  => 'boolean',
    ];



    public function gameRate()
    {
        return $this->hasOne(new ColourMatakaRate(), 'colour_mataka_games_id', 'id');
    }
}
