feat(database): create migration for temp_bill_details table
- Menambahkan tabel 'temp_bill_details' ke dalam database. - Tabel ini mencakup kolom untuk menyimpan informasi terkait tagihan, termasuk ID, referensi pembayaran, jumlah pembayaran, dan status tagihan. - Menyediakan fungsi untuk membuat dan menghapus tabel melalui migrasi.
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<?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_bill_details', function (Blueprint $table) {
|
||||
$table->id(); // Primary key
|
||||
$table->text('_id')->nullable();
|
||||
$table->text('repay_ref')->nullable();
|
||||
$table->text('repay_amount')->nullable();
|
||||
$table->text('writeoff_ref')->nullable();
|
||||
$table->text('or_prop_amount')->nullable();
|
||||
$table->text('property')->nullable();
|
||||
$table->text('bill_type')->nullable();
|
||||
$table->text('payment_date')->nullable();
|
||||
$table->text('writeoff_amt')->nullable();
|
||||
$table->text('os_prop_amount')->nullable();
|
||||
$table->text('actual_pay_date')->nullable();
|
||||
$table->text('bill_status')->nullable();
|
||||
$table->text('payment_type')->nullable();
|
||||
$table->text('payment_method')->nullable();
|
||||
$table->text('os_total_amount')->nullable();
|
||||
$table->text('bill_date')->nullable();
|
||||
$table->text('arrangement_id')->nullable();
|
||||
$table->timestamps(); // Adds created_at and updated_at
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('temp_bill_details');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user