<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;

class RewardBadge extends Model
{
    use HasFactory, SoftDeletes;

    protected $fillable = ['name', 'slug', 'description', 'min_points', 'icon', 'color', 'rarity', 'level', 'is_active', 'unlock_condition'];

    public function achievements(): HasMany
    {
        return $this->hasMany(UserAchievement::class);
    }
}
