⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
makarnacimmix.xyz
/
database
/
migrations
/
View File Name :
2021_03_10_085751_create_loan_payments_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateLoanPaymentsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('loan_payments', function (Blueprint $table) { $table->id(); $table->string('reference_no'); $table->string('slug'); $table->double('amount', 12, 2)->nullable(); $table->double('interest', 12, 2)->nullable(); $table->date('date')->nullable(); $table->string('note')->nullable(); $table->boolean('status')->nullable()->default(1); $table->string('image_path')->nullable(); $table->timestamps(); $table->unsignedBigInteger('loan_id'); $table->unsignedBigInteger('transaction_id'); $table->unsignedBigInteger('created_by'); $table->foreign('loan_id')->references('id')->on('loans')->onDelete('cascade')->onUpdate('no action'); $table->foreign('transaction_id')->references('id')->on('account_transactions')->onDelete('cascade')->onUpdate('no action'); $table->foreign('created_by')->references('id')->on('users')->onDelete('no action')->onUpdate('no action'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('loan_payments'); } }