<?php

namespace App\Models;

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

class Banner extends Model
{
    use HasFactory;

    protected $fillable = [
        'image',
        'position',
        'link',
        'type',
        'active',
        'seller_id',
        'is_approved',
        'click_count',
    ];

    public function seller()
    {
        return $this->belongsTo(Seller::class);
    }

    protected $casts = [
        'active' => 'boolean',
    ];
}
