156 lines
3.4 KiB
PHP
156 lines
3.4 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class TaskUserSeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
DB::table('task_user')->insert([
|
|
[
|
|
'task_id' => 1,
|
|
'user_id' => 2,
|
|
],
|
|
[
|
|
'task_id' => 1,
|
|
'user_id' => 4,
|
|
],
|
|
[
|
|
'task_id' => 2,
|
|
'user_id' => 1,
|
|
],
|
|
[
|
|
'task_id' => 2,
|
|
'user_id' => 3,
|
|
],
|
|
[
|
|
'task_id' => 2,
|
|
'user_id' => 4,
|
|
],
|
|
[
|
|
'task_id' => 3,
|
|
'user_id' => 1,
|
|
],
|
|
[
|
|
'task_id' => 3,
|
|
'user_id' => 2,
|
|
],
|
|
[
|
|
'task_id' => 3,
|
|
'user_id' => 3,
|
|
],
|
|
[
|
|
'task_id' => 4,
|
|
'user_id' => 2,
|
|
],
|
|
[
|
|
'task_id' => 4,
|
|
'user_id' => 4,
|
|
],
|
|
[
|
|
'task_id' => 5,
|
|
'user_id' => 3,
|
|
],
|
|
[
|
|
'task_id' => 6,
|
|
'user_id' => 1,
|
|
],
|
|
[
|
|
'task_id' => 6,
|
|
'user_id' => 4,
|
|
],
|
|
[
|
|
'task_id' => 7,
|
|
'user_id' => 1,
|
|
],
|
|
[
|
|
'task_id' => 8,
|
|
'user_id' => 1,
|
|
],
|
|
[
|
|
'task_id' => 8,
|
|
'user_id' => 2,
|
|
],
|
|
[
|
|
'task_id' => 8,
|
|
'user_id' => 3,
|
|
],
|
|
[
|
|
'task_id' => 8,
|
|
'user_id' => 4,
|
|
],
|
|
[
|
|
'task_id' => 9,
|
|
'user_id' => 1,
|
|
],
|
|
[
|
|
'task_id' => 9,
|
|
'user_id' => 2,
|
|
],
|
|
[
|
|
'task_id' => 9,
|
|
'user_id' => 4,
|
|
],
|
|
[
|
|
'task_id' => 10,
|
|
'user_id' => 2,
|
|
],
|
|
[
|
|
'task_id' => 10,
|
|
'user_id' => 3,
|
|
],
|
|
[
|
|
'task_id' => 10,
|
|
'user_id' => 4,
|
|
],
|
|
[
|
|
'task_id' => 11,
|
|
'user_id' => 2,
|
|
],
|
|
[
|
|
'task_id' => 11,
|
|
'user_id' => 4,
|
|
],
|
|
[
|
|
'task_id' => 12,
|
|
'user_id' => 1,
|
|
],
|
|
[
|
|
'task_id' => 13,
|
|
'user_id' => 4,
|
|
],
|
|
[
|
|
'task_id' => 14,
|
|
'user_id' => 2,
|
|
],
|
|
[
|
|
'task_id' => 15,
|
|
'user_id' => 1,
|
|
],
|
|
[
|
|
'task_id' => 15,
|
|
'user_id' => 2,
|
|
],
|
|
[
|
|
'task_id' => 15,
|
|
'user_id' => 3,
|
|
],
|
|
[
|
|
'task_id' => 16,
|
|
'user_id' => 1,
|
|
],
|
|
[
|
|
'task_id' => 16,
|
|
'user_id' => 2,
|
|
],
|
|
[
|
|
'task_id' => 16,
|
|
'user_id' => 3,
|
|
],
|
|
]);
|
|
}
|
|
}
|