<?php

namespace App\Models;

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

class ProductosTrazabilidad extends Model
{
    use HasFactory;

    protected $table = 'productos_trazabilidad';

    public function Producto()
    {
        return $this->belongsTo(Producto::class, 'product_id');
    }

    public function Trazabilidad()
    {
        return $this->belongsTo(Trazabilidad::class, 'trazabilidad_id');
    }
}
