<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Vendor extends Model
{
    // No schema prefix needed — search_path handles it
    protected $table = 'vendors';

    protected $fillable = [
        'owner_id',
        'title',
        'description',
        'email',
        'phone_number',
        'phone_number_prefix',
        'city',
        'postal_code',
        'street_address',
        'address',
        'latitude',
        'longitude',
        'currency',
        'photo',
        'publish',
        'active',
        'filters_ids',
    ];

    protected $casts = [
        'filters_ids'           => 'array',
        'photos'                => 'array',
        'restaurant_menu_photos'=> 'array',
        'publish'               => 'boolean',
        'active'                => 'boolean',
    ];
}