'decimal:3', 'retail_price' => 'decimal:2', 'is_active' => 'boolean', ]; public function inventory() { return $this->belongsTo(Inventory::class); } public function unitOfMeasure() { return $this->belongsTo(UnitOfMeasurement::class); } public function scopeActive($query) { return $query->where('is_active', true); } }