1688 admin work flow clean up and call api

This commit is contained in:
edmondlang
2024-07-22 01:12:51 +08:00
parent 31282492fe
commit 8d48f6f4eb
5 changed files with 470 additions and 306 deletions
+47
View File
@@ -0,0 +1,47 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class WorkflowTimestamp extends Model
{
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'workflow_timestamps';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'node',
'seconds',
'userId',
'session_id'
];
/**
* The attributes that should be cast.
*
* @var array
*/
protected $casts = [
'timestamp' => 'datetime',
];
/**
* Get the user that owns the workflow timestamp.
*/
public function user()
{
return $this->belongsTo(User::class, 'userId');
}
}