Compare commits
2 Commits
bcc6d814e9
...
f37707b2f6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f37707b2f6 | ||
|
|
ad9780ccd6 |
@@ -4,25 +4,50 @@ use Illuminate\Database\Migrations\Migration;
|
|||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
use Illuminate\Support\Facades\Schema;
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
return new class extends Migration
|
class CreateStmtEntryDetailTable extends Migration
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Run the migrations.
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function up(): void
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::create('stmt_entry_detail', function (Blueprint $table) {
|
Schema::create('stmt_entry_detail', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
|
$table->string('stmt_entry_id')->nullable();
|
||||||
|
$table->string('account_number')->nullable();
|
||||||
|
$table->string('company_code')->nullable();
|
||||||
|
$table->string('amount_lcy')->nullable();
|
||||||
|
$table->string('transaction_code')->nullable();
|
||||||
|
$table->string('narrative')->nullable();
|
||||||
|
$table->string('product_category')->nullable();
|
||||||
|
$table->string('value_date')->nullable();
|
||||||
|
$table->string('amount_fcy')->nullable();
|
||||||
|
$table->string('exchange_rate')->nullable();
|
||||||
|
$table->string('trans_reference')->nullable();
|
||||||
|
$table->string('booking_date')->nullable();
|
||||||
|
$table->string('stmt_no')->nullable();
|
||||||
|
$table->string('date_time')->nullable();
|
||||||
|
$table->string('currency')->nullable();
|
||||||
|
$table->string('crf_type')->nullable();
|
||||||
|
$table->string('consol_key')->nullable();
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|
||||||
|
// Index untuk performa query
|
||||||
|
$table->index('stmt_entry_id');
|
||||||
|
$table->index('account_number');
|
||||||
|
$table->index('trans_reference');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reverse the migrations.
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function down(): void
|
public function down()
|
||||||
{
|
{
|
||||||
Schema::dropIfExists('stmt_entry_detail');
|
Schema::dropIfExists('stmt_entry_detail');
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user