rename postgres to standalonepostgres

This commit is contained in:
Andras Bacsai
2023-08-07 19:25:32 +02:00
parent a020bc872d
commit 20e1cd6d6b
10 changed files with 29 additions and 14 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class StandalonePostgres extends BaseModel
{
use HasFactory;
protected $guarded = [];
protected $casts = [
'postgres_password' => 'encrypted',
];
public function type() {
return 'postgresql';
}
public function environment()
{
return $this->belongsTo(Environment::class);
}
public function destination()
{
return $this->morphTo();
}
}