<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class RemoteProduct extends Model
{
    protected $connection = 'tienda_remota';

    protected $table = 'products';

    protected $primaryKey = 'id_product';

    public $incrementing = true;

    protected $keyType = 'int';

    public $timestamps = false;

    protected $guarded = [];

    public function save(array $options = []): bool
    {
        throw new \LogicException('RemoteProduct es de solo lectura (tienda_remota).');
    }

    public function delete(): bool
    {
        throw new \LogicException('RemoteProduct es de solo lectura (tienda_remota).');
    }
}
