initial commit

This commit is contained in:
2026-02-11 23:37:50 +01:00
commit 908cf42ad9
128 changed files with 17831 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Contact>
*/
class ContactFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'first_name' => $this->faker->firstName(),
'last_name' => $this->faker->lastName(),
'email' => $this->faker->unique()->safeEmail(),
'id' => $this->faker->uuid(),
];
}
}

View File

@@ -0,0 +1,31 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\ContactImport>
*/
class ContactImportFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'id' => $this->faker->uuid(),
'queue_at' => $this->faker->dateTime(),
'started_at' => $this->faker->optional()->dateTime(),
'finished_at' => $this->faker->optional()->dateTime(),
'total_processed' => $this->faker->numberBetween(0, 1000),
'errors' => $this->faker->numberBetween(0, 100),
'duplicates' => $this->faker->numberBetween(0, 100),
'file' => $this->faker->filePath(),
'state' => $this->faker->randomElement(['PENDING', 'RUNNING', 'DONE']),
];
}
}