*/ use HasFactory; use HasUuids; public $incrementing = false; protected $keyType = 'string'; protected $guarded = []; protected $casts = [ 'payload' => 'array', 'completed_at' => 'datetime', 'abandoned_at' => 'datetime', 'created_at' => 'datetime', 'updated_at' => 'datetime', ]; public function tenant(): BelongsTo { return $this->belongsTo(Tenant::class); } public function createdByUser(): BelongsTo { return $this->belongsTo(User::class, 'created_by_user_id'); } }