<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class IntegrationLink extends Model
{
    protected $fillable = [
        'business_id', 'provider', 'entity_type', 'entity_id',
        'external_id', 'external_status', 'metadata',
    ];

    protected function casts(): array
    {
        return ['metadata' => 'array'];
    }
}
