Files
portal-api/database/migrations/2024_01_31_155620_payment.php
2025-07-24 16:18:27 +07:00

40 lines
1006 B
PHP

<?php
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
*/
public function up()
{
//
Schema::create('payment',function (Blueprint $table) {
$table->id()->autoIncrement();
$table->string('name',100)->nullable();
$table->tinyInteger('type')->default(0)->comment('0: thủ công,1: automation');
$table->string('accountNo')->nullable();
$table->string('bankName')->nullable();
$table->string('bankCode')->nullable();
$table->string('logo')->nullable();
$table->tinyInteger('status')->default(1);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('payment');
}
};