<?php


namespace ModulesGarden\ProxmoxAddon\App\Models;


use ModulesGarden\ProxmoxAddon\Core\Models\ExtendedEloquentModel;

/**
 * @property int $id
 * @property int $server_id
 * @property string $name
 * @property string $updated_at
 * @property string $created_at
 */
class ServerGroup extends ExtendedEloquentModel
{

    /** @var string */
    protected $table = 'ServerGroup';
    protected $fillable   = ['id','name','server_id','updated_at','created_at'];


    public function scopeOfServerId($query, $id)
    {
        return $query->where("server_id", $id);
    }

}