<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;

class VpnClient extends Model {
    protected $fillable = ['router_id','openvpn_server_id','common_name','static_ip','status','crt_path','key_path','ovpn_path','last_error'];
    public function router(){ return $this->belongsTo(Router::class); }
    public function server(){ return $this->belongsTo(OpenVpnServer::class,'openvpn_server_id'); }
}
