<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * @property int $IdPais
 * @property string $Nombre
 * @property string $Nacionalidad
 * @property string $Activo
 * @property PaEstadogeo[] $paEstadogeos
 */
class Pais extends Model
{
    public $timestamps = false;
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'pa_pais';

    /**
     * The primary key for the model.
     *
     * @var string
     */
    protected $primaryKey = 'IdPais';

    /**
     * @var array
     */
    protected $fillable = ['Nombre', 'Nacionalidad', 'Activo'];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function paEstadogeos()
    {
        return $this->hasMany('App\Models\EstadoGeo', 'IdPais', 'IdPais');
    }
}
