<?php

namespace App\Models;

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

class Reforme extends Model
{
    //
    use HasFactory;
    protected $fillable = ['id','libelle','date_debut','annee_debut','annee_fin','ordre_min','ordre_max'];

    public function niveaux(): HasMany
    {
        return $this->hasMany(Niveau::class);
    }
}
