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