feat: harden tenant settings and import pipeline
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Event;
|
||||
use App\Models\EventType;
|
||||
use App\Models\Tenant;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use Illuminate\Support\Str;
|
||||
@@ -18,12 +19,14 @@ class EventFactory extends Factory
|
||||
|
||||
return [
|
||||
'tenant_id' => Tenant::factory(),
|
||||
'event_type_id' => EventType::factory(),
|
||||
'name' => $name,
|
||||
'slug' => $slug,
|
||||
'description' => $this->faker->paragraph(),
|
||||
'date' => $this->faker->dateTimeBetween('now', '+6 months'),
|
||||
'location' => $this->faker->address(),
|
||||
'max_participants' => $this->faker->numberBetween(50, 500),
|
||||
'settings' => null,
|
||||
'is_active' => true,
|
||||
'join_link_enabled' => true,
|
||||
'photo_upload_enabled' => true,
|
||||
@@ -60,4 +63,5 @@ class EventFactory extends Factory
|
||||
'date' => $this->faker->dateTimeBetween('now', '+1 month'),
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user