<?php

namespace App\Database\Seeds;

use CodeIgniter\Database\Seeder;

class ViolationSanctionsSeeder extends Seeder
{
    public function run()
    {
        $this->db->table('violation_sanctions')->truncate();
        $data = [
            ['id' => 1, 'min_points' => 25, 'action_title' => 'Pembinaan Wali Kelas', 'description' => 'Pembinaan oleh Wali Kelas dan Peringatan Lisan.', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 2, 'min_points' => 50, 'action_title' => 'Peringatan SP 1', 'description' => 'Surat Peringatan 1 (SP 1) & Pemanggilan Orang Tua ke sekolah.', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 3, 'min_points' => 75, 'action_title' => 'Peringatan SP 2', 'description' => 'Surat Peringatan 2 (SP 2) & Skorsing Akademik selama 3 Hari.', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 4, 'min_points' => 100, 'action_title' => 'Peringatan SP 3 (Keluar)', 'description' => 'Surat Peringatan 3 (SP 3) & Dikembalikan ke Orang Tua (Dikeluarkan dari sekolah).', 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
        ];
        $this->db->table('violation_sanctions')->insertBatch($data);
    }
}
