<?php

namespace MGModule\DNSManager2\models\custom\server\nameserver;
use MGModule\DNSManager2 as main;

/**
 * Log class
 * 
 * @Table(name=servernameserver)
 */
class ServerNameserver extends main\mgLibs\models\orm{
    /**
     * ID field
     * 
     * @Column(id)
     * @var int 
     */
    public $id;
    
    /**
     *
     * @Column(int)
     * @var int 
     */
    public $index;
    
    /**
     *
     * @Column(int=11, refrence=models\custom\server\Server::id)
     * @var int 
     */
    public $serverid;
    
    /**
     *
     * @Column(varchar)
     * @var string 
     */
    public $name;
    
    /**
     *
     * @Column(varchar)
     * @var string 
     */
    public $ip;
    
    public function getServer() {
        return new main\models\custom\server\Server($this->serverid);
    }
}
