You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.2 KiB

  1. <?php
  2. /** @var \Illuminate\Database\Eloquent\Factory $factory */
  3. use App\Models\Task;
  4. use Faker\Generator as Faker;
  5. $factory->define(Task::class, function (Faker $faker) {
  6. return [
  7. 'business_id' => $faker->numberBetween(1, 200),
  8. 'creator_id' => $faker->numberBetween(1, 5000),
  9. 'project_id' => $faker->numberBetween(1, 200),
  10. 'assignee_id' => $faker->numberBetween(1, 20),
  11. 'workflow_id' => $faker->numberBetween(1, 2500),
  12. 'system_id' => $faker->numberBetween(1, 20),
  13. 'sprint_id' => $faker->numberBetween(1, 20),
  14. 'status_id' => $faker->numberBetween(1, 5000),
  15. 'approver_id' => $faker->numberBetween(1, 5000),
  16. 'title' => $faker->name,
  17. 'description' => $faker->sentences(3, true),
  18. 'priority' => $faker->numberBetween(1,10),
  19. 'on_time' => $faker->boolean,
  20. 'ready_to_test' => $faker->boolean,
  21. 'spent_time' => $faker->numberBetween(100, 300),
  22. 'estimated_time' => $faker->numberBetween(100, 300),
  23. 'due_date' => $faker->date(),
  24. 'completed_at' => $faker->date(),
  25. 'work_start' => $faker->date('1971-01-01','now'),
  26. 'work_finish' => $faker->date('1971-01-01','now'),
  27. ];
  28. });