<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class TypeRessource extends Model
{
    public $timestamps = false;
    protected $primaryKey = 'ID_Type_Ressource';
    protected $table = 'type_ressources';

    protected $fillable = [
        'Format',
    ];

    public function ressources()
    {
        return $this->hasMany(Ressource::class, 'ID_Type_Ressource', 'ID_Type_Ressource');
    }
}
