<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class CustomerClubAccount extends Model
{
    protected $fillable = [
        'user_id',
        'available_spins',
        'welcome_spin_granted',
    ];

    protected $casts = [
        'welcome_spin_granted' => 'boolean',
        'available_spins'      => 'integer',
    ];

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