Initial commit: Import existing Laravel project

This commit is contained in:
jeremy bayse
2026-06-15 08:12:33 +02:00
parent 7420d1b466
commit 030d76af53
143 changed files with 21885 additions and 1 deletions

View File

@@ -0,0 +1,38 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class OrderStatusLog extends Model
{
public $timestamps = false;
protected $fillable = [
'order_id',
'user_id',
'old_status',
'new_status',
'changed_at',
];
protected $casts = [
'changed_at' => 'datetime',
];
/**
* Relation avec la commande.
*/
public function order()
{
return $this->belongsTo(Order::class);
}
/**
* Relation avec l'utilisateur qui a fait la transition.
*/
public function user()
{
return $this->belongsTo(User::class);
}
}