26 lines
718 B
PHP
26 lines
718 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\DataCentre;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class DataCentreFactory extends Factory
|
|
{
|
|
protected $model = DataCentre::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'nama_pusat_data' => 'Pusat Data '.fake()->city(),
|
|
'tajuk_permohonan' => 'Permohonan Lesen '.fake()->words(2, true),
|
|
'lokasi_pusat_data' => fake()->city(),
|
|
'alamat' => fake()->address(),
|
|
'keluasan_tapak' => fake()->randomFloat(2, 1, 20),
|
|
'it_load' => fake()->randomFloat(2, 5, 100),
|
|
'status' => 'aktif',
|
|
'current_consultant_id' => null,
|
|
];
|
|
}
|
|
}
|