add basic import api

This commit is contained in:
TimmensOne
2023-04-03 11:54:41 +02:00
parent 23dd795397
commit ffd98d046e
4 changed files with 107 additions and 9 deletions

View File

@ -16,10 +16,11 @@ class DeviceFactory extends Factory
*/
public function definition(): array
{
$device_type = $this->faker->randomElement(['projektor','computer','laptop','mikrofon','whiteboard','unbekannt']);
return [
'device_id' => $this->faker->uuid(),
'title' => $this->faker->word(),
'device_type' => $this->faker->domainWord(),
'device_type' => $device_type,
'description' => $this->faker->sentence(),
'accessories' => $this->faker->word(),
'rz_username_buyer' => $this->faker->name(),