enhanced services attachment

This commit is contained in:
Fiqh Pratama
2025-10-13 10:55:21 +07:00
parent 65d176e6b2
commit dd5dbcab8f
9 changed files with 184 additions and 0 deletions
@@ -0,0 +1,28 @@
<?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('attachment_form', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('form_id');
$table->string('table_name', 100)->comment('nama tabel form yang direferensikan');
$table->string('file_category', 100)->nullable();
$table->string('file_path', 255);
$table->timestamps();
$table->softDeletes();
$table->index(['form_id', 'table_name'], 'idx_form_table');
});
}
public function down(): void
{
Schema::dropIfExists('attachment_form');
}
};