feat(database): create migration for temp_arrangements table

- Menambahkan file migrasi untuk tabel temp_arrangements.
- Mendukung penyimpanan data terkait pengaturan sementara.
This commit is contained in:
Daeng Deni Mardaeni
2025-01-15 09:29:25 +07:00
parent bf2babb8b1
commit fa2e151811

View File

@@ -0,0 +1,38 @@
<?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('temp_arrangements', function (Blueprint $table) {
$table->id(); // Auto-increment ID
$table->string('arrangement_id')->unique(); // ID
$table->string('linked_appl_id')->nullable(); // LINKED.APPL.ID
$table->string('customer')->nullable(); // CUSTOMER
$table->string('co_code')->nullable(); // CO.CODE
$table->date('orig_contract_date')->nullable(); // ORIG.CONTRACT.DATE
$table->string('product')->nullable(); // PRODUCT
$table->date('start_date')->nullable(); // START.DATE
$table->string('product_line')->nullable(); // PRODUCT.LINE
$table->string('arr_status')->nullable(); // ARR.STATUS
$table->string('product_group')->nullable(); // PRODUCT.GROUP
$table->string('customer_role')->nullable(); // CUSTOMER.ROLE
$table->timestamps(); // Created at and Updated at timestamps
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('temp_arrangements');
}
};