update kelompok belajar
This commit is contained in:
@@ -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');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user