<?php

namespace App\Models;

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

class traitement extends Model
{
    use HasFactory;

    protected $table = "traitment";
    public $timestamps = false;

    protected $fillable = [
        'fk_demande',
        'statut',
        'date_debut',
        'heure_debut',
        'date_fin',
        'heure_fin',
        'date_traitment',
        'link',
        'date_crea',
        'date_mod',
        'user_crea',
        'user_mod'
    ];

    public function demande(): BelongsTo
    {
        return $this->belongsTo(demande::class);
    }
}
