update kelompok belajar

This commit is contained in:
2026-05-11 17:08:44 +07:00
parent ac9335bde5
commit 59fb4c7452
8 changed files with 1586 additions and 2 deletions
@@ -0,0 +1,46 @@
<?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('kelompok_belajar_tani', function (Blueprint $table) {
$table->id();
$table->string('nama_kelompok');
$table->text('deskripsi')->nullable();
$table->string('status')->default('aktif');
$table->foreignId('created_by')->nullable()
->constrained('users')
->nullOnDelete();
$table->foreignId('updated_by')->nullable()
->constrained('users')
->nullOnDelete();
$table->foreignId('deleted_by')->nullable()
->constrained('users')
->nullOnDelete();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('kelompok_belajar_tani');
}
};