<?php
require 'vendor/autoload.php';
$app = require_once 'bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$kernel->bootstrap();

try {
    $siswa = App\Models\Siswa::create([
        'nis' => 'TEST999',
        'nama_lengkap' => 'Test Siswa',
        'kategori' => 'internal',
        'jenis_kelamin' => 'L',
        'status' => 'aktif',
        'kelas_id' => 1,
        'tahun_ajaran_id' => 1
    ]);
    echo "Success create Siswa: " . $siswa->id . "\n";
    $siswa->delete();
} catch (\Exception $e) {
    echo "Error:\n" . $e->getMessage() . "\n" . $e->getTraceAsString();
}
