19 lines
486 B
PHP
19 lines
486 B
PHP
<?php
|
|
|
|
namespace Modules\Automation\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
final class AutomationStep extends Model
|
|
{
|
|
protected $fillable = ['automation_id', 'position', 'action_type', 'name', 'configuration', 'is_enabled'];
|
|
|
|
protected $casts = ['configuration' => 'array', 'is_enabled' => 'boolean'];
|
|
|
|
public function automation(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Automation::class);
|
|
}
|
|
}
|