<?php

namespace Tests\Support\Database\Seeds;

use CodeIgniter\Database\Seeder;

class ClassSeeder extends Seeder
{
    public function run()
    {
        $data = [
            [
                'class_name' => 'Math 101',
                'section'    => 'A',
                'schedule'   => 'MWF 9:00-10:00',
                'capacity'   => 25,
            ],
            [
                'class_name' => 'English 101',
                'section'    => 'B',
                'schedule'   => 'TTh 10:00-11:30',
                'capacity'   => 30,
            ],
        ];

        $this->db->table('classes')->insertBatch($data);
    }
}
