WIP start of scheduled tasks.

This commit is contained in:
Stuart Rowlands
2024-01-01 10:33:16 -08:00
parent d5b3e88fc4
commit adecf328fc
10 changed files with 440 additions and 0 deletions

View File

@@ -315,6 +315,11 @@ class Application extends BaseModel
return $this->hasMany(EnvironmentVariable::class)->where('is_preview', true)->where('key', 'like', 'NIXPACKS_%');
}
public function scheduled_tasks(): HasMany
{
return $this->hasMany(ScheduledTask::class)->orderBy('name', 'asc');
}
public function private_key()
{
return $this->belongsTo(PrivateKey::class);