<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;

class CreateBixoPaymentPaymentsTable extends Migration
{
    /*
     * Run the migrations.
     *
     * @return void
     */

    public function up()
    {

        /*
         * Table: bixo_payment_payments
         */
        Schema::create('bixo_payment_payments', function ($table) {
            $table->increments('id');
            $table->package::package.fieldtype.INT('user_id')->nullable();
            $table->package::package.fieldtype.INT('car_id')->nullable();
            $table->package::package.fieldtype.ENUM('payment_method')->nullable();
            $table->package::package.fieldtype.DECIMAL('amount')->nullable();
            $table->package::package.fieldtype.ENUM('status')->nullable();
            $table->package::package.fieldtype.TIMESTAMP('transaction_date')->nullable();
            $table->text('marking', 200)->nullable();
            $table->softDeletes();
            $table->nullableTimestamps();
        });
    }

    /*
    * Reverse the migrations.
    *
    * @return void
    */

    public function down()
    {
        Schema::drop('bixo_payment_payments');
    }
}