<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('usulan', function (Blueprint $table) {
            $table->id('UsulanId');
            $table->string('nama')->nullable();
            $table->json('sekolah');
            $table->year('tahun');
            $table->integer('jenis_usulan');
            $table->string('file');
            $table->text('deskripsi')->nullable();
            $table->integer('status')->default(0);
            $table->integer('created_by');
            $table->timestampsTz();
            $table->softdeletesTz();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('usulans');
    }
};
