<?php

namespace App\Models;

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

class EntertainmentWheel extends Model
{
    use HasFactory;

    protected $fillable = [
        'user_id',
        'is_free',
        'prize_type',
        'prize_emoji',
        'prize_description',
        'spun_at',
    ];

    protected $casts = [
        'is_free' => 'boolean',
        'spun_at' => 'datetime',
    ];

    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
