<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class VipLevel extends Model
{
    protected $table = 'vip_levels';

    protected $fillable = [
        'name',
        'display_name',
        'min_tickets',
        'description',
        'bonus_multiplier',
    ];

    protected $casts = [
        'min_tickets' => 'integer',
        'bonus_multiplier' => 'decimal:2',
    ];

    public function users()
    {
        return $this->hasMany(User::class);
    }
}
