<?php

namespace App\Models;

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

class Badge extends Model
{
    use HasFactory;

    protected $fillable = [
        'name_fa',
        'name_en',
        'slug',
        'description',
        'icon',
        'color',
        'points_required',
        'level_required',
        'condition_type',
        'condition_value',
        'sort_order',
        'status',
    ];

    public function userBadges()
    {
        return $this->hasMany(UserBadge::class);
    }
}
