for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Author: Emmanuel Paul Mnzava
* Twitter: @epmnzava
* Github:https://github.com/dbrax/tigopesa-tanzania
* Email: [email protected]
*
*/
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateOrdersTable extends Migration
{
* Run the migrations.
* @return void
public function up()
Schema::create('orders', function (Blueprint $table) {
$table->bigIncrements('id');
//customer personal information
$table->integer('firstname')->nullable();
$table->integer('lastname')->nullable();
$table->string('email')->nullable();
$table->string('mobile_number')->nullable();
//order information
$table->integer('amount');
$table->string('invoiceid')->nullable();
$table->string('payment_method')->nullable();
$table->string('status')->default('pending');
$table->date('date');
$table->text('notes')->nullable();
$table->text('address')->nullable();
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('orders');