- Added new automation-related routes and controllers for managing automations. - Introduced automation nodes in the UI with distinct styles and interactions. - Updated sidebar to include navigation for automations. - Enhanced post creation logic to support automation metadata. - Refactored content type and platform enums into types for better type safety. - Added localization for automation-related terms in English, Spanish, and Portuguese. - Improved error handling in various components to accommodate new features.
26 lines
683 B
PHP
26 lines
683 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Enums\Automation\Node\Type as NodeType;
|
|
use App\Enums\Automation\NodeRun\Status;
|
|
use App\Models\AutomationNodeRun;
|
|
use App\Models\AutomationRun;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class AutomationNodeRunFactory extends Factory
|
|
{
|
|
protected $model = AutomationNodeRun::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'run_id' => AutomationRun::factory(),
|
|
'node_id' => 'node_'.fake()->randomNumber(6),
|
|
'node_type' => NodeType::Generate,
|
|
'status' => Status::Running,
|
|
'input' => [],
|
|
'started_at' => now(),
|
|
];
|
|
}
|
|
}
|