18 lines
393 B
PHP
18 lines
393 B
PHP
<?php
|
|
|
|
namespace Modules\Workflow\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
final class WorkflowHistory extends Model
|
|
{
|
|
protected $table = 'workflow_history';
|
|
|
|
protected $fillable = ['workflow_instance_id', 'from_stage_id', 'to_stage_id', 'user_id', 'action', 'comment', 'metadata'];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return ['metadata' => 'array'];
|
|
}
|
|
}
|