belongsTo(Manufacturer::class, 'PUP_MCF_ID', 'MCF_ID'); } public function curvePoints(): HasMany { return $this->hasMany(PumpCurvePoint::class, 'PEP_PUP_ID', 'PUP_ID'); } /** Tylko widoczne (PUP_STATUS='1', nieusunięte logicznie). */ public function scopeVisible(Builder $q): Builder { return $q->where('PUP_STATUS', '1'); } }