todo/database/seeders/TaskUserSeeder.php

156 lines
3.4 KiB
PHP
Raw Normal View History

2024-05-07 10:35:04 +03:00
<?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,
],
]);
}
}