feat: init postgresql database

This commit is contained in:
Andras Bacsai
2023-08-07 18:46:40 +02:00
parent 0a040a0531
commit a020bc872d
38 changed files with 430 additions and 66 deletions

View File

@@ -13,9 +13,9 @@ class StandaloneDocker extends BaseModel
{
return $this->morphMany(Application::class, 'destination');
}
public function databases()
public function postgresqls()
{
return $this->morphMany(Database::class, 'destination');
return $this->morphMany(Postgresql::class, 'destination');
}
public function server()
{
@@ -25,4 +25,4 @@ class StandaloneDocker extends BaseModel
{
return $this->applications->count() > 0 || $this->databases->count() > 0;
}
}
}