feat: implement deposit request validation and transaction API, refactor client routes, and update transaction schema.

This commit is contained in:
pbao9
2026-02-18 21:17:13 +07:00
parent 31cbdf323f
commit 9a2cab4521
12 changed files with 371 additions and 175 deletions
@@ -4,33 +4,25 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
return new class extends Migration {
public function up()
{
//
Schema::create('transaction',function (Blueprint $table) {
$table->id()->autoIncrement();
Schema::create('transactions', function (Blueprint $table) {
$table->id();
$table->string('trans')->nullable();
$table->integer('amount')->nullable();
$table->bigInteger('customer_id')->default(0)->index();
$table->foreignId('customer_id')
->constrained('customers')
->cascadeOnDelete();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
Schema::dropIfExists('transactions');
}
};