belongsTo(Organization::class, 'organization_id'); } public function branch(): BelongsTo { return $this->belongsTo(Branch::class, 'branch_id'); } public function isLowStock(): bool { return (int) $this->units_on_hand <= (int) $this->reorder_level; } }