feat: create/delete project endpoints

This commit is contained in:
Andras Bacsai
2024-07-23 11:36:05 +02:00
parent f134171855
commit 38299ab507
4 changed files with 259 additions and 3 deletions

View File

@@ -122,7 +122,7 @@ class Project extends BaseModel
public function resource_count()
{
return $this->applications()->count() + $this->postgresqls()->count() + $this->redis()->count() + $this->mongodbs()->count() + $this->mysqls()->count() + $this->mariadbs()->count() + $this->keydbs()->count() + $this->dragonflies()->count() + $this->services()->count() + $this->clickhouses()->count();
return $this->applications()->count() + $this->postgresqls()->count() + $this->redis()->count() + $this->mongodbs()->count() + $this->mysqls()->count() + $this->mariadbs()->count() + $this->keydbs()->count() + $this->dragonflies()->count() + $this->clickhouses()->count() + $this->services()->count();
}
public function databases()