<?php

namespace Database\Seeders;

use App\Models\Academy;
use App\Models\QuestionType;
use Illuminate\Database\Seeder;

class AcademyQuestionMapSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $FE = Academy::find(4);
        $FS = Academy::find(3);
        $DS = Academy::find(5);
        $ST = Academy::find(6);
        $MKT = Academy::find(2);
        $UX = Academy::find(7);
        $GD = Academy::find(1);
        $BusinesInteliges = Academy::find(10);
        $PPM = Academy::find(8);
        $HR = Academy::find(9);

        
        $FE->question_types()->attach(1, ['amount' => 2]);
        $FE->question_types()->attach(2, ['amount' => 3]);
        $FE->question_types()->attach(3, ['amount' => 3]);
        $FE->question_types()->attach(4, ['amount' => 2]);
        $FE->question_types()->attach(5, ['amount' => 3]);
        $FE->question_types()->attach(6, ['amount' => 3]);
        $FE->question_types()->attach(7, ['amount' => 2]);
        $FE->question_types()->attach(8, ['amount' => 2]);
        $FE->question_types()->attach(9, ['amount' => 3]);
        
        $FE->question_types()->attach(11, ['amount' => 12]);
         
        $FE->question_types()->attach(20, ['amount' => 5]);



        // ===============================================
        $FS->question_types()->attach(1, ['amount' => 2]);
        $FS->question_types()->attach(2, ['amount' => 3]);
        $FS->question_types()->attach(3, ['amount' => 3]);
        $FS->question_types()->attach(4, ['amount' => 3]);
        $FS->question_types()->attach(5, ['amount' => 3]);
        $FS->question_types()->attach(6, ['amount' => 3]);
        $FS->question_types()->attach(7, ['amount' => 2]);
        $FS->question_types()->attach(8, ['amount' => 1]);
        $FS->question_types()->attach(9, ['amount' => 3]);
        
        $FS->question_types()->attach(10, ['amount' => 12]);
         
        $FS->question_types()->attach(20, ['amount' => 5]);



        // ===============================================
        $DS->question_types()->attach(1, ['amount' => 3]);
        $DS->question_types()->attach(2, ['amount' => 3]);
        $DS->question_types()->attach(3, ['amount' => 2]);
        $DS->question_types()->attach(4, ['amount' => 2]);
        $DS->question_types()->attach(5, ['amount' => 3]);
        $DS->question_types()->attach(6, ['amount' => 3]);
        $DS->question_types()->attach(7, ['amount' => 2]);
        $DS->question_types()->attach(8, ['amount' => 2]);
        $DS->question_types()->attach(9, ['amount' => 3]);
        
        $DS->question_types()->attach(13, ['amount' => 12]);
         
        $DS->question_types()->attach(20, ['amount' => 5]);



        // ===============================================
        $ST->question_types()->attach(1, ['amount' => 2]);
        $ST->question_types()->attach(2, ['amount' => 2]);
        $ST->question_types()->attach(3, ['amount' => 3]);
        $ST->question_types()->attach(4, ['amount' => 2]);
        $ST->question_types()->attach(5, ['amount' => 3]);
        $ST->question_types()->attach(6, ['amount' => 3]);
        $ST->question_types()->attach(7, ['amount' => 2]);
        $ST->question_types()->attach(8, ['amount' => 3]);
        $ST->question_types()->attach(9, ['amount' => 3]);
        
        $ST->question_types()->attach(14, ['amount' => 12]);
         
        $ST->question_types()->attach(20, ['amount' => 5]);


        // ===============================================
        $MKT->question_types()->attach(1, ['amount' => 2]);
        $MKT->question_types()->attach(2, ['amount' => 3]);
        $MKT->question_types()->attach(3, ['amount' => 2]);
        $MKT->question_types()->attach(4, ['amount' => 3]);
        $MKT->question_types()->attach(5, ['amount' => 2]);
        $MKT->question_types()->attach(6, ['amount' => 3]);
        $MKT->question_types()->attach(7, ['amount' => 5]);
        $MKT->question_types()->attach(8, ['amount' => 1]);
        $MKT->question_types()->attach(9, ['amount' => 2]);
        
        $MKT->question_types()->attach(15, ['amount' => 12]);
         
        $MKT->question_types()->attach(20, ['amount' => 5]);




        // ===============================================
        $UX->question_types()->attach(1, ['amount' => 0]);
        $UX->question_types()->attach(2, ['amount' => 1]);
        $UX->question_types()->attach(3, ['amount' => 2]);
        $UX->question_types()->attach(4, ['amount' => 3]);
        $UX->question_types()->attach(5, ['amount' => 3]);
        $UX->question_types()->attach(6, ['amount' => 2]);
        $UX->question_types()->attach(7, ['amount' => 4]);
        $UX->question_types()->attach(8, ['amount' => 5]);
        $UX->question_types()->attach(9, ['amount' => 3]);
        
        $UX->question_types()->attach(16, ['amount' => 12]);
         
        $UX->question_types()->attach(20, ['amount' => 5]);



        // ===============================================
        $GD->question_types()->attach(1, ['amount' => 0]);
        $GD->question_types()->attach(2, ['amount' => 1]);
        $GD->question_types()->attach(3, ['amount' => 2]);
        $GD->question_types()->attach(4, ['amount' => 3]);
        $GD->question_types()->attach(5, ['amount' => 3]);
        $GD->question_types()->attach(6, ['amount' => 2]);
        $GD->question_types()->attach(7, ['amount' => 4]);
        $GD->question_types()->attach(8, ['amount' => 5]);
        $GD->question_types()->attach(9, ['amount' => 3]);
        
        $GD->question_types()->attach(13, ['amount' => 12]);
         
        $GD->question_types()->attach(20, ['amount' => 5]);




        // ===============================================
        $BusinesInteliges->question_types()->attach(1, ['amount' => 2]);
        $BusinesInteliges->question_types()->attach(2, ['amount' => 3]);
        $BusinesInteliges->question_types()->attach(3, ['amount' => 3]);
        $BusinesInteliges->question_types()->attach(4, ['amount' => 3]);
        $BusinesInteliges->question_types()->attach(5, ['amount' => 2]);
        $BusinesInteliges->question_types()->attach(6, ['amount' => 3]);
        $BusinesInteliges->question_types()->attach(7, ['amount' => 2]);
        $BusinesInteliges->question_types()->attach(8, ['amount' => 3]);
        $BusinesInteliges->question_types()->attach(9, ['amount' => 2]);
        
        $BusinesInteliges->question_types()->attach(17, ['amount' => 12]);
         
        $BusinesInteliges->question_types()->attach(20, ['amount' => 5]);



        // ===============================================
        $PPM->question_types()->attach(1, ['amount' => 2]);
        $PPM->question_types()->attach(2, ['amount' => 3]);
        $PPM->question_types()->attach(3, ['amount' => 3]);
        $PPM->question_types()->attach(4, ['amount' => 1]);
        $PPM->question_types()->attach(5, ['amount' => 1]);
        $PPM->question_types()->attach(6, ['amount' => 3]);
        $PPM->question_types()->attach(7, ['amount' => 4]);
        $PPM->question_types()->attach(8, ['amount' => 4]);
        $PPM->question_types()->attach(9, ['amount' => 2]);
        
        $PPM->question_types()->attach(18, ['amount' => 12]);
        
        $PPM->question_types()->attach(20, ['amount' => 5]);


        // ===============================================
        $HR->question_types()->attach(1, ['amount' => 2]);
        $HR->question_types()->attach(2, ['amount' => 3]);
        $HR->question_types()->attach(3, ['amount' => 3]);
        $HR->question_types()->attach(4, ['amount' => 1]);
        $HR->question_types()->attach(5, ['amount' => 1]);
        $HR->question_types()->attach(6, ['amount' => 3]);
        $HR->question_types()->attach(7, ['amount' => 4]);
        $HR->question_types()->attach(8, ['amount' => 4]);
        $HR->question_types()->attach(9, ['amount' => 2]);
        
        $HR->question_types()->attach(19, ['amount' => 12]);
         
        $HR->question_types()->attach(20, ['amount' => 5]);

    }
}
