<?php

namespace Tests\Support\Database\Seeds;

use CodeIgniter\Database\Seeder;

class AttendanceSeeder extends Seeder
{
    public function run()
    {
        $data = [
            [
                'class_section_id' => 1,
                'class_section_id' => 1,
                'student_id' => 1,
                'date' => '2024-08-20',
                'status' => 'Absent',
                'reason' => 'Sick',
                'modified_by' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s'),
            ],
            // Add more records as necessary
        ];

        // Insert the data into the database
        $this->db->table('attendance')->insertBatch($data);
    }
}
