<?php

namespace App\Models;

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

class LuckyWheelGet extends Model
{
    use HasFactory;

    protected $fillable = ['prize_id','lucky_wheel_id','voucher_id','nominal','redeem_at'];

    public function prize(){
        return $this->belongsTo(LuckyWheelPrize::class,'prize_id');
    }

    public function voucher(){
        return $this->belongsTo(Voucher::class,'voucher_id');
    }
}