added failover transaction to seize the error from transactions.

This commit is contained in:
hafifierahman
2024-11-18 00:29:27 +08:00
parent 72a8d3228c
commit 5d18764a34
3 changed files with 144 additions and 10 deletions
+43
View File
@@ -0,0 +1,43 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class FailoverTransaction extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'failover_transaction';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'kodcaw',
'teller',
'old_norujukan',
'new_norujukan',
'db_caw',
'db_online',
'status',
'resolve_time',
];
/**
* The attributes that should be cast.
*
* @var array
*/
protected $casts = [
'db_caw' => 'boolean',
'db_online' => 'boolean',
'resolve_time' => 'datetime',
];
}