62 lines
2.1 KiB
PHP
62 lines
2.1 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class Payments extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('payments', function (Blueprint $table) {
|
|
$table->increments('payment_id');
|
|
$table->uuid('payment_uuid')->unique();
|
|
$table->integer('lcard_id');
|
|
$table->integer('station_id');
|
|
$table->integer('status')->comment('0 = created, 1 = approved, 2 = failed');
|
|
$table->boolean('cyware_synced')->default(0);
|
|
$table->string('paypal_id');
|
|
$table->string('payer_id',64);
|
|
$table->string('firstname',64);
|
|
$table->string('lastname',64);
|
|
$table->string('business',64);
|
|
$table->text('verify_sign');
|
|
$table->string('payer_email',64);
|
|
$table->string('receiver_email',64);
|
|
$table->string('trans_num',64);
|
|
$table->string('paypal_trans_num',64)->nullable();
|
|
$table->string('item_name',64)->comment('not used');
|
|
$table->string('item_code',64)->comment('not used');
|
|
$table->string('item_number',64)->comment('not used');
|
|
$table->string('ip_track_id',64);
|
|
$table->text('other');
|
|
$table->double('amount');
|
|
$table->double('points');
|
|
$table->string('entry_type_code',16);
|
|
$table->string('entry_type_desc',16);
|
|
$table->string('receipt_num',16)->nullable();
|
|
$table->integer('quantity')->default(0)->comment('not used');
|
|
$table->datetime('paid_at');
|
|
$table->timestamps();
|
|
$table->integer('created_by')->default(0);
|
|
$table->integer('updated_by')->default(0);
|
|
$table->boolean('is_active')->default(1);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('payments');
|
|
}
|
|
}
|