'integer', ]; public function creator(): BelongsTo { return $this->belongsTo(User::class); } public function executions(): HasMany { return $this->hasMany(ScriptExecution::class, 'script_id'); } public function executeOn(Server $server, string $user): void { dispatch(new ExecuteOn($this, $server, $user))->onConnection('ssh'); } }