<?php

namespace App\Database\Seeds;

use CodeIgniter\Database\Seeder;

class StudyProgramSeeder extends Seeder
{
    public function run(): void
    {
        $programs = [
            ['name' => 'Teologi',                      'code' => 'TEO'],
            ['name' => 'Pendidikan Agama Kristen',     'code' => 'PAK'],
            ['name' => 'Musik Gereja',                 'code' => 'MUS'],
        ];

        $now = date('Y-m-d H:i:s');
        foreach ($programs as &$p) {
            $p['created_at'] = $now;
            $p['updated_at'] = $now;
        }

        $this->db->table('study_programs')->insertBatch($programs);
    }
}
