<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * @property integer $id
 * @property string $descripcion
 * @property string $estado
 * @property string $created_at
 * @property string $updated_at
 * @property CuentaBancarium[] $cuentaBancarias
 */
class Bancos extends Model
{
    /**
     * The "type" of the auto-incrementing ID.
     * 
     * @var string
     */
    protected $keyType = 'integer';

    /**
     * @var array
     */
    protected $fillable = ['descripcion', 'estado', 'created_at', 'updated_at'];

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