<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class OdooLog extends Model
{
    protected $table = 'odoo_logs';

    public $timestamps = false;

    protected $fillable = [
        'endpoint',
        'modelo',
        'metodo',
        'request',
        'response',
        'http_code',
        'duracion_ms',
        'exito'
    ];

    protected $casts = [
        'request' => 'array',
        'response' => 'array',
        'exito' => 'boolean',
    ];
}