
| Path : /home/gujo45me/public_html/trading/app/Models/ |
| Disable Functions : exec,passthru,shell_exec,system System : Linux server-604606.appsiete.com 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 [ Home ][ Zone-h ][ Jumping ][ Symlink ][ Mass Depes ][ Command ] |
| Current File : /home/gujo45me/public_html/trading/app/Models/DetalleCredito.php |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class DetalleCredito extends Model
{
protected $table = 'detalle_credito';
protected $primaryKey = 'id_detalle_credito';
protected $fillable = [
'id_detalle_credito', 'id_usuario','id_venta','id_proforma', 'fecha_pago', 'monto', 'observacion', 'estado'
];
public function venta()
{
return $this->belongsTo('App\Models\Venta', 'id_venta');
}
public function usuario()
{
return $this->belongsTo('App\Models\Usuario', 'id_usuario');
}
public function proforma()
{
return $this->belongsTo('App\Models\Proforma', 'id_proforma');
}
}