feat(atmcard): tambahkan model dan migrasi untuk tabel atmcards
- Menambahkan model Atmcard untuk mengelola data kartu ATM. - Membuat migrasi untuk tabel atmcards dengan atribut yang diperlukan. - Menambahkan job BiayaKartu untuk menyinkronkan data kartu dari database Oracle.
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<?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('atmcards', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('crdno')->nullable();
|
||||
$table->string('accflag')->nullable();
|
||||
$table->string('cracc1')->nullable();
|
||||
$table->string('cracc2')->nullable();
|
||||
$table->string('cracc3')->nullable();
|
||||
$table->string('cracc4')->nullable();
|
||||
$table->string('cracc5')->nullable();
|
||||
$table->string('craccnam1')->nullable();
|
||||
$table->string('craccnam2')->nullable();
|
||||
$table->string('craccnam3')->nullable();
|
||||
$table->string('craccnam4')->nullable();
|
||||
$table->string('craccnam5')->nullable();
|
||||
$table->string('crsts')->nullable();
|
||||
$table->string('cttype')->nullable();
|
||||
$table->string('ctdesc')->nullable();
|
||||
$table->string('branch')->nullable();
|
||||
$table->string('currency')->nullable();
|
||||
$table->decimal('fee', 10, 2)->nullable();
|
||||
$table->timestamp('last_update')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('atmcards');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user