<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Departamento extends Model
{
    use HasFactory;

    protected $table = 'departamentos';
    protected $primaryKey = 'idDepa';
    public $timestamps = false;

    protected $fillable = ['Departamento'];

    public function provincias()
    {
        return $this->hasMany(Provincia::class, 'idDepa');
    }
}
