mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 20:49:32 +00:00
23 lines
402 B
PHP
23 lines
402 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
class PrivateKey extends BaseModel
|
|
{
|
|
protected $fillable = [
|
|
'name',
|
|
'description',
|
|
'private_key',
|
|
'team_id',
|
|
];
|
|
static public function ownedByCurrentTeam()
|
|
{
|
|
return PrivateKey::whereTeamId(session('currentTeam')->id);
|
|
}
|
|
public function servers()
|
|
{
|
|
return $this->hasMany(Server::class);
|
|
}
|
|
}
|