'decimal:2', 'start_date' => 'date', 'end_date' => 'date', 'beneficiaries_count' => 'integer', ]; public function createdBy() { return $this->belongsTo(\App\Models\User::class, 'created_by'); } public function scopeActive($query) { return $query->whereNotIn('status', ['CANCELLED', 'COMPLETED']); } public function scopeByType($query, string $type) { return $query->where('type', $type); } }