Initial commit with contrats and domaines modules

This commit is contained in:
mrKamoo
2026-04-08 18:07:08 +02:00
commit 092a6a0484
191 changed files with 24639 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class HistoriqueCommande extends Model
{
public $timestamps = false;
protected $fillable = ['commande_id', 'user_id', 'ancien_statut', 'nouveau_statut', 'commentaire'];
protected $casts = [
'created_at' => 'datetime',
];
public function commande(): BelongsTo
{
return $this->belongsTo(Commande::class);
}
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}