'boolean', 'last_fetched_at' => 'datetime', 'configuration' => 'array', ]; /** * Get the jobs from this source. */ public function jobs(): HasMany { return $this->hasMany(Job::class, 'job_source_id'); } /** * Scope a query to only include active sources. */ public function scopeActive($query) { return $query->where('is_active', true); } }