<?php

namespace App\Database\Seeds;

use CodeIgniter\Database\Seeder;

class ViolationRulesSeeder extends Seeder
{
    public function run()
    {
        $this->db->table('violation_rules')->truncate();
        $data = [
            ['id' => 1, 'category_id' => 1, 'code' => 'DIS-01', 'description' => 'Datang terlambat ke sekolah atau kelas', 'severity' => 'Ringan', 'points' => 5, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 2, 'category_id' => 1, 'code' => 'DIS-02', 'description' => 'Keluar kelas tanpa izin guru saat jam pelajaran', 'severity' => 'Ringan', 'points' => 5, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 3, 'category_id' => 1, 'code' => 'DIS-03', 'description' => 'Tidak mengikuti upacara bendera hari Senin / hari besar', 'severity' => 'Ringan', 'points' => 10, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 4, 'category_id' => 1, 'code' => 'DIS-04', 'description' => 'Bolos (meninggalkan sekolah tanpa izin)', 'severity' => 'Sedang', 'points' => 20, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 5, 'category_id' => 1, 'code' => 'DIS-05', 'description' => 'Tidak mengikuti kegiatan ekstrakurikuler wajib', 'severity' => 'Ringan', 'points' => 10, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 6, 'category_id' => 1, 'code' => 'DIS-06', 'description' => 'Membawa barang yang tidak berhubungan dengan pelajaran (mainan, dll)', 'severity' => 'Ringan', 'points' => 5, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 7, 'category_id' => 2, 'code' => 'RAP-01', 'description' => 'Tidak memakai seragam sesuai ketentuan hari', 'severity' => 'Ringan', 'points' => 5, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 8, 'category_id' => 2, 'code' => 'RAP-02', 'description' => 'Seragam dikeluarkan/tidak rapi (tidak memakai ikat pinggang/kaos kaki)', 'severity' => 'Ringan', 'points' => 5, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 9, 'category_id' => 2, 'code' => 'RAP-03', 'description' => 'Siswa laki-laki berambut gondrong/melebihi batas kerah & daun telinga', 'severity' => 'Ringan', 'points' => 5, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 10, 'category_id' => 2, 'code' => 'RAP-04', 'description' => 'Mewarnai/mengecat rambut dengan warna mencolok', 'severity' => 'Sedang', 'points' => 15, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 11, 'category_id' => 2, 'code' => 'RAP-05', 'description' => 'Siswa laki-laki bertindik, memakai anting, gelang, atau kalung', 'severity' => 'Sedang', 'points' => 15, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 12, 'category_id' => 2, 'code' => 'RAP-06', 'description' => 'Siswa perempuan memakai make-up berlebihan / perhiasan mencolok', 'severity' => 'Ringan', 'points' => 5, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 13, 'category_id' => 2, 'code' => 'RAP-07', 'description' => 'Memelihara kuku panjang atau memakai cat kuku (kutek)', 'severity' => 'Ringan', 'points' => 5, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 14, 'category_id' => 3, 'code' => 'ETK-01', 'description' => 'Berbicara kasar, kotor, atau tidak sopan kepada teman', 'severity' => 'Ringan', 'points' => 10, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 15, 'category_id' => 3, 'code' => 'ETK-02', 'description' => 'Membuat gaduh / mengganggu jalannya kegiatan belajar mengajar', 'severity' => 'Ringan', 'points' => 10, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 16, 'category_id' => 3, 'code' => 'ETK-03', 'description' => 'Membuang sampah sembarangan di lingkungan sekolah', 'severity' => 'Ringan', 'points' => 5, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 17, 'category_id' => 3, 'code' => 'ETK-04', 'description' => 'Bersikap tidak sopan atau membantah guru / staf sekolah', 'severity' => 'Berat', 'points' => 30, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 18, 'category_id' => 3, 'code' => 'ETK-05', 'description' => 'Mengisi absensi secara curang (menitip presensi teman)', 'severity' => 'Sedang', 'points' => 20, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 19, 'category_id' => 4, 'code' => 'AKD-01', 'description' => 'Menyontek saat ulangan atau ujian berlangsung', 'severity' => 'Sedang', 'points' => 20, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 20, 'category_id' => 4, 'code' => 'AKD-02', 'description' => 'Membawa / mengaktifkan HP saat ujian tanpa izin pengawas', 'severity' => 'Sedang', 'points' => 15, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 21, 'category_id' => 4, 'code' => 'AKD-03', 'description' => 'Memalsukan tanda tangan orang tua, wali murid, atau guru', 'severity' => 'Sedang', 'points' => 25, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 22, 'category_id' => 4, 'code' => 'AKD-04', 'description' => 'Mengubah nilai rapor atau lembar jawaban ujian secara sengaja', 'severity' => 'Berat', 'points' => 50, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 23, 'category_id' => 5, 'code' => 'KRM-01', 'description' => 'Merusak sarana prasarana sekolah secara sengaja', 'severity' => 'Berat', 'points' => 50, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 24, 'category_id' => 5, 'code' => 'KRM-02', 'description' => 'Membawa, menghisap rokok, atau memakai vape di area sekolah', 'severity' => 'Berat', 'points' => 50, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 25, 'category_id' => 5, 'code' => 'KRM-03', 'description' => 'Melakukan perundungan (bullying) fisik, verbal, atau cyber kepada teman', 'severity' => 'Berat', 'points' => 50, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 26, 'category_id' => 5, 'code' => 'KRM-04', 'description' => 'Terlibat perkelahian atau tawuran antarpelajar', 'severity' => 'Berat', 'points' => 75, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 27, 'category_id' => 5, 'code' => 'KRM-05', 'description' => 'Membawa senjata tajam atau barang berbahaya lainnya', 'severity' => 'Khusus', 'points' => 100, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 28, 'category_id' => 5, 'code' => 'KRM-06', 'description' => 'Membawa, mengonsumsi, atau mengedarkan minuman keras / narkoba', 'severity' => 'Khusus', 'points' => 100, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
            ['id' => 29, 'category_id' => 5, 'code' => 'KRM-07', 'description' => 'Terlibat tindakan asusila, perjudian, pencurian, atau kriminalitas hukum', 'severity' => 'Khusus', 'points' => 100, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')],
        ];
        $this->db->table('violation_rules')->insertBatch($data);
    }
}
