<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class ProjectsSeeder extends Seeder
{
    public function run()
    {
        // Projects
        DB::table('projects')->insert([
            ['name' => 'Migration Project', 'description' => 'Move to modular architecture', 'created_at' => now(), 'updated_at' => now()],
            ['name' => 'Support Portal', 'description' => 'Customer support portal', 'created_at' => now(), 'updated_at' => now()],
        ]);
        // Related tasks
        DB::table('related_tasks')->insert([
            ['project_id' => 1, 'task_id' => 1, 'created_at' => now(), 'updated_at' => now()],
            ['project_id' => 2, 'task_id' => 2, 'created_at' => now(), 'updated_at' => now()],
        ]);
        // Reminders
        DB::table('reminders')->insert([
            ['user_id' => 1, 'message' => 'Check migration progress', 'remind_at' => now()->addDays(1), 'created_at' => now(), 'updated_at' => now()],
        ]);
        $this->command->info('Seeded Projects tables');
    }
} 