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
32 lines
1.2 KiB
<?php
|
|
|
|
/** @var \Illuminate\Database\Eloquent\Factory $factory */
|
|
|
|
use App\Task;
|
|
use Faker\Generator as Faker;
|
|
|
|
$factory->define(Task::class, function (Faker $faker) {
|
|
return [
|
|
'business_id' => $faker->numberBetween(1, 200),
|
|
'creator_id' => $faker->numberBetween(1, 5000),
|
|
'project_id' => $faker->numberBetween(1, 200),
|
|
'assignee_id' => $faker->numberBetween(1, 20),
|
|
'workflow_id' => $faker->numberBetween(1, 2500),
|
|
'system_id' => $faker->numberBetween(1, 20),
|
|
'sprint_id' => $faker->numberBetween(1, 20),
|
|
'status_id' => $faker->numberBetween(1, 5000),
|
|
'approver_id' => $faker->numberBetween(1, 5000),
|
|
|
|
'title' => $faker->name,
|
|
'description' => $faker->sentences(3, true),
|
|
'priority' => $faker->numberBetween(1,10),
|
|
'on_time' => $faker->boolean,
|
|
'ready_to_test' => $faker->boolean,
|
|
'spent_time' => $faker->numberBetween(100, 300),
|
|
'estimated_time' => $faker->numberBetween(100, 300),
|
|
'due_date' => $faker->date(),
|
|
'completed_at' => $faker->date(),
|
|
'work_start' => $faker->date('1971-01-01','now'),
|
|
'work_finish' => $faker->date('1971-01-01','now'),
|
|
];
|
|
});
|