<?php

namespace App\Models;

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

class Exercices extends Model
{
    use HasFactory;
    protected $table = "cpt_tbl_exercice";
    public $timestamps = false ;

    protected $casts = [
        'date_crea' => 'date:Y-m-d',
        'date_closed' => 'date:Y-m-d',
    ];


    protected $fillable = [
        'exercice',
        'is_closed',
        'is_auto',
        'start_date',
        'end_date',
        'id_app',
        'user_crea',
        'user_closed',
        'date_closed',
    ];
}
