Update master Varietas
This commit is contained in:
@@ -22,6 +22,20 @@ return new class extends Migration
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
});
|
||||
|
||||
Schema::create('master_varietas', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('komoditas_id')->constrained('master_komoditas')->onDelete('cascade');
|
||||
$table->string('nama');
|
||||
$table->text('deskripsi')->unique();
|
||||
|
||||
$table->foreignId('created_by')->nullable()->constrained('users')->onDelete('set null');
|
||||
$table->foreignId('updated_by')->nullable()->constrained('users')->onDelete('set null');
|
||||
$table->foreignId('deleted_by')->nullable()->constrained('users')->onDelete('set null');
|
||||
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -30,5 +44,6 @@ return new class extends Migration
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('master_komoditas');
|
||||
Schema::dropIfExists('master_varietas');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user