- Fitur: input pelanggaran, sistem poin, surat peringatan otomatis, SP progress - Realtime notifikasi via Laravel Reverb + Echo - Dashboard statistik, manajemen user, manajemen master data - Login 2 kolom premium, user dropdown, pengaturan akun - Tema biru kalem, logo sekolah dinamis, sidebar brand dinamis - Sinkronisasi siswa dari Database Kesiswaan via API
30 lines
877 B
PHP
30 lines
877 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
public function up(): void
|
|
{
|
|
Schema::create('classes', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('source_id')->nullable()->index();
|
|
$table->string('name');
|
|
$table->string('level'); // X, XI, XII
|
|
$table->string('department_code')->nullable();
|
|
$table->string('department_name')->nullable();
|
|
$table->string('academic_year_name')->nullable();
|
|
$table->boolean('is_active')->default(true);
|
|
$table->json('metadata')->nullable();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('classes');
|
|
}
|
|
};
|